/* ============================================================
   Omnicore — Sistema de tokens
   Dark default, light alterno. Cool blacks, one cyan accent.
============================================================ */

:root {
  /* dark (primary) */
  --bg-0: #06080B;
  --bg-1: #0B0F14;
  --bg-2: #11171E;
  --bg-3: #171F29;
  --bg-elev: #1B2531;

  --line-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text-hi: #E7EEF5;
  --text: #B7C2CE;
  --text-mid: #8593A2;
  --text-lo: #525E6B;
  --text-faint: #313945;

  --accent: oklch(0.84 0.13 195);
  --accent-2: oklch(0.74 0.15 198);
  --accent-soft: oklch(0.84 0.13 195 / 0.14);
  --accent-line: oklch(0.84 0.13 195 / 0.32);
  --accent-text: oklch(0.92 0.08 195);

  --ok: oklch(0.78 0.16 155);
  --ok-soft: oklch(0.78 0.16 155 / 0.15);
  --warn: oklch(0.83 0.14 78);
  --warn-soft: oklch(0.83 0.14 78 / 0.14);
  --danger: oklch(0.7 0.18 25);

  --grid-color: rgba(255, 255, 255, 0.035);
  --grid-color-strong: rgba(255, 255, 255, 0.07);
  --noise-opacity: 0.045;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.35);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 12px 32px -12px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 0 30px -8px var(--accent-soft);

  --font-sans: "Geist", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --nav-h: 60px;
  --content-max: 1240px;
}

[data-theme="light"] {
  --bg-0: #F4F5F7;
  --bg-1: #FFFFFF;
  --bg-2: #FBFBFC;
  --bg-3: #F2F3F5;
  --bg-elev: #FFFFFF;

  --line-soft: rgba(10, 15, 20, 0.05);
  --line: rgba(10, 15, 20, 0.09);
  --line-strong: rgba(10, 15, 20, 0.16);

  --text-hi: #0B0F14;
  --text: #2E3742;
  --text-mid: #5A6675;
  --text-lo: #8390A0;
  --text-faint: #B8C2CE;

  --accent: oklch(0.62 0.13 200);
  --accent-2: oklch(0.55 0.14 200);
  --accent-soft: oklch(0.62 0.13 200 / 0.10);
  --accent-line: oklch(0.62 0.13 200 / 0.32);
  --accent-text: oklch(0.45 0.14 200);

  --ok: oklch(0.55 0.16 155);
  --ok-soft: oklch(0.55 0.16 155 / 0.12);
  --warn: oklch(0.62 0.14 65);
  --warn-soft: oklch(0.62 0.14 65 / 0.12);

  --grid-color: rgba(10, 15, 20, 0.04);
  --grid-color-strong: rgba(10, 15, 20, 0.08);
  --noise-opacity: 0.025;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(15,20,30,0.06);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.8) inset, 0 18px 40px -16px rgba(15,20,30,0.16);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 0 40px -10px var(--accent-soft);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg-0);
  color-scheme: dark;
}
[data-theme="light"] html { color-scheme: light; }

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "calt";
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--text-hi); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 { color: var(--text-hi); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-weight: 480; letter-spacing: -0.035em; line-height: 1.02; }
p { margin: 0; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01", "ss02"; }

/* ===== Layout shell ===== */
.page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* === Signal-field background ===
   Two off-canvas "sources" emit concentric arcs (like radio coverage
   isobars), crossed by faint diagonal traces. No square grid. */
.bg-layers::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    repeating-radial-gradient(
      circle at 100% 0%,
      transparent 0,
      transparent 88px,
      var(--grid-color-strong) 88px,
      var(--grid-color-strong) 89px
    ),
    repeating-radial-gradient(
      circle at 0% 100%,
      transparent 0,
      transparent 116px,
      var(--grid-color) 116px,
      var(--grid-color) 117px
    );
  mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 35%, transparent 90%);
  animation: bg-drift 28s ease-in-out infinite alternate;
}

