/* ============================================================
   UMBRA // NULL SIGNAL
   Design system + page styles
   ------------------------------------------------------------
   Palette discipline: TWO accents only.
     violet  = Umbra / protected / us
     ember   = the network / exposed / them
   Everything else is void, bone, ash.
   ============================================================ */

/* ---------- 1. TOKENS ------------------------------------- */

:root {
  /* Void scale */
  --void:      #050409;
  --void-2:    #08060F;
  --panel:     #0C0916;
  --panel-2:   #120C21;
  --panel-3:   #180F2C;

  /* Violet scale */
  --v-950:     #16062E;
  --v-900:     #240A46;
  --v-800:     #35106A;
  --v-700:     #4A16A0;
  --v-600:     #6321D6;
  --v-500:     #7B2FF7;
  --v-400:     #9D5CFF;
  --v-300:     #BE8CFF;
  --v-200:     #DCC2FF;

  /* Neutrals */
  --bone:      #F2EEFA;
  --bone-dim:  #CFC8DE;
  --ash:       #9A93AE;
  --ash-2:     #635C79;
  --ash-3:     #3B3550;

  /* Threat */
  --ember:     #FF5E3A;
  --ember-dim: #C93F22;

  /* Lines */
  --line:      rgba(157, 92, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-hard: rgba(157, 92, 255, 0.38);

  /* Glow */
  --glow-sm:   0 0 12px rgba(123, 47, 247, 0.35);
  --glow-md:   0 0 40px rgba(123, 47, 247, 0.28);
  --glow-lg:   0 0 120px rgba(123, 47, 247, 0.22);

  /* Type */
  --f-display: 'Archivo', 'Arial Narrow', sans-serif;
  --f-body:    'Inter Tight', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Metrics */
  --gutter:    clamp(20px, 4vw, 64px);
  --frame:     18px;              /* HUD frame inset */
  --nav-h:     68px;
  --maxw:      1560px;

  /* Motion */
  --e-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --e-io:      cubic-bezier(0.65, 0, 0.35, 1);

  /* Procedural film grain (no asset request) */
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. RESET -------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--v-700) var(--void);
}

body {
  background: var(--void);
  color: var(--bone-dim);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 350;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--v-600); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--v-800); }
::-webkit-scrollbar-thumb:hover { background: var(--v-600); }

:focus-visible {
  outline: 1px solid var(--v-400);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 9999;
  transform: translateY(-200%);
  background: var(--v-600); color: #fff;
  padding: 10px 18px; font: 500 12px/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { transform: none; }

/* ---------- 3. TYPE PRIMITIVES ---------------------------- */

.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--bone);
  /* Last-resort break points. .split-line clips overflow for the mask reveal,
     so a word wider than the column must be able to wrap rather than get cut. */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Minimums are sized so the longest single word on the page
   ("INDISTINGUISHABLE") still fits a 320px gutter — .split-line clips
   overflow for the mask reveal, so an oversized word would be cut off
   rather than wrapped. */
h1.display { font-size: clamp(2.55rem, 8.2vw, 8.4rem); }
h2.display { font-size: clamp(1.72rem, 5.4vw, 5.1rem); }
h3.display { font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-stretch: 105%; letter-spacing: -0.015em; }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

.deck {
  font-size: clamp(0.98rem, 1.15vw, 1.16rem);
  line-height: 1.68;
  color: var(--ash);
  max-width: 62ch;
  font-weight: 350;
}
.deck strong { color: var(--bone); font-weight: 500; }

.accent { color: var(--v-400); }
.dim    { color: var(--ash-2); }

/* Gradient wordmark treatment */
.grad {
  background: linear-gradient(96deg, var(--bone) 0%, var(--v-300) 44%, var(--v-600) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 4. LAYOUT ------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.band {
  padding-block: clamp(90px, 12vw, 190px);
  position: relative;
}

.band--tight { padding-block: clamp(64px, 8vw, 120px); }

/* Hairline separators between bands */
.band::before {
  content: '';
  position: absolute; inset-inline: var(--gutter); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.band--seamless::before { display: none; }

/* Section header block */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-bottom: clamp(48px, 6vw, 96px);
}

.sec-tag {
  display: flex; align-items: center; gap: 14px;
  color: var(--v-400);
}
.sec-tag::after {
  content: ''; flex: 1; height: 1px; max-width: 340px;
  background: linear-gradient(90deg, var(--line-hard), transparent);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.1s var(--e-out) .15s;
}
.sec-tag.is-in::after, .is-in .sec-tag::after { transform: scaleX(1); }

.sec-head .deck { margin-top: 4px; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

/* ---------- 5. GLOBAL OVERLAYS ---------------------------- */

/* Fixed WebGL / video canvas layer for the hero */
#gl-hero {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Film grain + scanlines, always on top, never interactive */
.fx-overlay {
  position: fixed; inset: 0; z-index: 900;
  pointer-events: none;
  overflow: hidden;              /* the grain plane is deliberately oversized */
  mix-blend-mode: soft-light;
  opacity: .62;
}
.fx-grain {
  position: absolute; inset: -150%;
  background-image: var(--grain-url);
  opacity: .40;
  animation: grainShift 640ms steps(1) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-6%, 4%); }
  40%  { transform: translate(3%, -7%); }
  60%  { transform: translate(-4%, -3%); }
  80%  { transform: translate(5%, 6%); }
  100% { transform: translate(0,0); }
}
.fx-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,.5) 3px,
    rgba(0,0,0,0) 4px
  );
  opacity: .22;
}
.fx-vig {
  position: fixed; inset: 0; z-index: 899; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(3,2,6,.55) 78%, rgba(3,2,6,.92) 100%);
}

