/* =====================================================================
   PROJECT404 — cinematic landing site
   Layers on top of DesignSystem/css/styles.css.
   Adds: matte/obsidian palette, emerald glow, HUD chrome, boot, hero,
   division modules, AI network stage, community ticker, intel terminal,
   final skyline scene.
   ===================================================================== */

/* ---------- tokens (extending design system) ---------- */
.p404 {
  /* obsidian/graphite layered base — darker than design system default */
  --ob-0:   #04060a;   /* deepest */
  --ob-1:   #060a10;
  --ob-2:   #0a0f17;
  --ob-3:   #0e1622;
  --ob-4:   #131c2a;

  /* soft emerald — primary glow */
  --em:        #00ff9c;
  --em-soft:   #2bffb3;
  --em-deep:   #00b574;
  --em-glow:   rgba(0,255,156,0.42);
  --em-halo:   rgba(0,255,156,0.10);
  --em-line:   rgba(0,255,156,0.22);
  --em-faint:  rgba(0,255,156,0.06);

  /* cyan stays as data-highlight only */
  --cy:        #00e5ff;
  --cy-line:   rgba(0,229,255,0.22);
  --cy-halo:   rgba(0,229,255,0.10);

  --text-mut:  #8fa1b0;
  --text-faint: #4a5868;

  --hud-line:  rgba(255,255,255,0.08);
  --hud-line-strong: rgba(255,255,255,0.16);
}

/* push base body into matte black */
body.p404 {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(0,255,156,0.05), transparent 60%),
    radial-gradient(900px 500px at 5% 30%, rgba(0,229,255,0.035), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(0,255,156,0.04), transparent 70%),
    #04060a;
  color: #e6ecf2;
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection { background: rgba(0,255,156,0.22); color: #fff; }

/* lock body scroll while boot runs */
body.p404.is-booting { overflow: hidden; height: 100vh; }
/* hide hero text under the boot overlay until boot finishes (GSAP takes over after) */
body.p404.is-booting .hero__title,
body.p404.is-booting .hero__sub,
body.p404.is-booting .hero__support,
body.p404.is-booting .hero__ctas,
body.p404.is-booting .hero__chip,
body.p404.is-booting .hero__loc,
body.p404.is-booting .hero__hud,
body.p404.is-booting .hero__scroll { opacity: 0; }

/* ===================================================================
   PERSISTENT BACKGROUND (env)
   =================================================================== */
.env {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.env #envCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.85;
}
.env__grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(0,255,156,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,156,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 75%);
  animation: env-grid-drift 60s linear infinite;
  opacity: 0.7;
}
@keyframes env-grid-drift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-64px,-64px,0); }
}
.env__haze {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 110%, rgba(0,255,156,0.10), transparent 60%),
    radial-gradient(ellipse 60% 30% at 20% 30%, rgba(0,229,255,0.05), transparent 70%);
  filter: blur(20px);
  animation: env-haze 18s ease-in-out infinite alternate;
}
@keyframes env-haze {
  from { opacity: 0.7; transform: translate3d(0,0,0); }
  to   { opacity: 1;   transform: translate3d(-2%,-1%,0); }
}
.env__scanline {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0,
    rgba(255,255,255,0) 2px,
    rgba(255,255,255,0.015) 3px,
    rgba(255,255,255,0) 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.env__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 50%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 25%, transparent 75%, rgba(0,0,0,0.5));
}
.env__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
  animation: env-noise 1.6s steps(6) infinite;
}
@keyframes env-noise {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-4%,2%); }
  40%  { transform: translate(3%,-3%); }
  60%  { transform: translate(-2%,4%); }
  80%  { transform: translate(4%,1%); }
  100% { transform: translate(0,0); }
}

/* ===================================================================
   PERSISTENT HUD (corners, telemetry, ticker)
   =================================================================== */
.hud {
  position: fixed; inset: 0; z-index: 50;
  pointer-events: none;
}
.hud__corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--em-line);
  opacity: 0.6;
}
.hud__corner--tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.hud__corner--tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.hud__corner--bl { bottom: 60px; left: 14px; border-right: none; border-top: none; }
.hud__corner--br { bottom: 60px; right: 14px; border-left: none; border-top: none; }