.bg-layers::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* primary accent glow, top-right (the "broadcaster") */
    radial-gradient(circle 480px at 92% 6%, var(--accent-soft), transparent 70%),
    /* secondary cooler glow, bottom-left (the "receiver") */
    radial-gradient(circle 600px at 8% 88%, oklch(0.7 0.13 220 / 0.10), transparent 70%),
    /* faint horizontal "channel" band across upper third */
    linear-gradient(180deg, transparent 22%, oklch(0.84 0.13 195 / 0.04) 30%, transparent 38%);
  opacity: 0.95;
}

/* Decorative source markers — small luminous nodes at the two
   geometric centers (top-right and bottom-left). They pulse softly. */
.bg-source {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: var(--accent);
  box-shadow:
    0 0 10px var(--accent),
    0 0 28px oklch(0.84 0.13 195 / 0.4);
  animation: source-pulse 3.2s ease-in-out infinite;
}
.bg-source.tr { top: 6%; right: 8%; animation-delay: 0s; }
.bg-source.bl {
  bottom: 12%; left: 8%;
  background: oklch(0.74 0.1 220);
  box-shadow: 0 0 10px oklch(0.74 0.1 220), 0 0 28px oklch(0.74 0.1 220 / 0.4);
  animation-delay: 1.6s;
}

@keyframes source-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

@keyframes bg-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-1.5%, -1%) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-layers::before { animation: none; }
  .bg-source { animation: none; }
}
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.85'/></svg>");
  mix-blend-mode: overlay;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 18px; } }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg-0) 78%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.nav-inner {
  width: 100%; max-width: var(--content-max);
  margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
}
@media (max-width: 720px) { .nav-inner { padding: 0 18px; gap: 12px; } }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--text-hi);
  font-size: 15px;
}
.brand-mark {
  width: 39px; height: 39px;
  filter: drop-shadow(0 0 8px var(--accent-soft));
}
.brand-sup {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-lo);
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 4px;
  justify-content: center;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-mid);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text-hi); background: var(--line-soft); }
@media (max-width: 920px) { .nav-links { display: none; } }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.theme-toggle {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text-mid);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--text-hi); border-color: var(--line-strong); background: var(--line-soft); }

/* ===== Language switcher ===== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  gap: 0;
}
.lang-switcher .lang-opt {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px;
  min-width: 30px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-lo);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang-switcher .lang-opt:hover { color: var(--text-mid); }
.lang-switcher .lang-opt.active {
  color: var(--text-hi);
  background: var(--line-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 520px) {
  .lang-switcher .lang-opt { min-width: 26px; padding: 0 6px; font-size: 10.5px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.15s, color 0.15s, box-shadow 0.2s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #06141A;
  font-weight: 600;
  box-shadow:
    0 0 0 1px var(--accent-line) inset,
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 8px 24px -10px var(--accent-soft);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent-line) inset, 0 1px 0 rgba(255,255,255,0.3) inset, 0 14px 32px -10px oklch(0.84 0.13 195 / 0.5); }
[data-theme="light"] .btn-primary { color: #FFFFFF; }

.btn-ghost {
  color: var(--text-hi);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-1) 60%, transparent);
}
.btn-ghost:hover { border-color: var(--line-strong); background: var(--bg-1); }

.btn-lg { padding: 13px 18px; font-size: 14.5px; border-radius: 10px; }

/* ===== Tags & chips ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-1) 50%, transparent);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  white-space: nowrap;
}
.chip-ok { color: var(--ok); border-color: oklch(0.78 0.16 155 / 0.3); background: var(--ok-soft); }
.chip-accent { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
.chip-warn { color: var(--warn); border-color: oklch(0.83 0.14 78 / 0.3); background: var(--warn-soft); }

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text-mid);
}

/* ===== Section base ===== */
section { position: relative; }
.section { padding: 110px 0; }
.section-sm { padding: 80px 0; }
@media (max-width: 720px) { .section { padding: 70px 0; } .section-sm { padding: 56px 0; } }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-top: 14px;
}
.section-head p {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--text-mid);
  max-width: 60ch;
  line-height: 1.55;
}

.divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent);
}

