/* Vidience Landing v2 — extracted from docs/design-reference/vidience-landing-v2.dc.html */

:root {
  --accent: #588ffe;
  --accent-soft: rgba(88, 143, 254, 0.25);
  --bg: #07080a;
  --panel: #0b0d10;
  --ink: #eef2f8;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.07);
  --struggle: #e0915a;
  --struggle-soft: rgba(224, 145, 90, 0.35);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Archivo', sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pad-x: 44px;
}

html, body { margin: 0; padding: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--accent); color: var(--bg); }
html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { width: 0; height: 0; display: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.container { max-width: 1380px; width: 100%; margin: 0 auto; padding: 0 var(--pad-x); box-sizing: border-box; }
.accent { color: var(--accent); }
.dim { color: rgba(238, 242, 248, 0.4); }
.struggle { color: var(--struggle); }
.mono-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: rgba(238, 242, 248, 0.4); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-word { font-weight: 800; font-size: 14px; letter-spacing: 0.06em; }
.logo-mark { height: 37px; width: auto; display: block; fill: var(--accent); }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
main { position: relative; z-index: 1; }

/* keyframes (design lines 17–25; preBar dropped — the bar is JS-driven now) */
@keyframes preExit { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes prePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blinkDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes popIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* swap-text button (design lines 26–33) */
.vbtn { position: relative; }
.vbtn .vb-w { position: relative; display: block; overflow: hidden; }
.vbtn .vb-a { display: block; transition: transform 0.45s var(--ease-out); }
.vbtn .vb-b { position: absolute; inset: 0; transform: translateY(110%); transition: transform 0.45s var(--ease-out); }
.vbtn:hover .vb-a, .vbtn:active .vb-a { transform: translateY(-110%); }
.vbtn:hover .vb-b, .vbtn:active .vb-b { transform: translateY(0); }
.vbtn .vb-dot { width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: 0; filter: blur(8px); transform: translateX(-14px); transition: all 0.45s var(--ease-out); }
.vbtn:hover .vb-dot { opacity: 1; filter: blur(0); transform: translateX(0); }

.btn { font-family: var(--mono); letter-spacing: 0.2em; text-decoration: none; border-radius: 2px; display: flex; align-items: center; gap: 10px; white-space: nowrap; box-sizing: border-box; border: none; cursor: pointer; }
.btn-solid { color: var(--bg); background: var(--accent); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); }
.btn-nav { font-size: 11px; letter-spacing: 0.18em; padding: 11px 20px; gap: 8px; }
.btn-lg { font-size: 12px; padding: 18px 28px; }

/* dot-nav (design lines 38–43; dots generated by main.js) */
.dotnav { position: fixed; right: 30px; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; opacity: 0; }
html.loaded .dotnav { animation: fadeUp 0.8s var(--ease-out) 0.8s both; }
.vdot { background: none; border: none; padding: 7px 0; margin: 0; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.vdot .vdl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: rgba(238, 242, 248, 0.8); opacity: 0; transform: translateX(8px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; white-space: nowrap; }
.vdot:hover .vdl, .vdot:focus-visible .vdl { opacity: 1; transform: translateX(0); }
.vdot .vdd { width: 8px; height: 8px; box-sizing: border-box; border: 1px solid rgba(238, 242, 248, 0.4); background: transparent; transform: rotate(45deg) scale(0.8); transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-pop), box-shadow 0.35s ease; }
.vdot:hover .vdd { border-color: var(--accent); }
.vdot.on .vdd { background: var(--accent); border-color: var(--accent); transform: rotate(45deg) scale(1.2); box-shadow: 0 0 14px var(--accent-soft); }

/* tile hover (design lines 34–35) */
.vtile { transition: background 0.4s ease; }
.vtile:hover { background: #10141a; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- preloader (design lines 52–73) ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--pad-x); box-sizing: border-box; pointer-events: none; }
html.loaded .preloader { animation: preExit 0.75s var(--ease-inout) both; }
.pre-row { display: flex; justify-content: space-between; align-items: center; }
.pre-row-baseline { align-items: baseline; }
.pre-orb { position: relative; width: 16px; height: 16px; border: 1.5px solid var(--accent); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.pre-orb-core { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: prePulse 1.2s ease-in-out infinite; }
.pre-center { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pre-status { font-family: var(--mono); font-size: 12px; letter-spacing: 0.34em; color: rgba(238, 242, 248, 0.7); }
.pre-track { width: 260px; height: 1px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pre-bar { height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.pre-count { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--accent); }

/* ---------- nav (design lines 75–93) ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad-x); background: linear-gradient(180deg, rgba(7, 8, 10, 0.8), rgba(7, 8, 10, 0)); opacity: 0; }
html.loaded .site-nav { animation: fadeUp 0.8s var(--ease-out) 0.7s both; }
.brand-link { text-decoration: none; color: var(--ink); }
.site-nav .brand-word { font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: rgba(238, 242, 248, 0.55); text-decoration: none; }
.nav-link:hover, .nav-link:focus-visible { color: var(--ink); }

/* ---------- hero (design lines 97–125) ---------- */
.sec { position: relative; }
.sec-hero { height: 100vh; }
.hero-frame { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 8, 10, 0.3) 0%, rgba(7, 8, 10, 0) 30%, rgba(7, 8, 10, 0) 60%, rgba(7, 8, 10, 0.75) 100%); pointer-events: none; }
.hero-inner { position: relative; padding-bottom: 64px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; opacity: 0; }
html.loaded .hero-kicker { animation: fadeUp 0.8s var(--ease-out) 0.35s both; }
.tick { width: 8px; height: 8px; background: var(--accent); }
.kicker-text { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; color: rgba(238, 242, 248, 0.65); }
.hero-title { font-weight: 900; font-stretch: 120%; font-size: clamp(56px, 9.4vw, 168px); line-height: 0.88; letter-spacing: -0.02em; text-transform: uppercase; color: #f4f6fa; }
.line-mask { display: block; overflow-y: clip; overflow-x: visible; }
.hero-line { display: block; transform: translateY(110%); }
html.loaded .hero-line { animation: lineUp 0.95s var(--ease-out) both; }
html.loaded [data-hline="0"] { animation-delay: 0.1s; }
html.loaded [data-hline="1"] { animation-delay: 0.2s; }
html.loaded [data-hline="2"] { animation-delay: 0.3s; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-top: 40px; flex-wrap: wrap; opacity: 0; }
html.loaded .hero-row { animation: fadeUp 0.8s var(--ease-out) 0.55s both; }
.hero-copy { max-width: 520px; font-size: 16.5px; line-height: 1.7; color: rgba(238, 242, 248, 0.7); text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; }

/* shared section-header bits (design lines 132–133, 172–173) */
.sec-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.25em; white-space: nowrap; }
.sec-hr { height: 1px; flex: 1; background: var(--line); }

/* ---------- pipeline (design lines 127–166) ---------- */
.sec-pipe { height: 100vh; }
.pipe-frame { position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; padding: 104px 0 48px; }
.pipe-inner { flex: 1; display: flex; flex-direction: column; }
.pipe-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 20px; }
.pipe-rails { display: flex; gap: 6px; width: 180px; }
.rail-track { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; display: block; }
.rail-fill { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.pipe-title { margin: 0 0 40px; font-weight: 900; font-stretch: 120%; font-size: clamp(34px, 4.4vw, 64px); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; }
.pipe-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 64px; flex: 1; align-items: center; }
.pipe-steps { display: flex; flex-direction: column; gap: 8px; }
.pipe-step { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 22px 0 26px; opacity: 0.3; transform: translateX(0); transition: opacity 0.5s ease, transform 0.5s ease; }
.pipe-step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.pipe-step-index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; margin-bottom: 12px; }
.pipe-step-title { margin: 0 0 10px; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.pipe-step-copy { margin: 0; font-size: 14.5px; line-height: 1.65; color: rgba(238, 242, 248, 0.62); text-wrap: pretty; }
.pipe-visual { position: relative; height: 100%; min-height: 380px; }

/* ---------- coverage (design lines 168–234) ---------- */
.sec-env { height: 100vh; background: rgba(255, 255, 255, 0.022); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); box-sizing: border-box; padding: 88px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.env-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.env-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 28px; animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
.env-title { margin: 0 0 8px; font-weight: 900; font-stretch: 120%; font-size: clamp(34px, 4.6vw, 76px); line-height: 0.92; text-transform: uppercase; letter-spacing: -0.015em; }
.env-line { display: block; animation: lineUp 0.9s var(--ease-out) both; animation-timeline: view(); }
.env-line-1 { animation-range: entry 5% entry 40%; }
.env-line-2 { animation-range: entry 12% entry 47%; }
.env-copy { margin: 0 0 32px; max-width: 460px; font-size: 15px; line-height: 1.7; color: rgba(238, 242, 248, 0.62); text-wrap: pretty; animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
.env-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.09); animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
.env-tile { background: var(--panel); padding: 40px 22px 44px; }
.env-tile-title { margin: 0 0 10px; font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: 0.03em; }
.env-tile-copy { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(238, 242, 248, 0.55); }
.env-zero { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; padding: 36px 0 24px; animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
.env-zero-title { font-weight: 900; font-stretch: 120%; font-size: clamp(24px, 2.6vw, 40px); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; }
.env-zero-copy { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.75; color: rgba(238, 242, 248, 0.7); text-wrap: pretty; }
.env-marquee-wrap { overflow: hidden; border-top: 1px solid var(--line-soft); padding: 14px 0; }
.env-marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 30s linear infinite; }
.env-marquee-group { display: flex; align-items: center; gap: 40px; }
.env-marquee-item { font-family: var(--mono); font-size: 13px; letter-spacing: 0.3em; white-space: nowrap; }
.env-marquee-dot { width: 5px; height: 5px; background: var(--accent); }

/* ---------- insight (design lines 236–313) ---------- */
.sec-insight { height: 100vh; }
.insight-frame { position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; padding: 96px 0 40px; }
.insight-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 20px; }
.insight-title { margin: 0 0 14px; font-weight: 900; font-stretch: 120%; font-size: clamp(34px, 4.4vw, 64px); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; }
.insight-copy { margin: 0 0 44px; max-width: 560px; font-size: 15.5px; line-height: 1.65; color: rgba(238, 242, 248, 0.62); text-wrap: pretty; }
.insight-grid { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 56px; align-items: start; }
.insight-pillars { display: flex; flex-direction: column; }
.insight-pillar { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 22px 0 24px; opacity: 0.3; transition: opacity 0.5s ease; }
.insight-pillar:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.insight-pillar-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; margin-bottom: 10px; }
.insight-pillar-copy { margin: 0; font-size: 14.5px; line-height: 1.65; color: rgba(238, 242, 248, 0.62); text-wrap: pretty; }
.insight-report { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.insight-report-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px; border-bottom: 1px solid var(--line-soft); }
.insight-report-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: rgba(238, 242, 248, 0.55); }
.insight-report-status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; }
.insight-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blinkDot 2.4s ease-in-out infinite; }
.insight-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.insight-stat { background: var(--panel); padding: 18px 26px; }
.insight-stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: rgba(238, 242, 248, 0.4); margin-bottom: 8px; }
.insight-stat-value { font-weight: 800; font-size: 21px; }
.insight-stat-value[data-stat] { opacity: 0.25; transition: opacity 0.5s ease; }
.insight-chart-wrap { padding: 26px 26px 24px; }
.insight-chart-labels { display: flex; justify-content: space-between; margin-bottom: 10px; }
.insight-chart-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: rgba(238, 242, 248, 0.4); }
.insight-chart { position: relative; height: 92px; border: 1px solid var(--line-soft); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 56px); padding: 10px; box-sizing: border-box; }
.insight-bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.ebar { flex: 1; height: 2%; background: var(--accent); }
.insight-marker { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--struggle); opacity: 0; }
.insight-marker[data-marker="0"] { left: 27%; }
.insight-marker[data-marker="1"] { left: 66%; }
.insight-markerdot { position: absolute; top: -7px; transform: translateX(-50%) scale(0); width: 7px; height: 7px; border-radius: 50%; background: var(--struggle); transition: transform 0.35s var(--ease-pop); }
.insight-markerdot[data-markerdot="0"] { left: 27%; }
.insight-markerdot[data-markerdot="1"] { left: 66%; }
.insight-chips { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.insight-chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 7px 13px; border-radius: 2px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.insight-chip[data-chip="0"], .insight-chip[data-chip="1"] { color: var(--struggle); border: 1px solid var(--struggle-soft); }
.insight-chip[data-chip="2"] { color: rgba(238, 242, 248, 0.5); border: 1px solid rgba(255, 255, 255, 0.14); }

/* ---------- api (design lines 315–362) ---------- */
.sec-api { height: 100vh; background: rgba(255, 255, 255, 0.022); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); box-sizing: border-box; padding: 88px 0 40px; display: flex; flex-direction: column; overflow: hidden; }
.api-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.api-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 28px; animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
.api-title { margin: 0 0 36px; font-weight: 900; font-stretch: 120%; font-size: clamp(32px, 4vw, 60px); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; }
.api-line { display: block; animation: lineUp 0.9s var(--ease-out) both; animation-timeline: view(); }
.api-line-1 { animation-range: entry 5% entry 40%; }
.api-line-2 { animation-range: entry 12% entry 47%; }
.api-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 32px; align-items: stretch; }
.api-card { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
.api-card:nth-child(2) { animation-delay: 0.1s; }
.api-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.api-card-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: rgba(238, 242, 248, 0.5); }
.api-code { margin: 0; padding: 18px 22px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: #c9d4e3; overflow: auto; flex: 1; }
.api-comment { color: #5b6675; }
.api-code-line { white-space: pre; }
.api-json { margin: 0; padding: 18px 22px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: #8fa0b8; overflow: auto; flex: 1; }
.api-json-key { color: #c9d4e3; }

/* ---------- fit (design lines 364–408) ---------- */
.sec-fit { height: 100vh; box-sizing: border-box; padding: 88px 0 40px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.fit-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.fit-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 28px; animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
.fit-grid { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 64px; align-items: center; }
.fit-title { margin: 0 0 28px; font-weight: 900; font-stretch: 120%; font-size: clamp(32px, 4vw, 60px); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; }
.fit-line { display: block; animation: lineUp 0.9s var(--ease-out) both; animation-timeline: view(); }
.fit-line-1 { animation-range: entry 5% entry 40%; }
.fit-line-2 { animation-range: entry 12% entry 47%; }
.fit-copy { margin: 0; max-width: 440px; font-size: 16.5px; line-height: 1.7; color: rgba(238, 242, 248, 0.7); text-wrap: pretty; animation: rise 1s 0.1s both; animation-timeline: view(); animation-range: entry 8% entry 48%; }
.fit-card { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; animation: rise 1s 0.1s both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
.fit-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.fit-card-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: rgba(238, 242, 248, 0.5); }
.fit-rows { display: flex; flex-direction: column; padding: 8px 24px; }
.fit-row { display: flex; align-items: baseline; gap: 18px; padding: 19px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.fit-row:last-child { border-bottom: none; }
.fit-check { font-family: var(--mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
.fit-tick { display: inline-block; animation: popIn 0.45s var(--ease-pop) both; animation-timeline: view(); }
.fit-row:nth-child(1) .fit-tick { animation-range: entry 22% entry 42%; }
.fit-row:nth-child(2) .fit-tick { animation-range: entry 30% entry 50%; }
.fit-row:nth-child(3) .fit-tick { animation-range: entry 38% entry 58%; }
.fit-row:nth-child(4) .fit-tick { animation-range: entry 46% entry 66%; }
.fit-row-copy { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(238, 242, 248, 0.82); text-wrap: pretty; }
.fit-verdict { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border-top: 1px solid var(--line-soft); animation: rise 0.8s both; animation-timeline: view(); animation-range: entry 52% entry 75%; }
.fit-verdict-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: rgba(238, 242, 248, 0.5); }
.fit-verdict-link { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.fit-verdict-link:hover, .fit-verdict-link:focus-visible { color: var(--accent); }

/* ---------- faq (design lines 410–458) ---------- */
.sec-faq { background: rgba(255, 255, 255, 0.022); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); height: 100vh; box-sizing: border-box; padding: 88px 0 40px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.faq-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.faq-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 28px; animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
.faq-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 64px; align-items: start; }
.faq-title { margin: 0 0 28px; font-weight: 900; font-stretch: 120%; font-size: clamp(30px, 3.4vw, 52px); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; }
.faq-line { display: block; animation: lineUp 0.9s var(--ease-out) both; animation-timeline: view(); }
.faq-line-1 { animation-range: entry 5% entry 40%; }
.faq-line-2 { animation-range: entry 12% entry 47%; }
.faq-list { display: flex; flex-direction: column; }
.faq-row { display: grid; grid-template-columns: 1fr; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); animation: rise 0.9s both; animation-timeline: view(); }
.faq-row:nth-child(1) { animation-range: entry 6% entry 36%; }
.faq-row:nth-child(2) { animation-range: entry 12% entry 42%; }
.faq-row:nth-child(3) { animation-range: entry 18% entry 48%; }
.faq-row:nth-child(4) { animation-range: entry 24% entry 54%; }
.faq-row:nth-child(5) { animation-range: entry 30% entry 60%; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.faq-q { font-weight: 600; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.faq-a { margin: 0; max-width: 620px; font-size: 15px; line-height: 1.65; color: rgba(238, 242, 248, 0.6); text-wrap: pretty; }

/* ---------- cta + footer (design lines 460–499) ---------- */
.sec-access { height: 100vh; position: relative; }
.access-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.access-content { position: relative; max-width: 980px; margin: 0 auto; padding: 0 var(--pad-x); text-align: center; }
.access-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; color: var(--accent); margin-bottom: 30px; animation: rise 1s both; animation-timeline: view(); animation-range: entry 30% entry 60%; }
.access-title { margin: 0 0 48px; font-weight: 900; font-stretch: 120%; font-size: clamp(40px, 6vw, 92px); line-height: 0.92; text-transform: uppercase; letter-spacing: -0.015em; }
.access-line { display: block; animation: lineUp 0.9s var(--ease-out) both; animation-timeline: view(); }
.access-line-1 { animation-range: entry 32% entry 62%; }
.access-line-2 { animation-range: entry 36% entry 66%; }
.access-line-3 { animation-range: entry 40% entry 70%; }
.access-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: rise 1s both; animation-timeline: view(); animation-range: entry 42% entry 72%; }
.access-form[hidden] { display: none; }
.access-form input[type="email"] { font-family: var(--mono); font-size: 14px; color: var(--ink); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 2px; padding: 18px 22px; width: 320px; outline: none; }
.access-form input[type="email"]:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.access-form .btn { padding: 18px 30px; } /* design line 474 */
.access-form .cf-turnstile { flex-basis: 100%; display: flex; justify-content: center; }
.hp { position: absolute; left: -9999px; }
.access-error { margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--struggle); }
.access-done { align-items: center; gap: 14px; border: 1px solid var(--accent); border-radius: 2px; padding: 20px 32px; }
.access-done:not([hidden]) { display: inline-flex; }
.access-done span:last-child { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--ink); } /* design line 486 */
.done-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blinkDot 2s ease-in-out infinite; }
.access-footer { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line-soft); padding: 22px var(--pad-x); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.access-footer .brand-word { font-size: 13px; }
.footer-logo { height: 28px; width: auto; display: block; fill: var(--accent); }
.access-footer-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; }
.footer-socials { display: flex; align-items: center; gap: 16px; }
.footer-social { display: inline-flex; color: rgba(238, 242, 248, 0.4); transition: color 0.2s ease; }
.footer-social:hover, .footer-social:focus-visible { color: var(--accent); }

/* ---------- mobile menu (burger + overlay hidden until ≤820px) ---------- */
.nav-burger { display: none; }
.mnav { display: none; } /* base: overlay is mobile-only; in-MQ .mnav:not([hidden]) out-specifies this to show it */

/* =========================================================================
   MOBILE LAYER (≤820px) — same brand, small screen.
   Full-viewport sections relax to flow; two-column grids fall to one;
   the desktop nav collapses to a burger + full-screen mono overlay.
   ========================================================================= */
@media (max-width: 820px) {
  :root { --pad-x: 22px; }

  /* sections grow with their content instead of clipping to one viewport */
  .sec, .sec-hero { height: auto; min-height: 100svh; }

  /* --- nav: persistent brand + CTA, burger to the right --- */
  .site-nav { z-index: 95; padding: 13px var(--pad-x); }
  .site-nav .brand-word { font-size: 14px; }
  .site-nav .logo-mark { height: 30px; }
  .nav-links { margin-left: auto; margin-right: 14px; gap: 0; }
  .nav-links .nav-link { display: none; }              /* keep the EARLY ACCESS button */
  .btn-nav { padding: 10px 14px; font-size: 10px; letter-spacing: 0.13em; }
  html.nav-open .nav-links { opacity: 0; pointer-events: none; }   /* CTA yields to the overlay */

  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 6px; width: 44px; height: 44px; padding: 0;
    background: none; border: none; cursor: pointer;
  }
  .nb-line { width: 22px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease-out); }
  .nav-burger.open .nb-line:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger.open .nb-line:last-child { transform: translateY(-4px) rotate(-45deg); }

  /* --- full-screen overlay menu --- */
  .mnav { position: fixed; inset: 0; z-index: 90; background: var(--bg); flex-direction: column; justify-content: center; padding: 88px var(--pad-x) 56px; box-sizing: border-box; }
  .mnav:not([hidden]) { display: flex; animation: fadeUp 0.32s var(--ease-out); }
  .mnav-links { display: flex; flex-direction: column; width: 100%; }
  .mnav-link { font-family: var(--mono); font-size: clamp(22px, 6.6vw, 30px); letter-spacing: 0.16em; color: var(--ink); text-decoration: none; padding: 17px 2px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; animation: fadeUp 0.45s var(--ease-out) both; }
  .mnav-link:last-child { border-bottom: 1px solid var(--line-soft); }
  .mnav-link:active { color: var(--accent); }
  .mnav-cta { color: var(--accent); }
  .mnav-link:nth-child(1) { animation-delay: 0.04s; }
  .mnav-link:nth-child(2) { animation-delay: 0.08s; }
  .mnav-link:nth-child(3) { animation-delay: 0.12s; }
  .mnav-link:nth-child(4) { animation-delay: 0.16s; }
  .mnav-link:nth-child(5) { animation-delay: 0.20s; }
  .mnav-link:nth-child(6) { animation-delay: 0.24s; }
  .mnav-link:nth-child(7) { animation-delay: 0.28s; }

  .dotnav { display: none; }

  /* --- display titles: keep the wide brand cut but hold the line at 360px.
     The two longest one-line headings drop to a normal cut so they stay big
     enough to read instead of shrinking to fit. --- */
  .hero-title, .pipe-title, .env-title, .env-zero-title,
  .insight-title, .fit-title, .faq-title { font-stretch: 110%; }
  .api-title, .access-title { font-stretch: 100%; }

  /* --- hero --- */
  .hero-frame { height: auto; min-height: 100svh; }
  .hero-inner { padding-bottom: 44px; }
  .hero-kicker { margin-bottom: 22px; }
  .kicker-text { font-size: 11px; letter-spacing: 0.22em; }
  .hero-title { font-size: clamp(28px, 9.2vw, 80px); letter-spacing: -0.03em; }
  .hero-row { flex-direction: column; align-items: stretch; gap: 30px; margin-top: 32px; }
  .hero-copy { font-size: 16px; }
  .hero-ctas { flex-direction: column; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* --- pipeline: steps full-width, empty visual column removed --- */
  .pipe-frame { padding: 96px 0 44px; }
  .pipe-title { font-size: clamp(32px, 8.6vw, 60px); margin-bottom: 30px; }
  .pipe-grid { grid-template-columns: 1fr; gap: 0; }
  .pipe-visual { display: none; }

  /* --- coverage --- */
  .sec-env { padding-top: 84px; }
  .env-title { font-size: clamp(30px, 8.8vw, 76px); }
  .env-tiles { grid-template-columns: 1fr; }
  .env-zero { grid-template-columns: 1fr; gap: 16px; padding: 28px 0 20px; }

  /* --- insight: pillars stack, stat grid 2×2 --- */
  .insight-frame { padding: 92px 0 40px; }
  .insight-title { font-size: clamp(32px, 8.6vw, 64px); }
  .insight-grid { grid-template-columns: 1fr; gap: 30px; }
  .insight-stats { grid-template-columns: repeat(2, 1fr); }
  .insight-report-head { flex-wrap: wrap; gap: 6px 12px; }

  /* --- api: cards stack, code scrolls inside its own card --- */
  .sec-api { padding-top: 84px; }
  .api-title { font-size: clamp(18px, 6vw, 46px); }
  .api-grid { grid-template-columns: 1fr; gap: 20px; }

  /* --- fit --- */
  .sec-fit { padding-top: 84px; }
  .fit-title { font-size: clamp(30px, 8.4vw, 60px); }
  .fit-grid { grid-template-columns: 1fr; gap: 28px; }
  .fit-verdict { flex-wrap: wrap; gap: 12px; }

  /* --- faq --- */
  .sec-faq { padding-top: 84px; }
  .faq-title { font-size: clamp(30px, 8vw, 52px); }
  .faq-grid { grid-template-columns: 1fr; gap: 26px; }

  /* --- access + footer --- */
  .access-inner { min-height: 100svh; height: auto; }   /* pin the absolute footer to the real bottom */
  .access-title { font-size: clamp(20px, 7vw, 84px); }
  .access-form { flex-direction: column; gap: 12px; }
  .access-form input[type="email"] { width: 100%; box-sizing: border-box; }
  .access-form .btn { width: 100%; justify-content: center; }
  .access-footer { justify-content: center; text-align: center; gap: 10px 20px; padding: 20px var(--pad-x); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
