/* =============================================================
   DIGITAL GIANT — Electric, benevolent, net-positive.
   Magician × Caregiver. Stripe trust × Patagonia honesty × IBM wonder.
============================================================= */

:root {
  /* PALETTE — research-prescribed */
  --primary: #00AAFF;        /* Electric Blue */
  --primary-hover: #33BBFF;
  --primary-glow: rgba(0, 170, 255, 0.35);
  --bg: #0A0F1E;             /* Deep Space */
  --bg-2: #0F1424;
  --accent: #00E5FF;         /* Arctic Cyan */
  --carbon: #00C97A;         /* Signal-Positive — SEMANTIC ONLY */
  --carbon-glow: rgba(0, 201, 122, 0.25);
  --slate: #1C2333;          /* Slate Panel */
  --slate-2: #232B3D;
  --slate-3: #2E3850;
  --ice: #F0F4FF;            /* Ice White */
  --ice-muted: #A8B0C4;
  --ice-faint: #6B7388;
  --warm-gold: #E8B547;      /* Warm gold accent — rare use */

  /* TYPE — golden ratio scale (φ = 1.618) */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.35rem);
  --text-xl: clamp(1.4rem, 1.2rem + 1vw, 1.95rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.15rem);
  --text-3xl: clamp(2.5rem, 1.4rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 1.6rem + 6vw, 7.5rem);

  /* SPACING — 4px base */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
  --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem; --s-32: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ice);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
input { font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--bg); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(var(--s-4), 5vw, var(--s-10)); }

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-8);
  padding: var(--s-4) clamp(var(--s-4), 5vw, var(--s-10));
  background: linear-gradient(to bottom, rgba(10,15,30,0.95), rgba(10,15,30,0.7));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding 0.3s var(--ease);
}
.nav.scrolled { padding-block: var(--s-3); }
.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand svg { filter: drop-shadow(0 0 12px var(--primary-glow)); }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ice); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: var(--s-6); font-size: 0.92rem; }
.nav-links a { color: var(--ice-muted); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  padding: 10px 18px;
  background: var(--primary);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .25s var(--ease);
  box-shadow: 0 4px 20px var(--primary-glow);
}
.nav-cta:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 28px var(--primary-glow); }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 120px clamp(var(--s-4), 5vw, var(--s-16)) var(--s-16);
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 35%, rgba(0,170,255,0.18), transparent 55%),
    radial-gradient(ellipse at 15% 70%, rgba(0,229,255,0.10), transparent 50%),
    linear-gradient(to right, rgba(10,15,30,0.92) 0%, rgba(10,15,30,0.55) 45%, rgba(10,15,30,0.1) 75%, rgba(10,15,30,0.5) 100%),
    linear-gradient(to bottom, transparent 0%, rgba(10,15,30,0.4) 80%, var(--bg) 100%);
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container); width: 100%;
  margin: 0 auto;
  /* Z-pattern terminus: content anchors to LEFT, CTA flows toward RIGHT */
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 8px 14px;
  background: rgba(0,201,122,0.1);
  border: 1px solid rgba(0,201,122,0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--carbon);
  margin-bottom: var(--s-8);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--carbon);
  box-shadow: 0 0 10px var(--carbon);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

.hero-title {
  font-size: var(--text-hero);
  line-height: 1;
  max-width: 16ch;
  margin-bottom: var(--s-6);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.title-accent {
  background: linear-gradient(110deg, var(--primary) 0%, var(--accent) 60%, var(--carbon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--ice-muted);
  max-width: 48ch;
  margin-bottom: var(--s-10);
  line-height: 1.5;
}

.hero-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-16); }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all .25s var(--ease);
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 8px 32px var(--primary-glow);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 12px 40px var(--primary-glow); }
.btn-primary .arrow { transition: transform .25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ice);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--primary); }

.hero-trust {
  display: flex; gap: var(--s-10); flex-wrap: wrap;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 600px;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-n {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.trust-l { font-size: 0.82rem; color: var(--ice-faint); }

.hero-scroll {
  position: absolute;
  bottom: var(--s-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice-faint);
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--ice-faint), transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.5); } }

/* ============== SECTIONS — shared ============== */
section.promise, section.impact, section.stack, section.future, section.power, section.cta-final {
  padding: clamp(var(--s-16), 9vw, var(--s-32)) 0;
  position: relative;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-4);
  padding: 6px 12px;
  background: rgba(0,170,255,0.08);
  border-radius: 999px;
}
.accent-kicker { color: var(--accent); background: rgba(0,229,255,0.08); }

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--s-5);
  max-width: 22ch;
  letter-spacing: -0.03em;
}
.section-title .muted { color: var(--ice-faint); font-weight: 500; }
.section-title .accent-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead {
  font-size: var(--text-lg);
  color: var(--ice-muted);
  max-width: 60ch;
  margin-bottom: var(--s-10);
  line-height: 1.5;
}