/* ===== Cards ===== */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  position: relative;
}
.card-sub {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-label {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  text-transform: uppercase;
}
.panel-label .dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

/* ===== Hero ===== */
.hero {
  padding-top: 56px;
  padding-bottom: 120px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.hero-eyebrow-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text-hi);
  font-weight: 480;
}
.hero h1 .accent-line {
  background: linear-gradient(180deg, var(--accent-text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 26px;
  font-size: 17.5px;
  color: var(--text-mid);
  max-width: 56ch;
  line-height: 1.55;
}
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  list-style: none; padding: 0;
  margin: 38px 0 0;
  display: flex; flex-direction: column; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-lo);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .bar { width: 18px; height: 1px; background: var(--line-strong); display: inline-block; flex-shrink: 0; }

/* ===== Scene (the hero animated visual) ===== */
.scene {
  position: relative;
  aspect-ratio: 11 / 10;
  width: 100%;
}
@media (max-width: 1080px) { .scene { aspect-ratio: 1 / 1; max-width: 640px; margin: 0 auto; } }
@media (max-width: 520px) { .scene { aspect-ratio: 5 / 6; } }

.scene-frame {
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, oklch(0.84 0.13 195 / 0.10), transparent 70%),
    var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.scene-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-color-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color-strong) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 30%, transparent 80%);
  opacity: 0.7;
}

.scene-label {
  position: absolute;
  top: 14px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lo);
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
}
.scene-label .corner {
  width: 8px; height: 8px; border-top: 1px solid var(--text-mid); border-left: 1px solid var(--text-mid);
}
.scene-label-r {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-lo);
  z-index: 2;
}

/* command-center panel */
.cc {
  position: absolute;
  left: 20px; top: 50px; bottom: 20px;
  width: 56%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 2;
}
.cc-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.cc-dots { display: flex; gap: 5px; }
.cc-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.cc-tab {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--text-mid); padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  margin-left: 6px;
}
.cc-body { display: grid; grid-template-columns: 110px 1fr; min-height: 0; flex: 1; }
.cc-side {
  border-right: 1px solid var(--line);
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 4px;
  background: color-mix(in oklab, var(--bg-2) 96%, var(--bg-3));
}
.cc-side-item {
  font-size: 11px;
  color: var(--text-mid);
  padding: 5px 7px;
  border-radius: 5px;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid transparent;
}
.cc-side-item.active { background: var(--bg-1); color: var(--text-hi); border-color: var(--line); }
.cc-side-item .badge {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 9.5px;
  padding: 1px 4px; border-radius: 3px;
  background: var(--accent-soft); color: var(--accent-text);
}
.cc-side-section {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  color: var(--text-lo); text-transform: uppercase;
  padding: 8px 7px 2px;
}

.cc-main {
  display: grid; grid-template-rows: auto 1fr auto;
  min-height: 0;
}
.cc-thread-head {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
}
.avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.74 0.1 220), oklch(0.55 0.1 240));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.cc-thread-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cc-thread-meta .name { font-size: 12px; color: var(--text-hi); font-weight: 500; }
.cc-thread-meta .sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); }

.cc-thread {
  padding: 14px 12px; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  background:
    radial-gradient(circle at 1px 1px, var(--line-soft) 1px, transparent 0) 0 0 / 16px 16px,
    var(--bg-1);
  min-height: 0;
  position: relative;
}
.msg {
  display: flex; gap: 8px;
  max-width: 78%;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.msg.in { opacity: 1; transform: translateY(0); }
.msg.from { align-self: flex-start; }
.msg.to { align-self: flex-end; flex-direction: row-reverse; }
.bubble {
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-hi);
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
}
.msg.to .bubble {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text);
}
.bubble .stamp {
  display: block;
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--text-lo); margin-top: 3px;
  letter-spacing: 0.04em;
}
.msg.to .bubble .stamp { color: oklch(0.84 0.13 195 / 0.7); }

.msg.system {
  align-self: center;
  font-family: var(--font-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-lo);
  display: flex; align-items: center; gap: 8px;
  max-width: none;
}
.msg.system .line { height: 1px; width: 24px; background: var(--line); }

