/* ============================================================
   RiseNet — National Digital Infrastructure Platform
   Design system: black canvas · deep navy · electric blue
   ============================================================ */

:root {
  /* Surfaces */
  --black:        #04060a;
  --navy-900:     #06090f;
  --navy-800:     #080d18;
  --navy-700:     #0a1222;
  --navy-600:     #0e1a30;
  --line:         rgba(120, 160, 230, 0.12);
  --line-strong:  rgba(120, 160, 230, 0.24);

  /* Brand */
  --blue:         #2f7bff;
  --blue-bright:  #4d9fff;
  --cyan:         #38e1ff;
  --gold:         #e9c46a;

  /* Text */
  --white:        #eef3ff;
  --text:         #c4cfe6;
  --muted:        #7e8cab;
  --faint:        #56627e;

  /* Glows */
  --glow-blue:    rgba(47, 123, 255, 0.45);
  --glow-cyan:    rgba(56, 225, 255, 0.35);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient backdrop gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -5%, rgba(47, 123, 255, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 8% 12%, rgba(56, 225, 255, 0.07), transparent 55%),
    radial-gradient(1200px 900px at 50% 120%, rgba(47, 123, 255, 0.10), transparent 60%),
    var(--black);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgba(56, 225, 255, 0.28); color: #fff; }

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

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.grad-text {
  background: linear-gradient(100deg, var(--blue-bright) 0%, var(--cyan) 60%, #aef0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px var(--glow-cyan);
}

/* ============================================================
   INTRO / BOOT SEQUENCE  (22.3 → 100+ Mbps)
   Cinematic opener that plays on load, then reveals the site
   ============================================================ */
html.intro-active, html.intro-active body { overflow: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 760px at 50% 32%, #0a1428 0%, #05080f 62%, var(--black) 100%);
  overflow: hidden;
  transition: opacity .7s var(--ease), transform 1s var(--ease), visibility .7s;
}
.intro.is-done { opacity: 0; visibility: hidden; transform: scale(1.07); pointer-events: none; }

/* ---- backdrop layers ---- */
.intro__grid {
  position: absolute; inset: -2px; opacity: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 28%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 44%, #000 28%, transparent 72%);
  animation: introGridIn 1.4s var(--ease) both;
}
@keyframes introGridIn { from { opacity: 0; transform: scale(1.12); } to { opacity: .45; transform: none; } }

.intro__noise {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background: radial-gradient(900px 600px at 50% 38%, rgba(47,123,255,.10), transparent 60%);
}
.intro__scan {
  position: absolute; left: -10%; right: -10%; height: 160px; top: -200px; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(56,225,255,.12) 45%, rgba(56,225,255,.12) 55%, transparent);
  filter: blur(2px);
}
.intro.step-target .intro__scan { animation: introScan 1.15s var(--ease) both; }
@keyframes introScan { 0% { opacity: 0; top: -200px; } 18% { opacity: 1; } 100% { opacity: 0; top: 105%; } }

/* ---- skip ---- */
.intro__skip {
  position: absolute; top: 22px; right: 22px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .82rem/1 var(--font-body); letter-spacing: .04em; color: var(--muted);
  background: rgba(120,160,230,.06); border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 10px 16px; cursor: pointer; opacity: 0;
  animation: introFade .6s .7s var(--ease) forwards;
  transition: color .25s, border-color .25s, background .25s;
}
.intro__skip:hover { color: #fff; border-color: var(--cyan); background: rgba(56,225,255,.08); }
.intro__skip span { transition: transform .25s var(--ease); }
.intro__skip:hover span { transform: translateX(3px); }

/* ---- stage ---- */
.intro__stage { position: relative; z-index: 2; width: min(560px, 90vw); text-align: center; }

.intro__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; opacity: 0; transform: translateY(-12px); }
.intro.step-brand .intro__brand { animation: introDown .75s var(--ease) forwards; }
.intro__brand .brand__mark { display: grid; place-items: center; filter: drop-shadow(0 0 12px var(--glow-cyan)); }
.intro__brandtext { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em; color: var(--white); }

.intro__eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 46px; opacity: 0;
}
.intro.step-brand .intro__eyebrow { animation: introFade .7s .18s var(--ease) forwards; }
.intro__eyebrow::after { content: "_"; margin-left: 2px; animation: introBlink 1s steps(1) infinite; }