/* HUD frame — hairline inset border with corner brackets */
.hud-frame {
  position: fixed; inset: var(--frame); z-index: 880;
  pointer-events: none;
  border: 1px solid rgba(157, 92, 255, 0.10);
}
.hud-frame i {
  position: absolute; width: 13px; height: 13px;
  border: 1px solid var(--v-500);
  opacity: .85;
}
.hud-frame i:nth-child(1) { top: -1px;    left: -1px;    border-right: 0; border-bottom: 0; }
.hud-frame i:nth-child(2) { top: -1px;    right: -1px;   border-left: 0;  border-bottom: 0; }
.hud-frame i:nth-child(3) { bottom: -1px; left: -1px;    border-right: 0; border-top: 0; }
.hud-frame i:nth-child(4) { bottom: -1px; right: -1px;   border-left: 0;  border-top: 0; }

/* Edge labels */
.hud-edge {
  position: fixed; z-index: 881; pointer-events: none;
  color: var(--ash-3); font-family: var(--f-mono);
  font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase;
  white-space: nowrap;
}
.hud-edge--l { left: calc(var(--frame) + 9px); top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: left center; }
.hud-edge--r { right: calc(var(--frame) + 9px); top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center; }

/* Scroll rail */
.rail {
  position: fixed; right: calc(var(--frame) + 34px); top: 50%;
  transform: translateY(-50%);
  z-index: 882;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-end;
}
.rail a {
  display: flex; align-items: center; gap: 9px;
  pointer-events: auto;
  color: var(--ash-3);
  transition: color .35s var(--e-out);
}
.rail a span {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0; transform: translateX(6px);
  transition: opacity .35s var(--e-out), transform .35s var(--e-out);
}
.rail a i {
  display: block; width: 18px; height: 1px; background: currentColor;
  transition: width .35s var(--e-out);
}
.rail a:hover, .rail a.is-active { color: var(--v-300); }
.rail a:hover span { opacity: 1; transform: none; }
.rail a.is-active i { width: 34px; }
.rail a.is-active { color: var(--v-200); }

/* Custom reticle cursor */
.reticle {
  position: fixed; top: 0; left: 0; z-index: 950;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  pointer-events: none; opacity: 0;
  transition: opacity .3s, width .35s var(--e-out), height .35s var(--e-out), margin .35s var(--e-out);
  mix-blend-mode: difference;
}
.reticle::before, .reticle::after {
  content: ''; position: absolute; background: var(--v-200);
}
.reticle::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.reticle::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.reticle i {
  position: absolute; inset: 0; border: 1px solid var(--v-400);
  border-radius: 50%; opacity: .55;
  transition: transform .35s var(--e-out);
}
.reticle.is-on { opacity: .9; }
.reticle.is-hot { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
.reticle.is-hot i { transform: scale(.72); }

/* ---------- 6. NAV ---------------------------------------- */

.nav {
  position: fixed; top: var(--frame); left: var(--frame); right: var(--frame);
  height: var(--nav-h); z-index: 890;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(14px, 2.4vw, 30px);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--e-out), border-color .5s var(--e-out), backdrop-filter .5s;
}
.nav.is-stuck {
  background: rgba(6, 4, 12, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 26px; height: 26px; overflow: visible; }
.brand-mark .b-a { fill: var(--v-500); }
.brand-mark .b-b { fill: var(--v-300); opacity: .45; }
.brand-mark .b-r { stroke: var(--v-400); stroke-width: 1.1; fill: none; opacity: .5;
  transform-origin: 50% 50%; animation: brandSpin 14s linear infinite; }
@keyframes brandSpin { to { transform: rotate(360deg); } }
.brand > span { display: block; }
.brand-word {
  display: block; line-height: 1;
  font-family: var(--f-display); font-weight: 700; font-stretch: 118%;
  font-size: 17px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone);
}
.brand-sub {
  display: block; line-height: 1;
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .28em;
  color: var(--ash-3); text-transform: uppercase; margin-top: 5px;
}

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); }
.nav-links a {
  position: relative;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ash);
  padding-block: 6px;
  transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--v-400); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--e-out);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-burger {
  display: none; width: 34px; height: 34px;
  position: relative; border: 1px solid var(--line);
}
.nav-burger span {
  position: absolute; left: 9px; width: 16px; height: 1px; background: var(--bone);
  transition: transform .4s var(--e-out), opacity .3s;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 885;
  background: rgba(5, 4, 9, .97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--e-out);
  pointer-events: none;
}
.drawer.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.drawer a {
  font-family: var(--f-display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(2rem, 9vw, 3.4rem); text-transform: uppercase;
  color: var(--bone); line-height: 1.06;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--e-out), transform .6s var(--e-out), color .3s;
}
.drawer.is-open a { opacity: 1; transform: none; }
.drawer a:hover { color: var(--v-300); }