.cc-input {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  font-size: 11.5px;
  color: var(--text-lo);
}
.cc-input .ph { flex: 1; font-family: var(--font-mono); font-size: 10.5px; }
.cc-input .ic {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

/* Phone(s) on right */
.phone-stack {
  position: absolute;
  right: 22px; top: 50px; bottom: 20px;
  width: 38%;
  display: flex; align-items: stretch; justify-content: center;
  z-index: 3;
}
.phone {
  position: absolute;
  width: 78%;
  aspect-ratio: 9 / 18.5;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 8px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), opacity 0.4s;
}
.phone-android { top: 0; left: -8%; transform: rotate(-3deg) translateY(0); z-index: 1; opacity: 0.85; }
.phone-ios { top: 6%; right: -2%; transform: rotate(3deg); z-index: 2; }
@media (max-width: 1080px) {
  .phone-android { left: 2%; transform: rotate(-4deg); }
  .phone-ios { right: 2%; transform: rotate(4deg); }
}

.phone-screen {
  width: 100%; height: 100%;
  border-radius: 20px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-notch {
  height: 16px;
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.phone-notch::before {
  content: ""; width: 36%; height: 11px;
  background: #000;
  border-radius: 0 0 9px 9px;
}
.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--text-mid);
  margin-top: -10px;
  height: 12px;
}
.phone-status .right { display: flex; gap: 4px; align-items: center; }
.phone-status .right .battery {
  width: 14px; height: 7px;
  border: 1px solid var(--text-mid); border-radius: 2px;
  position: relative;
}
.phone-status .right .battery::after {
  content: ""; position: absolute; left: 1px; top: 1px; bottom: 1px;
  width: 60%; background: var(--ok); border-radius: 1px;
}

.phone-app-head {
  padding: 10px 12px 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.phone-app-head .title {
  font-size: 13px; color: var(--text-hi); font-weight: 600;
  letter-spacing: -0.01em;
}
.phone-app-head .sub {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-lo);
}

.phone-body {
  flex: 1; padding: 4px 8px 8px;
  display: flex; flex-direction: column; gap: 5px;
  overflow: hidden;
}
.lead-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.lead-row.active { background: var(--accent-soft); border-color: var(--accent-line); }
.lead-row .nm { font-size: 11px; color: var(--text-hi); font-weight: 500; line-height: 1.1; }
.lead-row .sr { font-family: var(--font-mono); font-size: 9px; color: var(--text-lo); margin-top: 2px; }
.lead-row .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, oklch(0.7 0.1 25), oklch(0.55 0.13 30)); flex-shrink: 0; }
.lead-row .av.b { background: linear-gradient(135deg, oklch(0.7 0.1 140), oklch(0.5 0.13 160)); }
.lead-row .av.c { background: linear-gradient(135deg, oklch(0.72 0.1 280), oklch(0.5 0.13 300)); }

.lead-row .status {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--text-lo);
}
.lead-row.active .status { color: var(--accent-text); }

.phone-callbar {
  margin: 8px; padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
}
.phone-callbar.active { background: oklch(0.78 0.16 155 / 0.1); border-color: oklch(0.78 0.16 155 / 0.3); }
.phone-callbar .call-av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, oklch(0.7 0.12 30), oklch(0.5 0.13 20)); position: relative; }
.phone-callbar .call-av::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0;
  animation: ring-pulse 1.8s ease-out infinite;
}
.phone-callbar.active .call-av::after { opacity: 1; }
.phone-callbar .nm { font-size: 11.5px; color: var(--text-hi); font-weight: 500; }
.phone-callbar .ts { font-family: var(--font-mono); font-size: 10px; color: var(--ok); }
.phone-callbar .btn-call {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ok); color: #062;
  display: inline-flex; align-items: center; justify-content: center;
}

@keyframes ring-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* journey overlay arc */
.scene-arc {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 4;
}
.scene-arc svg { width: 100%; height: 100%; }

