/* ════════════════════════════════════════════════════════════════
   VideoIntelligence — marketing site (CRA-first)
   Light-first editorial surface · dark "ops" islands for product
   Design system: brand/tokens.css · Sora + Space Grotesk
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --brand: #ff3d71;
  --brand-hover: #e02a5c;
  --brand-deep: #c21e4d;
  --ink: #14142b;

  /* Light surfaces (default) */
  --page: #ffffff;
  --panel: #ffffff;
  --alt: #eceef2;
  --border: #eef0f4;
  --hairline: rgba(20, 20, 43, .09);

  /* Text (light surfaces) */
  --fg-1: #14142b;
  --fg-2: #6a6f7e;
  --fg-3: #9299a8;

  /* Dark ops island tokens */
  --ops-page: #14142b;
  --ops-panel: #20203f;
  --ops-panel-2: #1a1a35;
  --ops-border: #32324f;
  --ops-hairline: rgba(255, 255, 255, .09);
  --ops-fg-1: #ffffff;
  --ops-fg-2: #b9bccb;
  --ops-fg-3: rgba(185, 188, 203, .55);

  /* Status */
  --live: #18B26B;
  --p0: #FF3B30; --p1: #FF9500; --p2: #FFCC00; --p3: #0A84FF; --p4: #8E8E93;

  /* Type */
  --sans: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Space Grotesk', ui-monospace, 'SF Mono', Menlo, monospace;

  --max: 1240px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 3px rgba(20, 20, 43, .08), 0 4px 16px -8px rgba(20, 20, 43, .06);
  --shadow-md: 0 1px 3px rgba(20, 20, 43, .08), 0 12px 40px rgba(20, 20, 43, .06);
  --shadow-ops: 0 24px 64px -20px rgba(20, 20, 43, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--fg-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(255, 61, 113, .25); }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-vis { opacity: 1; transform: none; }
}