.hud__telemetry {
  position: absolute; top: 78px; right: 24px;
  display: flex; gap: 18px;
  font-size: 10.5px; color: var(--text-mut);
  letter-spacing: 0.06em;
}
.hud__telemetry em { color: #e6ecf2; font-style: normal; }
.hud__telemetry i.hud__dot,
.hud__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 8px var(--em-glow), 0 0 14px var(--em-halo);
  margin-right: 6px;
  animation: hud-blink 1.6s ease-in-out infinite;
}
@keyframes hud-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hud__ticker {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  height: 28px;
  border: 1px solid var(--hud-line);
  background: linear-gradient(180deg, rgba(7,14,12,0.5), rgba(7,14,12,0.7));
  backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex; align-items: center;
}
.hud__ticker::before {
  content: ""; width: 8px; height: 100%;
  background: linear-gradient(180deg, var(--em), var(--em-deep));
  box-shadow: 0 0 14px var(--em-glow);
  flex: 0 0 auto;
}
.hud__ticker-track {
  display: flex; gap: 36px;
  font-size: 10.5px;
  color: var(--text-mut);
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-left: 18px;
  animation: ticker 60s linear infinite;
}
.hud__ticker-track span b { color: #e6ecf2; font-weight: 500; }
.hud__ticker-track span em { color: var(--em); font-style: normal; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .hud__telemetry { display: none; }
  .hud__corner--bl, .hud__corner--br { bottom: 50px; }
}

/* ===================================================================
   NAV
   =================================================================== */
.p404-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 16px 28px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.p404-nav.is-scrolled {
  background: rgba(4,7,12,0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--em-line);
}
.p404-nav__inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
}
.p404-nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 900; letter-spacing: 0.18em;
  font-size: 14px; color: #fff;
}
.p404-nav__brand-mark { color: var(--em); filter: drop-shadow(0 0 8px var(--em-glow)); }
.p404-nav__brand-text { color: #fff; }
.p404-nav__brand-sub {
  color: var(--text-mut); font-family: var(--font-mono);
  font-weight: 400; font-size: 10px; letter-spacing: 0.18em;
  margin-left: 2px;
}
.p404-nav__links {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-mut);
}
.p404-nav__links a { transition: color .25s, opacity .25s; }
.p404-nav__links a:hover { color: #fff; }
.p404-nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--em-line);
  background: linear-gradient(180deg, rgba(0,255,156,0.06), rgba(0,255,156,0.02));
  color: #fff !important;
  border-radius: 2px;
  transition: all .25s;
  position: relative; overflow: hidden;
}
.p404-nav__cta:hover {
  border-color: var(--em);
  box-shadow: 0 0 14px var(--em-glow), inset 0 0 18px var(--em-halo);
}
@media (max-width: 760px) {
  .p404-nav__links a:not(.p404-nav__cta) { display: none; }
}

/* ===================================================================
   BOOT SEQUENCE
   =================================================================== */
.boot {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(ellipse at 50% 50%, #060a0e 0%, #02040a 60%, #000 100%);
  display: grid; place-items: center;
  overflow: hidden;
  transition: opacity .9s ease, transform .9s ease, filter .9s ease;
}
.boot.is-done { opacity: 0; transform: scale(1.04); filter: blur(8px); pointer-events: none; }

.boot__grid {
  position: absolute; inset: -30%;
  background-image:
    linear-gradient(rgba(0,255,156,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,156,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
  animation: boot-grid 30s linear infinite;
}
@keyframes boot-grid {
  from { transform: translate(0,0) rotate(0deg); }
  to   { transform: translate(-40px,-40px) rotate(360deg); }
}
.boot__scan {
  position: absolute; left: 0; right: 0; top: -10%;
  height: 24%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,255,156,0.06) 50%, transparent 100%);
  filter: blur(8px);
  animation: boot-scan 4.5s linear infinite;
}
@keyframes boot-scan { from { transform: translateY(0); } to { transform: translateY(540%); } }

.boot__core {
  position: relative;
  display: grid; place-items: center;
  width: min(640px, 92vw);
  gap: 22px;
}
.boot__ring {
  width: 280px; height: 280px;
  margin-bottom: -180px;
  filter: drop-shadow(0 0 16px var(--em-glow));
}
.boot__ring-spin { transform-origin: 100px 100px; animation: ring-spin 8s linear infinite; }
.boot__ring-spin--rev { animation: ring-spin 6s linear infinite reverse; }
@keyframes ring-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.boot__brand { text-align: center; padding-top: 140px; }
.boot__brand-eyebrow { color: var(--em); letter-spacing: 0.28em; opacity: 0.9; }
.boot__brand-mark {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 900; letter-spacing: 0.18em;
  font-size: clamp(36px, 6vw, 64px);
  color: #fff;
  margin-top: 6px;
  text-shadow: 0 0 28px var(--em-glow);
  animation: boot-flicker 6s steps(1) infinite;
}
@keyframes boot-flicker {
  0%, 18%, 22%, 50%, 54%, 100% { opacity: 1; }
  19%, 21% { opacity: 0.6; }
  52%      { opacity: 0.85; }
}
.boot__brand-sub { color: var(--text-mut); letter-spacing: 0.32em; font-size: 10.5px; margin-top: 10px; }

.boot__diag {
  width: 100%;
  display: grid; gap: 6px;
}
.boot__bar {
  height: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--em-line);
  position: relative; overflow: hidden;
}
.boot__bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--em-deep), var(--em));
  box-shadow: 0 0 10px var(--em-glow);
  transition: width .12s linear;
}
.boot__bar-fill::after {
  content: ""; position: absolute; right: 0; top: -2px; bottom: -2px; width: 10px;
  background: linear-gradient(90deg, transparent, var(--em));
  filter: blur(2px);
}
.boot__bar-meta { display: flex; justify-content: space-between; color: var(--text-mut); font-size: 10.5px; }
.boot__bar-handshake { color: var(--em); }