.scene-bottom {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  height: auto;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  z-index: 5;
}
@media (max-width: 720px) {
  .scene-bottom { grid-template-columns: repeat(3, 1fr); }
}
.journey-step {
  padding: 8px 10px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  transition: background 0.35s ease, color 0.35s ease;
}
.journey-step .n { color: var(--text-lo); font-size: 9px; }
.journey-step.active { background: var(--accent-soft); color: var(--accent-text); }
.journey-step.active .n { color: var(--accent); }
.journey-step.done { color: var(--ok); }
.journey-step.done .n { color: oklch(0.78 0.16 155 / 0.7); }

/* ===== Section: Narrative demo (scroll-triggered) ===== */
.narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}
@media (max-width: 980px) { .narrative-grid { grid-template-columns: 1fr; gap: 36px; } }

.narrative-steps {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: flex; flex-direction: column; gap: 6px;
}
@media (max-width: 980px) { .narrative-steps { position: static; } }

.narrative-step {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  align-items: flex-start;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
}
.narrative-step .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-lo);
  letter-spacing: 0.06em;
  padding-top: 3px;
}
.narrative-step h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.3s;
}
.narrative-step p {
  font-size: 13.5px;
  color: var(--text-lo);
  margin-top: 6px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s;
  opacity: 0;
}
.narrative-step.active {
  background: var(--bg-1);
  border-color: var(--line);
}
.narrative-step.active h3 { color: var(--text-hi); }
.narrative-step.active p { max-height: 120px; opacity: 1; }
.narrative-step.active .n { color: var(--accent); }

/* Barra regresiva del paso activo (autoavance temporal) */
.step-progress {
  margin-top: 12px;
  height: 2px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}
.step-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform-origin: left center;
  animation: step-countdown 6s linear forwards;
}
@keyframes step-countdown {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.narrative-stage {
  position: sticky; top: calc(var(--nav-h) + 24px);
  aspect-ratio: 4 / 5;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: flex; flex-direction: column;
}
@media (max-width: 980px) { .narrative-stage { position: static; aspect-ratio: 3 / 4; } }

.stage-frame-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-lo);
}
.stage-body {
  flex: 1;
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, var(--line-soft) 1px, transparent 0) 0 0 / 18px 18px,
    var(--bg-1);
  overflow: hidden;
}
.stage-card {
  position: absolute;
  opacity: 0; transform: translateY(20px) scale(0.96);
  transition: opacity 0.5s, transform 0.5s;
}
.stage-card.show { opacity: 1; transform: translateY(0) scale(1); }

/* ===== Differentiation block ===== */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--shadow-2);
}
@media (max-width: 820px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-cell {
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.diff-cell + .diff-cell { border-left: 1px solid var(--line); }
@media (max-width: 820px) { .diff-cell + .diff-cell { border-left: 0; border-top: 1px solid var(--line); } }
.diff-cell.is-them { background: var(--bg-1); }
.diff-cell.is-us {
  background:
    radial-gradient(ellipse 80% 100% at 80% 0%, oklch(0.84 0.13 195 / 0.06), transparent 70%),
    var(--bg-1);
}
.diff-cell h3 { font-size: 18px; }
.diff-cell ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 9px; }
.diff-cell li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14px; line-height: 1.45; }
.diff-cell li::before {
  content: ""; width: 8px; height: 8px; margin-top: 7px;
  border-radius: 2px;
  background: var(--text-faint);
}
.diff-cell.is-us li::before { background: var(--accent); box-shadow: 0 0 8px var(--accent-soft); }

/* ===== Mobile + Calls section ===== */
.mc-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1020px) { .mc-grid { grid-template-columns: 1fr; gap: 48px; } }

.mc-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, oklch(0.7 0.13 200 / 0.06), transparent 70%),
    var(--bg-1);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.mc-stage::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-color-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 30%, transparent 80%);
}

.feature-list {
  display: flex; flex-direction: column; gap: 22px;
  margin-top: 30px;
}
.feature-list .feat {
  display: grid; grid-template-columns: 26px 1fr; gap: 16px;
}
.feature-list .feat .ic {
  width: 22px; height: 22px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  margin-top: 2px;
}
.feature-list .feat h4 { font-size: 15.5px; color: var(--text-hi); font-weight: 500; letter-spacing: -0.01em; }
.feature-list .feat p { font-size: 14px; color: var(--text-mid); margin-top: 4px; line-height: 1.5; }