/* ---------- 7. BUTTONS ------------------------------------ */

.btn {
  --btn-fg: var(--bone);
  --btn-bd: var(--v-600);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--e-out), border-color .4s var(--e-out), box-shadow .5s var(--e-out);
  will-change: transform;
}
.btn > * { position: relative; z-index: 2; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--v-600), var(--v-400));
  transform: translateY(101%);
  transition: transform .5s var(--e-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; border-color: var(--v-400); box-shadow: var(--glow-md); }
.btn .arw { transition: transform .45s var(--e-out); }
.btn:hover .arw { transform: translateX(5px); }

.btn--ghost { --btn-bd: var(--line); --btn-fg: var(--ash); }
.btn--ghost:hover { --btn-fg: var(--bone); }
.btn--ghost::before { background: rgba(157, 92, 255, .14); }

.btn--solid { --btn-bd: var(--v-500); background: var(--v-600); color: #fff; }
.btn--solid::before { background: linear-gradient(100deg, var(--v-400), var(--v-300)); }
.btn--solid:hover { color: var(--void); }

.btn--lg { padding: 19px 38px; font-size: 12px; }

/* Corner ticks on buttons */
.btn::after {
  content: ''; position: absolute; inset: 3px; z-index: 3; pointer-events: none;
  background:
    linear-gradient(var(--v-300), var(--v-300)) 0 0 / 6px 1px no-repeat,
    linear-gradient(var(--v-300), var(--v-300)) 0 0 / 1px 6px no-repeat,
    linear-gradient(var(--v-300), var(--v-300)) 100% 100% / 6px 1px no-repeat,
    linear-gradient(var(--v-300), var(--v-300)) 100% 100% / 1px 6px no-repeat;
  opacity: 0; transition: opacity .4s;
}
.btn:hover::after { opacity: .8; }

/* ---------- 8. HERO --------------------------------------- */

/* Every band paints an opaque floor so the fixed GL canvas is only
   ever visible behind the hero. */
.band, .outro, .foot { background: var(--void); }

.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: clamp(34px, 5vw, 66px);
  overflow: hidden;
  background: transparent;               /* let #gl-hero show through */
}

/* Legibility scrim — always present, sits above both GL and fallback */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, var(--void) 0%, rgba(5,4,9,.10) 38%, rgba(5,4,9,.55) 100%),
    radial-gradient(78% 66% at 50% 60%, rgba(53,16,106,.10), transparent 74%);
}

/* Fallback poster/video — also the texture source for the shader */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  transition: opacity .8s var(--e-out);
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55; filter: saturate(.8) contrast(1.12);
}
/* When the shader is live it draws the video itself — keep the element
   decoding (opacity, not display) but stop it double-painting. */
.has-gl .hero-media { opacity: 0; }

.hero-inner { position: relative; z-index: 3; }
.hero .scroll-cue { z-index: 3; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--v-300); margin-bottom: clamp(18px, 2.6vw, 30px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--v-400); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(157,92,255,.7);
  animation: ping 2.6s var(--e-out) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(157,92,255,.65); }
  70%  { box-shadow: 0 0 0 12px rgba(157,92,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(157,92,255,0); }
}

.hero h1 { margin-bottom: clamp(22px, 3vw, 38px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: end;
}

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

/* Telemetry strip */
.telemetry {
  margin-top: clamp(38px, 5vw, 64px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.telemetry div {
  padding: 18px 20px 4px 0;
  border-right: 1px solid var(--line-soft);
}
.telemetry div:last-child { border-right: 0; }
.telemetry dt {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ash-3); margin-bottom: 8px;
}
.telemetry dd {
  font-family: var(--f-display); font-weight: 600; font-stretch: 108%;
  font-size: clamp(1.3rem, 2.3vw, 2rem); color: var(--bone); line-height: 1;
}
.telemetry dd small {
  font-family: var(--f-mono); font-size: 10px; color: var(--v-400);
  letter-spacing: .1em; margin-left: 5px; font-weight: 400;
}

.scroll-cue {
  position: absolute; bottom: clamp(34px, 5vw, 66px); right: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ash-3);
}
.scroll-cue span { font-family: var(--f-mono); font-size: 9px; letter-spacing: .3em; writing-mode: vertical-rl; }
.scroll-cue i {
  width: 1px; height: 54px; background: linear-gradient(var(--v-500), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ''; position: absolute; inset: 0;
  background: var(--v-200);
  animation: cueRun 2.2s var(--e-io) infinite;
}
@keyframes cueRun {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ---------- 9. REVEAL SYSTEM ------------------------------ */

.js [data-reveal] { opacity: 0; }

.js [data-reveal="up"]    { transform: translateY(30px); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal="left"]  { transform: translateX(-26px); }
.js [data-reveal="right"] { transform: translateX(26px); }
.js [data-reveal="clip"]  { clip-path: inset(0 0 100% 0); opacity: 1; }

[data-reveal] {
  transition:
    opacity .95s var(--e-out) var(--rd, 0ms),
    transform 1.05s var(--e-out) var(--rd, 0ms),
    clip-path 1.1s var(--e-out) var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* Line-by-line masked text reveal */
.split-line { display: block; overflow: hidden; }
.js .split-line > i {
  display: block; font-style: normal;
  transform: translateY(103%);
  transition: transform 1.15s var(--e-out) var(--ld, 0ms);
}
.is-in .split-line > i, .split-line.is-in > i { transform: none; }

/* Scan sweep on headings */
.scanline-in { position: relative; }
.scanline-in::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(190,140,255,.5), transparent);
  transform: translateX(-110%);
  pointer-events: none;
}
.scanline-in.is-in::after, .is-in .scanline-in::after { animation: sweep 1.5s var(--e-io) .25s 1; }
@keyframes sweep { to { transform: translateX(110%); } }

/* ---------- 10. THREAT SECTION (ember) -------------------- */

.threat { --v-400: var(--ember); }
.threat .sec-tag { color: var(--ember); }
.threat .sec-tag::after { background: linear-gradient(90deg, rgba(255,94,58,.45), transparent); }

.threat-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  opacity: .3;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.threat-media video, .threat-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) sepia(.35) hue-rotate(-25deg) saturate(1.5) contrast(1.1);
  transform: scale(1.08);
}
.threat > .shell { position: relative; z-index: 2; }