.boot__log {
  width: 100%;
  list-style: none;
  font-size: 10.5px;
  color: var(--text-mut);
  letter-spacing: 0.06em;
  display: grid; gap: 3px;
  min-height: 84px;
  padding-top: 6px;
  border-top: 1px solid var(--hud-line);
}
.boot__log li {
  display: flex; gap: 10px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.boot__log li.is-on { opacity: 1; transform: none; }
.boot__log li time {
  color: var(--em); flex: 0 0 80px;
  font-style: normal;
}
.boot__log li b { color: #e6ecf2; font-weight: 500; }

.boot__signoff {
  display: flex; align-items: center; gap: 10px;
  color: var(--em);
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s ease .2s, transform .6s ease .2s;
}
.boot.is-armed .boot__signoff { opacity: 1; transform: none; }
.boot__signoff-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--em);
  box-shadow: 0 0 12px var(--em-glow);
  animation: hud-blink 1.2s infinite;
}

.boot__corner {
  position: absolute;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-mut);
  letter-spacing: 0.14em;
  line-height: 1.7;
}
.boot__corner--tl { top: 22px; left: 24px; }
.boot__corner--tr { top: 22px; right: 24px; text-align: right; }
.boot__corner--bl { bottom: 22px; left: 24px; }
.boot__corner--br { bottom: 22px; right: 24px; text-align: right; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px; padding-bottom: 80px;
  z-index: 1;
}
.hero__layout {
  position: relative;
  display: grid; gap: 26px;
  min-height: calc(100vh - 220px);
  grid-template-columns: 1fr;
}

.hero__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.hero__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--em-line);
  background: linear-gradient(180deg, rgba(0,255,156,0.07), rgba(0,255,156,0.02));
  color: #fff;
  letter-spacing: 0.2em;
  font-size: 10px;
}
.hero__chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 8px var(--em-glow);
  animation: hud-blink 1.6s infinite;
}
.hero__loc { color: var(--text-mut); letter-spacing: 0.18em; font-size: 10.5px; }

.hero__title {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.92;
  font-size: clamp(64px, 13vw, 200px);
  color: #fff;
  text-shadow:
    0 0 18px rgba(0,255,156,0.18),
    0 0 60px rgba(0,255,156,0.10);
  margin: 20px 0 0;
  position: relative;
}
.hero__title-word { display: inline-block; }
.hero__title-404 {
  color: var(--em);
  margin-left: 0.08em;
  position: relative;
  text-shadow: 0 0 24px var(--em-glow), 0 0 60px rgba(0,255,156,0.25);
}
.hero__title-404::after {
  content: "404";
  position: absolute; inset: 0;
  color: rgba(0,229,255,0.35);
  transform: translate(2px, 0);
  filter: blur(0.3px);
  mix-blend-mode: screen;
  animation: glitch-shift 6s infinite steps(1);
  pointer-events: none;
}
@keyframes glitch-shift {
  0%, 92%, 100% { transform: translate(2px, 0); opacity: 0.5; }
  93%           { transform: translate(-3px, 1px); opacity: 0.8; }
  95%           { transform: translate(4px, -1px); opacity: 0.4; }
  97%           { transform: translate(-2px, 0); opacity: 0.7; }
}

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  color: #e6ecf2;
  max-width: 700px;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero__support {
  color: var(--text-mut);
  font-size: 11px;
  letter-spacing: 0.32em;
  margin-top: 4px;
}

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }

/* Floating HUD widgets — absolute on desktop, stacked on mobile */
.hero__hud {
  position: absolute;
  width: 240px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(10,16,22,0.78), rgba(6,10,14,0.86)),
    radial-gradient(ellipse at top right, rgba(0,255,156,0.10), transparent 60%);
  border: 1px solid var(--em-line);
  border-radius: 2px;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 18px 50px rgba(0,0,0,0.5),
    0 0 30px rgba(0,255,156,0.08);
}
.hero__hud::before, .hero__hud::after {
  content: ""; position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--em);
}
.hero__hud::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero__hud::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.hero__hud--a { top: 200px; right: -6%; animation: float-a 7s ease-in-out infinite alternate; }
.hero__hud--b { bottom: 140px; left: -4%; animation: float-b 8s ease-in-out infinite alternate; }
.hero__hud--c { bottom: 16%; right: 4%; animation: float-c 9s ease-in-out infinite alternate; width: 280px; }
@keyframes float-a { from { transform: translate(0,0); } to { transform: translate(-6px,8px); } }
@keyframes float-b { from { transform: translate(0,0); } to { transform: translate(6px,-6px); } }
@keyframes float-c { from { transform: translate(0,0); } to { transform: translate(-4px,-10px); } }