/* call routing diagram */
.routing {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 28px;
  gap: 16px;
}
.routing-stage-label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-lo);
  display: flex; align-items: center; gap: 8px;
}
.routing-stage-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.route-line { flex: 1; position: relative; min-height: 0; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.route-node {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: var(--shadow-1);
  z-index: 2;
}
.route-node .ic {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.route-node .num {
  font-family: var(--font-mono);
  color: var(--text-hi);
  font-size: 13px;
}
.route-node .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-lo);
  display: block;
  margin-top: 2px;
}

/* Flash coreografiado del ruteo: Lucía → hub → Camila.
   Ciclo total 4s. Cada tarjeta hace flash en el momento en que llega la pelota:
   Lucía a 0%, hub a 40% (delay -2.4s), CR-08 a 80% (delay -0.8s). */
.route-node--flash {
  animation: rt-flash 4s ease-out infinite;
}
.route-node--flash-lead   { animation-delay: 0s;    }
.route-node--flash-hub    { animation-delay: -2.4s; }
.route-node--flash-target { animation-delay: -0.8s; }

@keyframes rt-flash {
  0%, 100% {
    box-shadow: var(--shadow-1);
  }
  1% {
    box-shadow:
      var(--shadow-1),
      0 0 0 1.5px oklch(0.84 0.13 195 / 0.85),
      0 0 32px 4px oklch(0.84 0.13 195 / 0.55);
  }
  12% {
    box-shadow: var(--shadow-1);
  }
}

/* El hub conserva su accent-line como base; el flash ya añade su propio anillo
   por encima vía box-shadow, así que no tocamos border-color. */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 920px) { .ai-grid { grid-template-columns: 1fr; } }

.ai-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.ai-card .header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.ai-card h3 { font-size: 19px; }
.ai-card p { font-size: 14px; color: var(--text-mid); line-height: 1.55; max-width: 50ch; }

.ai-card-vis {
  margin-top: 24px;
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 200px;
  overflow: hidden;
}

/* voice agent waveform */
.wave {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  height: 60px; margin: 16px 0 8px;
}
.wave i {
  display: block; width: 3px;
  background: var(--accent);
  border-radius: 2px;
  height: 30%;
  animation: wave-bounce 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent-soft);
}
.wave i:nth-child(1)  { animation-delay: 0.0s; }
.wave i:nth-child(2)  { animation-delay: 0.05s; }
.wave i:nth-child(3)  { animation-delay: 0.1s; }
.wave i:nth-child(4)  { animation-delay: 0.15s; }
.wave i:nth-child(5)  { animation-delay: 0.2s; }
.wave i:nth-child(6)  { animation-delay: 0.25s; }
.wave i:nth-child(7)  { animation-delay: 0.3s; }
.wave i:nth-child(8)  { animation-delay: 0.2s; }
.wave i:nth-child(9)  { animation-delay: 0.15s; }
.wave i:nth-child(10) { animation-delay: 0.1s; }
.wave i:nth-child(11) { animation-delay: 0.05s; }
.wave i:nth-child(12) { animation-delay: 0.1s; }
.wave i:nth-child(13) { animation-delay: 0.15s; }
.wave i:nth-child(14) { animation-delay: 0.2s; }
.wave i:nth-child(15) { animation-delay: 0.25s; }
.wave i:nth-child(16) { animation-delay: 0.3s; }
.wave i:nth-child(17) { animation-delay: 0.2s; }
.wave i:nth-child(18) { animation-delay: 0.15s; }
.wave i:nth-child(19) { animation-delay: 0.1s; }
.wave i:nth-child(20) { animation-delay: 0.05s; }
@keyframes wave-bounce {
  0%, 100% { height: 20%; opacity: 0.6; }
  50% { height: 90%; opacity: 1; }
}

/* ===== Scoring section ===== */
.scoring-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: stretch;
}
@media (max-width: 980px) { .scoring-grid { grid-template-columns: 1fr; } }

