/* SavvyTalk — site vitrine. Aucune dépendance externe. */
:root {
  --brand: #e3592b;
  --brand-2: #ff8a4c;
  --brand-ink: #c2461b;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-warm: #fff7f2;
  --night: #0b1020;
  --night-2: #121a30;
  --night-line: rgba(255, 255, 255, .09);
  --ok: #16a34a;
  --ko: #dc2626;
  --warn: #d97706;
  --blue: #2563eb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 28px rgba(15, 23, 42, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.site-header .logo img { height: 38px; width: auto; }
.site-header .logo .lg-d { display: none; }
.site-header.solid, .site-header.light-page {
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line);
}
.site-header.solid .logo .lg-w, .site-header.light-page .logo .lg-w { display: none; }
.site-header.solid .logo .lg-d, .site-header.light-page .logo .lg-d { display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255, 255, 255, .82); font-weight: 550; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: #fff; text-decoration: none; }
.site-header.solid .nav a, .site-header.light-page .nav a { color: var(--ink-2); }
.site-header.solid .nav a:hover, .site-header.light-page .nav a:hover { color: var(--brand-ink); }
.nav a.btn { color: #fff; }
.nav a.lang { font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .85; }
.nav a.lang:hover { opacity: 1; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.site-header.solid .menu-toggle, .site-header.light-page .menu-toggle { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 650 15px/1 var(--font); padding: 13px 22px; border-radius: 999px; transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 24px rgba(227, 89, 43, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(227, 89, 43, .45); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand-ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--night); padding: 132px 0 90px; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(600px 380px at 78% 18%, rgba(227, 89, 43, .32), transparent 70%),
    radial-gradient(520px 420px at 8% 60%, rgba(37, 99, 235, .22), transparent 70%),
    radial-gradient(800px 500px at 50% 110%, rgba(255, 138, 76, .16), transparent 70%);
}
#hero-wave { position: absolute; inset: auto 0 0; width: 100%; height: 260px; z-index: -1; opacity: .55; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: #ffd9c7; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(255, 138, 76, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 138, 76, 0); } }
.hero h1 { font-size: clamp(36px, 6vw, 66px); font-weight: 820; letter-spacing: -.035em; }
.grad { background: linear-gradient(100deg, #ffb48a, var(--brand-2) 40%, #ff5f2e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2.1vw, 20px); color: rgba(255, 255, 255, .74); max-width: 680px; margin: 18px auto 30px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.hero-trust span::before { content: "✓"; color: var(--brand-2); font-weight: 800; margin-right: 7px; }

/* ---------- Demo player ---------- */
.demo-wrap { position: relative; max-width: 1080px; margin: 0 auto; width: 100%; }
.demo-wrap::before {
  content: ""; position: absolute; inset: 6% 4% -6%; background: linear-gradient(120deg, rgba(227, 89, 43, .55), rgba(37, 99, 235, .4));
  filter: blur(60px); opacity: .55; z-index: -1; border-radius: 40px;
}
.player {
  position: relative; border-radius: 18px; overflow: hidden; background: #0e1424;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 90px rgba(0, 0, 0, .55);
}
.player-chrome { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #161d31; border-bottom: 1px solid var(--night-line); }
.player-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #3a435c; display: block; }
.player-chrome i:nth-child(1) { background: #ff5f57; } .player-chrome i:nth-child(2) { background: #febc2e; } .player-chrome i:nth-child(3) { background: #28c840; }
.player-chrome .url {
  margin: 0 auto; font: 500 12px var(--font); color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06);
  padding: 5px 16px; border-radius: 8px; min-width: 40%; text-align: center;
}
.stage-box { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f6fa; }
.stage { position: absolute; top: 0; left: 0; width: 1120px; height: 700px; transform-origin: 0 0; color: var(--ink); font-size: 14px; }

.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; z-index: 6;
  background: linear-gradient(transparent, rgba(8, 12, 24, .82)); color: #fff; display: flex; align-items: center; gap: 12px;
  transition: opacity .3s;
}
.player.playing:not(:hover) .player-controls { opacity: .0; }
.player.playing:not(:hover) .player-controls:focus-within { opacity: 1; }
@media (hover: none) { .player.playing .player-controls { opacity: 1 !important; } }
.pc-btn { background: rgba(255, 255, 255, .14); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.pc-btn:hover { background: rgba(255, 255, 255, .24); }
.pc-track { position: relative; flex: 1; height: 22px; cursor: pointer; display: flex; align-items: center; }
.pc-rail { position: relative; width: 100%; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.pc-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.pc-mark { position: absolute; top: 50%; width: 2px; height: 9px; margin-top: -4.5px; background: rgba(8, 12, 24, .9); }
.pc-time { font: 600 12px var(--mono); color: rgba(255, 255, 255, .8); flex: none; min-width: 84px; text-align: right; }
.pc-fs { flex: none; }

.chapter-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.chapter-strip button {
  font: 600 13px var(--font); color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); border: 0; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: all .2s;
}
.chapter-strip button:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.chapter-strip button.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: none; }
.demo-note { text-align: center; color: rgba(255, 255, 255, .45); font-size: 12.5px; margin-top: 12px; }

.big-play {
  position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(8, 12, 24, .35); border: 0; cursor: pointer;
  transition: opacity .3s;
}
.big-play span {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 0 12px rgba(255, 138, 76, .22), 0 20px 50px rgba(0, 0, 0, .4);
}
.player.started .big-play { opacity: 0; pointer-events: none; }

/* --- Mock app inside the stage --- */
/* the timeline drives every frame, so CSS transitions would only add lag */
.stage *:not(.cursor):not(.caption) { transition: none !important; }
.app { position: absolute; inset: 0; display: grid; grid-template-columns: 210px 1fr; font-family: var(--font); }
.app-side { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-side .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; margin: 0 6px 20px; }
.app-side .brand b { width: 28px; height: 28px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13.5px; transition: all .3s; }
.side-item svg { width: 17px; height: 17px; flex: none; }
.side-item.on { background: var(--bg-warm); color: var(--brand-ink); }
.side-foot { margin-top: auto; background: var(--bg-soft); border-radius: 12px; padding: 12px; font-size: 12px; color: var(--muted); }
.side-foot b { display: block; color: var(--ink); font-size: 18px; }
.app-main { position: relative; overflow: hidden; }
.app-top { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid var(--line); background: #fff; }
.app-top .crumb { font-weight: 700; font-size: 16px; }
.app-top .crumb small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.app-top .user { display: flex; position: relative; z-index: 6; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.app-top .user i { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #fbbf9d, var(--brand)); display: block; }

.scene { position: absolute; inset: 58px 0 0; padding: 22px 26px; opacity: 0; visibility: hidden; }
.scene.on { opacity: 1; visibility: visible; }
.caption {
  position: absolute; bottom: 22px; left: 50%; z-index: 5; background: rgba(15, 23, 42, .94); transition: bottom .3s; color: #fff; padding: 7px 16px 8px; white-space: nowrap;
  border-radius: 12px; box-shadow: 0 10px 26px rgba(15, 23, 42, .22); display: flex; align-items: baseline; gap: 10px;
}
.player:hover .caption, .player:not(.playing) .caption { bottom: 78px; }
.caption small { font-size: 10.5px; font-weight: 800; color: var(--brand-2); letter-spacing: .08em; text-transform: uppercase; }
.caption strong { font-size: 15px; font-weight: 600; }
.demo-cap { display: none; text-align: center; color: #fff; font-size: 15px; margin: 14px 0 0; min-height: 44px; }
.demo-cap small { display: block; color: var(--brand-2); font-weight: 750; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }
.card-h { padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-b { padding: 14px 16px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.ok { background: #dcfce7; color: #166534; } .pill.ko { background: #fee2e2; color: #991b1b; }
.pill.run { background: #ffedd5; color: #9a3412; } .pill.wait { background: #f1f5f9; color: #475569; } .pill.blue { background: #dbeafe; color: #1e40af; }
.bar-mini { height: 7px; border-radius: 9px; background: #f1f5f9; overflow: hidden; }
.bar-mini i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 9px; }
.t-row { display: grid; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f1f5f9; font-size: 13px; transition: opacity .35s, transform .35s; }
.t-row:last-child { border-bottom: 0; }
.t-head { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-soft); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.kpi { padding: 16px 18px; }
.kpi small { display: block; font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { display: block; font-size: 30px; font-weight: 800; color: var(--brand-ink); line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; color: var(--ok); font-weight: 650; }
.hidden-y { opacity: 0; transform: translateY(10px); }

/* agent flow (scene 1) */
.flow { display: flex; align-items: center; gap: 0; margin-bottom: 18px; }
.flow-node { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; font-weight: 650; display: flex; align-items: center; gap: 9px; flex: none; }
.flow-node i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-warm); color: var(--brand-ink); font-style: normal; }
.flow-line { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #cbd5e1 0 6px, transparent 6px 11px); }
.flow-line b { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(227, 89, 43, .2); }

/* transcript (scene 2) */
.wave { display: flex; align-items: center; gap: 3px; height: 64px; }
.wave i { flex: 1; background: #cbd5e1; border-radius: 3px; }
.wave i.p { background: var(--brand); }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; margin-bottom: 9px; transition: opacity .3s, transform .3s; }
.bubble small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.bubble.a { background: var(--bg-warm); border: 1px solid #fde0d1; } .bubble.a small { color: var(--brand-ink); }
.bubble.c { background: #eff6ff; border: 1px solid #dbeafe; margin-left: auto; } .bubble.c small { color: var(--blue); }

/* criteria (scene 3) */
.crit { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #f1f5f9; transition: opacity .35s, transform .35s; }
.crit .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.crit .ic.ok { background: var(--ok); } .crit .ic.ko { background: var(--ko); } .crit .ic.mid { background: var(--warn); }
.crit h5 { margin: 0; font-size: 13.5px; }
.crit > .pill { align-self: start; white-space: nowrap; }
.crit p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.crit q { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-2); border-left: 3px solid var(--brand-2); padding-left: 8px; font-style: italic; quotes: "« " " »"; }
.score-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 10px;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #f1f5f9 0); }
.score-ring div { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.score-ring b { font-size: 32px; font-weight: 800; line-height: 1; }
.score-ring small { font-size: 11px; color: var(--muted); }

/* metrics (scene 4) */
.metric-card { padding: 14px 16px; transition: opacity .35s, transform .35s; }
.metric-card .mt { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.metric-card .mi { font-size: 12.5px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); min-height: 44px; }
.metric-card .mv { min-height: 34px; }
.metric-card .mv { font-size: 22px; font-weight: 800; margin-top: 6px; }
.metric-card code { font: 600 11px var(--mono); background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; color: var(--muted); }
.donut { width: 120px; height: 120px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 12.5px; margin: 8px 0; }
.hbar .bar-mini { height: 10px; }

/* chart (scene 5) */
.chart svg { width: 100%; height: 190px; overflow: visible; }

/* chat (scene 7) */
.chat { display: flex; flex-direction: column; height: 100%; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5; margin-bottom: 10px; transition: opacity .3s, transform .3s; }
.msg.u { background: var(--bg-warm); border: 1px solid #f5cbb8; margin-left: auto; }
.msg.b { background: #fff; border: 1px solid var(--line); }
.diff { font: 12px/1.6 var(--mono); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin-top: 8px; background: #fbfbfb; }
.diff .add { background: #dcfce7; color: #166534; display: block; padding: 0 4px; }
.diff .del { background: #fee2e2; color: #991b1b; text-decoration: line-through; display: block; padding: 0 4px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: tb 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tb { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* export (scene 8) */
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; }
.chk i { width: 17px; height: 17px; border-radius: 5px; border: 2px solid #cbd5e1; display: grid; place-items: center; transition: all .2s; font-style: normal; color: #fff; font-size: 11px; font-weight: 900; }
.chk.on i { background: var(--brand); border-color: var(--brand); }
.xls { font: 12px var(--mono); border-collapse: collapse; width: 100%; }
.xls td, .xls th { border: 1px solid #d9e1ea; padding: 5px 7px; text-align: left; white-space: nowrap; }
.xls th { background: #e8f5ec; color: #14532d; font-weight: 700; }
.xls tr { transition: opacity .25s; }
.cursor { position: absolute; z-index: 4; width: 22px; height: 22px; pointer-events: none; transition: left .7s cubic-bezier(.4, 0, .2, 1), top .7s cubic-bezier(.4, 0, .2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.cursor.click::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--brand); animation: clk .5s ease-out; }
@keyframes clk { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.section-head p { font-size: 18px; color: var(--muted); }
.soft { background: var(--bg-soft); }
.warm { background: linear-gradient(180deg, #fff, var(--bg-warm)); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: -40px; position: relative; z-index: 2; }
.stats div { background: #fff; padding: 26px 22px; text-align: center; }
.stats b { display: block; font-size: 34px; font-weight: 820; letter-spacing: -.03em; color: var(--brand-ink); }
.stats span { font-size: 14px; color: var(--muted); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .col { border-radius: var(--radius); padding: 30px; }
.compare .before { background: #fff; border: 1px solid var(--line); }
.compare .after { background: var(--night); color: #fff; box-shadow: 0 30px 60px rgba(11, 16, 32, .25); position: relative; overflow: hidden; }
.compare .after::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(rgba(227, 89, 43, .5), transparent 70%); }
.compare h3 { font-size: 21px; }
.compare ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.compare li { display: flex; gap: 11px; align-items: flex-start; }
.compare li::before { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; margin-top: 2px; }
.compare .before li::before { content: "✕"; background: #fee2e2; color: var(--ko); }
.compare .after li::before { content: "✓"; background: rgba(255, 138, 76, .2); color: var(--brand-2); }
.compare .after li { color: rgba(255, 255, 255, .86); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 800 13px var(--mono); color: var(--brand-ink); background: var(--bg-warm); padding: 5px 9px; border-radius: 8px; }
.step h3 { font-size: 18px; margin-top: 16px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step .ico { position: absolute; right: 20px; top: 20px; width: 34px; height: 34px; color: var(--brand); opacity: .9; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 23, 42, .09); border-color: #f5cbb8; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #fff1ea, #ffe0d0); color: var(--brand-ink); margin-bottom: 16px; }
.feature .ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.feature a { font-size: 14px; font-weight: 650; }

.spotlight { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 40px 0; }
.spotlight.rev .sp-copy { order: 2; }
.sp-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.sp-copy p { color: var(--muted); font-size: 17px; }
.sp-copy ul { padding: 0; list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.sp-copy li { display: flex; gap: 10px; }
.sp-copy li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--bg-warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c2461b' stroke-width='2.6'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center/14px no-repeat; }
.sp-visual { background: linear-gradient(145deg, #fff, var(--bg-warm)); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.sp-visual .card { box-shadow: 0 10px 30px rgba(15, 23, 42, .07); }

.security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec-item { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--night-line); }
.sec-item h3 { font-size: 17px; color: #fff; }
.sec-item p { font-size: 14.5px; color: rgba(255, 255, 255, .65); margin: 0; }
.sec-item .ico { color: var(--brand-2); width: 30px; height: 30px; margin-bottom: 14px; }
.dark { background: var(--night); color: #fff; }
.dark .section-head p { color: rgba(255, 255, 255, .65); }
.dark .kicker { color: var(--brand-2); }

.pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.price-table td b { color: var(--brand-ink); }
.calc { background: var(--night); color: #fff; border-radius: var(--radius); padding: 28px; }
.calc label { display: block; font-size: 14px; color: rgba(255, 255, 255, .7); margin: 16px 0 6px; }
.calc label span { float: right; color: #fff; font-weight: 700; }
.calc input[type=range] { width: 100%; accent-color: var(--brand); }
.calc .tog { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.calc .tog input { accent-color: var(--brand); width: 18px; height: 18px; }
.calc .total { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--night-line); display: flex; align-items: baseline; justify-content: space-between; }
.calc .total b { font-size: 40px; font-weight: 820; color: var(--brand-2); }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }

.cta-band { background: linear-gradient(135deg, #1a1030, var(--night) 40%, #2a1208); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -200px; background: radial-gradient(rgba(227, 89, 43, .55), transparent 65%); }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta-band p { color: rgba(255, 255, 255, .7); }
.form { position: relative; z-index: 1; display: grid; gap: 12px; }
.form input, .form textarea {
  width: 100%; font: 15px var(--font); padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07); color: #fff;
}
.form input::placeholder { color: rgba(255, 255, 255, .45); }
.form-feedback { min-height: 22px; font-size: 14px; color: #ffd0b8; }

/* ---------- Footer ---------- */
.site-footer { background: #070b16; color: rgba(255, 255, 255, .65); padding: 64px 0 34px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .logo-f { height: 36px; width: auto; margin-bottom: 14px; }
.credit {
  margin-top: 46px; padding: 22px 24px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(227, 89, 43, .16), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 138, 76, .3);
}
.credit p { margin: 0; color: #fff; font-size: 17px; }
.credit p a { color: var(--brand-2); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.credit .copy { font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Docs page ---------- */
.docs-hero { background: var(--night); color: #fff; padding: 130px 0 56px; position: relative; overflow: hidden; }
.docs-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 85% 10%, rgba(227, 89, 43, .3), transparent 70%); }
.docs-hero .container { position: relative; }
.docs-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 820; }
.docs-hero p { color: rgba(255, 255, 255, .7); font-size: 18px; max-width: 720px; }
.docs-search { margin-top: 22px; max-width: 520px; position: relative; }
.docs-search input { width: 100%; font: 16px var(--font); padding: 14px 18px 14px 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; }
.docs-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; color: rgba(255, 255, 255, .5); }
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 56px 0 96px; }
.docs-nav { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 14.5px; }
.docs-nav h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin: 20px 0 8px; }
.docs-nav h5:first-child { margin-top: 0; }
.docs-nav a { display: block; color: var(--ink-2); padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.docs-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.docs-nav a.active { color: var(--brand-ink); background: var(--bg-warm); border-left-color: var(--brand); font-weight: 650; }
.doc { max-width: 780px; min-width: 0; }
.doc section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.doc h2 .n { font: 800 13px var(--mono); color: var(--brand-ink); background: var(--bg-warm); padding: 5px 9px; border-radius: 8px; }
.doc h3 { font-size: 19px; margin-top: 30px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0 20px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bg-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doc code { font: 13px var(--mono); background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.doc pre { background: var(--night); color: #e2e8f0; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font: 13px/1.6 var(--mono); }
.doc pre code { background: none; border: 0; color: inherit; padding: 0; }
.callout { border-radius: 14px; padding: 14px 18px; margin: 18px 0; background: var(--bg-warm); border: 1px solid #fde0d1; font-size: 15px; }
.callout.info { background: #eff6ff; border-color: #dbeafe; }
.callout b:first-child { color: var(--brand-ink); }
.callout.info b:first-child { color: var(--blue); }
.doc .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.doc .mini { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.doc .mini h4 { margin: 0 0 6px; font-size: 16px; }
.doc .mini p { font-size: 14.5px; margin: 0; color: var(--muted); }
.doc-hide { display: none !important; }
.no-results { color: var(--muted); padding: 30px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  .nav { gap: 18px; }
  .nav a.opt { display: none; }
}
@media (max-width: 1020px) {
  .features { grid-template-columns: 1fr 1fr; }
  .steps, .security { grid-template-columns: 1fr 1fr; }
  .spotlight, .spotlight.rev { grid-template-columns: 1fr; gap: 30px; }
  .spotlight.rev .sp-copy { order: 0; }
  .pricing, .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 40px; columns: 2; }
  .docs-nav h5 { break-after: avoid; }
}
@media (max-width: 760px) {
  section { padding: 68px 0; }
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 10px 16px 18px; box-shadow: 0 20px 40px rgba(15, 23, 42, .15); display: none; }
  .nav.open { display: flex; }
  .nav a { color: var(--ink-2) !important; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav a.btn { color: #fff !important; margin-top: 12px; border: 0; }
  .nav a.lang { box-shadow: none; padding: 13px 4px; border-radius: 0; font-size: 15px; }
  .menu-toggle { display: block; }
  .hero { padding: 112px 0 64px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -24px; }
  .stats b { font-size: 26px; }
  .compare, .features, .steps, .security { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; border-radius: 22px; }
  .caption { display: none !important; }
  .demo-cap { display: block; }
  .pc-time { display: none; }
  .chapter-strip { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
  .chapter-strip button { flex: none; }
  .doc .grid2 { grid-template-columns: 1fr; }
  .docs-nav { columns: 1; }
  .sp-visual { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
