: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 { color: #94a3b8; font-size: .82rem; font-weight: 600; text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.system-shortcut {
  display: grid;
  width: 104px;
  height: 38px;
  padding: 4px 8px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 10px;
  background: rgba(13, 20, 32, .82);
  transition: border-color .2s ease, transform .2s ease;
}
.system-shortcut:hover, .system-shortcut:focus-visible { transform: translateY(-2px); border-color: rgba(56, 189, 248, .55); outline: none; }
.system-shortcut img { width: 100%; height: 100%; object-fit: contain; }
.system-shortcut[href="/greyzone/"] img { object-fit: cover; }

.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(46px, 7vw, 82px) 0; }
.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: clamp(46px, 7vw, 82px) 0 80px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.section-heading h2 { margin: 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: 24px; }
.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 {
  background:
    linear-gradient(90deg, rgba(4, 12, 25, .95) 0%, rgba(4, 12, 25, .76) 48%, rgba(4, 12, 25, .22) 100%),
    url('/card_air.png') center / cover no-repeat;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.air-card:hover, .air-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, .58);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 45px rgba(3, 12, 25, .35);
  outline: none;
}
.air-card .card-index { color: #38bdf8; }
.air-card .system-identity p,
.air-card .system-description { color: #cbd5e1; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.greyzone-card {
  background:
    linear-gradient(90deg, rgba(5, 8, 20, .95) 0%, rgba(5, 8, 20, .78) 48%, rgba(5, 8, 20, .3) 100%),
    url('/card_greyzone.png') center / cover no-repeat;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.greyzone-card:hover, .greyzone-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, .6);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 45px rgba(3, 4, 15, .35);
  outline: none;
}
.greyzone-card .card-index { color: #a78bfa; }
.greyzone-card .system-identity p,
.greyzone-card .system-description { color: #cbd5e1; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.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 {
  width: min(270px, 100%);
  height: 99px;
  flex: 0 1 270px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.air-logo img { width: 100%; height: 100%; object-fit: contain; }
.air-card .system-identity > div { display: none; }
.greyzone-logo {
  width: min(270px, 100%);
  height: 99px;
  flex: 0 1 270px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.greyzone-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.greyzone-card .system-identity > div {
  display: none;
}
.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; }
  .nav-actions { gap: 6px; }
  .system-shortcut { width: 76px; height: 34px; padding: 3px 6px; }
  .hero { padding: 46px 0; }
  .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 { font-size: .72rem; }
  .server-status { display: none; }
  .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; } }