.score-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column;
}
.score-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.score-av {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.72 0.12 30), oklch(0.5 0.13 20));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.score-av img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.score-name { font-size: 16px; color: var(--text-hi); font-weight: 500; }
.score-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-lo); margin-top: 2px; letter-spacing: 0.04em; }
.score-big {
  text-align: right;
}
.score-big .v {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--text-hi);
  letter-spacing: -0.03em;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.score-big .v .over { color: var(--text-lo); font-size: 18px; font-weight: 400; }

.score-radar {
  margin: 12px auto;
  width: 100%; max-width: 380px;
  aspect-ratio: 1 / 1;
}

.score-side {
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}
.score-tile {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.score-tile .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lo);
}
.score-tile .val {
  margin-top: 8px;
  display: flex; align-items: baseline; gap: 8px;
  font-size: 24px; color: var(--text-hi); letter-spacing: -0.02em;
  font-weight: 500;
}
.score-tile .val .delta { font-family: var(--font-mono); font-size: 12px; color: var(--ok); }
.score-tile .val .delta.bad { color: var(--warn); }
.score-tile p { font-size: 13px; color: var(--text-mid); margin-top: 6px; line-height: 1.4; }

.coach {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.coach .label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.coach .label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.coach p { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.coach .quote {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent-line);
  border-radius: 0 6px 6px 0;
  font-size: 12.5px; color: var(--text-mid);
  font-style: italic;
}

/* ===== Funnel section ===== */
.funnel-wrap {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-2);
  margin-top: 30px;
}

.funnel-v {
  display: flex; flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 8px auto 0;
  width: 100%;
  max-width: 720px;
}
.funnel-slab {
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  position: relative;
  transition: border-color 0.5s, background 0.5s, width 0.6s cubic-bezier(.2,.7,.2,1);
  box-shadow: var(--shadow-1);
}
.funnel-slab.is-target {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, var(--accent-soft), oklch(0.84 0.13 195 / 0.05)),
    var(--bg-2);
  box-shadow:
    var(--shadow-1),
    0 0 0 1px var(--accent-line),
    0 0 32px -8px var(--accent-soft);
}
.slab-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-lo);
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-1);
}
.is-target .slab-num { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
.slab-name {
  font-size: 14.5px;
  color: var(--text-hi);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.slab-v {
  font-size: 19px;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}
.is-target .slab-v { color: var(--accent-text); }
.slab-rate {
  font-size: 12px;
  color: var(--text-mid);
  min-width: 48px;
  text-align: right;
}
.funnel-drop {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  margin: 0 auto;
  padding: 4px 0;
  color: var(--text-lo);
}
.drop-rate {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-lo);
}
.drop-arrow {
  width: 14px; height: 18px;
  color: var(--text-mid);
  opacity: 0.7;
}
.funnel-slab + .funnel-drop + .funnel-slab.is-target ~ * { }

@media (max-width: 720px) {
  .funnel-slab {
    width: 100% !important;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 14px 16px;
  }
  .slab-rate { display: none; }
}

.campaign-row {
  display: grid;
  grid-template-columns: 1fr 0.5fr 0.5fr 0.6fr 0.7fr;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  align-items: center;
}
.campaign-row.head { color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10.5px; }
.campaign-row .src { font-family: var(--font-sans); color: var(--text-hi); font-size: 13px; }
.campaign-row .src .tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-lo);
  display: block; margin-top: 2px;
  letter-spacing: 0.04em;
}
.campaign-row .v { color: var(--text-hi); }
.campaign-row .v.up { color: var(--ok); }
.campaign-row .v.down { color: var(--warn); }
@media (max-width: 720px) {
  .campaign-row { grid-template-columns: 1fr auto; }
  .campaign-row > *:nth-child(n+4) { display: none; }
  .campaign-row.head > *:nth-child(n+4) { display: none; }
}