.intro__compare { display: flex; flex-direction: column; gap: 4px; }

.intro__readout { opacity: 0; transform: translateY(16px); }
.intro.step-current .intro__readout--current { animation: introUp .7s var(--ease) forwards; }
.intro.step-target  .intro__readout--target  { animation: introUp .7s var(--ease) forwards; }

.intro__cap { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.intro__readout--target .intro__cap { color: var(--blue-bright); }

.intro__metric { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.intro__metric b { font-size: clamp(2.9rem, 12vw, 5.4rem); font-weight: 600; line-height: .95; color: var(--white); }
.intro__metric i { font-style: normal; font-size: 1.05rem; color: var(--muted); letter-spacing: .02em; }
.intro__readout--target .intro__metric b { filter: drop-shadow(0 0 26px rgba(56,225,255,.55)); }

.intro__track { display: block; height: 8px; margin-top: 18px; border-radius: 100px; background: rgba(120,160,230,.10); overflow: hidden; }
.intro__fill { display: block; height: 100%; width: 0; border-radius: 100px; transition: width 1.1s var(--ease); }
.intro__fill--current { background: linear-gradient(90deg, #2a3a5e, #4a6fae); }
.intro__fill--target { position: relative; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 24px -2px var(--glow-cyan); }
.intro__fill--target::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}
.intro.step-target .intro__fill--target::after { animation: introShimmer 1.25s .25s var(--ease); }

/* ---- arrow (data flowing down) ---- */
.intro__arrow { display: flex; justify-content: center; margin: 12px 0; height: 66px; }
.intro__arrow svg { overflow: visible; }
.intro__arrowline { stroke: rgba(56,225,255,.32); stroke-width: 1.4; stroke-dasharray: 4 6; animation: introDash 1s linear infinite; }
.intro__arrow .chev { fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.intro.step-current .intro__arrow .chev { animation: chevFlow 1.5s ease-in-out infinite; }
.intro__arrow .c1 { animation-delay: 0s; }
.intro__arrow .c2 { animation-delay: .22s; }
.intro__arrow .c3 { animation-delay: .44s; }

.intro__uplift { margin-top: 38px; font-size: .88rem; color: var(--faint); opacity: 0; }
.intro.step-uplift .intro__uplift { animation: introFade .7s var(--ease) forwards; }
.intro__uplift b { color: var(--cyan); font-weight: 600; }

@keyframes introFade   { to { opacity: 1; } }
@keyframes introDown   { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes introUp     { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes introDash   { to { stroke-dashoffset: -20; } }
@keyframes chevFlow    { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }
@keyframes introShimmer{ to { transform: translateX(100%); } }
@keyframes introBlink  { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  html.intro-active, html.intro-active body { overflow: auto !important; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 9, 15, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 0 8px var(--glow-cyan)); }
.brand__text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.01em; color: var(--white);
}
.brand--lg .brand__text { font-size: 1.5rem; }

.nav__links {
  margin-left: auto; display: flex; gap: 28px;
  font-size: 0.9rem; color: var(--muted); font-weight: 450;
}
.nav__links a {
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan)); transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

.nav__cta { margin-left: 4px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.94rem;
  padding: 13px 22px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(100deg, var(--blue), var(--blue-bright));
  color: #fff; box-shadow: 0 8px 30px -8px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--primary svg { transition: transform .25s var(--ease); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: rgba(120, 160, 230, 0.05); color: var(--white);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(56, 225, 255, 0.08); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--replay svg { transition: transform .6s var(--ease); }
.btn--replay:hover svg { transform: rotate(-360deg); }

.hero__replay { margin-top: 30px; }
.footer__actions { margin-top: 44px; display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 96px; padding-bottom: 80px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(4,6,10,0.78) 32%, rgba(4,6,10,0.15) 62%, transparent 78%),
    linear-gradient(0deg, var(--black) 2%, transparent 30%, transparent 78%, rgba(4,6,10,0.6) 100%);
}
.hero__grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 30% 40%, #000 30%, transparent 72%);
  mask-image: radial-gradient(120% 100% at 30% 40%, #000 30%, transparent 72%);
}
.hero__content { position: relative; z-index: 3; max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-bright); font-weight: 500;
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 100px;
  background: rgba(47, 123, 255, 0.06);
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 0 var(--glow-cyan);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,225,255,.5); }
  70% { box-shadow: 0 0 0 9px rgba(56,225,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,225,255,0); }
}

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02;
  letter-spacing: -0.03em; color: var(--white);
  margin: 26px 0 24px;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.7vw, 1.28rem); color: var(--text);
  max-width: 560px; line-height: 1.7; font-weight: 350;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 56px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero__stat dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 8px; }
