:root {
  /* Compliance tokens from design parser: Interface Debris* Debris:* Debris Debris: Debriss Debrisss Debris** Debris:** tiny plus signs Space Mono” from Google Fonts */
  --toner: #050505;
  --pearl: #F7F7F2;
  --lcd: #D8DADF;
  --graphite: #2A2D33;
  --silver: #B8BCC6;
  --white: #FFFFFF;
  --blue: #5BC0FF;
  --shadow: 0 24px 80px rgba(5,5,5,0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--toner);
  background: linear-gradient(135deg, #F7F7F2 0%, #D8DADF 48%, #FFFFFF 100%);
  font-family: "Manrope", Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(5,5,5,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,5,5,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 82%);
  z-index: 0;
}

.boot-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #050505;
  color: #F7F7F2;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.boot-mask.loaded { opacity: 0; visibility: hidden; }

.boot-panel {
  width: min(540px, 80vw);
  padding: 34px;
  border: 1px solid #B8BCC6;
  background: rgba(42,45,51,0.72);
  box-shadow: 0 24px 80px rgba(5,5,5,0.12);
  clip-path: polygon(0 0, 94% 0, 100% 18%, 100% 100%, 6% 100%, 0 84%);
}

.boot-panel p, .coordinate, .system-tag, .rail-code, .rail-stack, .capsule, small, .signature-line {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.boot-bars { display: grid; gap: 10px; margin: 28px 0; }
.boot-bars span, .skeleton-set i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #D8DADF 0%, #FFFFFF 46%, #B8BCC6 100%);
  animation: shimmer 1.4s linear infinite;
}
.boot-bars span:nth-child(2) { width: 78%; }
.boot-bars span:nth-child(3) { width: 48%; }

.persistent-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 400vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.44;
}

.route {
  fill: none;
  stroke: #050505;
  stroke-width: 2;
  stroke-dasharray: 18 18;
  animation: routeFlow 16s linear infinite;
}