/* ============== PROMISE — How it works ============== */
.promise { background: var(--bg); }
.promise-flow {
  margin: var(--s-10) 0 var(--s-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FAFAF7;
  border: 1px solid var(--slate);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.promise-flow img { width: 100%; height: auto; display: block; }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
}
.promise-card {
  background: var(--slate);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  transition: all .3s var(--ease);
  position: relative;
}
.promise-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 16px 48px rgba(0,170,255,0.15);
}
.card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: var(--s-4);
  letter-spacing: 0.1em;
}
.promise-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--s-3);
}
.promise-card p {
  color: var(--ice-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ============== IMPACT ============== */
.impact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.impact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
@media (max-width: 880px) {
  .impact-grid { grid-template-columns: 1fr; gap: var(--s-10); }
}

.impact-text { /* LEFT side — content. Figure faces left (toward content), gaze flows back into text */ }

.impact-list {
  list-style: none;
  margin: var(--s-8) 0 var(--s-10);
  border-top: 1px solid var(--slate-2);
}
.impact-list li {
  display: flex; align-items: baseline; gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--slate-2);
  font-size: 1rem;
  color: var(--ice-muted);
}
.li-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--carbon);
  min-width: 70px;
}

.impact-figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--slate-2);
  aspect-ratio: 3/4;
  box-shadow: 0 30px 80px rgba(0,170,255,0.15);
}
.impact-figure img { width: 100%; height: 100%; object-fit: cover; }
.impact-figure-glow {
  position: absolute;
  inset: -2px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,170,255,0.2), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ============== STACK — Table ============== */
.stack { background: var(--bg-2); }

.filters {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--slate);
  border: 1px solid var(--slate-2);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ice-muted);
  transition: all .2s var(--ease);
}
.chip span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--ice-faint);
}
.chip:hover { color: var(--ice); border-color: var(--primary); }
.chip.active { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.chip.active span { background: rgba(10,15,30,0.2); color: var(--bg); }

.table-wrap {
  background: var(--slate);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
#matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  font-size: 0.92rem;
}
#matrix-table thead th {
  background: var(--bg-2);
  color: var(--ice-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: var(--s-4) var(--s-4);
  border-bottom: 1px solid var(--slate-2);
  position: sticky; top: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, background .2s;
  user-select: none;
}
#matrix-table thead th:hover { color: var(--primary); background: rgba(0,170,255,0.05); }
#matrix-table thead th.num { text-align: center; }
.arrow-i { opacity: 0.4; margin-left: 4px; font-size: 0.7rem; }
#matrix-table thead th.sort-active .arrow-i { opacity: 1; color: var(--primary); }

#matrix-table tbody tr {
  border-bottom: 1px solid var(--slate-2);
  transition: background .2s;
}
#matrix-table tbody tr:hover { background: rgba(0,170,255,0.04); }
#matrix-table tbody tr:last-child { border-bottom: none; }

#matrix-table tbody td {
  padding: var(--s-4);
  vertical-align: middle;
}
#matrix-table td.num { text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.row-name { display: flex; flex-direction: column; gap: 3px; }
.row-name strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ice); }
.row-name small { font-size: 0.78rem; color: var(--ice-faint); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.tag.agentic { background: rgba(0,170,255,0.12); color: var(--primary); border: 1px solid rgba(0,170,255,0.3); }
.tag.web3 { background: rgba(0,201,122,0.12); color: var(--carbon); border: 1px solid rgba(0,201,122,0.3); }

.score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 32px; padding: 0 10px;
  border-radius: 8px;
  font-weight: 700; font-size: 0.92rem;
}
.score-5 { background: rgba(0,201,122,0.18); color: var(--carbon); box-shadow: inset 0 0 0 1px rgba(0,201,122,0.3); }
.score-4 { background: rgba(0,201,122,0.1); color: var(--carbon); }
.score-3 { background: rgba(232,181,71,0.12); color: var(--warm-gold); }
.score-2 { background: rgba(232,181,71,0.08); color: var(--warm-gold); }
.score-1 { background: rgba(255,255,255,0.06); color: var(--ice-faint); }
.score-0 { background: rgba(255,255,255,0.04); color: var(--ice-faint); opacity: 0.6; }
.score.total {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--primary-glow);
  min-width: 48px;
}