.hero__stat dd { display: flex; align-items: baseline; gap: 8px; }
.hero__stat dd .mono { font-size: 2rem; font-weight: 600; color: var(--white); }
.hero__stat .unit { font-size: 0.84rem; color: var(--muted); }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 30px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}
.hero__scroll-line { width: 50px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line i { position: absolute; left: -20px; top: 0; width: 20px; height: 100%; background: linear-gradient(90deg, transparent, var(--cyan)); animation: scrollDash 2s var(--ease) infinite; }
@keyframes scrollDash { to { left: 100%; } }

.hero__tagline {
  position: absolute; right: var(--gutter); bottom: 30px; z-index: 3;
  font-family: var(--font-display); font-size: 0.86rem; letter-spacing: 0.04em; color: var(--muted);
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--challenge { border-top: 1px solid var(--line); }

.section__head { max-width: 760px; margin-bottom: 64px; }
.section__index {
  display: inline-block; font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.08em; color: var(--cyan); margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.025em;
  color: var(--white);
}
.section__lede { margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--muted); line-height: 1.7; max-width: 640px; }

/* ============================================================
   SECTION 2 — CHALLENGE
   ============================================================ */
.gap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.gap__meter {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px; position: sticky; top: 110px;
}
.gap__row { margin-bottom: 8px; }
.gap__label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.gap__bar { height: 14px; border-radius: 100px; background: rgba(120,160,230,.08); margin: 12px 0; overflow: hidden; }
.gap__fill {
  display: block; height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, #2a3a5e, #4a6fae);
  transition: width 1.4s var(--ease);
}
.gap__fill--target { background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 24px -4px var(--glow-cyan); }
.gap__value { font-size: 1.1rem; color: var(--white); }
.gap__value .mono { font-size: 1.5rem; font-weight: 600; }
.gap__value--target .mono { color: var(--cyan); }
.gap__arrow { display: grid; place-items: center; color: var(--faint); margin: 18px 0; }
.gap__row--target { margin-top: 8px; }
.gap__note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--faint); }

.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  background: rgba(10,18,34,0.5); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: rgba(14,26,48,0.7); }
.stat-card__icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--blue-bright); background: rgba(47,123,255,.1); border: 1px solid var(--line); margin-bottom: 18px; }
.stat-card__icon svg { width: 22px; height: 22px; }
.stat-card h3 { font-family: var(--font-display); font-size: 1.04rem; font-weight: 500; color: var(--white); margin-bottom: 9px; line-height: 1.3; }
.stat-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   SECTION 3 — FLOW
   ============================================================ */
