:root {
  --bg: #06070c;
  --bg-elev: rgba(9, 13, 22, 0.80);
  --bg-elev-strong: rgba(12, 17, 30, 0.92);
  --cyan: #5ee0ff;
  --violet: #a58bff;
  --green: #6ff0c0;
  --amber: #f0c677;
  --text: #eef4ff;
  --text-muted: #9aa7c4;
  --text-dim: #7380a0;
  --border: rgba(158, 184, 255, 0.14);
  --border-bright: rgba(94, 224, 255, 0.34);
  --font-display: "Orbitron", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --cut-sm: 10px;
  --cut-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  scroll-behavior: smooth;
  overflow-x: clip;
  min-width: 0;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-width: 0;
  background: radial-gradient(circle at 50% 16%, rgba(20, 34, 62, 0.24), transparent 56%), var(--bg);
  color: var(--text);
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

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

button {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-left, 0px));
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: #06070c;
  font-weight: 700;
  border-radius: 4px;
}

.skip-link:focus {
  top: 16px;
}

/* Full-screen background canvas & overlays */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.overlay-scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.38;
}

.overlay-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 48%, rgba(4, 5, 9, 0.8) 100%);
}

header,
main,
footer {
  position: relative;
  z-index: 2;
}

/* Glass & Cut-Corner Primitives */
.glass-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cut-card {
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut-md)) 0,
    100% var(--cut-md),
    100% 100%,
    var(--cut-md) 100%,
    0 calc(100% - var(--cut-md))
  );
}

.cut-btn {
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut-sm)) 0,
    100% var(--cut-sm),
    100% 100%,
    var(--cut-sm) 100%,
    0 calc(100% - var(--cut-sm))
  );
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(94, 224, 255, 0.92), rgba(165, 139, 255, 0.9));
  color: #06070c;
  border: 1px solid transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #86ebff, #beabff);
}

.btn-outline {
  background: rgba(10, 15, 27, 0.78);
  color: var(--cyan);
  border: 1px solid var(--border-bright);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-2px);
  background: rgba(94, 224, 255, 0.14);
  border-color: var(--cyan);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 12, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-lockup {
  width: 232px;
  height: 53px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-pill,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 31, 0.82);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.icon-pill {
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.icon-btn {
  width: 36px;
}

.icon-pill:hover,
.icon-pill:focus-visible,
.icon-btn:hover,
.icon-btn:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(94, 224, 255, 0.12);
}

.nav-cta {
  padding: 9px 14px;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Hero Section */
.hero-section {
  min-height: calc(100dvh - 68px);
  display: flex;
  align-items: center;
  padding: 28px 0 36px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-hud-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 24, 0.78);
  border-radius: 4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot-green {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.status-dot-amber {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.status-dot-cyan {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hud-action {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--border-bright);
  background: rgba(94, 224, 255, 0.08);
  color: var(--cyan);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.hud-action:hover,
.hud-action:focus-visible {
  background: rgba(94, 224, 255, 0.18);
  border-color: var(--cyan);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 32px;
}

.hero-tagline {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(110deg, #eef4ff 0%, #5ee0ff 38%, #a58bff 72%, #eef4ff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 9s linear infinite;
}

@keyframes titleShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 220% center;
  }
}

.hero-lead {
  margin: 0 0 18px;
  max-width: 58ch;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.hero-status {
  margin: 0 0 24px;
  padding: 10px 14px;
  border-left: 2px solid var(--amber);
  background: rgba(240, 198, 119, 0.06);
  color: var(--amber);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Interactive 3D Planetary Swarm Stage */
.hero-visual {
  min-width: 0;
}

.hero-planet-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-color: rgba(94, 224, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 0 36px rgba(94, 224, 255, 0.04);
}

.planet-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.planet-badge {
  color: var(--cyan);
  padding: 3px 8px;
  border: 1px solid rgba(94, 224, 255, 0.28);
  border-radius: 3px;
  background: rgba(94, 224, 255, 0.08);
  white-space: nowrap;
}

.planet-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 440px;
  margin: 0 auto;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(16, 25, 46, 0.52), rgba(5, 6, 11, 0.9) 76%);
  border: 1px solid rgba(158, 184, 255, 0.14);
  overflow: hidden;
}

#orbital-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#orbital-canvas:active {
  cursor: grabbing;
}

.canvas-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  text-align: center;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(6, 7, 12, 0.96);
}

.hud-bar-bottom {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.orbit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  background: rgba(10, 14, 26, 0.88);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.orbit-pill:hover,
.orbit-pill:focus-visible {
  border-color: var(--cyan);
  color: var(--text);
}

.orbit-pill.is-active {
  border-color: var(--cyan);
  background: rgba(94, 224, 255, 0.14);
  color: var(--text);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-dot-violet {
  background: var(--violet);
}

.pill-dot-cyan {
  background: var(--cyan);
}

.pill-dot-amber {
  background: var(--amber);
}

.pill-dot-green {
  background: var(--green);
}

/* Scroll cue */
.scroll-cue {
  align-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  animation: scrollBob 2.2s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.45;
  }
  50% {
    transform: translateY(6px) rotate(45deg);
    opacity: 1;
  }
}

/* Stats Bar */
.stats-section {
  padding: 18px 0 42px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.stat-item {
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--cyan);
}

.stat-label {
  margin-top: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-header {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  letter-spacing: 0.04em;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
}

/* 2x2 Systems Grid + Central Card + Dossier */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.system-card {
  position: relative;
  text-align: left;
  padding: 24px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease;
}

.system-card:hover,
.system-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.system-card.is-selected {
  border-color: var(--cyan);
  background: var(--bg-elev-strong);
  box-shadow: inset 0 0 28px rgba(94, 224, 255, 0.08);
}

.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(94, 224, 255, 0.14),
    transparent 70%
  );
  transition: opacity 220ms ease;
}

.system-card:hover .card-spotlight {
  opacity: 1;
}

.system-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.diamond-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid var(--border-bright);
  background: rgba(10, 15, 28, 0.92);
  border-radius: 6px;
  flex-shrink: 0;
}