/* ── Primitives ─────────────────────────────────────────────── */
.livedot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); flex: none;
  box-shadow: 0 0 0 4px rgba(24, 178, 107, .14);
  animation: blink 1.6s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--big { width: 32px; height: 32px; color: var(--live); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--sans); border: 1px solid transparent; cursor: pointer;
  border-radius: var(--r-md); white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn:active { transform: scale(.985); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--md { padding: 12px 22px; font-size: 14.5px; }
.btn--lg { padding: 15px 26px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #20203f; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: var(--panel); border-color: var(--border); color: var(--fg-1); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: #C4C8DA; }
.btn--ghost { background: transparent; color: var(--fg-2); }
.btn--ghost:hover { color: var(--fg-1); }
/* Accent CTA (only for the two demo CTAs) */
.btn--accent { background: var(--brand); color: #fff; }
.btn--accent:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 600 12.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3);
}
.h1 {
  margin: 20px 0 0; font-size: clamp(40px, 5vw, 72px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.04; color: var(--fg-1); text-wrap: balance;
}
.h1__hl { font-style: normal; color: var(--brand-hover); }
.h2 {
  margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.12; color: var(--fg-1); text-wrap: balance;
}
.lede { font-size: 18px; line-height: 1.65; color: var(--fg-2); max-width: 36em; margin: 22px 0 0; }

/* Severity pills — light-surface variants */
.sev { font: 700 12px/1 var(--mono); padding: 4px 9px; border-radius: 999px; flex: none; }
.sev--p0 { background: rgba(255, 59, 48, .1); color: #C81E14; box-shadow: inset 0 0 0 1px rgba(255, 59, 48, .35); }
.sev--p1 { background: rgba(255, 149, 0, .12); color: #A35400; box-shadow: inset 0 0 0 1px rgba(255, 149, 0, .4); }
.sev--p2 { background: rgba(255, 204, 0, .16); color: #7D6300; box-shadow: inset 0 0 0 1px rgba(200, 160, 0, .4); }
.sev--p3 { background: rgba(10, 132, 255, .1); color: #0A5FD7; box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .35); }
.sev--p4 { background: rgba(142, 142, 147, .12); color: #5B5B60; box-shadow: inset 0 0 0 1px rgba(142, 142, 147, .4); }

.seg { display: inline-flex; background: rgba(20, 20, 43, .05); border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; }
.seg__b {
  border: 0; background: transparent; color: var(--fg-3); font: 600 12.5px var(--sans);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
}
.seg__b.is-on { background: var(--panel); color: var(--fg-1); box-shadow: var(--shadow-sm); }
.seg--sm .seg__b { padding: 4px 11px; font-size: 12px; }

.is-hidden { display: none !important; }

/* ════ DARK OPS ISLANDS — pill/seg/sev overrides ════ */
.codecard, .cam, .foot { color-scheme: dark; }
.codecard .sev--p0 { background: rgba(255, 59, 48, .18); color: var(--p0); box-shadow: inset 0 0 0 1px rgba(255, 59, 48, .45); }
.codecard .sev--p1 { background: rgba(255, 149, 0, .16); color: var(--p1); box-shadow: inset 0 0 0 1px rgba(255, 149, 0, .45); }
.codecard .sev--p2 { background: rgba(255, 204, 0, .14); color: var(--p2); box-shadow: inset 0 0 0 1px rgba(255, 204, 0, .4); }
.codecard .sev--p3 { background: rgba(10, 132, 255, .16); color: var(--p3); box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .45); }
.codecard .seg { background: rgba(255, 255, 255, .06); border-color: var(--ops-hairline); }
.codecard .seg__b { color: var(--ops-fg-3); }
.codecard .seg__b.is-on { background: rgba(255, 255, 255, .14); color: var(--ops-fg-1); box-shadow: none; }

/* ── Header (light) ─────────────────────────────────────────── */
.hd {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.hd__in { max-width: var(--max); margin: 0 auto; height: 66px; padding: 0 24px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__wm { font-size: 16.5px; font-weight: 400; color: var(--fg-1); letter-spacing: -.02em; }
.brand__wm b { font-weight: 700; }
.hd__nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.hd__nav a { position: relative; padding: 4px 0; transition: color .15s; }
.hd__nav a:hover { color: var(--fg-1); }
.hd__nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); transition: right .25s var(--ease);
}
.hd__nav a:hover::after { right: 0; }
.hd__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; background: rgba(20, 20, 43, .05); border: 1px solid var(--hairline); border-radius: 999px; padding: 2px; }
.lang__b {
  border: 0; background: transparent; color: var(--fg-3); font: 600 11.5px var(--sans);
  letter-spacing: .05em; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.lang__b.is-on { background: var(--panel); color: var(--fg-1); box-shadow: var(--shadow-sm); }
.hd__burger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.hd__burger span { width: 20px; height: 2px; background: var(--fg-1); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hd__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd__burger.is-open span:nth-child(2) { opacity: 0; }
.hd__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hd__sheet { display: none; }

/* ── Hero (light editorial) ─────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 20, 43, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 43, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 25%, transparent 72%);
}
.hero__glow {
  position: absolute; top: -240px; right: -180px; width: 680px; height: 680px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 61, 113, .07), transparent 70%);
}
.hero__in {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 4.5vw, 56px) 24px clamp(36px, 4.5vw, 56px);
  display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center;
}
/* Fit hero + band exactly to the first viewport (band bottom = fold) */
@media (min-width: 1061px) and (min-height: 620px) {
  .hero__in { min-height: min(calc(100svh - var(--fold, 186px)), 880px); }
}
.hero__in > * { min-width: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
/* Operator workstation preview (light app window) */
.opwin {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-md);
  /* Bleed past the container toward the right viewport edge for more video presence */
  margin-right: calc(-1 * min(110px, max(24px, (100vw - var(--max)) / 2 + 24px)));
}
.opwin__bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--hairline); background: var(--alt);
}
.opwin__title { font-size: 13px; font-weight: 600; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.opwin__meta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px var(--mono); color: var(--fg-3); }
.opwin__cam { border-radius: 0; aspect-ratio: 16 / 8.6; }
.opwin__alert { padding: 16px 18px 14px; }
.opwin__alert.is-swap { animation: op-swap .45s var(--ease) both; }
@keyframes op-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.opwin__when { margin-left: auto; font: 500 11.5px var(--mono); color: var(--fg-3); }
.opwin__evtitle { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--fg-1); margin: 12px 0 4px; }
.opwin__reason { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0 0 14px; }
.opwin__actions { display: flex; gap: 10px; }
.opwin__foot {
  padding: 11px 18px; border-top: 1px solid var(--hairline); background: var(--alt);
  font-size: 12.5px; color: var(--fg-3);
}

/* ── Metric band ────────────────────────────────────────────── */
.band { border-block: 1px solid var(--hairline); background: var(--panel); }
.band__in {
  max-width: var(--max); margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap;
}
.band__proof { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); padding-right: clamp(12px, 2vw, 28px); border-right: 1px solid var(--hairline); }
.band__proofitem { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.band__prooflbl { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--fg-3); white-space: nowrap; }
.band__prooflogo { height: 26px; width: auto; object-fit: contain; }
.band__prooflogo--bold { height: 30px; }
.band__c { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.band__v { font: 600 clamp(28px, 3vw, 40px)/1.1 var(--mono); color: var(--fg-1); letter-spacing: -.02em; }
.band__v--phrase { font: 700 clamp(17px, 1.8vw, 22px)/1.15 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.band__v.is-accent { color: var(--brand-hover); }
.band__l { font-size: 13.5px; color: var(--fg-3); white-space: nowrap; }

/* ── Sections ───────────────────────────────────────────────── */
.sec { padding: clamp(72px, 9vw, 128px) 24px; }
.sec--alt { background: var(--alt); border-block: 1px solid var(--hairline); }
.sec__in { max-width: var(--max); margin: 0 auto; }
.shead { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(40px, 5vw, 64px); align-items: start; }
.shead__ix {
  font: 300 clamp(48px, 6vw, 88px)/1 var(--mono); color: transparent;
  -webkit-text-stroke: 1px rgba(20, 20, 43, .22);
  letter-spacing: -.04em; padding-top: 6px;
}
.shead__main { max-width: 720px; }
.shead__d { font-size: 17.5px; line-height: 1.65; color: var(--fg-2); margin: 18px 0 0; max-width: 40em; }

/* ── 01 · Pipeline ──────────────────────────────────────────── */
.pipe { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pipe__line {
  position: absolute; top: 34px; left: 4%; right: 4%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 20, 43, .18), rgba(20, 20, 43, .18), transparent);
}
.pipe__s {
  position: relative; padding: 26px 24px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.pipe__s:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pipe__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font: 600 12px var(--mono); color: var(--fg-1);
  border: 1px solid var(--border); background: var(--page);
}
.pipe__s:hover .pipe__n { color: var(--brand-hover); border-color: rgba(255, 61, 113, .45); }
.pipe__t { font-size: 23px; font-weight: 700; letter-spacing: -.01em; color: var(--fg-1); margin: 16px 0 8px; }
.pipe__d { font-size: 15px; line-height: 1.55; margin: 0; color: var(--fg-2); }

/* ── 02 · Triaje ────────────────────────────────────────────── */
.tri { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.tri__queue { display: flex; flex-direction: column; gap: 10px; }
.qrow {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 16px 18px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer; color: inherit; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.qrow:hover { border-color: #C4C8DA; }
.qrow.is-on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-md); }
.qrow__t { font: 500 11px var(--mono); color: var(--fg-3); flex: none; width: 58px; }
.qrow__main { flex: 1; min-width: 0; }
.qrow__ev { display: block; font: 600 14px var(--sans); color: var(--fg-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow__vert { display: block; font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }
.tri__insp { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.tri__insphead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--hairline); background: var(--alt);
}
.tri__insplbl { font: 600 11px var(--mono); letter-spacing: .08em; color: var(--fg-3); }
.tri__insplbl b { color: var(--fg-1); font-weight: 600; }
.tri__viewport { padding: 16px; }

/* Camera view — always dark (it's video) */
.cam { position: relative; aspect-ratio: 16 / 7.4; overflow: hidden; background: #05050f; }
.cam img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.cam__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 55%, rgba(0,0,0,.65)); }
.cam__bbox {
  position: absolute; border: 1.5px solid var(--brand); border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 61, 113, .25);
  transition: all .45s var(--ease);
}
.cam__bbox span {
  position: absolute; top: -22px; left: -1.5px; background: var(--brand); color: #fff;
  font: 600 10.5px var(--mono); padding: 3px 7px; border-radius: 3px; white-space: nowrap;
}
.cam__live { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; font: 600 10.5px var(--mono); color: #fff; background: rgba(0,0,0,.45); padding: 4px 9px; border-radius: 5px; backdrop-filter: blur(4px); }
.cam__ts { position: absolute; top: 12px; right: 12px; font: 500 11px var(--mono); color: #fff; background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 5px; backdrop-filter: blur(4px); }
.cam__name { position: absolute; bottom: 12px; left: 12px; font: 600 13px var(--sans); color: #fff; }

.opscard__top { display: flex; align-items: center; gap: 12px; }
.rel {
  display: inline-flex; align-items: baseline; gap: 4px;
  font: 600 11.5px var(--mono); letter-spacing: .02em; color: #0E8A54;
  background: rgba(24, 178, 107, .1); border: 1px solid rgba(24, 178, 107, .35);
  padding: 3px 9px; border-radius: 5px; white-space: nowrap;
}
.rel b { font-weight: 700; }
.rel--no { color: #5B5B60; background: rgba(142, 142, 147, .1); border-color: rgba(142, 142, 147, .35); }
.opscard__verified { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #0E8A54; }
.opscard__verified--off { color: #5B5B60; }
.opscard__title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--fg-1); margin: 14px 0 6px; }
.opscard__reason { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0 0 16px; }
.opscard__meta { display: flex; flex-wrap: wrap; gap: 22px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.opscard__meta span { display: flex; flex-direction: column; gap: 2px; }
.opscard__meta b { font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--fg-3); }
.opscard__meta i { font: 500 14px var(--mono); font-style: normal; color: var(--fg-1); }
.opscard__actions { display: flex; gap: 10px; margin-top: 6px; }

/* Code cards — dark ops island */
.codecard { background: var(--ops-panel-2); border: 1px solid var(--ops-border); border-radius: var(--r-md); overflow: hidden; }
.codecard__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--ops-hairline);
  font: 600 10.5px var(--mono); letter-spacing: .08em; color: var(--ops-fg-3);
}
.codecard__bar span { display: inline-flex; align-items: center; gap: 8px; }
.json {
  font: 400 12.5px/1.75 var(--mono); color: #C9CCE6; margin: 0; padding: 14px 16px;
  overflow-x: auto; tab-size: 2;
}
.json .jk { color: #FD6593; }
.json .js { color: #C9CCE6; }
.json .jn { color: #5EA0FF; }

/* ── 03 · ROI ───────────────────────────────────────────────── */
.roi { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.roi__ctrl {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 26px; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.roi__f { display: flex; flex-direction: column; gap: 12px; }
.roi__flbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; font-weight: 600; color: var(--fg-2); }
.roi__fval { font: 600 16px var(--mono); color: var(--fg-1); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-hover) var(--fill, 50%), var(--border) var(--fill, 50%));
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-hover);
  box-shadow: var(--shadow-sm); cursor: grab; transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-hover);
  box-shadow: var(--shadow-sm); cursor: grab;
}
.roi__out {
  background: var(--ink); color: rgba(255, 255, 255, .64);
  border: 1px solid var(--ink); border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
}
.roi__big { display: flex; flex-direction: column; gap: 6px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.roi__bigv { font: 600 clamp(44px, 4.6vw, 64px)/1 var(--mono); letter-spacing: -.03em; color: #FD6593; }
.roi__bigl { font-size: 15px; color: rgba(255, 255, 255, .7); }
.roi__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px 0; }
.roi__c { display: flex; flex-direction: column; gap: 4px; }
.roi__cv { font: 600 26px/1.1 var(--mono); color: #fff; letter-spacing: -.02em; }
.roi__cl { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .5); }
.roi__cta { align-self: flex-start; }
.roi__out .btn--accent { background: var(--brand); }
.roi__out .btn--accent:hover { background: var(--brand-hover); }
.roi__note { font-size: 12px; color: rgba(255, 255, 255, .45); margin: 14px 0 0; }

/* ── 04 · Developers ────────────────────────────────────────── */
.dev { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.dev__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dev__points li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.dev__points li:first-child { padding-top: 0; }
.dev__pico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--alt); color: var(--fg-1); border: 1px solid var(--border);
}
.dev__points h3 { font-size: 16.5px; font-weight: 700; color: var(--fg-1); margin: 0 0 4px; }
.dev__points p { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.dev__ep { margin: 24px 0; padding: 18px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.dev__eplbl { font: 600 10.5px var(--mono); letter-spacing: .1em; color: var(--fg-3); }
.dev__ep ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font: 500 13px var(--mono); color: var(--fg-2); }
.dev__ep li { display: flex; align-items: center; gap: 10px; }
.dev__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dev__dot--post { background: var(--brand-hover); }
.dev__dot--get { background: #0A5FD7; }
.dev__dot--put { background: #C47A00; }
.dev__dot--hook { background: var(--live); }
.dev__panes { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dev__panes .codecard { box-shadow: var(--shadow-ops); }
.dev__panes .json { min-height: 180px; }

/* ── Movimiento ≠ amenaza (comparativa) ─────────────────────── */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs__p {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm);
}
.vs__p--good { border-color: rgba(255, 61, 113, .35); box-shadow: var(--shadow-md); }
.vs__tag { display: block; font: 700 11px var(--mono); letter-spacing: .12em; margin-bottom: 18px; color: var(--fg-3); }
.vs__p--good .vs__tag { color: var(--brand-hover); }
.vs__p ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vs__p li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.vs__p--bad li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
  border-radius: 50%; background: rgba(142, 142, 147, .14);
  box-shadow: inset 0 0 0 1px rgba(142, 142, 147, .45);
}
.vs__p--bad li::after {
  content: ''; position: absolute; left: 4.5px; top: 11px; width: 6px; height: 1.5px;
  background: #5B5B60;
}
.vs__p--good li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
  border-radius: 50%; background: rgba(24, 178, 107, .12);
  box-shadow: inset 0 0 0 1px rgba(24, 178, 107, .45);
}
.vs__p--good li::after {
  content: ''; position: absolute; left: 4px; top: 8.5px; width: 6.5px; height: 4px;
  border-left: 1.5px solid #0E8A54; border-bottom: 1.5px solid #0E8A54; transform: rotate(-45deg);
}
.vs__close {
  margin: 28px auto 0; max-width: 46em; text-align: center;
  font-size: 15px; line-height: 1.6; color: var(--fg-3);
}

/* ── 05 · Despliegue ────────────────────────────────────────── */
.dep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dep__p {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.dep__p:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dep__tag { font: 700 11px var(--mono); letter-spacing: .12em; color: var(--brand-hover); }
.dep__p h3 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--fg-1); margin: 12px 0 6px; }
.dep__p > p { font-size: 15px; color: var(--fg-2); margin: 0 0 18px; }
.dep__p ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dep__p li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--fg-2); }
.dep__p li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background: rgba(24, 178, 107, .12);
  box-shadow: inset 0 0 0 1px rgba(24, 178, 107, .45);
}
.dep__p li::after {
  content: ''; position: absolute; left: 4px; top: 9px; width: 6px; height: 3.5px;
  border-left: 1.5px solid #0E8A54; border-bottom: 1.5px solid #0E8A54; transform: rotate(-45deg);
}

/* ── 06 · Implantación (timeline) ───────────────────────────── */
.tl { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.tl::before {
  content: ''; position: absolute; top: 15px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 20, 43, .18) 15%, rgba(20, 20, 43, .18) 85%, transparent);
}
.tl__step { position: relative; padding-top: 44px; }
.tl__marker { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 10px; }
.tl__marker::before {
  content: ''; width: 31px; height: 31px; border-radius: 50%; flex: none;
  background: var(--page); border: 1px solid rgba(20, 20, 43, .3);
  background-image: radial-gradient(circle, rgba(20, 20, 43, .6) 3px, transparent 3.5px);
}
.tl__marker--live::before { border-color: var(--brand-hover); background-image: radial-gradient(circle, var(--brand-hover) 3px, transparent 3.5px); }
.tl__wk { font: 700 10.5px var(--mono); letter-spacing: .12em; color: var(--fg-3); }
.tl__marker--live .tl__wk { color: var(--brand-hover); }
.tl__step h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--fg-1); margin: 0 0 8px; }
.tl__step p { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); margin: 0; max-width: 26em; }