.hero__hud-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--text-mut);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hud-line);
}
.hero__hud-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 8px var(--em-glow);
}
.hero__hud-dot--alt { background: var(--cy); box-shadow: 0 0 8px rgba(0,229,255,0.55); }
.hero__hud-dot--ok  { background: var(--em); }

.hero__hud-rows {
  display: grid; gap: 6px;
  margin: 10px 0 6px;
  font-family: var(--font-mono); font-size: 11px;
}
.hero__hud-rows div { display: flex; justify-content: space-between; }
.hero__hud-rows span { color: var(--text-faint); letter-spacing: 0.14em; }
.hero__hud-rows b   { color: #fff; font-weight: 500; }

.hero__hud-spark {
  height: 26px; margin-top: 6px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,255,156,0.10) 100%);
  position: relative;
  overflow: hidden;
}
.hero__hud-spark::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle 2px at 5% 60%, var(--em), transparent),
    radial-gradient(circle 2px at 15% 40%, var(--em), transparent),
    radial-gradient(circle 2px at 26% 70%, var(--em), transparent),
    radial-gradient(circle 2px at 38% 30%, var(--em), transparent),
    radial-gradient(circle 2px at 50% 60%, var(--em), transparent),
    radial-gradient(circle 2px at 62% 20%, var(--em), transparent),
    radial-gradient(circle 2px at 75% 65%, var(--em), transparent),
    radial-gradient(circle 2px at 88% 35%, var(--em), transparent),
    radial-gradient(circle 2px at 96% 55%, var(--em), transparent);
  filter: drop-shadow(0 0 4px var(--em-glow));
}
.hero__hud-spark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,255,156,0.18), transparent);
  background-size: 30% 100%;
  background-repeat: no-repeat;
  animation: spark-sweep 2.4s linear infinite;
}
@keyframes spark-sweep {
  from { background-position: -30% 0; }
  to   { background-position: 130% 0; }
}

.hero__hud-bars {
  display: flex; gap: 4px;
  align-items: flex-end;
  height: 56px;
  margin-top: 8px;
}
.hero__hud-bars span {
  flex: 1;
  height: var(--v);
  background: linear-gradient(180deg, var(--em-soft), var(--em-deep));
  box-shadow: 0 0 6px var(--em-glow);
  animation: bar-pulse 2.2s ease-in-out infinite;
  transform-origin: bottom;
}
.hero__hud-bars span:nth-child(2n) { animation-delay: .2s; }
.hero__hud-bars span:nth-child(3n) { animation-delay: .4s; }
.hero__hud-bars span:nth-child(5n) { animation-delay: .8s; }
@keyframes bar-pulse {
  0%, 100% { transform: scaleY(1); filter: brightness(1); }
  50%      { transform: scaleY(0.65); filter: brightness(1.2); }
}

.hero__scroll {
  position: absolute; bottom: -10px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  color: var(--text-mut);
  font-size: 10.5px; letter-spacing: 0.28em;
}
.hero__scroll-bar {
  position: relative; width: 80px; height: 1px;
  background: var(--hud-line-strong);
  display: inline-block;
}
.hero__scroll-bar i {
  position: absolute; top: -1px; left: 0;
  width: 24px; height: 3px;
  background: var(--em);
  box-shadow: 0 0 6px var(--em-glow);
  animation: scroll-cue 2.4s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(56px); }
}

@media (max-width: 980px) {
  .hero__hud--a, .hero__hud--b, .hero__hud--c { position: relative; right: auto; left: auto; bottom: auto; top: auto; width: 100%; margin-top: 12px; animation: none; }
  .hero__layout { min-height: auto; }
  .hero__title { font-size: clamp(56px, 16vw, 110px); }
}

/* ===================================================================
   SHARED — section eyebrows, headings, buttons
   =================================================================== */
.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  padding-top: 80px;
  color: var(--text-mut);
  letter-spacing: 0.28em;
  font-size: 10.5px;
}
.section-eyebrow__bar {
  width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--em), transparent);
}
.section-eyebrow__id { margin-left: auto; }