.diamond-icon img {
  transform: rotate(-45deg);
  width: 34px;
  height: 34px;
}

.diamond-violet {
  border-color: rgba(165, 139, 255, 0.55);
}

.diamond-cyan {
  border-color: rgba(94, 224, 255, 0.55);
}

.diamond-amber {
  border-color: rgba(240, 198, 119, 0.55);
}

.diamond-green {
  border-color: rgba(111, 240, 192, 0.55);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-amber {
  color: var(--amber);
  border-color: rgba(240, 198, 119, 0.4);
  background: rgba(240, 198, 119, 0.1);
}

.badge-green {
  color: var(--green);
  border-color: rgba(111, 240, 192, 0.4);
  background: rgba(111, 240, 192, 0.1);
}

.badge-muted {
  color: var(--text-muted);
  border-color: var(--border);
  background: rgba(154, 167, 196, 0.08);
}

.system-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  letter-spacing: 0.05em;
}

.system-role {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--cyan);
}

.system-desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Synchronized Dossier */
.dossier-panel {
  margin-top: 24px;
  padding: 24px;
  border-color: rgba(94, 224, 255, 0.28);
}

.dossier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dossier-kicker {
  display: block;
  font-size: 0.74rem;
  color: var(--violet);
  letter-spacing: 0.1em;
}