/* DPI inspector console */
.dpi {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(18,12,33,.86), rgba(8,6,15,.92));
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.dpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: .55;
}
.dpi-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
  color: var(--ash-2);
}
.dpi-bar b { color: var(--bone-dim); font-weight: 500; }
.dpi-live { display: flex; align-items: center; gap: 8px; color: var(--ember); }
.dpi-live i { width: 5px; height: 5px; background: var(--ember); border-radius: 50%; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.dpi-rows { padding: 6px 0; }
.dpi-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1.1fr) minmax(0, 1.35fr) auto;
  gap: 14px; align-items: center;
  padding: 13px 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  border-bottom: 1px solid rgba(255,255,255,.035);
  opacity: .25;
  transition: opacity .5s var(--e-out), background .55s var(--e-out),
              box-shadow .55s var(--e-out);
}
.dpi-row:last-child { border-bottom: 0; }
.dpi-row.is-scanned { opacity: 1; }
.dpi-row.is-active { background: rgba(255,94,58,.06); }
.dpi-row .idx { color: var(--ash-3); }
.dpi-row .proto { color: var(--bone); letter-spacing: .1em; }
.dpi-row .note { color: var(--ash-2); }
.dpi-row .verdict {
  padding: 4px 10px; border: 1px solid currentColor;
  font-size: 9.5px; letter-spacing: .16em; white-space: nowrap;
  color: var(--ember);
}
.dpi-row[data-verdict="pass"] { background: rgba(123,47,247,.07); }
.dpi-row[data-verdict="pass"] .verdict { color: var(--v-300); }
.dpi-row[data-verdict="pass"] .proto { color: var(--v-200); }
.dpi-row[data-verdict="pass"].is-active { background: rgba(123,47,247,.12); }

/* The sweep never touches Umbra — it lights up on its own once the beam has
   retired, which reads as "nothing here to find". --v-300/--v-400 are safe:
   .threat only remaps --v-400 to ember, so this uses explicit rgba instead. */
.dpi-row.is-clear {
  background: rgba(123, 47, 247, .17);
  box-shadow: inset 2px 0 0 rgba(157, 92, 255, .95),
              0 0 40px -8px rgba(157, 92, 255, .65);
}
.dpi-row.is-clear .proto {
  color: #fff;
  text-shadow: 0 0 16px rgba(190, 140, 255, .85);
}
.dpi-row.is-clear .note { color: rgba(220, 194, 255, .75); }
.dpi-row.is-clear .verdict {
  color: #fff;
  border-color: rgba(157, 92, 255, .9);
  background: rgba(157, 92, 255, .20);
  box-shadow: 0 0 20px -4px rgba(157, 92, 255, .95);
}

.dpi-scan {
  /* top:0 is required — without it the static position sits below .dpi-bar and
     the JS translateY (measured from .dpi's padding edge) double-counts that
     offset, dropping the beam onto the row divider instead of the row. */
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  box-shadow: 0 0 22px 4px rgba(255,94,58,.5);
  opacity: 0; pointer-events: none;
  transition: transform .42s var(--e-io), opacity .35s;
}

.threat-notes { display: grid; gap: 26px; }
.threat-note {
  border-left: 1px solid rgba(255,94,58,.3);
  padding-left: 20px;
}
.threat-note h3 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 9px;
}
.threat-note p { font-size: .93rem; color: var(--ash); line-height: 1.66; }

/* ---------- 11. PROTOCOL / SIGNATURE ---------------------- */