.section-head {
  margin-top: 18px;
  display: grid; gap: 14px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  padding-bottom: 36px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(32px, 4.4vw, 64px);
  color: #fff;
  max-width: 14ch;
}
.section-lede {
  color: var(--text-mut);
  font-size: 16px; line-height: 1.6;
  max-width: 56ch;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Buttons */
.btn-p404 {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 14px 22px;
  border: 1px solid var(--hud-line-strong);
  background: linear-gradient(180deg, rgba(10,16,22,0.7), rgba(6,10,14,0.85));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s, transform .25s, box-shadow .3s;
  overflow: hidden;
  border-radius: 2px;
}
.btn-p404::before, .btn-p404::after {
  content: ""; position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--em);
  opacity: 0; transition: opacity .3s;
}
.btn-p404::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.btn-p404::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.btn-p404:hover::before, .btn-p404:hover::after { opacity: 1; }
.btn-p404:hover {
  border-color: var(--em-line);
  box-shadow: 0 0 0 1px var(--em-halo), 0 14px 40px rgba(0,255,156,0.1), inset 0 0 30px rgba(0,255,156,0.05);
}
.btn-p404__inner { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.btn-p404__label { display: inline-block; }
.btn-p404__pulse {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,255,156,0.25), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.btn-p404:hover .btn-p404__pulse { opacity: 1; }
.btn-p404--primary {
  border-color: var(--em);
  background: linear-gradient(180deg, rgba(0,255,156,0.16), rgba(0,255,156,0.04));
  color: #02110a;
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
  font-weight: 600;
}
.btn-p404--primary .btn-p404__label { color: #051a10; }
.btn-p404--primary:hover {
  background: linear-gradient(180deg, var(--em), var(--em-deep));
  box-shadow: 0 0 22px var(--em-glow), 0 18px 50px rgba(0,255,156,0.25);
}
.btn-p404--ghost {
  background: transparent;
  border-color: var(--hud-line);
  color: var(--text-mut);
}
.btn-p404--ghost:hover { color: #fff; }
.btn-p404--large { padding: 18px 28px; font-size: 12px; letter-spacing: 0.26em; }

/* ===================================================================
   DIVISION MODULES
   =================================================================== */
.div-systems { position: relative; z-index: 2; }

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.modules .module--wide { grid-column: span 3; }
@media (max-width: 1080px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .modules .module--wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  .modules { grid-template-columns: 1fr; }
  .modules .module--wide { grid-column: span 1; }
}

.module {
  position: relative;
  padding: 22px 22px 18px;
  background:
    linear-gradient(180deg, rgba(14,22,32,0.62), rgba(6,10,14,0.82));
  border: 1px solid var(--hud-line);
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s ease, border-color .35s, box-shadow .35s;
  cursor: pointer;
}
.module::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle 300px at var(--mx,50%) var(--my,0%), rgba(0,255,156,0.12), transparent 60%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none; z-index: 0;
}
.module::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid transparent;
  pointer-events: none; z-index: 1;
  transition: border-color .35s;
}
.module:hover { transform: translateY(-3px); border-color: var(--em-line); box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 24px rgba(0,255,156,0.08); }
.module:hover::before { opacity: 1; }
.module:hover::after  { border-color: rgba(0,255,156,0.18); }
.module > * { position: relative; z-index: 2; }

.module__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 0.22em; color: var(--text-mut);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hud-line);
}
.module__id { color: var(--em); }
.module__status {
  display: inline-flex; align-items: center; gap: 6px;
  color: #e6ecf2;
}
.module__status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--em); box-shadow: 0 0 6px var(--em-glow);
  animation: hud-blink 1.8s infinite;
}
.module__status--alt i { background: var(--cy); box-shadow: 0 0 6px rgba(0,229,255,0.5); }

.module__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-top: 14px;
  color: #fff;
  letter-spacing: -0.01em;
}
.module__lede {
  color: var(--text-mut);
  font-size: 14px; line-height: 1.5;
  margin-top: 6px;
  min-height: 3em;
}

.module__viz {
  margin-top: 14px;
  background:
    linear-gradient(180deg, rgba(0,255,156,0.04), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 8px);
  border: 1px solid var(--hud-line);
  border-radius: 2px;
  height: 132px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.module__viz svg { width: 100%; height: 100%; }
.module__viz-dots circle { animation: module-dots 2.4s ease-in-out infinite; }
.module__viz-dots circle:nth-child(2n) { animation-delay: .3s; }
.module__viz-dots circle:nth-child(3n) { animation-delay: .6s; }
@keyframes module-dots { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.module__viz-stroke {
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: stroke-draw 4s ease-in-out infinite;
}
@keyframes stroke-draw {
  0%   { stroke-dashoffset: 320; opacity: 0; }
  20%  { opacity: 1; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -320; opacity: 0; }
}

.module__viz-sweep {
  transform-origin: 100px 60px;
  animation: radar-sweep 4s linear infinite;
}
@keyframes radar-sweep { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.module__viz-wave {
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: wave-draw 3.4s ease-in-out infinite;
}
@keyframes wave-draw {
  0%   { stroke-dashoffset: 600; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -600; }
}

.module__viz--bars {
  display: flex; gap: 5px; padding: 14px;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(0,255,156,0.04), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 8px);
}
.module__viz--bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--em-soft), var(--em-deep));
  box-shadow: 0 0 4px var(--em-glow);
  animation: bar-pulse 2.6s ease-in-out infinite;
}
.module__viz--bars span:nth-child(2n) { animation-delay: .2s; }
.module__viz--bars span:nth-child(3n) { animation-delay: .4s; }
.module__viz--bars span:nth-child(5n) { animation-delay: .9s; }