/* ── FAQ ───────────────────────────────────────────────────── */
.sec--faq {
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(circle at 88% 8%, rgba(255, 61, 113, .08), transparent 24%),
    linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 38%);
}
.sec--faq::before {
  content: ''; position: absolute; width: 360px; height: 360px; right: -180px; bottom: -180px;
  border: 1px solid rgba(255, 61, 113, .12); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 54px rgba(255, 61, 113, .025), 0 0 0 108px rgba(255, 61, 113, .018);
}
.sec--faq .sec__in { position: relative; }
.sec--faq .shead { margin-bottom: clamp(30px, 4vw, 48px); }
.sec--faq .shead__main .h2 { margin-top: 15px; }
.faq {
  max-width: 1080px; margin-left: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.faq__col { display: flex; flex-direction: column; gap: 16px; }
.faq details {
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(20, 20, 43, .08);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .22s, box-shadow .22s, transform .22s var(--ease);
}
.faq details:hover { border-color: rgba(20, 20, 43, .16); transform: translateY(-1px); }
.faq details[open] {
  border-color: rgba(255, 61, 113, .34); box-shadow: var(--shadow-md);
  transform: none;
}
.faq summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 20px;
  min-height: 76px; padding: 18px 20px 18px 22px;
  color: var(--fg-1); font-size: 15.5px; font-weight: 650; line-height: 1.45;
  cursor: pointer; list-style: none; transition: color .18s, background .18s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-deep); background: rgba(255, 61, 113, .025); }
