/* Desium landing — tokens mirror the Figma "Color" collection (Dark Glass / Light Glass) */
:root {
  --bg: #0B0E11;
  --surface: rgba(26, 31, 36, .62);
  --subtle: rgba(255, 255, 255, .06);
  --hover: rgba(255, 255, 255, .10);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #F2F4EF;
  --text-2: #B6BCB5;
  --text-3: #8A918A;
  --accent: #FF9951;
  --accent-hover: #F58A40;
  --accent-subtle: rgba(255, 153, 81, .14);
  --text-accent: #FFB27D;
  --on-accent: #1C1009;
  --success: #6FDCA4;
  --nav-h: 72px;
  --gutter: 160px;
  --maxw: 1120px;
  --hero-w: min(max(1200px, 75vw), 1680px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
.light {
  --surface: rgba(255, 255, 255, .66);
  --subtle: rgba(11, 14, 17, .05);
  --border: rgba(11, 14, 17, .08);
  --border-strong: rgba(11, 14, 17, .14);
  --text: #14181C;
  --text-2: #555C57;
  --text-3: #8C928C;
  --text-accent: #B04A0B;
  --accent-subtle: rgba(255, 153, 81, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }
.ic { width: 16px; height: 16px; flex: none; }
.ic.sm { width: 12px; height: 12px; }
.ic.lg { width: 22px; height: 22px; }
.container { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font-weight: 600; white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(.98); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-md { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-accent); font-weight: 500; font-size: 16px; }
.btn-link .ic { transition: transform .2s var(--ease); }
.btn-link:hover .ic { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(11, 14, 17, .72); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); border-bottom: 1px solid var(--border); }
.nav-inner { height: 100%; width: min(var(--hero-w), 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 36px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }

/* ---------- ambient gradients (soft radial, fade to transparent) ---------- */
.ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; will-change: transform; animation: drift var(--dur, 22s) ease-in-out infinite alternate; }
.blob { background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 45%, transparent) 45%, transparent 100%); }
.b1 { --c: rgba(44, 94, 92, .55); width: 1000px; height: 760px; left: -320px; top: -260px; --dur: 24s; }
.b2 { --c: rgba(92, 67, 52, .6); width: 820px; height: 640px; right: -260px; top: -140px; --dur: 19s; --dx: -70px; --dy: 50px; }
.b3 { --c: rgba(27, 53, 80, .7); width: 900px; height: 700px; left: -220px; top: 46%; --dur: 26s; --dx: 80px; --dy: -40px; }
.b4 { --c: rgba(255, 153, 81, .14); width: 1100px; height: 560px; left: calc(50% - 550px); top: 60%; --dur: 18s; --dx: 40px; --dy: -60px; }
.b5 { --c: rgba(44, 94, 92, .45); width: 820px; height: 760px; right: -240px; top: 52%; --dur: 21s; --dx: -60px; --dy: -50px; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(.94); }
  to { transform: translate3d(var(--dx, 80px), var(--dy, 40px), 0) scale(1.08); }
}
.ambient.soft .blob { opacity: .8; }
.ambient.soft .b1 { top: 0; }
.ambient.soft .b2 { top: 30%; }
.ambient.soft .b3 { top: 10%; }
.ambient.soft .b5 { top: 35%; }

