:root {
  --bg: #05070d;
  --paper: rgba(13, 20, 32, 0.9);
  --ink: #f5f9ff;
  --muted: #9cadc2;
  --line: rgba(116, 171, 215, 0.22);
  --accent: #26d7ff;
  --accent-dark: #95f3ff;
  --green: #79f2c8;
  --green-soft: rgba(121, 242, 200, 0.12);
  --amber: #ff6961;
  --deep: #03050a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(38, 215, 255, 0.22), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(255, 105, 97, 0.18), transparent 32%),
    radial-gradient(circle at 52% 86%, rgba(121, 242, 200, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(116, 171, 215, 0.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(116, 171, 215, 0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.72;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.05), rgba(5, 7, 13, 0.82));
  content: "";
  pointer-events: none;
}

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

.control-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(18px);
}

.control-brand {
  display: grid;
  gap: 1px;
  min-width: 210px;
}

.control-brand strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.1;
}

.control-brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.route-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.route-nav a:hover,
.ground-footer a:hover,
.quiet-link:hover {
  color: var(--accent);
}

.foldout-nav {
  display: none;
}

.foldout-nav summary {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  list-style: none;
  font-weight: 900;
}

.foldout-nav summary::-webkit-details-marker {
  display: none;
}

.foldout-nav nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 5vw;
  right: 5vw;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.foldout-nav nav a {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 8px;
}

.foldout-nav nav a:hover {
  background: rgba(38, 215, 255, 0.1);
}

.command-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  align-items: center;
  gap: 6vw;
  min-height: calc(100vh - 72px);
  padding: 6vw 5vw 5vw;
  background:
    radial-gradient(circle at 14% 18%, rgba(38, 215, 255, 0.22), transparent 34%),
    radial-gradient(circle at 74% 22%, rgba(255, 105, 97, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(10, 17, 28, 0.82), rgba(5, 7, 13, 0.5));
}

.gateway-stage {
  grid-template-columns: minmax(320px, 0.94fr) minmax(360px, 0.78fr);
  min-height: auto;
  padding-top: 72px;
  padding-bottom: 76px;
}

.command-copy {
  max-width: 820px;
  padding-left: 24px;
  border-left: 1px solid rgba(38, 215, 255, 0.34);
}

.signal-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
}

.lead,
.command-copy p {
  color: var(--muted);
  font-size: 18px;
}

.command-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signal-button,
.quiet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 950;
}

.signal-button.is-solid {
  color: #031018;
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: 0 16px 42px rgba(38, 215, 255, 0.24);
}

.signal-button.is-line,
.quiet-link {
  color: var(--accent-dark);
  border: 1px solid rgba(38, 215, 255, 0.3);
  background: rgba(38, 215, 255, 0.08);
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  border: 1px solid rgba(116, 171, 215, 0.24);
  background: rgba(116, 171, 215, 0.16);
}

.command-metrics span {
  display: grid;
  gap: 2px;
  min-height: 82px;
  padding: 15px 16px;
  background: rgba(8, 14, 24, 0.82);
}

.command-metrics strong {
  color: var(--ink);
  font-size: 17px;
}

.command-metrics em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.route-console {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(116, 171, 215, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 22, 36, 0.92), rgba(5, 7, 13, 0.88)),
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(38, 215, 255, 0.06) 12px);
  box-shadow: var(--shadow);
}

.route-screen {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid rgba(116, 171, 215, 0.3);
  border-radius: 4px;
}

.route-pulse-list {
  display: grid;
  gap: 8px;
}

.route-pulse-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(116, 171, 215, 0.2);
  background: rgba(38, 215, 255, 0.06);
}

.route-pulse-list b {
  color: var(--green);
}

