/* =========================================================
   fabco — Persuasion OS  ·  styles.css
   Light · premium-tech · dynamic
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #faf9f5;            /* light warm white */
  --surface:   #ffffff;
  --surface-2: #f4f2ec;
  --ink:       #121116;
  --border:    rgba(18,17,22,.10);
  --border-hi: rgba(18,17,22,.18);

  --accent:       #0a9cc4;         /* electric cyan (AA on light) */
  --accent-bright:#16cdf0;
  --accent-2:     #6a5af0;         /* violet */
  --accent-dim:   rgba(10,156,196,.10);
  --accent-glow:  rgba(10,156,196,.28);

  --text:  #121116;
  --muted: #585760;
  --dim:   #9a98a2;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px -26px rgba(18,17,22,.30);
  --shadow-hi: 0 30px 70px -32px rgba(18,17,22,.38);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; position: relative;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.mono { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.mono--dim { color: var(--dim); }
.mono--accent { color: var(--accent); }
.grad {
  background: linear-gradient(110deg, var(--ink) 18%, var(--accent) 55%, var(--accent-2) 78%, var(--ink) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- BACKGROUND LAYERS ---------- */
.bg-layers { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(18,17,22,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18,17,22,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 22%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 22%, transparent 78%);
}
.bg-glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(120px); }
.bg-glow--top {
  top: -340px; left: 50%; width: 920px; height: 600px; opacity: .5;
  background: radial-gradient(circle, rgba(10,156,196,.34), transparent 60%),
              radial-gradient(circle at 68% 42%, rgba(106,90,240,.26), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translateX(-50%) translateY(0)    scale(1);    }
  100% { transform: translateX(-46%) translateY(36px) scale(1.12); }
}
.bg-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- LOGO ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 24px; width: auto; }
.logo--sm img { height: 20px; }

/* ---------- EYEBROW ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 7px 15px; border: 1px solid var(--border-hi); border-radius: 100px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(8px);
  max-width: 100%;            /* never push past the viewport */
}
.eyebrow > span:last-child { min-width: 0; }   /* allow the long label to wrap */
.eyebrow--center { margin-inline: auto; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70%,100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em;
  border-radius: 100px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn:not(.btn--sm):not(.btn--lg) { padding: 12px 24px; font-size: 15px; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 10px 28px -12px rgba(18,17,22,.5); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(10,156,196,.55), 0 0 0 1px var(--accent); background: #1d1b24; }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-hi); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 30px -16px var(--accent-glow); }
.btn--block { width: 100%; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all .3s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(250,249,245,.8); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--border); }
.nav__inner { max-width: var(--maxw); margin-inline: auto; padding: 15px 24px; display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 26px; margin-left: 8px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: width .25s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lang { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.lang__btn { color: var(--dim); padding: 2px 4px; transition: color .2s; letter-spacing: .05em; }
.lang__btn.is-active { color: var(--ink); }
.lang__btn:hover { color: var(--accent); }
.lang__sep { color: var(--dim); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }

/* ---------- HERO ---------- */
.hero { padding: 168px 0 92px; position: relative; overflow: hidden; min-height: min(92vh, 960px); }
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 44%, rgba(0,0,0,.12), #000 72%);
  mask-image: radial-gradient(ellipse 58% 54% at 50% 44%, rgba(0,0,0,.12), #000 72%);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(1.95rem, 6vw, 5.3rem); line-height: 1.04; margin-top: 24px;
  text-align: center; text-wrap: balance; overflow-wrap: break-word;
}
.hero__title span { display: block; }
.hero__lead { max-width: 624px; margin: 26px auto 0; font-size: clamp(1rem, 2vw, 1.22rem); color: var(--muted); line-height: 1.6; }
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.hero__note { margin-top: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--dim); }

/* ---------- PRODUCT MOCK (dark, floating) ---------- */
.hero__mock { width: 100%; max-width: 940px; margin-top: 72px; perspective: 1800px; }
.mock {
  --surface:#15161b; --surface-2:#1b1d23; --border:rgba(255,255,255,.10); --border-hi:rgba(255,255,255,.16);
  --text:#eef0f3; --muted:#9aa1ad; --dim:#646b77;
  --accent:#16cdf0; --accent-dim:rgba(22,205,240,.12); --accent-glow:rgba(22,205,240,.45);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #16171c, #0e0f13); overflow: hidden;
  box-shadow: 0 40px 100px -36px rgba(10,156,196,.35), 0 30px 70px -34px rgba(18,17,22,.55);
  transform: rotateX(7deg); transform-origin: center top;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: rotateX(7deg) translateY(0); } 50% { transform: rotateX(7deg) translateY(-12px); } }
.mock__bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.mock__dots { display: flex; gap: 7px; }
.mock__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.mock__url { font-family: var(--font-mono); font-size: 12px; color: var(--dim); padding: 4px 14px; border: 1px solid var(--border); border-radius: 8px; background: rgba(0,0,0,.3); flex: 1; max-width: 280px; text-align: center; }
.mock__live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mock__live i { width: 7px; height: 7px; border-radius: 50%; background: #22d39a; box-shadow: 0 0 10px #22d39a; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.mock__body { display: grid; grid-template-columns: 210px 1fr; min-height: 320px; text-align: left; }
.mock__side { padding: 20px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.mock__side > .mono { margin-bottom: 6px; }
.mock__agent { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; font-size: 13px; color: var(--dim); border: 1px solid transparent; transition: .2s; }
.mock__agent i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.mock__agent.is-on { color: var(--text); background: rgba(22,205,240,.06); border-color: var(--accent-dim); }
.mock__agent.is-on i { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.mock__main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mock__cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mock__metric { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 4px; }
.mock__metric strong { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.mock__metric strong small { font-size: 15px; color: var(--muted); }
.mock__delta { font-family: var(--font-mono); font-size: 11px; }
.mock__delta.up { color: #22d39a; }
.mock__insight { margin-top: auto; border: 1px solid var(--accent-dim); border-radius: 12px; padding: 16px; background: linear-gradient(180deg, rgba(22,205,240,.07), rgba(22,205,240,.01)); display: flex; flex-direction: column; gap: 8px; }
.mock__insight p { font-size: 14px; color: var(--text); line-height: 1.55; }
.mock__typing { display: flex; gap: 5px; }
.mock__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: typing 1.4s ease-in-out infinite; }
.mock__typing i:nth-child(2){ animation-delay:.2s } .mock__typing i:nth-child(3){ animation-delay:.4s }
@keyframes typing { 0%,60%,100%{opacity:.25;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }

/* ---------- SOURCES MARQUEE ---------- */
.sources { padding: 36px 0 10px; overflow: hidden; }
.sources__label { text-align: center; margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.src { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--dim); letter-spacing: -.01em; transition: color .2s; white-space: nowrap; }
.marquee:hover .src { color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: 112px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(18,17,22,.022), transparent); }
.sec-head { max-width: 720px; margin-bottom: 60px; }
.sec-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.9rem, 4.2vw, 3.05rem); line-height: 1.08; margin-top: 18px; }
.sec-lead { margin-top: 20px; font-size: clamp(1rem,1.6vw,1.15rem); color: var(--muted); max-width: 648px; }

/* ---------- CARD BASE ---------- */
.bento__card, .step, .agent, .plan, .stat {
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.bento__card:hover, .step:hover, .agent:hover, .stat:hover {
  transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-hi);
}

/* ---------- BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento__card { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius); }
.bento__card--lg { grid-row: span 2; display: flex; flex-direction: column; }
.bento__card--accent { border-color: var(--accent-dim); background: linear-gradient(180deg, var(--accent-dim), var(--surface) 55%); }
.bento__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border-hi); background: var(--surface-2); color: var(--accent); margin-bottom: 18px; transition: .26s var(--ease); }
.bento__card:hover .bento__icon { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-6deg); }
.bento__icon svg { width: 22px; height: 22px; }
.bento__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 9px; }
.bento__text { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.bento__viz { margin-top: auto; padding-top: 30px; display: grid; place-items: center; }
.orbit { position: relative; width: 220px; height: 220px; }
.orbit__core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); box-shadow: 0 0 24px var(--accent-glow); z-index: 2; font-size: 11px; }
.orbit__node { position: absolute; top: 50%; left: 50%; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 5px 9px; border: 1px solid var(--border-hi); border-radius: 8px; background: var(--surface); box-shadow: 0 4px 12px -6px rgba(18,17,22,.3); transform: rotate(calc(var(--i) * 72deg)) translate(96px) rotate(calc(var(--i) * -72deg)) translate(-50%,-50%); animation: orbitspin 22s linear infinite; }
@keyframes orbitspin { to { transform: rotate(calc(var(--i)*72deg + 360deg)) translate(96px) rotate(calc(var(--i)*-72deg - 360deg)) translate(-50%,-50%); } }

/* ---------- LIVE DEMO · the engine at work ---------- */
/* industry selector */
.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 22px; padding: 5px; max-width: max-content; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); box-shadow: var(--shadow); }
.demo-tab { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 9px 16px; border-radius: 100px; transition: .25s var(--ease); white-space: nowrap; }
.demo-tab:hover { color: var(--ink); }
.demo-tab.is-active { color: #fff; background: var(--ink); box-shadow: 0 8px 20px -10px rgba(18,17,22,.6); }
/* conversion CTAs under the demo */
.demo-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.demo {
  border: 1px solid var(--border-hi); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-hi), 0 0 0 6px rgba(10,156,196,.04);
  overflow: hidden;
}
/* header bar */
.demo__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
}
.demo__brand { display: flex; align-items: center; gap: 12px; }
.demo__logo { height: 17px; width: auto; }
.demo__live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.demo__live i { width: 7px; height: 7px; border-radius: 50%; background: #1bbf73; box-shadow: 0 0 0 0 rgba(27,191,115,.5); animation: ping 2s var(--ease) infinite; }
.demo__steptag { color: var(--accent); padding: 5px 11px; border: 1px solid var(--accent-dim); border-radius: 100px; background: var(--accent-dim); transition: .3s var(--ease); }

/* body grid */
.demo__body {
  display: grid; grid-template-columns: max-content 40px minmax(0,1fr) 40px max-content;
  align-items: stretch; gap: 0; padding: 22px; min-height: 312px;
}
.demo__rail { display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.demo__rail--out { align-items: flex-start; }
.demo__raillabel { margin-bottom: 3px; }
.demo__src, .demo__out {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 11px; white-space: nowrap; transition: .25s var(--ease); box-shadow: 0 5px 14px -12px rgba(18,17,22,.5);
}
.demo__src.is-live { border-color: var(--accent); color: var(--accent); box-shadow: 0 6px 18px -10px var(--accent-glow); }
.demo__out { display: inline-flex; align-items: center; gap: 9px; opacity: .5; transition: .3s var(--ease); }
.demo__out b { width: 16px; height: 16px; border-radius: 5px; flex: none; background: var(--dim); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.demo__out[data-b="email"] b    { background: #5b6573; }
.demo__out[data-b="whatsapp"] b { background: #25d366; }
.demo__out[data-b="instagram"] b{ background: linear-gradient(135deg, #feda75, #d62976 45%, #962fbf 80%, #4f5bd5); }
.demo__out[data-b="facebook"] b { background: #1877f2; }
.demo__out[data-b="tiktok"] b   { background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 1px 0 0 #25f4ee, -1px 0 0 #fe2c55; }
.demo__out[data-b="meta"] b     { background: linear-gradient(135deg, #0a9cc4, #6a5af0); }
.demo__out[data-b="agenda"] b   { background: var(--accent); }
.demo__out.is-active { opacity: 1; border-color: var(--accent); color: var(--ink); transform: translateX(2px); box-shadow: 0 8px 22px -10px var(--accent-glow); }

/* flow strips */
.demo__flow { position: relative; align-self: center; height: 60%; min-height: 120px; overflow: hidden; }
.demo__flow span {
  position: absolute; top: 50%; left: -10px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--accent); opacity: 0;
}
.demo__flow.is-on span { animation: flowdot 1.15s linear infinite; }
.demo__flow.is-on span:nth-child(1) { top: 30%; animation-delay: 0s; }
.demo__flow.is-on span:nth-child(2) { top: 45%; animation-delay: .28s; }
.demo__flow.is-on span:nth-child(3) { top: 58%; animation-delay: .56s; }
.demo__flow.is-on span:nth-child(4) { top: 70%; animation-delay: .84s; }
@keyframes flowdot { 0% { left: -10px; opacity: 0; transform: scale(.6); } 18% { opacity: 1; transform: scale(1); } 82% { opacity: 1; } 100% { left: 100%; opacity: 0; transform: scale(.6); } }

/* focus screen */
.demo__screen { position: relative; display: grid; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: inset 0 1px 0 #fff, 0 18px 44px -34px rgba(18,17,22,.5); padding: 22px; min-height: 256px; overflow: hidden; }
.demo__screen::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% -10%, var(--accent-dim), transparent 60%); opacity: .7; pointer-events: none; }
/* every scene shares one grid cell → the screen auto-sizes to the tallest scene (no clipping, adapts to EN) */
.demo__scene { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0; transform: translateY(10px) scale(.99); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.demo__scene.is-active { opacity: 1; transform: none; }
.demo__scenetag { color: var(--accent); align-self: flex-start; }

/* scene · log */
.demo__loglist { display: flex; flex-direction: column; gap: 9px; }
.demo__loglist li { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 9px; opacity: 0; transform: translateX(-8px); }
.demo__loglist li::before { content: '→'; color: var(--accent); }
.demo__scene--log.is-active .demo__loglist li { animation: logIn .5s var(--ease) forwards; }
.demo__scene--log.is-active .demo__loglist li:nth-child(1) { animation-delay: .15s; }
.demo__scene--log.is-active .demo__loglist li:nth-child(2) { animation-delay: .5s; }
.demo__scene--log.is-active .demo__loglist li:nth-child(3) { animation-delay: .85s; }
.demo__scene--log.is-active .demo__loglist li:nth-child(4) { animation-delay: 1.2s; }
.demo__logwork { color: var(--accent) !important; }
.demo__logwork::before { content: '⟳' !important; display: inline-block; animation: spin 1.4s linear infinite; }
@keyframes logIn { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* scene · detect */
.demo__card { border: 1px solid var(--accent-dim); border-radius: 14px; padding: 20px; background: linear-gradient(180deg, var(--accent-dim), var(--surface) 60%); box-shadow: 0 16px 40px -28px var(--accent-glow); }
.demo__cardtag { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); margin-bottom: 12px; }
.demo__spark { width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--accent-bright), var(--accent-2)); box-shadow: 0 0 10px var(--accent-glow); animation: ping 1.8s var(--ease) infinite; }
.demo__cardtitle { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
.demo__cardbody { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* scene · audience */
.demo__audrow { display: flex; align-items: center; gap: 18px; }
.demo__audcount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; letter-spacing: -.03em; background: linear-gradient(150deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.demo__audmeta { display: flex; flex-direction: column; gap: 4px; }
.demo__audmeta strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; }
.demo__audmeta span { font-size: 13px; color: var(--muted); }
.demo__avatars { display: flex; gap: 6px; flex-wrap: wrap; }
.demo__avatars span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #fff; background: linear-gradient(135deg, var(--accent-bright), var(--accent-2)); opacity: 0; transform: scale(.4); box-shadow: 0 2px 6px -2px var(--accent-glow); }
.demo__scene--aud.is-active .demo__avatars span { animation: pop .4s var(--ease) forwards; }
.demo__scene--aud.is-active .demo__avatars span:nth-child(1){animation-delay:.3s}.demo__scene--aud.is-active .demo__avatars span:nth-child(2){animation-delay:.37s}.demo__scene--aud.is-active .demo__avatars span:nth-child(3){animation-delay:.44s}.demo__scene--aud.is-active .demo__avatars span:nth-child(4){animation-delay:.51s}.demo__scene--aud.is-active .demo__avatars span:nth-child(5){animation-delay:.58s}.demo__scene--aud.is-active .demo__avatars span:nth-child(6){animation-delay:.65s}.demo__scene--aud.is-active .demo__avatars span:nth-child(7){animation-delay:.72s}.demo__scene--aud.is-active .demo__avatars span:nth-child(8){animation-delay:.79s}.demo__scene--aud.is-active .demo__avatars span:nth-child(9){animation-delay:.86s}
@keyframes pop { to { opacity: 1; transform: none; } }

/* scene · email */
.demo__mail { border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: 0 16px 40px -30px rgba(18,17,22,.6); overflow: hidden; }
.demo__mailhead { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.demo__maildot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-hi); font-style: normal; }
.demo__maildot:nth-child(1){background:#ff5f57}.demo__maildot:nth-child(2){background:#febc2e}.demo__maildot:nth-child(3){background:#28c840}
.demo__mailto { margin-left: 8px; color: var(--muted); }
.demo__mailbody { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.demo__maillbl { color: var(--dim); }
.demo__mailsubj { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; min-height: 1.3em; }
.demo__mailsubj::after, .demo__mailtext::after { content: ''; }
.demo__mailtext { font-size: 13.5px; color: var(--muted); line-height: 1.55; min-height: 2.5em; }
.demo__mailbtn { align-self: flex-start; margin-top: 6px; color: #fff; background: var(--ink); border-radius: 100px; padding: 8px 16px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -10px rgba(18,17,22,.6); }
.demo__mailsent { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--accent-dim); background: linear-gradient(180deg, rgba(27,191,115,.08), transparent); font-size: 12.5px; font-weight: 600; color: #169a5e; opacity: 0; transition: opacity .45s var(--ease); }
.demo__mailsent i { font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1bbf73; color: #fff; font-size: 11px; }
.demo__mailsent.is-on { opacity: 1; }

/* scene · meta ad */
.demo__scene--meta { gap: 10px; }
.demo__ad { border: 1px solid var(--border); border-radius: 13px; background: var(--surface); overflow: hidden; box-shadow: 0 16px 40px -30px rgba(18,17,22,.6); }
.demo__adhead { display: flex; align-items: center; gap: 10px; padding: 11px 13px; }
.demo__adavatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-bright), var(--accent-2)); flex: none; }
.demo__admeta { display: flex; flex-direction: column; gap: 1px; }
.demo__admeta strong { font-size: 13.5px; font-weight: 700; }
.demo__adcopy { padding: 0 13px 11px; font-size: 13px; color: var(--ink); line-height: 1.5; }
.demo__adimg { position: relative; height: 96px; background: linear-gradient(120deg, #0a9cc4, #16cdf0 40%, #6a5af0); display: grid; place-items: center; }
.demo__adimg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 120% at 80% 0%, rgba(255,255,255,.4), transparent 60%); }
.demo__adimgtag { position: relative; z-index: 1; color: #fff; background: rgba(0,0,0,.22); padding: 5px 10px; border-radius: 7px; backdrop-filter: blur(2px); }
.demo__adbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; background: var(--surface-2); border-top: 1px solid var(--border); }
.demo__adheadline { font-size: 13px; font-weight: 600; }
.demo__adcta { color: #fff; background: var(--accent); border-radius: 8px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 18px -10px var(--accent-glow); }
.demo__adnote { display: block; text-align: center; color: var(--accent); }

/* scene · close */
.demo__done { text-align: center; align-items: center; display: flex; flex-direction: column; gap: 12px; }
.demo__donecheck { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-bright), var(--accent-2)); color: #fff; font-size: 24px; box-shadow: 0 14px 34px -14px var(--accent-glow); margin: 0 auto; }
.demo__donetitle { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.demo__donenote { font-size: 14px; color: var(--muted); }

/* foot · caption + progress */
.demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; border-top: 1px solid var(--border); background: linear-gradient(0deg, rgba(255,255,255,.5), transparent); }
.demo__caption { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.demo__dots { display: flex; gap: 7px; flex: none; }
.demo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-hi); transition: .35s var(--ease); }
.demo__dot.is-done { background: var(--accent-2); }
.demo__dot.is-active { background: var(--accent); transform: scale(1.5); box-shadow: 0 0 0 4px var(--accent-dim); }

/* scene · whatsapp (servicios) */
.demo__wa { border: 1px solid var(--border); border-radius: 14px; background: #efe7dd; overflow: hidden; box-shadow: 0 16px 40px -30px rgba(18,17,22,.6); }
.demo__wahead { display: flex; align-items: center; gap: 10px; padding: 10px 13px; background: #128c7e; color: #fff; }
.demo__waavatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.85); flex: none; }
.demo__wameta { display: flex; flex-direction: column; gap: 1px; }
.demo__wameta strong { font-size: 13px; font-weight: 600; }
.demo__wastatus { font-size: 11px; opacity: .85; }
.demo__wabody { padding: 14px; display: flex; flex-direction: column; gap: 8px; background-image: radial-gradient(rgba(18,17,22,.04) 1px, transparent 1px); background-size: 16px 16px; }
.demo__wabubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; box-shadow: 0 1px 1px rgba(18,17,22,.12); }
.demo__wabubble--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; min-height: 1em; }
.demo__wabubble--in  { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.demo.is-live .demo__wabubble { opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.demo.is-live .demo__wabubble.show { opacity: 1; transform: none; }

/* scene · agenda (servicios) */
.demo__agenda { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; border: 1px solid var(--accent-dim); border-radius: 16px; padding: 26px 22px; background: linear-gradient(180deg, var(--accent-dim), var(--surface) 55%); box-shadow: 0 16px 40px -28px var(--accent-glow); }
.demo__agendaicon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #1bbf73; color: #fff; font-size: 22px; box-shadow: 0 12px 28px -12px rgba(27,191,115,.6); margin-bottom: 2px; }
.demo__agservice { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.demo__agwhen { font-size: 14px; color: var(--ink); font-weight: 600; }
.demo__agreminder { color: var(--dim); margin-top: 2px; }

/* scene · message craft (corporativo) */
.demo__msgcard { border: 1px solid var(--accent-dim); border-radius: 14px; padding: 20px; background: linear-gradient(180deg, var(--accent-dim), var(--surface) 60%); box-shadow: 0 16px 40px -28px var(--accent-glow); display: flex; flex-direction: column; gap: 8px; }
.demo__cardtag + .demo__msglabel { margin-top: 4px; }
.demo__msglabel { color: var(--dim); }
.demo__msgtext { font-size: 14.5px; color: var(--ink); line-height: 1.55; min-height: 3em; font-weight: 500; }
.demo__msgdata { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.demo__msgchip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: #169a5e; background: rgba(27,191,115,.1); border: 1px solid rgba(27,191,115,.25); border-radius: 100px; padding: 5px 10px; }
.demo__msgchip i { font-style: normal; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #1bbf73; color: #fff; font-size: 9px; }

/* scene · geo campaign (corporativo) */
.demo__geo { display: flex; flex-direction: column; gap: 10px; }
.demo__geomap { position: relative; height: 150px; border-radius: 13px; overflow: hidden; border: 1px solid var(--border); background:
  linear-gradient(0deg, rgba(10,156,196,.06), rgba(106,90,240,.06)),
  repeating-linear-gradient(0deg, transparent 0 23px, rgba(18,17,22,.05) 23px 24px),
  repeating-linear-gradient(90deg, transparent 0 23px, rgba(18,17,22,.05) 23px 24px),
  var(--surface-2); }
.demo__georadius { position: absolute; left: 47%; top: 48%; width: 150px; height: 150px; transform: translate(-50%,-50%); border-radius: 50%; border: 1.5px solid var(--accent); background: radial-gradient(circle, var(--accent-dim), transparent 70%); animation: geopulse 3s var(--ease) infinite; }
@keyframes geopulse { 0%,100% { transform: translate(-50%,-50%) scale(.92); opacity: .8; } 50% { transform: translate(-50%,-50%) scale(1.04); opacity: 1; } }
.demo__pin { position: absolute; width: 12px; height: 12px; transform: translate(-50%,-100%); border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, var(--accent-bright), var(--accent-2)); rotate: -45deg; box-shadow: 0 4px 8px -2px var(--accent-glow); }
.demo.is-live .demo__scene--geo.is-active .demo__pin { animation: pop .4s var(--ease) backwards; }
.demo.is-live .demo__scene--geo.is-active .demo__pin:nth-child(3){animation-delay:.15s}.demo.is-live .demo__scene--geo.is-active .demo__pin:nth-child(4){animation-delay:.27s}.demo.is-live .demo__scene--geo.is-active .demo__pin:nth-child(5){animation-delay:.39s}.demo.is-live .demo__scene--geo.is-active .demo__pin:nth-child(6){animation-delay:.51s}.demo.is-live .demo__scene--geo.is-active .demo__pin:nth-child(7){animation-delay:.63s}
.demo__geocard { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); box-shadow: 0 12px 30px -22px rgba(18,17,22,.5); }
.demo__geotitle { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; flex: 1; min-width: 140px; }
.demo__geotag { display: block; width: 100%; }
.demo__geocta { color: #fff; background: var(--accent); border-radius: 8px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 18px -10px var(--accent-glow); }

/* ---- static / no-JS / reduced-motion storyboard ---- */
/* show only the active flow's action scenes (generic scenes are data-flow="all") */
.demo.is-static .demo__scene[data-flow="eco"],
.demo.is-static .demo__scene[data-flow="svc"],
.demo.is-static .demo__scene[data-flow="corp"] { display: none; }
.demo.is-static[data-active="eco"]  .demo__scene[data-flow="eco"]  { display: flex; }
.demo.is-static[data-active="svc"]  .demo__scene[data-flow="svc"]  { display: flex; }
.demo.is-static[data-active="corp"] .demo__scene[data-flow="corp"] { display: flex; }
.demo.is-static .demo__flow { display: none; }
.demo.is-static .demo__body { grid-template-columns: max-content minmax(0,1fr) max-content; gap: 18px; }
.demo.is-static .demo__screen { display: block; min-height: 0; }
.demo.is-static .demo__scene { opacity: 1; transform: none; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.demo.is-static .demo__scene:last-child { border-bottom: 0; }
.demo.is-static .demo__loglist li, .demo.is-static .demo__avatars span { opacity: 1; transform: none; animation: none; }
.demo.is-static .demo__mailsent { opacity: 1; }
.demo.is-static .demo__out { opacity: 1; }

@media (max-width: 820px) {
  .demo__body { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .demo__flow { height: 28px; min-height: 0; width: 100%; }
  .demo__flow span { top: 50%; }
  .demo__flow.is-on span { animation: flowdotV 1.15s linear infinite; }
  .demo__flow.is-on span:nth-child(4) { display: none; }
  @keyframes flowdotV { 0%{ left: 50%; top: -8px; opacity:0 } 18%{opacity:1} 82%{opacity:1} 100%{ left: 50%; top: 100%; opacity:0 } }
  .demo__rail { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
  .demo__rail--out { align-items: center; }
  .demo__raillabel { width: 100%; text-align: center; }
  .demo__screen { min-height: 280px; }
  .demo__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .demo.is-static .demo__body { grid-template-columns: 1fr; }
}

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 28px; border-radius: var(--radius); position: relative; }
.step__num { display: block; font-family: var(--font-display); color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px; }
.step__title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 9px; }
.step__text { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- CLOSED LOOP ---------- */
.loop { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.loop__node {
  flex: 1; min-width: 150px; max-width: 200px; padding: 18px 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px; transition: .26s var(--ease);
  animation: loopglow 6s ease-in-out infinite;
}
.loop__node:nth-child(1){ animation-delay: 0s; }
.loop__node:nth-child(3){ animation-delay: 1.1s; }
.loop__node:nth-child(5){ animation-delay: 2.2s; }
.loop__node:nth-child(7){ animation-delay: 3.3s; }
.loop__node:nth-child(9){ animation-delay: 4.4s; }
@keyframes loopglow {
  0%, 16%, 100% { border-color: var(--border); box-shadow: none; }
  7% { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 34px -14px var(--accent-glow); }
}
.loop__i { color: var(--accent); font-size: 11px; }
.loop__node strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.loop__node span:not(.loop__i) { font-size: 12.5px; color: var(--muted); }
.loop__node--accent { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-dim), var(--surface)); animation: none; }
.loop__arrow { display: flex; align-items: center; color: var(--accent); font-size: 18px; font-weight: 700; }
.loop__caption { text-align: center; margin-bottom: 46px; }

/* ---------- AGENTS ---------- */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agent { padding: 26px; border-radius: var(--radius); position: relative; overflow: hidden; }
.agent::before { content: ''; position: absolute; inset: 0; background: radial-gradient(380px 200px at var(--mx,50%) var(--my,0%), var(--accent-dim), transparent 70%); opacity: 0; transition: opacity .3s; }
.agent:hover::before { opacity: 1; }
.agent__tag { display: inline-block; color: var(--accent); margin-bottom: 16px; padding: 4px 10px; border: 1px solid var(--accent-dim); border-radius: 7px; background: var(--accent-dim); position: relative; }
.agent__title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; position: relative; }
.agent__text { font-size: 14px; color: var(--muted); line-height: 1.55; position: relative; }
.agent--human { border-color: rgba(106,90,240,.3); background: linear-gradient(180deg, rgba(106,90,240,.06), var(--surface)); }
.agent--human .agent__tag { color: var(--accent-2); border-color: rgba(106,90,240,.3); background: rgba(106,90,240,.08); }

/* ---------- PLANS ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: stretch; max-width: 760px; margin-inline: auto; }
.plan { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-hi); }
.plan--feature { border-color: var(--accent); box-shadow: var(--shadow-hi); background: linear-gradient(180deg, var(--accent-dim), var(--surface) 45%); }
.plan--feature:hover { border-color: var(--accent); box-shadow: 0 36px 80px -32px var(--accent-glow); }
.plan__badge { position: absolute; top: -12px; left: 28px; color: #fff; background: var(--accent); padding: 4px 13px; border-radius: 100px; box-shadow: 0 8px 18px -8px var(--accent-glow); }
.plan__name { font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.plan__name span { color: var(--ink); }
.plan__price { margin: 18px 0 4px; }
.plan__sub { display: block; margin-bottom: 10px; letter-spacing: .08em; }
.plan__amt { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; }
.plan__desc { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.plan__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan__list li { font-size: 14.5px; color: var(--ink); display: flex; align-items: flex-start; gap: 10px; }
.plan__list li::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; border-radius: 50%;
  background: var(--accent-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230a9cc4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}

/* ---------- PROOF ---------- */
.proof__head { max-width: 760px; margin-bottom: 56px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.stat { padding: 32px 24px; border-radius: var(--radius); text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; background: linear-gradient(155deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { display: block; margin-top: 12px; color: var(--muted); }
.verticals { display: flex; flex-wrap: wrap; gap: 10px; }
.vertical { padding: 9px 16px; border: 1px solid var(--border-hi); border-radius: 100px; color: var(--muted); background: var(--surface); transition: .2s var(--ease); }
.vertical:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -14px var(--accent-glow); }

/* ---------- FINAL CTA ---------- */
.cta-final { position: relative; padding: 132px 0; overflow: hidden; }
.bg-glow--cta { position: absolute; bottom: -320px; left: 50%; transform: translateX(-50%); width: 820px; height: 520px; z-index: 0; opacity: .5; background: radial-gradient(circle, rgba(10,156,196,.32), transparent 60%), radial-gradient(circle at 40% 60%, rgba(106,90,240,.24), transparent 60%); filter: blur(115px); animation: drift 16s ease-in-out infinite alternate; }
.cta-final__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-final__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; font-size: clamp(2.1rem, 5.4vw, 3.9rem); line-height: 1.05; margin-top: 22px; }
.cta-final__title span { display: block; }
.cta-final__lead { margin-top: 22px; font-size: clamp(1rem,1.8vw,1.2rem); color: var(--muted); max-width: 520px; }
.cta-final__cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.cta-final__form { display: flex; gap: 12px; margin-top: 38px; width: 100%; max-width: 520px; flex-wrap: wrap; }
.cta-final__form input { flex: 1; min-width: 220px; padding: 15px 22px; border-radius: 100px; border: 1px solid var(--border-hi); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 15px; transition: .2s; }
.cta-final__form input::placeholder { color: var(--dim); }
.cta-final__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.cta-final__note { margin-top: 20px; }
.cta-final__ok { margin-top: 18px; color: var(--accent); font-weight: 600; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 52px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer__nav a:hover { color: var(--ink); }
.footer__meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .34s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 940px) {
  .bento, .agents { grid-template-columns: repeat(2, 1fr); }
  .bento__card--lg { grid-row: span 1; grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); }
  .mock__cards { grid-template-columns: 1fr; }
  /* closed-loop: stack vertically (centered) so it never wraps awkwardly */
  .loop { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
  .loop__node { max-width: none; }
  .loop__arrow { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(250,249,245,.97); backdrop-filter: blur(16px); padding: 24px; gap: 18px; border-bottom: 1px solid var(--border); }
  .hero { padding: 140px 0 60px; }
  .hero__title { font-size: clamp(1.7rem, 7.4vw, 2.5rem); }
  .cta-final__form input { min-width: 0; }
  .bento, .agents, .stats { grid-template-columns: 1fr; }
  .bento__card--lg { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .loop { flex-direction: column; align-items: stretch; }
  .loop__node { max-width: none; }
  .loop__arrow { transform: rotate(90deg); justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
  .nav__actions .btn { display: none; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .mock { transform: rotateX(7deg); }
}