.legend-note {
  margin-top: var(--s-5);
  font-size: 0.85rem;
  color: var(--ice-faint);
  font-style: italic;
}

/* ============== FUTURE / GAP ============== */
.future {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.future-bg {
  position: absolute; inset: 0;
  z-index: 0;
  opacity: 0.18;
}
.future-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.future::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%);
  z-index: 1; pointer-events: none;
}
.future-inner { position: relative; z-index: 2; }

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
}
.future-card {
  background: rgba(28,35,51,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  transition: all .3s var(--ease);
}
.future-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.future-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--s-4);
}
.future-card h3 {
  font-size: 1.45rem;
  margin-bottom: var(--s-3);
  color: var(--ice);
}
.future-card p {
  color: var(--ice-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============== POWER / Nano Banana ============== */
.power { background: var(--bg-2); }
.power-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
@media (max-width: 880px) {
  .power-grid { grid-template-columns: 1fr; }
}

.power-stack {
  background: var(--slate);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-lg);
  padding: var(--s-2) var(--s-6);
  margin-top: var(--s-6);
}
.stack-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--slate-2);
}
.stack-row:last-child { border-bottom: none; }
.stack-l { font-size: 0.88rem; color: var(--ice-faint); }
.stack-v { font-family: var(--font-mono); font-size: 0.88rem; color: var(--ice); font-weight: 700; }

.power-figure {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--slate-2);
  box-shadow: 0 30px 80px rgba(0,170,255,0.12);
}
.power-figure img { width: 100%; height: auto; display: block; }

/* ============== CTA FINAL ============== */
.cta-final {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  text-align: center;
  position: relative;
}
.cta-final::before {
  content: "";
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 90%; max-width: 800px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.cta-title {
  font-size: var(--text-3xl);
  margin: 0 auto var(--s-5);
  max-width: 18ch;
  letter-spacing: -0.035em;
}
.cta-sub {
  font-size: var(--text-lg);
  color: var(--ice-muted);
  max-width: 50ch;
  margin: 0 auto var(--s-10);
}

.cta-form {
  display: flex; gap: var(--s-2);
  max-width: 520px;
  margin: 0 auto var(--s-4);
  padding: 6px;
  background: var(--slate);
  border: 1px solid var(--slate-2);
  border-radius: 999px;
  transition: border-color .25s var(--ease);
}
.cta-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.cta-form input {
  flex: 1;
  padding: 12px 18px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ice);
  font-size: 1rem;
}
.cta-form input::placeholder { color: var(--ice-faint); }
.cta-form button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--primary);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.cta-form button:hover { background: var(--primary-hover); }

.cta-msg {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--carbon);
  opacity: 0;
  margin-bottom: var(--s-4);
  transition: opacity .4s var(--ease);
}
.cta-msg.show { opacity: 1; }

.cta-meta {
  display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ice-faint);
}

/* ============== FOOTER ============== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--slate-2);
  padding: var(--s-16) 0 var(--s-6);
}
.footer-inner { display: flex; flex-direction: column; gap: var(--s-10); }
.footer-brand {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-8);
}
.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: var(--s-4);
}
.footer-cols a {
  display: block;
  color: var(--ice-muted);
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color .2s;
}
.footer-cols a:hover { color: var(--ice); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  padding-top: var(--s-6);
  border-top: 1px solid var(--slate-2);
  font-size: 0.82rem;
  color: var(--ice-faint);
}
.footer-mono { font-family: var(--font-mono); }

/* ============================================================
   FLOW SYSTEM — electric current animations, reciprocity meter,
   architecture diagram, page-level patterns shared across all pages
============================================================ */

/* ----- Reciprocity strip (home page band under hero) ----- */
.recip-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--slate-2);
  border-bottom: 1px solid var(--slate-2);
  padding: var(--s-10) 0 var(--s-12);
  position: relative;
  overflow: hidden;
}
.recip-strip::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.08), transparent 70%);
  pointer-events: none;
}
.recip-strip-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
@media (max-width: 760px) {
  .recip-strip-inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .recip-strip-mid { order: 2; }
}
.recip-strip-side { display: flex; flex-direction: column; gap: var(--s-2); }
.recip-strip-side.right { text-align: right; align-items: flex-end; }
@media (max-width: 760px) {
  .recip-strip-side.right { text-align: left; align-items: flex-start; }
}
.recip-strip-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.recip-strip-kicker.positive { color: var(--carbon); }
.recip-strip-l {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ice);
}
.recip-strip-mid {
  display: flex; align-items: center; gap: var(--s-3);
}
.recip-strip-mid .flow-line { flex: 1; }
.recip-strip-mid-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ice-muted);
  white-space: nowrap;
}
.recip-strip-note {
  font-size: 0.95rem;
  color: var(--ice-muted);
  max-width: 64ch;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* ----- Animated electric current line ----- */
.flow-line {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--slate-2) 20%, var(--slate-2) 80%, transparent);
  overflow: hidden;
}
.flow-line::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 80px; height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  filter: blur(1px);
  animation: flow-pulse 3s linear infinite;
  box-shadow: 0 0 12px var(--accent);
}
@keyframes flow-pulse {
  0%   { left: -80px; }
  100% { left: 100%; }
}