.faq summary:focus-visible { outline: 3px solid rgba(255, 61, 113, .28); outline-offset: -3px; }
.faq summary::after {
  content: '+'; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid rgba(20, 20, 43, .12); border-radius: 50%;
  color: var(--brand-hover); background: var(--panel); font: 500 21px/1 var(--sans);
  transition: transform .22s var(--ease), color .18s, background .18s, border-color .18s;
}
.faq details[open] summary { color: var(--brand-deep); padding-bottom: 12px; }
.faq details[open] summary::after {
  color: #fff; background: var(--brand); border-color: var(--brand); transform: rotate(45deg);
}
.faq details p {
  margin: 0; padding: 0 72px 22px 22px;
  color: var(--fg-2); font-size: 14.5px; line-height: 1.72;
}
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: faq-in .28s var(--ease) both; }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* ── 07 · CTA / Form ────────────────────────────────────────── */
.sec--cta { background: var(--alt); border-top: 1px solid var(--hairline); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta__desc { font-size: 17px; line-height: 1.65; color: var(--fg-2); margin: 18px 0 0; max-width: 30em; }
.cta__proof { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font: 500 12.5px var(--mono); color: var(--fg-3); }
.cta .h2 { margin-top: 18px; }
.formcard {
  position: relative;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-md);
}
.form__hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.form__err { font-size: 13.5px; color: #C81E14; margin: 0 0 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.field input, .field select {
  font: 400 15px var(--sans); color: var(--fg-1); background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 61, 113, .18); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23767B93' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form__note { font-size: 12.5px; color: var(--fg-3); text-align: center; margin: 14px 0 0; }