/* ---------- hero ---------- */
.hero { position: relative; padding-bottom: 96px; isolation: isolate; overflow-x: clip; }
.hero-copy { position: relative; z-index: 2; min-height: calc(50svh - var(--nav-h)); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; gap: clamp(14px, 2.4vh, 24px); padding: 32px 16px clamp(24px, 4vh, 44px); }
.hero-title { font-weight: 600; font-size: clamp(40px, min(7.4vw, 9vh, 5.4vw), 124px); line-height: 1; letter-spacing: -.035em; display: flex; flex-direction: column; }
.hero-title .muted { color: var(--text-3); }
.hero-title span { display: block; opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-title span + span { animation-delay: .08s; }
.hero-sub { max-width: max(860px, 52vw); text-wrap: balance; font-size: clamp(15px, min(1.5vw, 2.2vh, 1.1vw), 24px); line-height: 1.55; color: var(--text-2); opacity: 0; animation: rise .9s .16s var(--ease) forwards; }
.hero-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: rise .9s .24s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.stage { position: relative; z-index: 1; width: min(var(--hero-w), 100% - 32px); margin-inline: auto; opacity: 0; transform: translateY(40px) scale(.985); animation: rise 1.1s .3s var(--ease) forwards; }
.marquee { position: absolute; top: 50%; left: 50%; width: 100vw; height: 0; transform: translateX(-50%); z-index: 0; }
.mq-card { position: absolute; top: 0; left: 0; width: var(--cw); aspect-ratio: 1060 / 816; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); translate: 0 -50%; will-change: transform; filter: blur(4px) brightness(.72) saturate(.85); }
.mq-card img { width: 100%; height: 100%; object-fit: cover; }
.browser-wrap { position: relative; z-index: 1; aspect-ratio: 1440 / 900; border-radius: 10px; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1); overflow: hidden; background: #15181B; }
.browser { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; transform: scale(var(--s, .8333)); font-family: var(--font); color: #F2F4EF; }

.b-tabs { height: 40px; background: #1C2024; display: flex; align-items: flex-end; padding: 0 16px; gap: 24px; }
.traffic { display: flex; gap: 8px; align-self: center; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.traffic i:nth-child(2) { background: #FEBC2E; }
.traffic i:nth-child(3) { background: #28C840; }
.b-tab { height: 32px; width: 240px; background: #2A2F34; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; color: #D9DDD6; }
.fav { width: 16px; height: 16px; border-radius: 4px; background: #14181C; color: #fff; font: 600 9px/16px var(--mono); text-align: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.fav.big { width: 24px; height: 24px; font-size: 11px; line-height: 24px; border-radius: 6px; }
.b-toolbar { height: 44px; background: #2A2F34; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #B6BCB5; }
.b-url { flex: 1; height: 28px; border-radius: 999px; background: #1C2024; font-size: 13px; line-height: 28px; padding: 0 14px; color: #D9DDD6; }
.ext-btn { width: 28px; height: 28px; border-radius: 6px; background: rgba(255,153,81,.22); display: grid; place-items: center; color: #F2F4EF; }
.ext-btn svg { width: 12px; height: 13px; }
.b-body { display: flex; height: 816px; }
.b-page { position: relative; width: 1060px; height: 816px; overflow: hidden; background: #FAF7F2; }
.pg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s ease; }
.pg.is-on { opacity: 1; }
.scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.scan.run { opacity: 1; }
.scan-band { position: absolute; left: 0; right: 0; height: 160px; top: -160px; background: linear-gradient(to bottom, rgba(255,153,81,0), rgba(255,153,81,.22)); }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: #FF9951; box-shadow: 0 0 14px 2px rgba(255,153,81,.85); }
.scan.run .scan-band, .scan.run .scan-line { animation: sweep .7s cubic-bezier(.3,.6,.2,1) forwards; }
@keyframes sweep { from { transform: translateY(0); } to { transform: translateY(816px); } }
.detects { position: absolute; inset: 0; pointer-events: none; }
.detect { position: absolute; border: 1.5px dashed #FF9951; border-radius: 6px; opacity: 0; animation: det 1.4s ease forwards; }
@keyframes det { 0% { opacity: 0; transform: scale(1.02); } 18% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* Desium side panel (HTML so values can change) */
.panel { position: relative; width: 380px; height: 816px; display: flex; flex-direction: column; background: radial-gradient(120% 60% at 100% 0%, rgba(44,94,92,.35), transparent 60%), radial-gradient(100% 50% at 0% 100%, rgba(27,53,80,.45), transparent 70%), #14181C; border-left: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.p-head { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.06); color: #B6BCB5; }
.p-logo { display: flex; align-items: center; gap: 8px; color: #F2F4EF; font-weight: 500; font-size: 13px; }
.p-logo svg:first-child { width: 12px; height: 13px; }
.p-sys { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px 10px; }
.p-sys-title { font-weight: 600; font-size: 14px; }
.p-sys-meta, .p-src-meta { font-size: 12px; color: #8A918A; }
.p-open { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 500; }
.p-source { margin: 0 12px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #B6BCB5; }
.p-src-txt { flex: 1; min-width: 0; }
.p-src-url { color: #F2F4EF; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#srcRefresh.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-tabs { display: flex; gap: 2px; margin: 12px 12px 0; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 12px; color: #B6BCB5; }
.p-tabs span { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px; white-space: nowrap; }
.p-tabs .on { background: rgba(255,255,255,.1); color: #F2F4EF; }
.p-sort { display: flex; justify-content: space-between; padding: 12px 16px 4px; font-size: 12px; color: #8A918A; }
.p-all { color: #F2F4EF; }
.p-list { flex: 1; overflow: hidden; padding: 0 8px; }
.p-group { padding: 12px 8px 4px; font-size: 11px; font-weight: 500; letter-spacing: .06em; color: #8A918A; }
.p-row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; transition: background .3s; }
.p-row.sel { background: rgba(255,255,255,.07); }
.p-row.flash { background: rgba(255,153,81,.16); }
.cb { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.22); display: grid; place-items: center; flex: none; color: transparent; }
.cb svg { width: 12px; height: 12px; }
.p-row.sel .cb { background: #FF9951; border-color: #FF9951; color: #1C1009; }
.p-row.in .cb { border-color: transparent; color: #6FDCA4; }
.p-sw { width: 28px; height: 28px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background-color .45s var(--ease); }
.p-txt { flex: 1; min-width: 0; line-height: 1.35; }
.p-hex { font: 500 12px var(--mono); color: #F2F4EF; }
.p-lab { font-size: 12px; color: #8A918A; white-space: nowrap; }
.p-badge { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: rgba(255,255,255,.08); color: #B6BCB5; }
.p-reading { position: absolute; left: 0; right: 0; top: 226px; bottom: 64px; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(20, 24, 28, .84); font-size: 12px; font-weight: 500; opacity: 0; transition: opacity .2s; pointer-events: none; }
.p-reading.on { opacity: 1; }
.p-reading i { width: 140px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.p-reading b { display: block; height: 100%; width: 0; background: #FF9951; }
.p-reading.on b { animation: bar .7s ease-out forwards; }
@keyframes bar { to { width: 100%; } }
.p-foot { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-top: 1px solid rgba(255,255,255,.08); }
.p-foot > div { flex: 1; }
.p-f1 { font-weight: 500; font-size: 13px; }
.p-f2 { font-size: 11px; color: #8A918A; }
.p-cross { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; }
.p-save { background: #FF9951; color: #1C1009; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; }

.trust { position: relative; z-index: 2; list-style: none; margin: 40px 0 0; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-size: 14px; color: var(--text-3); }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust .ic { color: var(--success); }

/* ---------- shared type ---------- */
.overline { font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-accent); margin-bottom: 20px; }
.h2 { font-weight: 600; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.04em; }
.h2.xl { font-size: clamp(38px, 4.8vw, 68px); }
.h2.xxl { font-size: clamp(48px, 5.8vw, 80px); line-height: 1; }
.lead { margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 640px; }
.lead.center { margin-inline: auto; }
.glass { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); box-shadow: 0 24px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); }
.glass-light { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); box-shadow: 0 20px 48px rgba(26,31,26,.10), inset 0 1px 0 rgba(255,255,255,.7); }

/* ---------- highlights ---------- */
.highlights { position: relative; padding: 120px 0 120px; }
.hl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 56px; }
.hl-head .h2 { font-size: clamp(34px, 3.4vw, 48px); }
.hl-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, (100% - var(--maxw)) / 2); padding: 8px max(16px, (100% - var(--maxw)) / 2) 40px; scrollbar-width: none; }
.hl-track::-webkit-scrollbar { display: none; }
.hl-card { flex: none; width: min(420px, 84vw); min-height: 520px; border-radius: 28px; padding: 40px 36px 36px; display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.hl-card .overline { font-size: 13px; margin: 0; }
.hl-card h3 { font-size: 28px; line-height: 1.25; letter-spacing: -.03em; font-weight: 600; }
.hl-vis { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sw-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.sw-row.sel { background: var(--hover); }
.sw-row b { display: block; font: 500 13px var(--mono); }
.sw-row small, .token-box small { display: block; font-size: 12px; color: var(--text-3); }
.sw { width: 28px; height: 28px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px var(--border-strong); flex: none; }
.sw.lg { width: 40px; height: 40px; border-radius: 10px; }
.token-box { padding: 20px; border-radius: 16px; background: var(--subtle); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.token-box hr { border: 0; border-top: 1px solid var(--border); margin: 0; width: 100%; }
.tb-top, .tb-row { display: flex; align-items: center; gap: 12px; }
.tb-top b { font-size: 14px; }
.tb-row { color: var(--text-3); font-size: 13px; }
.tb-row span { color: var(--text-2); }
.mini-sg { background: #FAF7F2; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; color: #1A1714; font-size: 13px; }
.mini-btns { display: flex; gap: 10px; }
.mb { padding: 10px 16px; border-radius: 10px; font-weight: 500; }
.mb.pri { background: #2F5BEA; color: #fff; }
.mb.sec { background: #fff; border: 1px solid #E9E2D8; }
.mini-input { background: #fff; border: 1.5px solid #2F5BEA; border-radius: 10px; padding: 10px 14px; }
.mini-card { background: #fff; border: 1px solid #E9E2D8; border-radius: 12px; padding: 14px; }
.mini-card b { display: block; font-size: 14px; }
.mini-card small { color: #5E5750; font-size: 12px; }
.fmt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--subtle); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.fmt .ic { color: var(--text-accent); }
.fmt span { flex: 1; }
.fmt small { font-size: 12px; color: var(--text-3); font-weight: 400; }
.hl-controls { display: flex; justify-content: space-between; align-items: center; }
.dots { display: flex; gap: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--border-strong); transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 24px; background: var(--text); }
.arrows { display: flex; gap: 12px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--subtle); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.round:hover { background: var(--hover); }
.round .ic { width: 18px; height: 18px; }

/* ---------- statement ---------- */
.statement { position: relative; padding: 140px 16px 160px; text-align: center; }
.statement-text { max-width: 1040px; margin: 0 auto; font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.2; letter-spacing: -.04em; }
.statement-text .w { color: var(--text-3); transition: color .4s ease; }
.statement-text .w.lit { color: var(--text); }
.stats { margin: 96px auto 0; display: flex; justify-content: center; flex-wrap: wrap; }
.stat { padding: 0 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 340px; }
.stat + .stat { border-left: 1px solid var(--border-strong); }
.stat b { font-size: 80px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat b.accent { color: var(--accent); }
.stat span { color: var(--text-2); max-width: 260px; }

/* ---------- how it works ---------- */
.how-intro { padding: 140px 16px 60px; text-align: center; }
.steps { margin-top: 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.steps a { padding: 10px 18px; border-radius: 999px; background: var(--subtle); border: 1px solid var(--border); font-weight: 500; font-size: 15px; transition: background .2s, border-color .2s; }
.steps a:hover, .steps a.on { background: var(--accent-subtle); border-color: var(--accent); }
.chapter { position: relative; padding: 120px 0; isolation: isolate; }
.chapter > .container, .chapter > .split-grid { position: relative; z-index: 1; }
.centered { text-align: center; }
.split-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: center; }
.chapter-copy .lead { margin-bottom: 8px; }
.types { list-style: none; margin: 20px 0 0; padding: 0; }
.types li { display: grid; grid-template-columns: 36px 120px 1fr; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-3); }
.types b { color: var(--text); font-weight: 500; font-size: 16px; }
.ib { width: 36px; height: 36px; border-radius: 10px; background: var(--subtle); display: grid; place-items: center; }
.ib .ic { width: 18px; height: 18px; }
.ib.accent { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-subtle); color: var(--text-accent); }
.crop { position: relative; aspect-ratio: 640 / 800; border-radius: 28px; overflow: hidden; background: #FAF7F2; box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); }
.crop-page { position: absolute; top: 0; right: 59%; height: 100%; width: auto; max-width: none; }
.crop-panel { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; }
.shot { margin: 72px auto 0; border-radius: 24px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); }
.feats { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: left; }
.feat .ic { color: var(--text-accent); }
.feat h3 { margin: 12px 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.feat p { color: var(--text-2); line-height: 1.55; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks .ic { color: var(--text-accent); width: 18px; height: 18px; }
.bleed { overflow: hidden; }
.bleed .split-grid { grid-template-columns: 440px 1fr; }
.bleed-shot { margin: 0; width: 1000px; max-width: none; }
.code-grid { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
.code { border-radius: 20px; overflow: hidden; }
.code header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.code header .ic { color: var(--text-accent); width: 18px; height: 18px; }
.code header b { flex: 1; font-size: 17px; font-weight: 600; }
.code header small { font-size: 12px; color: var(--text-3); }
.code pre { margin: 0; padding: 22px 24px; min-height: 176px; font: 13px/1.7 var(--mono); color: var(--text-2); white-space: pre-wrap; }

/* ---------- use cases ---------- */
.usecases { position: relative; padding: 120px 0 140px; }
.uc-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.uc { border-radius: 24px; padding: 32px 32px 28px; display: flex; flex-direction: column; gap: 16px; min-height: 460px; }
.tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent-subtle); color: var(--text-accent); font-size: 13px; font-weight: 500; }
.uc h3 { font-size: 26px; line-height: 1.25; letter-spacing: -.03em; font-weight: 600; }
.uc p { color: var(--text-2); line-height: 1.6; }
.uc footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }

/* ---------- privacy (light) ---------- */
.privacy { position: relative; padding: 140px 0; background: #F3F1ED; color: var(--text); isolation: isolate; }
.privacy .split-grid { position: relative; z-index: 1; grid-template-columns: 1fr 560px; }
.light-blobs .l1 { --c: rgba(246, 216, 194, .9); width: 900px; height: 800px; left: -260px; top: -260px; --dur: 23s; }
.light-blobs .l2 { --c: rgba(207, 227, 222, .85); width: 820px; height: 700px; right: -200px; top: 40%; --dur: 20s; --dx: -60px; }
.light-blobs .l3 { --c: rgba(246, 216, 194, .6); width: 700px; height: 500px; left: 35%; top: 70%; --dur: 26s; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fact { border-radius: 20px; padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.fact h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.fact p { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.privacy .btn-link { margin-top: 28px; }

/* ---------- faq ---------- */
.faq { position: relative; padding: 140px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 720px; gap: 64px; }
.muted-p { margin-top: 20px; color: var(--text-2); max-width: 300px; }
.muted-p a { color: var(--text-accent); }
.faq-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); padding: 26px 0; }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
summary::-webkit-details-marker { display: none; }
summary .ic { width: 20px; height: 20px; color: var(--text-2); transition: transform .3s var(--ease); }
details[open] summary .ic { transform: rotate(45deg); }
details p { margin-top: 12px; max-width: 620px; color: var(--text-2); line-height: 1.6; }
details[open] p { animation: fadein .4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- final cta: very soft gradient, no hot spots ---------- */
.final { position: relative; padding: 180px 16px 200px; text-align: center; isolation: isolate; overflow: hidden; }
.final-bg { background:
  radial-gradient(60% 70% at 22% 60%, rgba(44, 94, 92, .16), transparent 70%),
  radial-gradient(55% 65% at 80% 50%, rgba(27, 53, 80, .22), transparent 70%),
  radial-gradient(45% 55% at 50% 75%, rgba(92, 67, 52, .14), transparent 70%); }
.final-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.final .lead { margin-top: 0; max-width: 620px; }
.fine { font-size: 13px; color: var(--text-3); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0; font-size: 14px; color: var(--text-3); }
.f-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.f-top p { margin-top: 14px; }
.f-cols { display: flex; gap: 80px; }
.f-cols div { display: flex; flex-direction: column; gap: 12px; }
.f-cols b { color: var(--text); font-weight: 500; font-size: 13px; }
.f-cols a:hover { color: var(--text); }
.f-bot { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.zoom { transform: translateY(40px) scale(.96); }
.js .reveal.slide { transform: translateX(80px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (min-width: 1921px) {
  :root { --nav-h: 84px; }
  .brand img { height: 32px; }
  .nav-links { font-size: 16px; gap: 44px; }
  .btn-md { height: 44px; padding: 0 22px; font-size: 16px; }
  .hero .btn-lg { height: 62px; padding: 0 34px; font-size: 19px; }
  .hero .btn-link { font-size: 19px; }
  .trust { font-size: 16px; margin-top: 48px; }
}
@media (max-width: 1100px) {
  .split-grid, .bleed .split-grid, .privacy .split-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .bleed-shot { width: 100%; }
  .facts { max-width: 640px; }
  .crop { max-width: 640px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .feats, .uc-grid, .code-grid { grid-template-columns: 1fr; }
  .uc { min-height: 0; }
  .stat { padding: 16px 24px; }
  .stat + .stat { border-left: 0; }
  .stat b { font-size: 64px; }
  .types li { grid-template-columns: 36px 1fr; }
  .types li span:last-child { grid-column: 2; margin-top: -10px; }
  .chapter, .highlights, .usecases, .privacy, .faq { padding: 88px 0; }
  .statement { padding: 96px 16px; }
  .facts { grid-template-columns: 1fr; }
  .hl-card { min-height: 480px; }
}
@media (max-width: 520px) {
  .btn-md { padding: 0 14px; }
  .hero-ctas { gap: 16px; }
  .mq-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* final CTA: fade the background into the neighbouring sections */
.final .ambient::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--bg) 0, transparent 22%, transparent 78%, var(--bg) 100%); }