.route-b { stroke: #B8BCC6; animation-duration: 21s; }
.network-nodes circle { fill: #F7F7F2; stroke: #050505; stroke-width: 3; animation: blink 2.8s ease-in-out infinite; }
.network-nodes circle:nth-child(3n) { fill: #5BC0FF; }

.left-rail {
  position: fixed;
  z-index: 6;
  left: 0;
  top: 0;
  width: min(20vw, 210px);
  height: 100vh;
  padding: 26px 22px;
  border-right: 1px solid rgba(5,5,5,0.16);
  background: rgba(247,247,242,0.68);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rail-code { font-weight: 700; font-size: 0.78rem; }
.rail-stack { display: grid; gap: 24px; font-size: 0.62rem; color: #2A2D33; writing-mode: vertical-rl; transform: rotate(180deg); }
.rail-ticks { display: grid; gap: 9px; }
.rail-ticks i { width: 22px; height: 2px; background: #050505; display: block; }
.rail-ticks i:nth-child(3) { background: #5BC0FF; width: 38px; }

main { position: relative; z-index: 2; }
.screen { min-height: 100vh; position: relative; padding: 7vh 5vw 7vh calc(min(20vw, 210px) + 4vw); overflow: hidden; }
.grid-shell { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); min-height: 86vh; align-items: center; }
.system-column { grid-column: span 3; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 0; color: #2A2D33; }
.system-tag { font-size: 0.68rem; font-weight: 700; color: #050505; }
.coordinate { font-size: 0.62rem; line-height: 1.6; color: #2A2D33; }
.micro-list { display: grid; gap: 10px; font-size: 0.8rem; color: #2A2D33; }

.hero-blob { position: absolute; right: -9vw; top: -11vh; width: min(56vw, 760px); z-index: 1; filter: drop-shadow(0 24px 80px rgba(5,5,5,0.12)); }
.hero-blob path:first-child { fill: #FFFFFF; stroke: #050505; stroke-width: 4; }
.hero-blob .inner { fill: none; stroke: #B8BCC6; stroke-width: 2; }
.hero-blob .gloss { fill: none; stroke: #D8DADF; stroke-width: 13; stroke-linecap: round; opacity: 0.75; }
.blob-morph { animation: blobDrift 9s ease-in-out infinite alternate; }

.hero-copy { grid-column: 4 / span 7; align-self: end; padding-bottom: 8vh; position: relative; z-index: 3; }
.skeleton-set { max-width: 560px; display: grid; gap: 14px; margin-bottom: 30px; transition: opacity 700ms ease, transform 700ms ease; }
.skeleton-set i:nth-child(1) { width: 88%; }
.skeleton-set i:nth-child(2) { width: 66%; }
.skeleton-set i:nth-child(3) { width: 42%; }
.hydrate.resolved .skeleton-set { opacity: 0; transform: translateY(-12px); height: 0; margin: 0; overflow: hidden; }

.eyebrow { font-family: "Space Mono", monospace; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; color: #2A2D33; }
h1, h2 { font-family: "Nunito Sans", Inter, sans-serif; font-weight: 1000; line-height: 0.9; letter-spacing: -0.06em; margin: 0; }
h1 { font-size: clamp(4rem, 11vw, 10.5rem); max-width: 980px; }
h2 { font-size: clamp(2.2rem, 5vw, 5.4rem); }
.lead, .ledger-copy p, .route-card p { color: #2A2D33; font-size: clamp(1rem, 1.25vw, 1.22rem); line-height: 1.65; max-width: 660px; }

.floating-status { grid-column: 11 / span 4; align-self: center; display: grid; gap: 20px; z-index: 3; }
.scanner-card, .route-card, .archive-strip, .ledger-copy {
  position: relative;
  background: rgba(247,247,242,0.78);
  border: 1px solid rgba(5,5,5,0.18);
  box-shadow: 0 24px 80px rgba(5,5,5,0.12);
  overflow: hidden;
}
.scanner-card { min-height: 250px; padding: 26px; clip-path: polygon(0 0, 100% 0, 100% 82%, 88% 100%, 0 100%); }
.scanner-card span { font-family: "Space Mono", monospace; font-size: 0.7rem; }
.scanner-card strong { display: block; font: 1000 clamp(4rem, 8vw, 7rem) "Nunito Sans"; margin-top: 34px; }
.scan-line, .scanner-card::after, .archive-strip::after, .ledger-copy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(91,192,255,0.18);
  top: -40px;
  animation: scanSweep 4.8s ease-in-out infinite;
}
.capsule { border: 1px solid #B8BCC6; border-radius: 999px; padding: 13px 18px; background: #FFFFFF; width: max-content; font-size: 0.66rem; }

.pathway-screen { background: rgba(255,255,255,0.38); }
.pathway-grid .system-column { grid-column: 1 / span 3; }
.map-board { grid-column: 4 / span 8; min-height: 68vh; position: relative; border: 1px solid #B8BCC6; background: rgba(216,218,223,0.34); clip-path: polygon(0 7%, 100% 0, 96% 100%, 5% 92%); }
.diagram { position: absolute; inset: 5% 2% 0 2%; width: 96%; height: 92%; overflow: visible; }
.diagram .draw-line { fill: none; stroke: #050505; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawRoute 5s ease-in-out infinite alternate; }
.diagram .slow { stroke: #B8BCC6; animation-duration: 6.5s; }
.diagram circle, .diagram rect { fill: #F7F7F2; stroke: #050505; stroke-width: 3; }
.diagram circle:nth-of-type(2) { fill: #5BC0FF; }
.route-card { padding: 24px; width: min(410px, 44%); z-index: 3; }
.route-card h2 { font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -0.04em; }
.card-a { position: absolute; left: -3%; top: 12%; }
.card-b { position: absolute; right: -2%; bottom: 9%; }
.side-capsules { grid-column: 12 / span 3; display: grid; gap: 14px; align-content: center; }
.side-capsules span { border: 1px solid #B8BCC6; border-radius: 999px; padding: 15px 18px; background: #F7F7F2; font-family: "Space Mono", monospace; font-size: 0.72rem; text-transform: uppercase; }
.side-capsules .active { border-color: #5BC0FF; box-shadow: inset 0 0 0 2px rgba(91,192,255,0.24); }

.archive-screen { background: #050505; color: #F7F7F2; }
.archive-screen .system-tag, .archive-screen .coordinate { color: #F7F7F2; }
.archive-blob { position: absolute; width: 58vw; height: 58vw; right: -24vw; top: 10vh; border-radius: 44% 56% 52% 48%; background: radial-gradient(circle at 35% 25%, #FFFFFF, #D8DADF 40%, #2A2D33 74%); border: 2px solid #F7F7F2; opacity: 0.34; }
.archive-grid { align-items: center; }
.archive-strips { grid-column: 4 / span 10; display: grid; gap: 18px; transform: rotate(-2deg); }
.archive-strip { min-height: 86px; padding: 22px 30px; display: grid; grid-template-columns: 110px 1fr; align-items: center; color: #F7F7F2; background: rgba(42,45,51,0.74); border-color: rgba(247,247,242,0.3); }
.archive-strip:nth-child(even) { transform: translateX(8vw); background: rgba(247,247,242,0.09); }
.archive-strip span { font-family: "Space Mono", monospace; color: #5BC0FF; }
.archive-strip p { margin: 0; font-size: clamp(1.1rem, 2vw, 2rem); font-weight: 700; }
.archive-strip::after { background: rgba(255,255,255,0.08); animation-delay: calc(var(--i, 0) * 240ms); }

.ledger-screen { background: linear-gradient(135deg, #F7F7F2 0%, #D8DADF 48%, #FFFFFF 100%); }
.ledger-orbit { position: absolute; inset: 0; pointer-events: none; }
.orbital { position: absolute; border: 2px solid #050505; border-radius: 45% 55% 58% 42%; background: rgba(255,255,255,0.36); box-shadow: 0 24px 80px rgba(5,5,5,0.12); }
.orbital.one { width: 44vw; height: 30vw; right: -8vw; top: 12vh; animation: orbit 13s ease-in-out infinite; }
.orbital.two { width: 34vw; height: 22vw; left: 20vw; bottom: 12vh; border-color: #B8BCC6; animation: orbit 11s ease-in-out infinite reverse; }
.orbital.three { width: 16vw; height: 16vw; right: 25vw; bottom: 18vh; border-color: #5BC0FF; animation: blink 3s ease-in-out infinite; }
.ledger-copy { grid-column: 5 / span 8; padding: clamp(28px, 5vw, 70px); clip-path: polygon(0 0, 96% 0, 100% 12%, 100% 100%, 0 94%); }
.signature-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; font-size: 0.68rem; }
.signature-line span { border: 1px solid #B8BCC6; border-radius: 999px; padding: 10px 13px; background: #FFFFFF; }

@keyframes shimmer { from { background-position: -240px 0; } to { background-position: 240px 0; } }
@keyframes routeFlow { to { stroke-dashoffset: -360; } }
@keyframes blink { 0%, 100% { opacity: 0.35; } 48% { opacity: 1; } }
@keyframes blobDrift { to { transform: translate3d(-18px, 22px, 0) rotate(4deg) scale(1.025); } }
@keyframes scanSweep { 0% { top: -44px; } 55%, 100% { top: 110%; } }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
@keyframes orbit { 50% { transform: translate3d(24px, -20px, 0) rotate(8deg); } }

@media (max-width: 900px) {
  .left-rail { width: 100%; height: 58px; flex-direction: row; align-items: center; padding: 14px 18px; }
  .rail-stack, .rail-ticks { display: none; }
  .screen { padding: 86px 22px 44px; }
  .grid-shell { grid-template-columns: 1fr; min-height: auto; gap: 28px; }
  .system-column, .hero-copy, .floating-status, .map-board, .side-capsules, .archive-strips, .ledger-copy { grid-column: 1 !important; }
  .system-column { min-height: 130px; }
  .hero-blob { width: 92vw; right: -36vw; top: 60px; }
  .route-card { width: 86%; position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 20px auto; }
  .map-board { min-height: 760px; clip-path: none; }
  .archive-strip, .archive-strip:nth-child(even) { transform: none; grid-template-columns: 70px 1fr; }
}