.capi-bar {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
}
.capi-bar .lab {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.08em;
}
.capi-bar .flow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text);
  flex-wrap: wrap;
}
.capi-bar .flow .node { color: var(--text-hi); padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-1); }
.capi-bar .flow .arrow { color: var(--accent); }
.capi-bar .pulse {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 6px;
}
.capi-bar .pulse::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: dot-pulse 1.6s ease-in-out infinite;
}

/* ===== Capabilities grid ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--shadow-2);
}
@media (max-width: 920px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cap-grid { grid-template-columns: 1fr; } }

.cap-cell {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 130px;
  position: relative;
  background: var(--bg-1);
  transition: background 0.2s;
}
.cap-cell:nth-child(4n) { border-right: 0; }
@media (max-width: 920px) {
  .cap-cell { border-right: 1px solid var(--line); }
  .cap-cell:nth-child(2n) { border-right: 0; }
}
.cap-cell .top {
  display: flex; align-items: center; gap: 10px;
}
.cap-cell .ic {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-mid);
}
.cap-cell h4 {
  font-size: 14.5px; color: var(--text-hi); font-weight: 500;
  letter-spacing: -0.01em;
}
.cap-cell p { font-size: 12.5px; color: var(--text-mid); line-height: 1.45; }
.cap-cell .stat {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-lo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== Final CTA ===== */
.final-cta {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-1);
  box-shadow: var(--shadow-2);
  text-align: center;
  overflow: hidden;
}
@media (max-width: 720px) { .final-cta { padding: 44px 24px; } }
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-color-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color-strong) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 20%, transparent 80%);
  opacity: 0.45;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 18px auto 0;
  max-width: 18ch;
}
.final-cta p {
  margin: 18px auto 0;
  color: var(--text-mid);
  font-size: 16px;
  max-width: 50ch;
}
.final-cta .ctas {
  margin-top: 32px;
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* Direct contact channels under the CTA */
.contact-channels {
  margin: 22px auto 0;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
}
.contact-channels .ch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  color: var(--text-hi);
  text-decoration: none;
  transition: color 0.15s ease;
}
.contact-channels .ch:hover { color: var(--accent-text, var(--text-hi)); }
.contact-channels .ch-ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-mid);
}
.contact-channels .ch:hover .ch-ico { color: var(--text-hi); border-color: var(--text-lo); }
.contact-channels .ch-col {
  display: flex; flex-direction: column; gap: 1px; text-align: left;
}
.contact-channels .ch-lab {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-lo);
}
.contact-channels .ch-val {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-hi);
}
.contact-channels .ch-sep {
  width: 1px; height: 26px; background: var(--line);
}
@media (max-width: 540px) {
  .contact-channels {
    flex-direction: column;
    gap: 10px;
    border-radius: 16px;
    padding: 14px 18px;
  }
  .contact-channels .ch-sep { width: 60%; height: 1px; }
}

.cta-preview {
  margin: 36px auto 0;
  max-width: 380px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  box-shadow: var(--shadow-1);
}
.cta-preview .row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 4px;
}
.cta-preview .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ok); display: inline-flex; align-items: center; justify-content: center;
  color: #051a10; font-weight: 700; font-size: 12px;
}
.cta-preview .nm { font-size: 13px; color: var(--text-hi); font-weight: 500; }
.cta-preview .st { font-family: var(--font-mono); font-size: 10px; color: var(--ok); }
.cta-preview .msg { padding: 8px 12px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--text); margin: 6px 0; max-width: 80%; }
.cta-preview .msg.them { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); align-self: flex-end; margin-left: auto; }
.cta-preview .col { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  margin-top: 80px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-lo);
  letter-spacing: 0.04em;
}
.footer-meta { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-security {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 78ch;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
}
.footer-security .lab {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lo);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-1);
  align-self: start;
}
@media (max-width: 720px) {
  .footer-security { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== Reveal utility (IntersectionObserver-driven) ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.06s; }
.reveal-2 { transition-delay: 0.12s; }
.reveal-3 { transition-delay: 0.18s; }
.reveal-4 { transition-delay: 0.24s; }
.reveal-5 { transition-delay: 0.3s; }

/* Reduce motion: still show, just no fade */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .wave i { height: 50% !important; animation: none !important; }
}