.flow { position: relative; }
.flow__track {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.flow__step {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: rgba(8,13,24,0.6); border: 1px solid var(--line);
  cursor: pointer; transition: all .35s var(--ease); min-height: 188px;
}
.flow__step:hover, .flow__step.is-active {
  border-color: var(--cyan); background: rgba(14,26,48,0.85);
  box-shadow: 0 18px 50px -24px var(--glow-blue);
  transform: translateY(-4px);
}
.flow__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); }
.flow__step h3 { font-family: var(--font-display); font-size: 1.04rem; font-weight: 500; color: var(--white); margin: 14px 0 10px; line-height: 1.25; }
.flow__step p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.flow__step::after {
  content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint);
  rotate: 45deg; z-index: 2; transition: border-color .3s;
}
.flow__step:last-child::after { display: none; }
.flow__step.is-active::after { border-color: var(--cyan); }

.flow__rail { height: 2px; margin-top: 26px; background: var(--line); border-radius: 2px; overflow: hidden; }
.flow__rail span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px var(--glow-cyan); transition: width .5s var(--ease), transform .5s var(--ease); }

.flow__caption { margin-top: 40px; max-width: 720px; font-size: 1rem; color: var(--text); line-height: 1.7; }

/* ============================================================
   SECTION 4 — MODELS
   ============================================================ */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14,26,48,0.55), rgba(8,13,24,0.6));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.model::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px 200px at 50% -10%, rgba(47,123,255,.18), transparent 70%);
}
.model:hover, .model:focus-visible {
  transform: translateY(-6px); border-color: var(--line-strong);
  box-shadow: 0 30px 70px -40px var(--glow-blue); outline: none;
}
.model:hover::before, .model:focus-visible::before { opacity: 1; }
.model__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.model__no { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); letter-spacing: 0.05em; }
.model__title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.model__entity { font-size: 0.88rem; color: var(--cyan); margin: 8px 0 22px; font-family: var(--font-mono); }
.model__list { display: grid; gap: 11px; padding-top: 22px; border-top: 1px solid var(--line); }
.model__list li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text); }
.model__list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--blue-bright); box-shadow: 0 0 8px var(--glow-blue);
  rotate: 45deg;
}
.model__bars { margin-top: 24px; display: grid; gap: 12px; }
.model__bar { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px; font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.model__bar i { display: block; height: 5px; border-radius: 100px; background: rgba(120,160,230,.12); position: relative; overflow: hidden; }
.model__bar i::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 100px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.model.in-view .model__bar i::after { transform: scaleX(1); }

/* Tags */
.tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; white-space: nowrap;
}
.tag--blue { color: #bcd6ff; background: rgba(47,123,255,.14); border: 1px solid rgba(47,123,255,.32); }
.tag--cyan { color: #b6f3ff; background: rgba(56,225,255,.12); border: 1px solid rgba(56,225,255,.3); }
.tag--gold { color: #f3e0a8; background: rgba(233,196,106,.12); border: 1px solid rgba(233,196,106,.3); }

/* ============================================================
   SECTION 5 — TECHNICAL
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tech-card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: rgba(8,13,24,0.55); border: 1px solid var(--line);
  transition: border-color .35s, transform .35s var(--ease), background .35s;
  overflow: hidden;
}
.tech-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan)); opacity: .35; transition: opacity .35s;
}
.tech-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: rgba(14,26,48,0.7); }
.tech-card:hover::after { opacity: 1; }
.tech-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tech-card__abbr { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.02em; color: var(--white); }
.tech-card__pill { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 100px; }
.tech-card h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.tech-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }
.tech-card p strong { color: var(--blue-bright); font-weight: 600; }
.tech-card__metric { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
.tech-card__metric .mono { font-size: 2.2rem; font-weight: 600; color: var(--white); }
.tech-card__metric small { font-size: 0.78rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   SECTION 6 — TIMELINE
   ============================================================ */
.timeline { position: relative; display: grid; gap: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan), rgba(56,225,255,0.1));
}
.timeline__item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; align-items: start; }
.timeline__marker {
  position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; color: var(--white);
  background: var(--navy-700); border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 6px var(--black), 0 0 28px -6px var(--glow-blue);
}
.timeline__body {
  background: rgba(10,18,34,0.5); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; transition: border-color .35s, transform .35s var(--ease);
}
.timeline__item:hover .timeline__body { border-color: var(--line-strong); transform: translateX(6px); }
.timeline__phase { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); letter-spacing: 0.06em; }
.timeline__body h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--white); margin: 8px 0 14px; display: inline-block; margin-right: 12px; }
.timeline__model { vertical-align: middle; }
.timeline__body p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; margin-top: 12px; }

