/* AU3 — sitio público. Tokens del Design System v1 (tokens.css). */
:root {
  --bg-base: #08080A;
  --bg-surface: #0F0F11;
  --bg-elevated: #1C1C1F;
  --border-subtle: #1C1C1F;
  --border-elevated: #2A2A2D;
  --text-primary: #F5F5F7;
  --text-secondary: #8E8E93;
  --text-tertiary: #A1A1AA;
  --text-muted: #5A5A5F;
  --text-on-light: #0A0A0B;
  --magenta: #E91E8C;
  --cyan: #00BFDE;
  --green: #22C55E;
  --red: #EF4444;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(8,8,10,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-subtle); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand .word { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand .word span { color: var(--text-secondary); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--text-secondary); font-size: 15px; }
.nav a:hover { color: var(--text-primary); }
.nav .btn { color: var(--text-on-light); }

.btn {
  display: inline-block;
  background: var(--text-primary);
  color: var(--text-on-light);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  transition: background .15s;
}
.btn:hover { background: #fff; }
.btn.big { font-size: 17px; padding: 15px 26px; }
.btn.ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border-elevated); }
.btn.ghost:hover { border-color: var(--text-muted); background: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 120px; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 50%; width: 900px; height: 700px;
  background: radial-gradient(closest-side, rgba(233,30,140,0.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero h1 .dim { color: var(--text-muted); }
.hero .lede { margin-top: 26px; font-size: 19px; color: var(--text-tertiary); max-width: 50ch; }
.hero .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* The signal visual: logo mark scaled up, live */
.signal { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.signal svg { width: 100%; height: 100%; overflow: visible; }
.signal .wave { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s cubic-bezier(.6,.1,.2,1) .3s forwards, pulse 3.2s ease-in-out 2s infinite; }
.signal .rail { stroke-dasharray: 120; stroke-dashoffset: 120; animation: rail .7s ease-out forwards; }
.signal .rail.out { animation-delay: 1.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rail { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%,100% { filter: drop-shadow(0 0 0 rgba(233,30,140,0)); } 50% { filter: drop-shadow(0 0 22px rgba(233,30,140,.55)); } }

.chip {
  position: absolute;
  font-size: 13px;
  line-height: 1.35;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-elevated);
  max-width: 220px;
  opacity: 0; transform: translateY(6px);
  animation: chip .5s ease-out forwards;
}
.chip b { display: block; font-weight: 600; font-size: 11px; margin-bottom: 2px; }
.chip.voice { left: -6%; top: 6%; animation-delay: 1.9s; }
.chip.voice b { color: var(--cyan); }
.chip.insight { right: -6%; bottom: 4%; animation-delay: 2.3s; border-color: rgba(233,30,140,.45); }
.chip.insight b { color: var(--magenta); }
@keyframes chip { to { opacity: 1; transform: none; } }

/* ---------- Ticker of what's said ---------- */
.said { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 22px 0; overflow: hidden; }
.said .row { display: flex; gap: 40px; white-space: nowrap; width: max-content; animation: slide 40s linear infinite; }
.said span { color: var(--text-secondary); font-size: 16px; }
.said span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin: 0 12px 2px 0; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding: 120px 0; }
.kicker { color: var(--magenta); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; margin-bottom: 18px; display: flex; align-items: baseline; gap: 14px; }
.kicker .n { font-family: var(--mono); font-size: 0.7em; font-weight: 500; color: var(--text-muted); }
h2 {
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 22ch;
}
.sub { margin-top: 18px; color: var(--text-tertiary); font-size: 18px; max-width: 58ch; }

/* Gap: offline vs measured */
.gap { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 56px; background: var(--border-elevated); border: 1px solid var(--border-elevated); border-radius: var(--radius-2xl); overflow: hidden; }
.gap > div { background: var(--bg-surface); padding: 40px; }
.gap .big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(56px, 8vw, 104px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.gap .zero { color: var(--magenta); }
.gap p { margin-top: 14px; color: var(--text-tertiary); max-width: 34ch; }
.gap .src { margin-top: 10px; color: var(--text-muted); font-size: 13px; }

/* Formula */
.formula { margin-top: 56px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 20px; }
.formula .op { font-family: var(--mono); font-size: 40px; color: var(--text-muted); padding-top: 4px; }
.term h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.term p { margin-top: 10px; color: var(--text-secondary); font-size: 16px; }
.formula-head { display: flex; align-items: baseline; gap: 16px; margin-top: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border-elevated); }
.formula-head .eq { font-family: var(--mono); font-size: 18px; color: var(--text-secondary); }
.formula-head strong { font-size: 30px; letter-spacing: -0.03em; }

/* Pilot findings */
.pilot { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.funnel { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border: 1px solid var(--border-elevated); border-radius: var(--radius-xl); padding: 28px; background: var(--bg-base); }
.stat .num { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat .label { margin-top: 12px; font-weight: 600; }
.stat p { margin-top: 6px; color: var(--text-secondary); font-size: 15px; }
.stat.loss { border-color: rgba(239,68,68,.45); }
.stat.loss .num { color: var(--red); }
.bar { margin-top: 18px; height: 6px; border-radius: 3px; background: var(--bg-elevated); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--text-tertiary); border-radius: 3px; }
.stat.loss .bar i { background: var(--red); }
.verdict { margin-top: 40px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; max-width: 36ch; }
.verdict em { font-style: normal; color: var(--magenta); }
.fine { margin-top: 14px; color: var(--text-muted); font-size: 14px; }

/* Steps */
.steps { list-style: none; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px; border-radius: var(--radius-xl); background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.steps li::before { content: counter(s); font-family: var(--mono); font-size: 14px; color: var(--magenta); display: block; margin-bottom: 18px; }
.steps h3 { font-size: 22px; letter-spacing: -0.02em; }
.steps p { margin-top: 8px; color: var(--text-secondary); font-size: 16px; }

/* Industries */
.inds { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border-elevated); }
.inds > div { padding: 28px 0 28px; border-bottom: 1px solid var(--border-elevated); }
.inds > div:nth-child(odd) { padding-right: 40px; }
.inds > div:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--border-elevated); }
.inds h3 { font-size: 20px; letter-spacing: -0.01em; }
.inds p { margin-top: 6px; color: var(--text-secondary); font-size: 16px; }

/* CTA */
.cta-block { text-align: left; padding: 120px 0; position: relative; overflow: hidden; }
.cta-block::before { content: ""; position: absolute; left: -10%; bottom: -300px; width: 800px; height: 600px; background: radial-gradient(closest-side, rgba(233,30,140,0.14), transparent 70%); pointer-events: none; }
.cta-block .wrap { position: relative; }
.cta-block h2 { max-width: 18ch; }
.cta-block .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 32px 0 44px; font-size: 14px; color: var(--text-muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer nav a { color: var(--text-secondary); text-decoration: none; margin-left: 22px; }
.site-footer nav a:first-child { margin-left: 0; }
.site-footer nav a:hover { color: var(--text-primary); }

/* ---------- Legal / support ---------- */
.doc { padding: 72px 0 110px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.035em; line-height: 1.08; }
.doc .updated { color: var(--text-muted); margin-top: 10px; font-size: 15px; }
.doc h2 { font-size: 21px; letter-spacing: -0.01em; margin: 44px 0 10px; max-width: none; line-height: 1.3; }
.doc p, .doc li { color: var(--text-tertiary); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text-primary); font-weight: 600; }
.doc a { color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .signal { max-width: 360px; }
  .chip.voice { left: 0; }
  .chip.insight { right: 0; }
  .formula { grid-template-columns: 1fr; gap: 12px; }
  .formula .op { padding: 0; font-size: 28px; }
  .funnel, .steps { grid-template-columns: 1fr; }
  .gap { grid-template-columns: 1fr; }
  .gap > div { padding: 28px; }
  .inds { grid-template-columns: 1fr; }
  .inds > div:nth-child(odd), .inds > div:nth-child(even) { padding: 24px 0; border-left: 0; }
  section.block, .cta-block { padding: 88px 0; }
}
@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
  .chip { font-size: 12px; max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .signal .wave, .signal .rail { animation: none; stroke-dashoffset: 0; }
  .chip { animation: none; opacity: 1; transform: none; }
  .said .row { animation: none; }
  html { scroll-behavior: auto; }
}

/* Impact */
.levers { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lever { padding: 28px; border-radius: var(--radius-xl); background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.lever h3 { font-size: 22px; letter-spacing: -0.02em; }
.lever p { margin-top: 8px; color: var(--text-secondary); font-size: 16px; }
.proof-head { margin-top: 72px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.proof-head span { color: var(--text-secondary); font-weight: 500; }
.stat.gain .num { color: var(--green); }
.stat.gain { border-color: rgba(34,197,94,.35); }
.stat .num.word { font-family: var(--sans); font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; padding-top: 10px; }
@media (max-width: 900px) { .levers { grid-template-columns: 1fr; } }