.form__note a { color: var(--fg-3); text-decoration: underline; text-underline-offset: 3px; }
.form__note a:hover { color: var(--fg-2); }
.form__ok { text-align: center; padding: 36px 12px; }
.form__ok h3 { font-size: 22px; font-weight: 700; color: var(--fg-1); margin: 14px 0 6px; }
.form__ok p { font-size: 14.5px; color: var(--fg-2); margin: 0; }
.form__ok .i--big { margin-inline: auto; color: #0E8A54; }

/* ── Footer (dark ink anchor) ───────────────────────────────── */
.foot { background: var(--ink); }
.foot__in {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
}
.foot .brand__wm { color: rgba(255, 255, 255, .94); }
.foot__tag { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .5); max-width: 26em; margin: 18px 0 0; }
.foot__copy { font-size: 12.5px; color: rgba(255, 255, 255, .38); margin: 22px 0 0; }
.foot__cols { display: flex; gap: clamp(32px, 5vw, 80px); justify-content: flex-end; }
.foot__col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); margin: 0 0 14px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot__col a { font-size: 14px; color: rgba(255, 255, 255, .5); transition: color .15s; }
.foot__col a:hover { color: #fff; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .hero__in { grid-template-columns: 1fr; }
  .opwin { margin-right: 0; }
  .tri, .dev, .roi { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr 1fr; }
  .pipe__line { display: none; }
  .dep { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .band__proof { width: 100%; border-right: 0; padding-right: 0; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
  .cta { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 32px; }
  .tl::before { display: none; }
}
@media (max-width: 760px) {
  .hd__nav, .hd__login, .hd__right .btn--accent, .hd__right .btn--primary { display: none; }
  .hd__burger { display: flex; }
  .hd__sheet.is-open {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 22px;
    border-top: 1px solid var(--hairline); background: rgba(255, 255, 255, .98);
  }
  .hd__sheet a { padding: 13px 4px; font-size: 16px; color: var(--fg-1); border-bottom: 1px solid var(--hairline); }
  .hd__sheet .btn { margin-top: 14px; border-bottom: 0; }
  .pipe { grid-template-columns: 1fr; }
  .shead { grid-template-columns: 1fr; gap: 10px; }
  .form__row { grid-template-columns: 1fr; }
  .roi__row { grid-template-columns: 1fr; }
  .dep { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 12px; }
  .faq__col { gap: 12px; }
  .faq summary { min-height: 70px; padding: 16px 16px 16px 18px; font-size: 15px; }
  .faq details[open] summary { padding-bottom: 10px; }
  .faq details p { padding: 0 58px 19px 18px; font-size: 14px; }
  .band__in { flex-direction: column; align-items: flex-start; gap: 20px; }
  .band__proof { flex-wrap: wrap; }
  .band__c { align-items: flex-start; text-align: left; }
  .band__v--phrase { white-space: normal; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__cols { justify-content: flex-start; flex-wrap: wrap; gap: 28px 40px; }
}