/* ----- Reciprocity meter ----- */
.recip-meter {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--slate);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-md);
}
.recip-meter .recip-l { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ice-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.recip-meter .recip-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.recip-meter .recip-fill {
  position: absolute; top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--carbon));
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.6s var(--ease);
}
.recip-meter .recip-fill::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 30px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
  animation: recip-shimmer 2s ease-in-out infinite;
}
@keyframes recip-shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.recip-meter .recip-v { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--carbon); min-width: 60px; text-align: right; }

/* ----- Architecture diagram boxes ----- */
.arch {
  display: grid;
  gap: var(--s-6);
  margin: var(--s-10) 0;
}
.arch-node {
  background: var(--slate);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-6);
  position: relative;
  transition: all 0.25s var(--ease);
}
.arch-node:hover { border-color: var(--primary); }
.arch-node h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ice);
  margin-bottom: var(--s-2);
}
.arch-node p { font-size: 0.92rem; color: var(--ice-muted); line-height: 1.55; }
.arch-node .arch-tag {
  position: absolute;
  top: var(--s-3); right: var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.arch-arrow {
  display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: var(--s-2) 0;
}
.arch-arrow::before, .arch-arrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.arch-arrow span { padding: 0 var(--s-3); }
.arch-arrow.reverse { color: var(--carbon); }
.arch-arrow.reverse::before, .arch-arrow.reverse::after { background: linear-gradient(90deg, transparent, var(--carbon), transparent); }

/* ----- Page hero (smaller than landing hero) ----- */
.page-hero {
  padding: 140px clamp(var(--s-4), 5vw, var(--s-10)) var(--s-16);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--slate-2);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(0,170,255,0.12), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
  max-width: 18ch;
}
.page-hero h1 .title-accent {
  background: linear-gradient(110deg, var(--primary), var(--accent), var(--carbon));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { font-size: var(--text-lg); color: var(--ice-muted); max-width: 60ch; line-height: 1.5; }

/* ----- Stat tile (used in dashboard) ----- */
.stat-tile {
  background: var(--slate);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.stat-tile .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice-faint);
  margin-bottom: var(--s-3);
}
.stat-tile .stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: var(--s-2);
  white-space: nowrap;
}
.stat-tile .stat-value.positive { color: var(--carbon); }
.stat-tile .stat-sub { font-size: 0.85rem; color: var(--ice-muted); }
.stat-tile .stat-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--carbon);
  margin-top: var(--s-3);
  padding: 3px 8px;
  background: rgba(0,201,122,0.1);
  border-radius: 999px;
}

/* ----- Two column layout (used everywhere) ----- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: var(--s-8); } }

/* ----- Code-like spec block ----- */
.spec {
  background: var(--bg-2);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-md);
  padding: var(--s-5) var(--s-6);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ice-muted);
  line-height: 1.7;
}
.spec .spec-k { color: var(--accent); }
.spec .spec-v { color: var(--ice); }
.spec .spec-c { color: var(--ice-faint); }

/* ----- Page section (used by all subpages) ----- */
.page-section {
  padding: clamp(var(--s-12), 7vw, var(--s-24)) 0;
}
.page-section + .page-section { border-top: 1px solid var(--slate-2); }

/* ----- Inline lightning bullets ----- */
.bolt-list { list-style: none; }
.bolt-list li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) 0;
  font-size: 0.98rem;
  color: var(--ice-muted);
  line-height: 1.55;
}
.bolt-list li::before {
  content: "⚡";
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ----- Page nav active state ----- */
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px; width: 100%;
  background: var(--primary);
  margin-top: 2px;
  box-shadow: 0 0 8px var(--primary);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 640px) {
  .hero { padding: 100px var(--s-4) var(--s-12); }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .hero-trust { gap: var(--s-5); }
  .trust-n { font-size: 1.4rem; }
  .cta-form { flex-direction: column; border-radius: var(--radius-lg); padding: var(--s-3); }
  .cta-form button { width: 100%; justify-content: center; }
}