.module__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--hud-line);
  padding-top: 12px;
  list-style: none;
}
.module__stats li {
  display: flex; flex-direction: column;
  gap: 2px;
}
.module__stats li span { color: var(--text-faint); font-size: 9.5px; letter-spacing: 0.2em; }
.module__stats li b    { color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.04em; }

.module__cta {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--em);
  font-size: 10.5px; letter-spacing: 0.22em;
  padding-top: 12px;
  border-top: 1px dashed var(--hud-line);
  width: 100%;
}
.module:hover .module__cta { color: var(--em-soft); }

/* ===================================================================
   AI NETWORK STAGE
   =================================================================== */
.net { position: relative; z-index: 2; padding-bottom: 60px; }
.net__stage {
  position: relative;
  height: clamp(540px, 78vh, 760px);
  margin: 12px 32px 0;
  border: 1px solid var(--em-line);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,255,156,0.06), transparent 60%),
    linear-gradient(180deg, rgba(6,10,14,0.6), rgba(4,7,10,0.85));
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 30px 80px rgba(0,0,0,0.6),
    0 0 50px rgba(0,255,156,0.08);
}
.net__stage::before, .net__stage::after {
  content: ""; position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--em);
}
.net__stage::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.net__stage::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.net__stage #netCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.net__overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}

.net__panel {
  position: absolute;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(10,16,22,0.85), rgba(6,10,14,0.92));
  border: 1px solid var(--em-line);
  border-radius: 2px;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  min-width: 200px;
}
.net__panel--tl { top: 22px; left: 22px; }
.net__panel--tr { top: 22px; right: 22px; }
.net__panel--bl { bottom: 22px; left: 22px; min-width: 280px; }
.net__panel--br { bottom: 22px; right: 22px; min-width: 240px; }

.net__panel-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.22em; color: var(--text-mut);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hud-line);
}
.net__panel-head i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 6px var(--em-glow);
}
.net__panel-body {
  display: grid; gap: 6px;
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px;
}
.net__panel-body div { display: flex; justify-content: space-between; }
.net__panel-body span { color: var(--text-faint); letter-spacing: 0.14em; }
.net__panel-body b    { color: #fff; font-weight: 500; }

.net__panel-bignum {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 900; letter-spacing: 0.08em;
  font-size: 44px;
  color: var(--em);
  text-shadow: 0 0 22px var(--em-glow);
  line-height: 1;
  margin-top: 8px;
}
.net__panel-sub { color: var(--text-mut); font-size: 10px; letter-spacing: 0.22em; margin-top: 4px; }

.net__log {
  list-style: none; margin-top: 10px;
  display: grid; gap: 4px;
  font-size: 10.5px; color: var(--text-mut);
  max-height: 110px; overflow: hidden;
}
.net__log li { display: flex; gap: 8px; }
.net__log li span { color: var(--em); letter-spacing: 0.08em; }

.net__mix { list-style: none; margin-top: 10px; display: grid; gap: 6px; font-size: 10.5px; }
.net__mix li { display: grid; grid-template-columns: 60px 1fr 36px; gap: 8px; align-items: center; }
.net__mix span { color: var(--text-faint); letter-spacing: 0.14em; }
.net__mix i {
  position: relative; height: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hud-line);
}
.net__mix i::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--v);
  background: linear-gradient(90deg, var(--em-deep), var(--em));
  box-shadow: 0 0 6px var(--em-glow);
}
.net__mix b { color: #fff; text-align: right; font-family: var(--font-mono); font-weight: 500; }

.net__crosshair {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 220px; height: 220px;
}
.net__crosshair span {
  position: absolute; background: var(--em-line);
}
.net__crosshair span:nth-child(1) { top: 0; left: 50%; width: 1px; height: 60px; transform: translateX(-0.5px); }
.net__crosshair span:nth-child(2) { bottom: 0; left: 50%; width: 1px; height: 60px; transform: translateX(-0.5px); }
.net__crosshair span:nth-child(3) { left: 0; top: 50%; height: 1px; width: 60px; transform: translateY(-0.5px); }
.net__crosshair span:nth-child(4) { right: 0; top: 50%; height: 1px; width: 60px; transform: translateY(-0.5px); }
.net__crosshair em {
  position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
  font-style: normal;
  color: var(--em); font-size: 10px; letter-spacing: 0.18em; white-space: nowrap;
}

@media (max-width: 860px) {
  .net__stage { margin: 12px 16px 0; height: 540px; }
  .net__panel { min-width: auto; max-width: 240px; padding: 10px 12px; }
  .net__panel--bl { min-width: auto; }
  .net__panel-bignum { font-size: 30px; }
}

/* ===================================================================
   COMMUNITY
   =================================================================== */
.community { position: relative; z-index: 2; padding-bottom: 100px; }

.community__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 36px;
  margin-top: 24px;
}
@media (max-width: 980px) {
  .community__layout { grid-template-columns: 1fr; }
}

