:root {
  color: #f8fafc;
  background: #070b12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #070b12;
  background-size: 72px 72px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.ambient-one { top: -22rem; right: -12rem; background: rgba(37, 99, 235, 0.24); }
.ambient-two { bottom: -32rem; left: -18rem; background: rgba(14, 165, 233, 0.13); }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.09);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font-size: 0.92rem; letter-spacing: 0.01em; }
.brand small { color: #64748b; font-size: 0.7rem; }

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
}
.server-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1), 0 0 18px rgba(34, 197, 94, 0.5);
}

.hero { padding: clamp(78px, 12vw, 150px) 0 clamp(90px, 12vw, 150px); }
.eyebrow {
  margin: 0;
  color: #38bdf8;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.hero h1 {
  max-width: 1000px;
  margin: 24px 0 30px;
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}
.hero h1 span { color: #64748b; }
.intro { max-width: 660px; margin: 0; color: #94a3b8; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.75; }

.systems { padding: 0 0 80px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.section-heading h2 { margin: 9px 0 0; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.04em; }
.section-heading > p { margin: 0; color: #64748b; font-size: 0.85rem; }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.system-card {
  position: relative;
  min-height: 360px;
  padding: clamp(25px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 24px;
  background: rgba(13, 20, 32, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
}
.air-card { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.air-card:hover, .air-card:focus-visible { transform: translateY(-4px); border-color: rgba(56, 189, 248, .52); background: rgba(14, 28, 45, .92); outline: none; }
.system-card::after {
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.13);
  filter: blur(60px);
  content: "";
}
.greyzone-card::after { background: rgba(124, 58, 237, 0.12); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-index { color: #475569; font: 700 0.68rem ui-monospace, monospace; letter-spacing: 0.12em; }
.badge {
  padding: 7px 11px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.07);
  color: #fbbf24;
  font-size: 0.67rem;
  font-weight: 700;
}
.badge-live { border-color: rgba(56, 189, 248, .23); background: rgba(56, 189, 248, .08); color: #7dd3fc; }
.system-identity { display: flex; align-items: center; gap: 18px; margin-top: 54px; }
.system-logo { display: grid; width: 66px; height: 66px; flex: 0 0 66px; place-items: center; border-radius: 18px; }
.air-logo { border: 1px solid rgba(56, 189, 248, 0.22); background: rgba(14, 165, 233, 0.08); }
.air-logo img { width: 46px; height: 46px; object-fit: contain; }
.greyzone-logo {
  border: 1px solid rgba(167, 139, 250, 0.24);
  background: rgba(124, 58, 237, 0.1);
  color: #c4b5fd;
  font: 800 1rem ui-monospace, monospace;
}
.system-identity h3 { margin: 0 0 6px; font-size: 1.65rem; letter-spacing: -0.04em; }
.system-identity p, .system-description { margin: 0; color: #64748b; }
.system-identity p { font-size: 0.78rem; }
.system-description { max-width: 430px; margin-top: 27px; font-size: 0.9rem; line-height: 1.65; }
.progress { position: absolute; right: 38px; bottom: 34px; left: 38px; height: 2px; overflow: hidden; background: #1e293b; }
.progress span { display: block; width: 28%; height: 100%; background: linear-gradient(90deg, #0284c7, #38bdf8); }
.greyzone-card .progress span { width: 18%; background: linear-gradient(90deg, #6d28d9, #a78bfa); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 42px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #475569;
  font-size: 0.7rem;
}
.footer-address { font-family: ui-monospace, monospace; }

@media (max-width: 760px) {
  main { width: min(1180px, calc(100% - 32px)); }
  nav { min-height: 88px; }
  .hero { padding-top: 76px; }
  .hero h1 { letter-spacing: -0.055em; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .system-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 330px; }
}

@media (max-width: 430px) {
  .brand small, .footer-address { display: none; }
  .server-status { font-size: 0.68rem; }
  .hero h1 { font-size: 2.35rem; line-height: 1; }
  .intro { font-size: 0.96rem; }
  .section-heading h2 { font-size: 1.4rem; }
  .system-card { border-radius: 18px; }
  .progress { right: 25px; left: 25px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