.sig-wrap {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(18,12,33,.7), rgba(8,6,15,.85));
  position: relative; overflow: hidden;
}
.sig-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.sig-toggle { display: flex; border: 1px solid var(--line); }
.sig-toggle button {
  padding: 10px 18px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ash-2);
  transition: color .3s, background .4s;
  position: relative;
}
.sig-toggle button + button { border-left: 1px solid var(--line); }
.sig-toggle button.is-on { color: var(--bone); background: rgba(123,47,247,.16); }
.sig-toggle button[data-mode="legacy"].is-on { background: rgba(255,94,58,.14); }

/* width must be stated explicitly: with only aspect-ratio + min-height the box
   derives its width from the min-height and blows past the container on mobile */
.sig-canvas-wrap { position: relative; width: 100%; aspect-ratio: 16 / 4.6; min-height: 230px; }
.sig-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.sig-verdict {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  border-top: 1px solid var(--line-soft);
}
.sig-verdict div { padding: 16px 20px; border-right: 1px solid var(--line-soft); }
.sig-verdict div:last-child { border-right: 0; }
.sig-verdict dt {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ash-3); margin-bottom: 7px;
}
.sig-verdict dd {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em;
  color: var(--v-200); transition: color .4s;
}
.sig-wrap[data-mode="legacy"] .sig-verdict dd { color: var(--ember); }

.spec-row { margin-top: 26px; }
.spec-label {
  font-size: 9.5px; letter-spacing: .24em; color: var(--ash-3);
  margin-bottom: 12px; transition: color .4s var(--e-out);
}
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* The chip row belongs to whichever stack is selected, so it takes that
   state's colour: violet for Umbra, ember for the standard-VPN comparison. */
#sig[data-mode="legacy"] ~ .spec-row .spec-label { color: var(--ember); }
#sig[data-mode="legacy"] ~ .spec-row .spec-chips span {
  color: var(--ember); border-color: rgba(255, 94, 58, .32);
}
#sig[data-mode="legacy"] ~ .spec-row .spec-chips span:hover {
  color: #fff; border-color: var(--ember); background: rgba(255, 94, 58, .10);
}
.spec-chips span {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ash);
  border: 1px solid var(--line); padding: 7px 12px;
  transition: color .3s, border-color .3s, background .3s;
}
.spec-chips span:hover { color: var(--v-200); border-color: var(--line-hard); background: rgba(123,47,247,.08); }

/* ---------- 12. CAPABILITY GRID --------------------------- */

.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cap {
  position: relative; isolation: isolate; overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 2.6vw, 40px);
  min-height: clamp(240px, 24vw, 320px);
  display: flex; flex-direction: column;
  transition: background .6s var(--e-out);
}
.cap::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 110% at 20% 0%, rgba(99,33,214,.22), transparent 62%);
  opacity: 0; transition: opacity .6s var(--e-out);
}
.cap:hover::before { opacity: 1; }
.cap::after {
  content: ''; position: absolute; left: 0; top: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--v-400), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--e-out);
}
.cap:hover::after { transform: scaleX(1); }

.cap-idx {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em;
  color: var(--v-500); margin-bottom: auto;
}
.cap h3 {
  font-family: var(--f-display); font-weight: 700; font-stretch: 106%;
  font-size: clamp(1.06rem, 1.5vw, 1.34rem); text-transform: uppercase;
  letter-spacing: -.01em; line-height: 1.1; color: var(--bone);
  margin: 34px 0 12px;
  transition: color .4s;
}
.cap:hover h3 { color: var(--v-200); }
.cap p { font-size: .9rem; line-height: 1.66; color: var(--ash); max-width: 40ch; }

.cap-ico {
  position: absolute; right: clamp(18px, 2vw, 28px); top: clamp(22px, 2.4vw, 34px);
  width: 34px; height: 34px; color: var(--v-600);
  opacity: .55; transition: opacity .5s var(--e-out), transform .7s var(--e-out), color .5s;
}
.cap:hover .cap-ico { opacity: 1; color: var(--v-300); transform: translateY(-3px) rotate(6deg); }

/* ---------- 13. NETWORK / GLOBE --------------------------- */

.net-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
}

.globe-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 640px;
  cursor: grab;
}
.globe-stage:active { cursor: grabbing; }
.globe-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.globe-stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, transparent 52%, rgba(5,4,9,.75) 82%);
}

.globe-hint {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ash-3);
  pointer-events: none; z-index: 3;
}

.node-list { border-top: 1px solid var(--line); }
.node-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  gap: 16px; align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background .4s, padding-left .4s var(--e-out);
}
.node-row:hover, .node-row.is-active { background: rgba(123,47,247,.07); padding-left: 12px; }
.node-row .n-idx { font-family: var(--f-mono); font-size: 9.5px; color: var(--ash-3); }
.node-row .n-city {
  font-family: var(--f-display); font-weight: 600; font-stretch: 106%;
  text-transform: uppercase; letter-spacing: .01em; font-size: .98rem; color: var(--bone);
}
.node-row .n-cc { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .18em; color: var(--ash-2); }
.node-row .n-rtt { font-family: var(--f-mono); font-size: 11px; color: var(--v-300); }
.node-row.is-active .n-city { color: var(--v-200); }