.community__lede .section-title { font-size: clamp(28px, 3.4vw, 44px); max-width: 18ch; }
.community__lede .section-lede  { font-size: 15px; margin-top: 16px; }
.community__ctas { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.community__panel {
  background: linear-gradient(180deg, rgba(10,16,22,0.7), rgba(6,10,14,0.88));
  border: 1px solid var(--em-line);
  border-radius: 3px;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.community__panel::before, .community__panel::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--em);
}
.community__panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.community__panel::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.community__panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hud-line);
  font-size: 10px; letter-spacing: 0.22em; color: var(--text-mut);
}
.community__panel-head i {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--em); box-shadow: 0 0 6px var(--em-glow); margin-right: 6px;
  animation: hud-blink 1.5s infinite;
}

.community__feed {
  list-style: none;
  padding: 12px 16px;
  display: grid; gap: 7px;
  font-size: 11.5px;
  color: var(--text-mut);
  max-height: 280px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
}
.community__feed li {
  display: grid;
  grid-template-columns: 64px 90px 1fr;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 7px;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.community__feed time { color: var(--em); font-style: normal; letter-spacing: 0.08em; }
.community__feed b    { color: #fff; font-weight: 500; letter-spacing: 0.12em; }

.community__panel-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  font-size: 10.5px; letter-spacing: 0.18em; color: var(--text-mut);
  border-top: 1px solid var(--hud-line);
  background: linear-gradient(180deg, transparent, rgba(0,255,156,0.04));
}
.community__panel-foot a { color: var(--em); }

.community__stats {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 36px;
}
.community__stats li {
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(10,16,22,0.6), rgba(6,10,14,0.78));
  border: 1px solid var(--hud-line);
  position: relative;
  overflow: hidden;
}
.community__stats li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--em), transparent);
}
.community__stats b {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 900; letter-spacing: 0.04em;
  font-size: clamp(28px, 3.6vw, 44px);
  color: #fff;
  text-shadow: 0 0 14px rgba(0,255,156,0.18);
}
.community__stats span { display: block; color: var(--text-mut); font-size: 10.5px; letter-spacing: 0.22em; margin-top: 4px; }
@media (max-width: 720px) {
  .community__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   INTEL TERMINAL
   =================================================================== */
.intel { position: relative; z-index: 2; padding-bottom: 80px; }

.intel__terminal {
  border: 1px solid var(--em-line);
  background:
    linear-gradient(180deg, rgba(10,16,22,0.7), rgba(4,7,10,0.92));
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.intel__terminal::before, .intel__terminal::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--em);
}
.intel__terminal::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.intel__terminal::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.intel__terminal-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hud-line);
  font-size: 10px; letter-spacing: 0.22em; color: var(--text-mut);
  background: linear-gradient(180deg, rgba(0,255,156,0.04), transparent);
}
.intel__terminal-bar i {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--em); box-shadow: 0 0 6px var(--em-glow); margin-right: 6px;
  animation: hud-blink 1.6s infinite;
}

.intel__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hud-line);
}
@media (max-width: 1080px) { .intel__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .intel__grid { grid-template-columns: 1fr; } }

.intel__card {
  background: linear-gradient(180deg, rgba(8,14,20,0.86), rgba(4,7,10,0.94));
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  transition: background .35s;
  cursor: pointer;
}
.intel__card:hover {
  background: linear-gradient(180deg, rgba(0,255,156,0.06), rgba(4,7,10,0.94));
}