.dossier-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.dossier-summary {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.dossier-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.spec-cell {
  padding: 12px;
  background: rgba(6, 7, 12, 0.62);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.spec-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.spec-val {
  font-size: 0.8rem;
  color: var(--text);
}

/* Featured ORBITAL CENTRAL Control Tower Card */
.central-card {
  width: 100%;
  margin-top: 24px;
  border-color: rgba(94, 224, 255, 0.28);
}

.central-layout {
  display: flex;
  align-items: center;
  gap: 24px;
}

.central-emblem {
  margin-left: 8px;
}

.central-body {
  flex: 1;
  min-width: 0;
}

.central-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Mercury R&D Strip */
.mercury-strip {
  margin-top: 18px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-style: dashed;
}

.mercury-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mercury-title {
  display: block;
  font-size: 0.78rem;
  color: var(--text);
}

.mercury-note {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Utilities Row */
.utilities-head {
  margin: 26px 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.utilities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.utility-box {
  padding: 16px;
  border: 1px dashed rgba(154, 167, 196, 0.32);
  background: rgba(9, 13, 22, 0.6);
  border-radius: 6px;
}

.utility-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.utility-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--cyan);
}

.utility-tag {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.utility-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Engine Pipeline */
.pipeline-wrap {
  position: relative;
  padding: 28px;
}

.pipeline-track {
  position: relative;
  height: 2px;
  background: rgba(158, 184, 255, 0.18);
  margin-bottom: 24px;
  overflow: hidden;
}

.pipeline-pulse {
  position: absolute;
  top: 0;
  left: -25%;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  animation: pulseSlide 4.5s linear infinite;
}

@keyframes pulseSlide {
  0% {
    left: -25%;
  }
  100% {
    left: 100%;
  }
}

.pipeline-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.pipeline-step {
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.76);
  border-radius: 6px;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.pipeline-step.is-lit {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(94, 224, 255, 0.14);
}

.step-index {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 6px;
}

.step-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.step-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Terminal */
.terminal-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #04060b;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15, 22, 38, 0.85);
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(154, 167, 196, 0.35);
}

.terminal-label {
  color: var(--amber);
  padding: 2px 8px;
  border: 1px solid rgba(240, 198, 119, 0.36);
  border-radius: 3px;
}

.terminal-body {
  margin: 0;
  padding: 16px;
  min-height: 152px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--green);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Roadmap & Desktop Suite Lineup */
.roadmap-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.road-card,
.comm-card {
  padding: 24px;
}

.roadmap-lineup {
  margin-top: 24px;
  padding: 22px 24px;
}

.roadmap-lineup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.roadmap-lineup-note {
  color: var(--text-dim);
}

.roadmap-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(6, 8, 14, 0.62);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.roadmap-logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  flex-shrink: 0;
}

.roadmap-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.roadmap-app {
  font-family: var(--font-display);
  font-size: 0.94rem;
  letter-spacing: 0.05em;
}

.roadmap-role {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.comm-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.comm-card:hover,
.comm-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.road-step,
.comm-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.road-title,
.comm-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.road-desc,
.comm-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.comm-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.78rem;
  color: var(--cyan);
}

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-risk {
  padding: 18px 20px;
  border-color: rgba(240, 198, 119, 0.34);
}

.risk-title {
  margin: 0 0 6px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.risk-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
}

/* Reveal Animations */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
  .dossier-specs,
  .utilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline-steps {
    grid-template-columns: 1fr;
  }
  .roadmap-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }
  .brand-lockup {
    width: 184px;
    height: 42px;
  }
  .systems-grid,
  .stats-grid,
  .dossier-specs,
  .utilities-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-bottom: 1px solid var(--border);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .hud-action {
    margin-left: 0;
  }
  .hud-bar-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orbit-pill-wide {
    grid-column: span 2;
  }
  .central-layout {
    flex-direction: column;
    align-items: flex-start;
  }
  .central-emblem {
    margin-left: 4px;
  }
  .roadmap-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .roadmap-row .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 540px) {
  .icon-btn {
    display: none;
  }
}

@media (max-width: 440px) {
  .container {
    padding: 0 10px;
  }
  .header-inner {
    gap: 6px;
  }
  .brand-lockup {
    width: 150px;
    height: 34px;
  }
  .header-actions {
    gap: 6px;
  }
  .icon-pill {
    padding: 0 7px;
    height: 32px;
    font-size: 0.72rem;
  }
  .nav-cta {
    padding: 6px 8px;
    font-size: 0.68rem;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .brand-lockup {
    width: 104px;
    height: 24px;
  }
  .nav-cta {
    padding: 5px 7px;
    font-size: 0.64rem;
  }
}

/* Legal & Accessibility Page */
.legal-page {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.legal-page .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.legal-page h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: 0.04em;
}

.legal-page h2 {
  margin: 32px 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.legal-page p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.legal-page code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(94, 224, 255, 0.09);
  color: var(--cyan);
}

.draft-alert {
  margin: 20px 0 28px;
  padding: 16px 20px;
  border: 1px solid rgba(240, 198, 119, 0.45);
  border-left: 3px solid var(--amber);
  background: rgba(240, 198, 119, 0.08);
  border-radius: 6px;
  color: var(--text);
}

.draft-alert strong {
  display: block;
  margin-bottom: 6px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.legal-page .placeholder {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--amber);
  background: rgba(240, 198, 119, 0.12);
  border: 1px dashed rgba(240, 198, 119, 0.45);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 16px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  background: rgba(12, 18, 32, 0.8);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  background: rgba(94, 224, 255, 0.14);
  border-color: var(--cyan);
}