.net-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 30px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.net-stats div { background: var(--void); padding: 18px 16px; }
.net-stats dt { font-family: var(--f-mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--ash-3); margin-bottom: 7px; }
.net-stats dd { font-family: var(--f-display); font-weight: 600; font-stretch: 106%; font-size: 1.5rem; color: var(--bone); }

/* ---------- 14. ARCHITECTURE STACK ------------------------ */

.arch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 76px);
  align-items: start;
}

.stack { display: flex; flex-direction: column-reverse; gap: 8px; perspective: 1400px; }
.layer {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 16px; align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, rgba(24,15,44,.7), rgba(10,7,18,.6));
  transition: transform .6s var(--e-out), border-color .5s, background .5s, box-shadow .6s;
}
.layer::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--v-600); transform: scaleY(0); transform-origin: bottom;
  transition: transform .7s var(--e-out) var(--ld, 0ms);
}
.is-in .layer::before { transform: scaleY(1); }
.layer:hover {
  transform: translateX(10px);
  border-color: var(--line-hard);
  background: linear-gradient(100deg, rgba(53,16,106,.55), rgba(16,10,30,.7));
  box-shadow: -14px 0 44px -22px rgba(123,47,247,.8);
}
.layer .l-id { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--v-500); }
.layer .l-name {
  display: block;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ash-2); margin-bottom: 5px;
}
.layer .l-tech {
  display: block;
  font-family: var(--f-display); font-weight: 600; font-stretch: 106%;
  font-size: clamp(.92rem, 1.3vw, 1.08rem); text-transform: uppercase; color: var(--bone);
  letter-spacing: -.005em;
}
.layer .l-flag {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .18em;
  color: var(--v-400); border: 1px solid var(--line); padding: 4px 8px; white-space: nowrap;
}

/* Null ledger */
.ledger { border-top: 1px solid var(--line); margin-top: 34px; }
.ledger-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.ledger-row .k {
  font-size: .92rem; color: var(--ash);
  position: relative;
}
.ledger-row .k::after {
  content: ''; position: absolute; left: 0; top: 52%; height: 1px; width: 100%;
  background: var(--ash-2); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--e-out) var(--ld, 0ms);
}
.is-in .ledger-row .k::after { transform: scaleX(1); }
.ledger-row .v {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--v-400);
}

/* ---------- 15. DEPLOYMENT STRIP -------------------------- */

.plat-row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.plat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: clamp(22px, 3vw, 40px) 10px;
  border-right: 1px solid var(--line);
  color: var(--ash-2);
  transition: color .4s, background .5s;
}
.plat:last-child { border-right: 0; }
.plat:hover { color: var(--v-200); background: rgba(123,47,247,.07); }
.plat svg { width: 28px; height: 28px; }
.plat span { font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- 16. PRICING ----------------------------------- */

.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0; border: 1px solid var(--line);
}
.plan {
  position: relative; isolation: isolate;
  padding: clamp(26px, 3vw, 42px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: background .6s var(--e-out);
}
.plan:last-child { border-right: 0; }
.plan:hover { background: rgba(123,47,247,.05); }

.plan--feature { background: linear-gradient(170deg, rgba(53,16,106,.42), rgba(10,7,18,.2)); }
.plan--feature::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  box-shadow: inset 0 0 0 1px var(--line-hard);
}
.plan-flag {
  position: absolute; top: 0; right: 0;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--void);
  background: var(--v-400); padding: 6px 12px;
}
.plan-name {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ash-2); margin-bottom: 20px;
}
.plan-price {
  font-family: var(--f-display); font-weight: 700; font-stretch: 110%;
  font-size: clamp(2.6rem, 4.4vw, 3.9rem); color: var(--bone); line-height: 1;
  letter-spacing: -.03em;
}
.plan-price sup { font-size: .38em; vertical-align: super; margin-right: 2px; color: var(--ash); }
.plan-per { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; color: var(--ash-3); margin-top: 10px; }
.plan-save { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--v-300); margin-top: 12px; min-height: 15px; }
.plan-list { margin: 26px 0 30px; display: grid; gap: 10px; }
.plan-list li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: .88rem; color: var(--ash);
}
.plan-list li::before { content: '+'; color: var(--v-500); font-family: var(--f-mono); font-size: 11px; }
.plan .btn { margin-top: auto; justify-content: center; }

.pay-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 26px; color: var(--ash-3);
}
.pay-note b {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--v-300); font-weight: 400;
  border: 1px solid var(--line); padding: 6px 11px;
}

/* ---------- 17. FINAL CTA + FOOTER ------------------------ */

.outro {
  position: relative; overflow: hidden;
  min-height: 78svh; display: flex; align-items: center;
  text-align: center;
}
.outro-media { position: absolute; inset: 0; z-index: 0; }
.outro-media img, .outro-media video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .38; filter: contrast(1.15) saturate(.9);
  transform: scale(1.06);
}
.outro-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(53,16,106,.5), transparent 70%),
    linear-gradient(to bottom, var(--void), rgba(5,4,9,.5) 40%, var(--void));
}
.outro .shell { position: relative; z-index: 2; }
.outro h2 { font-size: clamp(3.4rem, 13vw, 12rem); font-stretch: 120%; margin-bottom: 22px; }
.outro .deck { margin-inline: auto; text-align: center; }
.outro .hero-actions { justify-content: center; }

.foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 84px) 30px;
  position: relative; z-index: 2; background: var(--void);
}
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .7fr));
  gap: 40px 30px;
}
.foot h4 {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ash-3); margin-bottom: 18px;
}
.foot ul { display: grid; gap: 11px; }
.foot ul a { font-size: .9rem; color: var(--ash); transition: color .3s; }
.foot ul a:hover { color: var(--v-300); }
.foot-brand .deck { font-size: .9rem; margin-top: 18px; max-width: 34ch; }

.foot-base {
  margin-top: clamp(40px, 5vw, 70px); padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--ash-3);
}
.foot-status { display: flex; align-items: center; gap: 8px; color: var(--v-400); }
.foot-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--v-400); animation: blink 2.4s steps(1) infinite; }

/* ---------- 18. PRELOADER --------------------------------- */

.boot {
  position: fixed; inset: 0; z-index: 999;
  background: var(--void);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: clip-path 1.15s var(--e-out) .1s, opacity .5s ease 1s;
}
.boot.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.boot-word {
  font-family: var(--f-display); font-weight: 700; font-stretch: 122%;
  font-size: clamp(2.4rem, 9vw, 6rem); text-transform: uppercase;
  letter-spacing: .06em; color: var(--bone);
  overflow: hidden;
}
.boot-word span { display: inline-block; transform: translateY(105%); animation: bootIn .9s var(--e-out) forwards; }
@keyframes bootIn { to { transform: none; } }
.boot-bar { width: min(340px, 62vw); height: 1px; background: rgba(157,92,255,.2); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0%; background: var(--v-400); box-shadow: var(--glow-sm); transition: width .3s linear; }
.boot-log {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ash-3); min-height: 14px;
}

/* ---------- 19. RESPONSIVE -------------------------------- */

@media (max-width: 1200px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { display: none; }
  .net-layout { grid-template-columns: 1fr; }
  .globe-stage { max-height: 520px; margin-inline: auto; width: min(100%, 520px); }
}

@media (max-width: 980px) {
  :root { --frame: 10px; --nav-h: 60px; }
  .hud-edge { display: none; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-right .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .two-col, .arch-layout { grid-template-columns: 1fr; }
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .telemetry div:nth-child(2) { border-right: 0; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .plat-row { grid-template-columns: repeat(3, 1fr); }
  .plat:nth-child(3) { border-right: 0; }
  .plat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sig-verdict { grid-template-columns: 1fr; }
  .sig-verdict div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .scroll-cue { display: none; }
}

@media (max-width: 620px) {
  .caps { grid-template-columns: 1fr; }
  .dpi-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .dpi-row .idx, .dpi-row .note { display: none; }
  .plat-row { grid-template-columns: repeat(2, 1fr); }
  .plat { border-right: 1px solid var(--line); }
  .plat:nth-child(2n) { border-right: 0; }
  .plat:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .net-stats { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 34px minmax(0,1fr); }
  .layer .l-flag { display: none; }
  .reticle { display: none; }
}

/* ---------- 20. MOTION PREFERENCES ------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split-line > i { transform: none !important; }
  .fx-grain { animation: none; }
  .boot { display: none; }
}

/* ============================================================
   21. CHECKOUT
   ============================================================ */

.co-body {
  min-height: 100svh;
  background:
    radial-gradient(70% 55% at 12% 0%,  rgba(53,16,106,.30), transparent 62%),
    radial-gradient(60% 50% at 92% 96%, rgba(74,22,160,.22), transparent 66%),
    var(--void);
  background-attachment: fixed;
}

.co-wrap {
  padding: calc(var(--nav-h) + var(--frame) + 44px) var(--gutter) 90px;
  max-width: 1240px;
  margin-inline: auto;
}

.co-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  border: 1px solid var(--line);
  background: rgba(8, 6, 15, .74);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(157,92,255,.10);
}

.co-col { padding: clamp(26px, 3.4vw, 46px); }
.co-col--summary {
  border-right: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(24,15,44,.5), rgba(8,6,15,.2));
  display: flex; flex-direction: column;
}

/* ---- plan cards ---- */
.co-plans { display: grid; gap: 10px; }
.co-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.015);
  position: relative; overflow: hidden;
  transition: border-color .35s var(--e-out), background .35s var(--e-out), transform .35s var(--e-out);
}
.co-plan::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--v-500); transform: scaleY(0); transform-origin: center;
  transition: transform .4s var(--e-out);
}
.co-plan:hover { border-color: rgba(157,92,255,.3); background: rgba(255,255,255,.035); }
.co-plan.is-active {
  border-color: var(--line-hard);
  background: linear-gradient(100deg, rgba(53,16,106,.5), rgba(16,10,30,.3));
}
.co-plan.is-active::before { transform: scaleY(1); }