.intel__card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.18em; color: var(--text-mut);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hud-line);
}
.intel__card-tag {
  background: rgba(0,255,156,0.12);
  color: var(--em);
  padding: 3px 8px;
  border: 1px solid var(--em-line);
  letter-spacing: 0.2em;
}
.intel__card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-top: 12px;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.intel__card-lede {
  color: var(--text-mut);
  font-size: 13.5px; line-height: 1.55;
  margin-top: 8px;
}
.intel__card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
  font-size: 10px; letter-spacing: 0.22em; color: var(--text-mut);
}
.intel__card-link { color: var(--em); transition: color .25s; }
.intel__card:hover .intel__card-link { color: var(--em-soft); }
.intel__card-scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--em), transparent);
  filter: blur(0.5px);
  opacity: 0;
  transform: translateY(0);
  transition: opacity .25s;
}
.intel__card:hover .intel__card-scan { opacity: 1; animation: intel-scan 2s linear infinite; }
@keyframes intel-scan {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ===================================================================
   FINAL SCENE
   =================================================================== */
.final {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 120px 0 80px;
  overflow: hidden;
}
.final__skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 60%; pointer-events: none;
}
.final__skyline-art {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
}
.final__skyline-haze {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 50%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(0,255,156,0.22), transparent 60%),
    radial-gradient(ellipse 80% 40% at 30% 110%, rgba(0,229,255,0.12), transparent 70%);
  filter: blur(20px);
  animation: env-haze 14s ease-in-out infinite alternate;
}
.final__skyline-lights {
  position: absolute; left: 0; right: 0; bottom: 12%; height: 50%;
  background-image:
    radial-gradient(circle 1.5px at 8% 60%, var(--em), transparent),
    radial-gradient(circle 1.2px at 14% 75%, var(--em), transparent),
    radial-gradient(circle 1.5px at 22% 50%, var(--cy), transparent),
    radial-gradient(circle 1.2px at 30% 70%, var(--em), transparent),
    radial-gradient(circle 1.5px at 41% 55%, var(--em), transparent),
    radial-gradient(circle 1.2px at 52% 80%, var(--cy), transparent),
    radial-gradient(circle 1.5px at 62% 65%, var(--em), transparent),
    radial-gradient(circle 1.2px at 71% 50%, var(--em), transparent),
    radial-gradient(circle 1.5px at 80% 78%, var(--cy), transparent),
    radial-gradient(circle 1.5px at 89% 60%, var(--em), transparent),
    radial-gradient(circle 1.2px at 95% 72%, var(--em), transparent);
  animation: lights-flicker 3.6s steps(8) infinite;
  filter: drop-shadow(0 0 6px var(--em-glow));
}
@keyframes lights-flicker {
  0%, 100% { opacity: 0.85; }
  20%      { opacity: 0.55; }
  40%      { opacity: 1; }
  60%      { opacity: 0.7; }
  80%      { opacity: 0.95; }
}

.final__inner { position: relative; z-index: 2; display: grid; gap: 26px; }

.final__eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-mut);
  letter-spacing: 0.28em;
  font-size: 10.5px;
  margin-bottom: 14px;
}
.final__eyebrow-bar {
  width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--em), transparent);
}
.final__eyebrow-id { margin-left: auto; }

.final__title {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.95;
  font-size: clamp(36px, 6vw, 96px);
  color: #fff;
  text-shadow:
    0 0 18px rgba(0,255,156,0.18),
    0 0 80px rgba(0,255,156,0.12);
  max-width: 16ch;
}
.final__sub {
  color: var(--text-mut);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 64ch;
  line-height: 1.55;
}

.final__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

.final__stamp {
  margin-top: 60px;
  padding: 16px 18px;
  border: 1px solid var(--em-line);
  background: linear-gradient(180deg, rgba(10,16,22,0.7), rgba(4,7,10,0.85));
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; letter-spacing: 0.24em;
  color: var(--text-mut);
  max-width: 720px;
}
.final__stamp-label { color: var(--em); display: block; }
.final__stamp-id { color: #e6ecf2; display: block; margin-top: 4px; }
.final__stamp-side { display: flex; align-items: center; gap: 10px; color: var(--em); }
.final__stamp-tick {
  width: 8px; height: 8px; background: var(--em);
  box-shadow: 0 0 10px var(--em-glow);
  animation: hud-blink 1.4s infinite;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.p404-foot {
  position: relative; z-index: 2;
  padding: 60px 0 70px;
  border-top: 1px solid var(--hud-line);
  background: linear-gradient(180deg, rgba(4,7,10,0), rgba(4,7,10,0.7));
}
.p404-foot__inner { display: grid; gap: 36px; }
.p404-foot__brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.p404-foot__brand-mark {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 900; letter-spacing: 0.18em;
  font-size: 16px; color: #fff;
}
.p404-foot__brand .mono { color: var(--text-mut); font-size: 11px; }

.p404-foot__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  font-size: 11.5px;
}
.p404-foot__cols div { display: grid; gap: 6px; color: var(--text-mut); }
.p404-foot__cols b   { color: var(--em); letter-spacing: 0.2em; font-weight: 500; font-size: 10.5px; }
.p404-foot__cols a   { color: #e6ecf2; cursor: pointer; transition: color .25s; }
.p404-foot__cols a:hover { color: var(--em); }

.p404-foot__line {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hud-line);
  color: var(--text-faint);
  font-size: 10.5px; letter-spacing: 0.18em;
}
@media (max-width: 720px) {
  .p404-foot__cols { grid-template-columns: repeat(2, 1fr); }
  .p404-foot__line { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ===================================================================
   REVEAL UTILITIES (GSAP toggled via .is-in)
   =================================================================== */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

[data-float] { will-change: transform; }

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .boot { display: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  body.p404.is-booting { overflow: auto; height: auto; }
}
