:root {
  color-scheme: dark;
  --bg: #090b0e;
  --panel: #131820;
  --ink: #f6f3e8;
  --muted: #aeb6bf;
  --line: #2d3642;
  --amber: #ffb347;
  --cyan: #63d4ff;
  --green: #6ee7a3;
  --red: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(99, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 179, 71, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: var(--amber);
  color: #16110a;
  font-weight: 900;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: 54px;
  padding: 56px 0 36px;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 16px;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 116px);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  margin: 24px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 4px;
  font-weight: 800;
}

.primary-action {
  background: var(--cyan);
  color: #06131a;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
}

.ops-visual {
  min-height: 470px;
  background: linear-gradient(145deg, rgba(19, 24, 32, 0.96), rgba(9, 11, 14, 0.92));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.status-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pill {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #222b36;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pill.live {
  background: var(--green);
  color: #06140d;
}

.system-map {
  position: relative;
  height: 270px;
  margin: 26px 0;
  border: 1px solid #26313d;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 212, 255, 0.16), transparent 34%),
    linear-gradient(90deg, transparent 49%, rgba(255, 179, 71, 0.25) 50%, transparent 51%);
}

.node {
  position: absolute;
  width: 86px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-weight: 900;
  color: #071018;
  background: var(--amber);
  z-index: 2;
}

.core {
  left: calc(50% - 43px);
  top: calc(50% - 30px);
  background: var(--cyan);
}

.site-a {
  left: 24px;
  top: 30px;
}

.site-b {
  right: 24px;
  top: 30px;
}

.site-c {
  left: calc(50% - 43px);
  bottom: 24px;
}

.rail {
  position: absolute;
  height: 8px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  border-radius: 4px;
  opacity: 0.8;
}

.rail-a {
  left: 66px;
  right: 66px;
  top: 75px;
}

.rail-b {
  width: 8px;
  height: 190px;
  left: calc(50% - 4px);
  top: 70px;
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.telemetry div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.telemetry span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.telemetry strong {
  display: block;
  font-size: 18px;
}

.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.band article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 24, 32, 0.78);
}

.band h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.legal-page {
  max-width: 860px;
  padding: 42px 0 80px;
}

.legal-page h1 {
  font-size: clamp(40px, 7vw, 72px);
}

.legal-page h2 {
  margin-top: 32px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page a {
  color: var(--cyan);
}

@media (max-width: 840px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .band {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    padding-top: 34px;
  }

  .ops-visual {
    min-height: auto;
  }

  .telemetry,
  .status-column {
    grid-template-columns: 1fr;
  }
}