.co-plan-l { display: flex; flex-direction: column; gap: 5px; }
.co-plan-name {
  font-family: var(--f-display); font-weight: 600; font-stretch: 106%;
  text-transform: uppercase; letter-spacing: .005em; font-size: 1rem; color: var(--bone);
}
.co-plan-note {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ash-2);
}
.co-save { color: var(--v-300); }
.co-plan-price {
  font-family: var(--f-display); font-weight: 700; font-stretch: 108%;
  font-size: 1.5rem; color: var(--bone); letter-spacing: -.02em;
}

/* ---- total ---- */
.co-total {
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.co-total-val {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.2rem, 4vw, 3rem); color: var(--bone); letter-spacing: -.03em; line-height: 1;
}

.co-features { margin-top: 28px; display: grid; gap: 10px; }
.co-features li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: .88rem; color: var(--ash);
}
.co-features li::before { content: '+'; color: var(--v-500); font-family: var(--f-mono); font-size: 11px; }

.co-assure {
  margin-top: auto; padding-top: 30px;
  display: grid; gap: 9px;
}
.co-assure p {
  display: flex; gap: 9px; align-items: baseline;
  font-size: 9.5px; letter-spacing: .14em; color: var(--ash-3);
}
.co-tick { color: var(--v-400); }

/* ---- form ---- */
.co-field { margin-bottom: 22px; }
.co-field label {
  display: block; margin-bottom: 9px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ash-2);
}
.co-field input {
  width: 100%; padding: 15px 16px;
  background: rgba(0,0,0,.42);
  border: 1px solid var(--line-soft);
  color: var(--bone);
  font-family: var(--f-body); font-size: 1rem; font-weight: 350;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.co-field input::placeholder { color: var(--ash-3); }
.co-field input:focus {
  border-color: var(--v-500);
  box-shadow: 0 0 0 3px rgba(123,47,247,.14);
  background: rgba(0,0,0,.6);
}
.co-field input.is-ok  { border-color: rgba(157,92,255,.55); }
.co-field input.is-bad { border-color: rgba(255,94,58,.6); }

.co-msg {
  display: block; margin-top: 8px; min-height: 14px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ash-3);
}
.co-msg.is-ok  { color: var(--v-300); }
.co-msg.is-bad { color: var(--ember); }
.is-ok-text    { color: var(--v-300); }

.co-rules { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.co-rules li {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ash-3);
  border: 1px solid var(--line-soft); padding: 5px 9px;
  transition: color .3s, border-color .3s, background .3s;
}
.co-rules li.is-met {
  color: var(--v-200); border-color: var(--line-hard); background: rgba(123,47,247,.12);
}

/* ---- payment tabs ---- */
.co-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.co-tab {
  display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
  padding: 15px 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.015);
  transition: border-color .35s, background .35s;
}
.co-tab:hover { border-color: rgba(157,92,255,.3); }
.co-tab.is-on {
  border-color: var(--line-hard);
  background: linear-gradient(100deg, rgba(53,16,106,.5), rgba(16,10,30,.3));
}
.co-tab-k {
  font-family: var(--f-display); font-weight: 600; font-stretch: 106%;
  text-transform: uppercase; font-size: .98rem; color: var(--bone);
}
.co-tab-s {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ash-3);
}
.co-tab.is-on .co-tab-s { color: var(--v-300); }

.co-pane[hidden] { display: none; }
.co-pane-note { font-size: .89rem; color: var(--ash); line-height: 1.65; margin-bottom: 20px; }
.co-pane-note strong { color: var(--bone); font-weight: 500; }
.co-submit { width: 100%; justify-content: center; }

.co-await { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }

.co-error {
  min-height: 18px; margin-top: 16px; text-align: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ember);
}
.co-legal {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 9px; letter-spacing: .12em; color: var(--ash-3); text-align: center;
}

/* ---- monero ---- */
.qr-wrapper {
  background: #fff; padding: 14px;
  width: 100%; max-width: 190px; aspect-ratio: 1/1;
  margin: 18px auto; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.qr-wrapper img, .qr-wrapper canvas { max-width: 100% !important; height: auto !important; display: block; }

.crypto-address-box {
  font-family: var(--f-mono); font-size: 10px; line-height: 1.6;
  background: rgba(0,0,0,.5);
  padding: 13px; border: 1px dashed var(--line);
  color: var(--ash); word-break: break-all; text-align: center;
  margin-bottom: 10px; cursor: pointer; transition: .25s;
}
.crypto-address-box:hover { border-color: var(--v-500); color: var(--bone); }
.crypto-address-box[data-copied] { color: var(--v-300); border-color: var(--v-500); }

.spinner {
  width: 15px; height: 15px; flex: none;
  border: 1.5px solid rgba(255,255,255,.25);
  border-top-color: var(--v-300);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-col--summary { border-right: 0; border-bottom: 1px solid var(--line); }
  .co-wrap { padding-top: calc(var(--nav-h) + var(--frame) + 26px); }
}
@media (max-width: 520px) {
  .co-tabs { grid-template-columns: 1fr; }
}

/* Architecture backdrop — the server-hall loop, pushed well back */
.arch-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  opacity: .22;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
}
.arch-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}
#architecture > .shell { position: relative; z-index: 2; }