/* ============================================================
   SECTION 7 — IMPACT
   ============================================================ */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.impact-card {
  padding: 30px; border-radius: var(--radius);
  background: rgba(8,13,24,0.5); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.impact-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: rgba(14,26,48,0.7); }
.impact-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan); background: rgba(56,225,255,.08); border: 1px solid var(--line); margin-bottom: 22px; }
.impact-card__icon svg { width: 24px; height: 24px; }
.impact-card h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 500; color: var(--white); margin-bottom: 16px; }
.impact-card__metric { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--white); }
.impact-card__metric .mono { background: linear-gradient(100deg, var(--blue-bright), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.impact-card__desc { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.impact-note { margin-top: 28px; font-size: 0.82rem; color: var(--faint); font-style: italic; }

/* ============================================================
   SECTION 8 — VISION
   ============================================================ */
.section--vision { text-align: center; overflow: hidden; }
.vision__glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 900px; height: 900px; max-width: 130vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,123,255,.18), transparent 60%);
  filter: blur(10px); pointer-events: none;
}
.vision__inner { position: relative; z-index: 2; max-width: 920px; }
.vision__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--white); margin: 22px 0 26px; }
.vision__sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 640px; margin-inline: auto; line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 70px 0 36px; background: var(--navy-900); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__initiative { font-size: 0.92rem; color: var(--muted); letter-spacing: 0.02em; }
.footer__contact {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 16px; font-size: 0.94rem; color: var(--text);
  transition: color .25s;
}
.footer__contact svg { color: var(--muted); transition: color .25s, transform .25s var(--ease); }
.footer__contact:hover { color: var(--cyan); }
.footer__contact:hover svg { color: var(--cyan); transform: translateY(-1px); }
.footer__statement { text-align: right; }
.footer__statement p { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; line-height: 1.15; color: var(--white); }
.footer__base {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--faint);
}
.footer__tag { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

/* Stagger within grids */
.stat-cards .reveal:nth-child(1) { transition-delay: 0s; }
.stat-cards .reveal:nth-child(2) { transition-delay: .08s; }
.stat-cards .reveal:nth-child(3) { transition-delay: .16s; }
.stat-cards .reveal:nth-child(4) { transition-delay: .24s; }
.models .reveal:nth-child(2) { transition-delay: .1s; }
.models .reveal:nth-child(3) { transition-delay: .2s; }
.tech-grid .reveal:nth-child(2) { transition-delay: .1s; }
.tech-grid .reveal:nth-child(3) { transition-delay: .2s; }
.impact-grid .reveal:nth-child(2) { transition-delay: .07s; }
.impact-grid .reveal:nth-child(3) { transition-delay: .14s; }
.impact-grid .reveal:nth-child(4) { transition-delay: .21s; }
.impact-grid .reveal:nth-child(5) { transition-delay: .28s; }
.impact-grid .reveal:nth-child(6) { transition-delay: .35s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .flow__track { grid-template-columns: repeat(2, 1fr); }
  .flow__step::after { display: none; }
  .models, .tech-grid, .impact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6,9,15,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 28px;
    font-size: 1.05rem;
  }
  .nav.is-open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }

  .gap { grid-template-columns: 1fr; }
  .gap__meter { position: static; }
  .hero__tagline { display: none; }
  .hero__stats { gap: 18px 32px; }
}

@media (max-width: 620px) {
  .stat-cards, .models, .tech-grid, .impact-grid, .flow__track { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__statement { text-align: left; }
  .hero__stat dd .mono { font-size: 1.7rem; }
  .timeline__item { grid-template-columns: 44px 1fr; gap: 18px; }
  .timeline::before { left: 21px; }
  .timeline__marker { width: 44px; height: 44px; font-size: 0.8rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