.route-pulse-list em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.signal-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(121, 242, 200, 0.26);
  border-radius: 999px;
  color: var(--green);
  background: rgba(121, 242, 200, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.data-band,
.content-shell,
.story-shell {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 82px 0;
}

.band-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.access-console {
  padding-top: 68px;
}

.entry-rail {
  display: grid;
  border-top: 1px solid var(--line);
}

.entry-line {
  display: grid;
  grid-template-columns: 52px minmax(120px, 160px) minmax(210px, 0.68fr) minmax(260px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 118px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.entry-line:hover {
  padding-left: 14px;
  border-color: rgba(38, 215, 255, 0.42);
  background: linear-gradient(90deg, rgba(38, 215, 255, 0.1), transparent);
  transition: padding-left 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.entry-line b {
  color: rgba(149, 243, 255, 0.72);
  font-size: 15px;
}

.entry-line span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.entry-line h3 {
  margin-bottom: 0;
}

.entry-line p {
  margin-bottom: 0;
  color: var(--muted);
}

.relay-grid,
.briefing-list,
.device-matrix,
.archive-gates {
  display: grid;
  gap: 16px;
}

.relay-grid,
.briefing-list,
.device-matrix {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-gates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.relay-tile,
.briefing-card,
.device-cell,
.signal-note,
.archive-gate,
.launch-checklist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(18, 29, 45, 0.92), rgba(9, 14, 24, 0.86));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

.relay-tile:hover,
.briefing-card:hover,
.device-cell:hover,
.archive-gate:hover {
  border-color: rgba(38, 215, 255, 0.44);
  transform: translateY(-2px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.relay-tile,
.briefing-card,
.device-cell,
.archive-gate {
  min-height: 220px;
  padding: 24px;
}

.relay-tile span,
.briefing-card span,
.device-cell span,
.archive-gate span {
  display: block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.relay-tile p,
.briefing-card p,
.device-cell p,
.archive-gate p,
.signal-note p,
.story-body p,
.launch-checklist p {
  color: var(--muted);
}

.route-dossier {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.launch-checklist {
  padding: 26px;
}

.launch-checklist ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.launch-checklist li {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(38, 215, 255, 0.08);
  font-weight: 850;
}

.signal-note {
  padding: 24px;
  background: linear-gradient(135deg, rgba(20, 31, 49, 0.95), rgba(13, 24, 38, 0.9));
}

.content-shell {
  min-height: calc(100vh - 170px);
}

.story-shell {
  width: min(900px, 90vw);
}

.story-body {
  font-size: 18px;
}

.story-body h2 {
  margin-top: 34px;
  font-size: 28px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-weight: 950;
}

.ground-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 5vw;
  color: #d8e8f8;
  background: var(--deep);
}

.ground-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #9cadc2;
}

@media (max-width: 980px) {
  .route-nav {
    display: none;
  }

  .foldout-nav {
    display: block;
  }

  .command-deck,
  .route-dossier {
    grid-template-columns: 1fr;
  }

  .gateway-stage {
    padding-top: 54px;
  }

  .entry-line {
    grid-template-columns: 48px minmax(120px, 160px) minmax(0, 1fr);
  }

  .entry-line p {
    grid-column: 3;
  }

  .relay-grid,
  .briefing-list,
  .device-matrix,
  .archive-gates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .control-bar {
    min-height: 64px;
  }

  .control-brand {
    min-width: 0;
  }

  .command-deck {
    min-height: auto;
    padding-top: 34px;
  }

  .command-copy {
    padding-left: 16px;
  }

  .command-metrics,
  .entry-line {
    grid-template-columns: 1fr;
  }

  .entry-line {
    gap: 8px;
    min-height: auto;
    padding: 18px 0;
  }

  .entry-line:hover {
    padding-left: 0;
  }

  .entry-line p {
    grid-column: auto;
  }

  .route-pulse-list span {
    display: grid;
  }

  h1 {
    font-size: 42px;
  }

  .relay-grid,
  .briefing-list,
  .device-matrix,
  .archive-gates {
    grid-template-columns: 1fr;
  }

  .ground-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
