/* Whisper Transcriber Suite — landing page (light theme, CSS-3D scenes, no third-party requests). */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/sora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/sora-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/geist-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --bg: #f5f7fb;
  --bg-2: #eaf0f8;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --ink: #0c1a2b;
  --ink-2: #33455a;
  --muted: #5d6f84;
  --line: rgb(12 26 43 / 0.09);
  --line-2: rgb(12 26 43 / 0.16);

  --brand: #207a80;
  --teal: #0c9d95;
  --teal-soft: #d8f5f1;
  --teal-ink: #0a7a74; /* teal for small text: 4.5:1 on white, the page and teal-soft */
  --violet: #6a5cf0;
  --violet-soft: #e9e6ff;
  --coral: #f2604c;
  --coral-soft: #ffe6e1;
  --sun: #f0a21b;
  --sun-soft: #fff1d6;
  --grad: linear-gradient(100deg, #0c9d95 0%, #4f7cf2 45%, #6a5cf0 65%, #f2604c 100%);

  --night: #0a0f24;
  --night-2: #141b3d;
  --night-text: #eef2ff;
  --night-muted: #aab4d4;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(12 26 43 / 0.06), 0 2px 8px rgb(12 26 43 / 0.05);
  --shadow: 0 2px 6px rgb(12 26 43 / 0.05), 0 18px 40px -12px rgb(12 26 43 / 0.18);
  --shadow-lg: 0 4px 12px rgb(12 26 43 / 0.06), 0 40px 80px -24px rgb(28 40 90 / 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t: 1; /* animation time multiplier: 1 = full, larger = calmer */
  --wrap: 1200px;
}
html[data-motion="calm"] { --t: 2.4; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[data-motion="off"], html[data-motion="calm"] { scroll-behavior: auto; }
body {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
code { font-family: var(--font-mono); font-size: 0.88em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--bg-2); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.i { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: grad-pan calc(8s * var(--t)) ease-in-out infinite alternate; }
@keyframes grad-pan { to { background-position: 100% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 0.97rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 15px; font-size: 0.9rem; }
.btn-lg { padding: 16px 26px; font-size: 1.03rem; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--teal), #3d6fe6 60%, var(--violet)); background-size: 150% 100%; box-shadow: 0 10px 24px -8px rgb(66 90 220 / 0.55); }
.btn-primary:hover { color: #fff; background-position: 100% 0; box-shadow: 0 16px 34px -10px rgb(106 92 240 / 0.6); }
.btn-ghost { color: var(--ink); background: rgb(255 255 255 / 0.75); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--ink); border-color: var(--teal); background: #fff; box-shadow: var(--shadow-sm); }
.btn-light { color: var(--night); background: #fff; }
.btn-light:hover { color: var(--night); box-shadow: 0 12px 30px -10px rgb(255 255 255 / 0.4); }
.btn-coffee { color: #1d1400; background: #ffdd00; box-shadow: 0 10px 26px -10px rgb(255 221 0 / 0.7); }
.btn-coffee:hover { color: #1d1400; }
.i-trail { transition: transform 0.25s var(--ease-out); }
.btn:hover .i-trail { transform: translateX(3px); }
.btn-icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.75); color: var(--ink-2); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-icon:hover { border-color: var(--teal); color: var(--teal); }
.btn-icon .i { width: 14px; height: 14px; }
.btn-icon .i-when-off { display: none; }
html[data-motion="off"] .btn-icon .i-when-on { display: none; }
html[data-motion="off"] .btn-icon .i-when-off { display: block; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-block: 14px; transition: background 0.3s, box-shadow 0.3s, padding 0.3s; }
.site-header.is-scrolled { padding-block: 9px; background: rgb(245 247 251 / 0.82); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-logo { border-radius: 9px; box-shadow: 0 4px 12px -4px rgb(32 122 128 / 0.6); }
.site-nav { display: flex; gap: 4px; margin-inline: auto; padding: 5px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.7); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.site-nav a { padding: 7px 13px; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: background 0.2s, color 0.2s; }
.site-nav a:hover { color: var(--ink); background: var(--bg-2); }
.site-nav a.is-current { color: #fff; background: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.site-nav + .header-cta { margin-inline-start: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(120px, 15vh, 160px) 0 clamp(64px, 9vh, 110px); min-height: min(100svh, 980px); display: flex; align-items: center; }
.hero-waves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.9; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: blob calc(18s * var(--t)) ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: 4%; background: #a5f1e7; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -6vw; top: -6%; background: #cfc8ff; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; right: 18vw; top: 42%; background: #ffd3c9; animation-delay: -11s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 3vh) scale(1.08); } 100% { transform: translate(-3vw, -2vh) scale(0.95); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgb(12 157 149 / 0.5); animation: ping calc(2.2s * var(--t)) ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgb(12 157 149 / 0); } }
.hero-title { margin-top: 22px; font-size: clamp(2.7rem, 6.2vw, 5.3rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.0; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line:last-child { font-size: 0.62em; letter-spacing: -0.035em; margin-top: 0.12em; }
.hero-title .rise { display: inline-block; }
.hero-lede { margin-top: 22px; max-width: 54ch; font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 28px; margin-top: 36px; }
.proof li { display: grid; }
.proof strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof span { font-size: 0.82rem; color: var(--muted); }

/* Entry choreography (CSS-only, so no-JS visitors get it too). */
html.js .rise { transform: translateY(105%); animation: rise 1s var(--ease-out) forwards; animation-delay: calc(var(--d) * 90ms + 100ms); }
html.js .reveal { opacity: 0; transform: translateY(16px); animation: reveal 0.9s var(--ease-out) forwards; animation-delay: calc(var(--d) * 90ms + 150ms); }
@keyframes rise { to { transform: none; } }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* 3D scene */
.hero-scene { position: relative; aspect-ratio: 1.12; perspective: 1700px; perspective-origin: 50% 40%; }
.scene-rig {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(9deg + var(--rx, 0deg))) rotateY(calc(-17deg + var(--ry, 0deg))) rotateZ(1.5deg);
  transition: transform 0.9s var(--ease-out);
  animation: rig-in 1.6s var(--ease-out) both 0.2s;
}
@keyframes rig-in { from { opacity: 0; transform: rotateX(24deg) rotateY(-42deg) translateZ(-200px); } }
.float-layer { position: absolute; transform-style: preserve-3d; }
.float-layer > * { animation: floaty calc(7s * var(--t)) ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translate3d(0, -7px, 0); } to { transform: translate3d(0, 9px, 0); } }
.l-front { left: 6%; top: 18%; width: 86%; transform: translateZ(40px); }
.l-back { left: -4%; top: 0; width: 52%; transform: translateZ(-150px); }
.l-back > * { animation-delay: -2s; }
.l-mid { right: -6%; top: 50%; width: 50%; transform: translateZ(-70px); }
.l-mid > * { animation-delay: -4s; }
.l-pop1 { left: -6%; top: 64%; transform: translateZ(150px); }
.l-pop1 > * { animation-delay: -1s; animation-duration: calc(5.5s * var(--t)); }
.l-pop2 { right: -2%; top: 6%; transform: translateZ(190px); }
.l-pop2 > * { animation-delay: -3s; animation-duration: calc(6.5s * var(--t)); }
.l-pop3 { left: 40%; bottom: -2%; transform: translateZ(120px); }
.l-pop3 > * { animation-delay: -5s; }
.l-pop4 { left: 2%; top: 8%; transform: translateZ(210px); }
.l-pop4 > * { animation-delay: -1.5s; animation-duration: calc(8s * var(--t)); }

.win { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgb(12 26 43 / 0.12); box-shadow: var(--shadow-lg); }
.win img { width: 100%; height: auto; }
.win-sm { opacity: 0.92; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: linear-gradient(180deg, #fbfcfe, #eef2f7); border-bottom: 1px solid var(--line); font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-inline-start: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.chip-card { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgb(255 255 255 / 0.9); border: 1px solid rgb(255 255 255 / 0.9); box-shadow: 0 20px 44px -14px rgb(40 50 110 / 0.35), 0 2px 6px rgb(12 26 43 / 0.06); backdrop-filter: blur(10px); white-space: nowrap; }
.wave-card .rec { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); animation: rec calc(1.6s * var(--t)) ease-in-out infinite; }
.wave-card .bars { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave-card .bars i { width: 4px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--coral), var(--violet)); animation: live-bar calc(0.9s * var(--t)) ease-in-out infinite alternate; }
.wave-card .bars i:nth-child(2n) { animation-duration: calc(0.7s * var(--t)); animation-delay: -0.3s; }
.wave-card .bars i:nth-child(3n) { animation-duration: calc(1.2s * var(--t)); animation-delay: -0.5s; }
.srt-card { display: grid; gap: 4px; padding: 14px 18px; }
.srt-ts { font-family: var(--font-mono); font-size: 0.7rem; color: var(--violet); }
.srt-line { display: flex; align-items: center; gap: 2px; font-weight: 600; font-size: 0.95rem; color: var(--ink); min-width: 15.5em; }
.fmt-card { gap: 6px; padding: 10px; }
.fmt-card b { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; padding: 6px 10px; border-radius: 9px; color: #fff; }
/* darker than the brand tints so white 12px text keeps a 4.5:1 contrast */
.fmt-card b:nth-child(1) { background: #0a7a74; } .fmt-card b:nth-child(2) { background: #3360d0; }
.fmt-card b:nth-child(3) { background: var(--violet); } .fmt-card b:nth-child(4) { background: #c4432f; }
.off-card { font-weight: 600; font-size: 0.88rem; color: var(--teal-ink); }
.off-card .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #fff; background: var(--teal); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 18px 0; background: var(--ink); color: #fff; transform: rotate(-1.2deg) scale(1.02); margin-block: 10px 30px; box-shadow: var(--shadow); }
.marquee-track { display: flex; width: max-content; gap: 44px; animation: marquee calc(38s * var(--t)) linear infinite; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: "✦"; color: #7ce8dc; font-size: 0.8em; }
.marquee-track span:nth-child(3n+2)::after { color: #b3a9ff; }
.marquee-track span:nth-child(3n)::after { color: #ffab9e; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 11vw, 140px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { display: inline-block; margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; }
.h2-soft { color: var(--muted); }
.section-lede { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }

/* Scroll reveal (only when JS is present, so content is never hidden without it). */
html.js .sr { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--sr-delay, 0ms); }
html.js .sr.in { opacity: 1; transform: none; }

/* ---------- Showreel (dark stage) ---------- */
.showreel { background: radial-gradient(1200px 600px at 50% 0%, var(--night-2), var(--night) 70%); color: var(--night-text); overflow: hidden; isolation: isolate; }
.showreel .section-head { margin-inline: auto; text-align: center; }
.showreel .section-lede { margin-inline: auto; color: var(--night-muted); }
.showreel h2 { color: #fff; }
.showreel .h2-soft { background: linear-gradient(100deg, #7ce8dc, #b3a9ff 55%, #ffab9e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.showreel .eyebrow { color: #7ce8dc; }
.reel-glow { position: absolute; inset: auto 0 -30% 0; height: 70%; z-index: -1; background: radial-gradient(50% 60% at 50% 50%, rgb(106 92 240 / 0.45), transparent 70%), radial-gradient(30% 40% at 25% 60%, rgb(12 157 149 / 0.4), transparent 70%), radial-gradient(30% 40% at 75% 60%, rgb(242 96 76 / 0.3), transparent 70%); filter: blur(20px); }
.showreel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35; background-image: radial-gradient(rgb(255 255 255 / 0.5) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }

.reel { --card-w: min(560px, 74vw); --radius: calc(var(--card-w) * 1.2); display: grid; gap: 26px; }
.reel-viewport { position: relative; height: calc(var(--card-w) * 0.66 + 80px); perspective: 2000px; perspective-origin: 50% 30%; cursor: grab; touch-action: pan-y; user-select: none; }
.reel-viewport:active { cursor: grabbing; }
.reel-ring { position: absolute; left: 50%; top: 20px; width: var(--card-w); margin-left: calc(var(--card-w) / -2); transform-style: preserve-3d; transform: translateZ(calc(var(--radius) * -1)) rotateX(-4deg) rotateY(var(--angle, 0deg)); }
.reel-card { position: absolute; inset: 0 auto auto 0; width: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -20px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.08); transform: rotateY(var(--a)) translateZ(var(--radius)); backface-visibility: hidden; transition: filter 0.5s, opacity 0.5s; filter: brightness(var(--b, 1)); opacity: var(--o, 1); }
.reel-card img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.reel-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgb(255 255 255 / 0.35), transparent 30%); opacity: calc(var(--front, 0) * 0.6); }
.reel-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; max-width: 760px; width: 100%; margin-inline: auto; }
.reel-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.18); background: rgb(255 255 255 / 0.06); color: #fff; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.reel-btn:hover { background: rgb(255 255 255 / 0.16); transform: scale(1.06); }
.reel-meta { text-align: center; min-height: 5.2em; }
.reel-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.reel-caption { margin-top: 6px; color: var(--night-muted); font-size: 0.98rem; }
.reel-dots { display: flex; justify-content: center; gap: 8px; }
.reel-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.28); cursor: pointer; transition: width 0.3s var(--ease-out), background 0.3s; }
.reel-dots button[aria-current="true"] { width: 28px; border-radius: 6px; background: linear-gradient(90deg, #7ce8dc, #b3a9ff); }

/* ---------- Features bento ---------- */
.features { background: linear-gradient(180deg, var(--bg), #fff 30%, var(--bg)); }
.bento {
  display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "eng eng eng eng eng eng eng fmt fmt fmt fmt fmt"
    "eng eng eng eng eng eng eng live live live live live"
    "spk spk spk spk que que que que dl dl dl dl"
    "den den den den den den den den den den den den";
  perspective: 1400px;
}
.cell-engines { grid-area: eng; } .cell-formats { grid-area: fmt; } .cell-live { grid-area: live; }
.cell-speakers { grid-area: spk; } .cell-queue { grid-area: que; } .cell-download { grid-area: dl; } .cell-denoise { grid-area: den; }

.cell {
  --tone: var(--teal); --tone-soft: var(--teal-soft);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 24px; justify-content: space-between;
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease-out), border-color 0.4s, transform 0.5s var(--ease-out), opacity 0.9s var(--ease-out);
}
.tone-violet { --tone: var(--violet); --tone-soft: var(--violet-soft); }
.tone-coral { --tone: #b8402f; --tone-soft: var(--coral-soft); }
.tone-sun { --tone: #8a5600; --tone-soft: var(--sun-soft); }
.cell::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.5s; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), var(--tone-soft), transparent 55%); }
.cell::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone); opacity: 0.85; }
.cell:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tone) 35%, transparent); }
.cell:hover::before { opacity: 1; }
.cell h3 { font-weight: 700; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.2; }
.cell-copy p:not(.chip-label) { margin-top: 10px; color: var(--ink-2); font-size: 0.97rem; max-width: 52ch; }
.chip-label { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--tone-soft); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--tone); }
.cell-engines h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

.viz { position: relative; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
.viz * { animation-play-state: paused !important; }
.is-live .viz * { animation-play-state: running !important; }
.panel-ui { background: var(--surface-2); border: 1px solid var(--line); }

/* engines */
.cell-shot { perspective: 1200px; margin: 4px -8px -4px; }
.cell-shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 24px 50px -20px rgb(28 40 90 / 0.45); transform: rotateX(14deg) rotateY(-10deg) rotateZ(1deg); transform-origin: 50% 100%; transition: transform 0.8s var(--ease-out); }
.cell-engines:hover .cell-shot img { transform: rotateX(4deg) rotateY(-3deg); }
.viz-engines { display: grid; gap: 14px; }
.engine-list { display: grid; gap: 8px; }
.engine { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); animation: engine-pick calc(9s * var(--t)) var(--ease-io) infinite; }
.engine:nth-child(2) { animation-delay: -6s; } .engine:nth-child(3) { animation-delay: -3s; }
.engine-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.engine-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--teal); transform: scale(0); animation: engine-dot calc(9s * var(--t)) var(--ease-io) infinite; }
.engine:nth-child(2) .engine-radio::after { animation-delay: -6s; } .engine:nth-child(3) .engine-radio::after { animation-delay: -3s; }
.engine-name { color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.engine-tag { margin-inline-start: auto; font-size: 0.72rem; color: var(--muted); }
@keyframes engine-pick { 0%, 30% { border-color: rgb(12 157 149 / 0.55); background: var(--teal-soft); } 36%, 100% { border-color: var(--line); background: var(--surface-2); } }
@keyframes engine-dot { 0%, 30% { transform: scale(1); } 36%, 100% { transform: scale(0); } }
.offline-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-ink); font-size: 0.8rem; font-weight: 600; }
.offline-badge .i { width: 15px; height: 15px; }

/* formats */
.viz-formats { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-formats span { padding: 7px 11px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); animation: fmt-glow calc(5.6s * var(--t)) ease-in-out infinite; }
.viz-formats span.wide { font-family: var(--font-body); }
.viz-formats span:nth-child(1) { animation-delay: 0s; } .viz-formats span:nth-child(2) { animation-delay: .4s; } .viz-formats span:nth-child(3) { animation-delay: .8s; } .viz-formats span:nth-child(4) { animation-delay: 1.2s; } .viz-formats span:nth-child(5) { animation-delay: 1.6s; } .viz-formats span:nth-child(6) { animation-delay: 2s; } .viz-formats span:nth-child(7) { animation-delay: 2.4s; } .viz-formats span:nth-child(8) { animation-delay: 2.8s; } .viz-formats span:nth-child(9) { animation-delay: 3.2s; } .viz-formats span:nth-child(10) { animation-delay: 3.6s; } .viz-formats span:nth-child(11) { animation-delay: 4s; } .viz-formats span:nth-child(12) { animation-delay: 4.4s; } .viz-formats span:nth-child(13) { animation-delay: 4.8s; } .viz-formats span:nth-child(14) { animation-delay: 5.2s; }
@keyframes fmt-glow { 0%, 12%, 100% { color: var(--ink-2); background: var(--surface-2); border-color: var(--line); } 5% { color: #fff; background: var(--violet); border-color: var(--violet); box-shadow: 0 8px 20px -6px rgb(106 92 240 / 0.6); } }

/* live */
.viz-live { display: grid; gap: 16px; }
.live-bars { display: flex; align-items: center; gap: 4px; height: 56px; }
.live-bars i { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #ff9a8a, var(--coral) 50%, var(--violet)); transform-origin: center; animation: live-bar calc(1.1s * var(--t)) ease-in-out infinite alternate; }
.live-bars i:nth-child(3n) { animation-duration: calc(0.8s * var(--t)); } .live-bars i:nth-child(4n+1) { animation-duration: calc(1.35s * var(--t)); } .live-bars i:nth-child(5n+2) { animation-duration: calc(0.95s * var(--t)); animation-delay: -0.4s; } .live-bars i:nth-child(7n) { animation-delay: -0.7s; }
@keyframes live-bar { 0% { transform: scaleY(0.14); opacity: 0.5; } 100% { transform: scaleY(1); opacity: 1; } }
.live-text { display: flex; align-items: center; gap: 10px; min-height: 1.6em; color: var(--ink); font-family: var(--font-body); font-weight: 500; font-size: 0.98rem; }
.live-rec { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; animation: rec calc(1.6s * var(--t)) ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--violet); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* speakers */
.viz-speakers { display: grid; gap: 10px; }
.utt { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ts { color: var(--muted); font-size: 0.74rem; }
.spk { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.spk.s1 { color: var(--teal-ink); background: var(--teal-soft); }
.spk.s2 { color: #b26b00; background: var(--sun-soft); }
.words { font-family: var(--font-body); color: var(--ink-2); font-size: 0.92rem; }
.words b { font-weight: 400; border-radius: 4px; padding: 0 1px; animation: word calc(6s * var(--t)) linear infinite; }
.utt:nth-child(1) .words b:nth-child(1) { animation-delay: 0s; } .utt:nth-child(1) .words b:nth-child(2) { animation-delay: .35s; } .utt:nth-child(1) .words b:nth-child(3) { animation-delay: .7s; } .utt:nth-child(1) .words b:nth-child(4) { animation-delay: 1.05s; } .utt:nth-child(1) .words b:nth-child(5) { animation-delay: 1.4s; }
.utt:nth-child(2) .words b:nth-child(1) { animation-delay: 2.4s; } .utt:nth-child(2) .words b:nth-child(2) { animation-delay: 2.75s; } .utt:nth-child(2) .words b:nth-child(3) { animation-delay: 3.1s; } .utt:nth-child(2) .words b:nth-child(4) { animation-delay: 3.5s; }
@keyframes word { 0%, 6% { color: #5a3a00; background: #ffd98a; } 9%, 100% { color: inherit; background: transparent; } }

/* queue */
.viz-queue { display: grid; gap: 12px; }
.job { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; align-items: center; gap: 12px; }
.job-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.bar { height: 7px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--violet)); }
.bar i.run { width: 100%; transform-origin: left; animation: job-run calc(4.5s * var(--t)) var(--ease-io) infinite; }
@keyframes job-run { 0% { transform: scaleX(0.08); } 85%, 100% { transform: scaleX(1); } }
.job-state { font-size: 0.72rem; color: var(--muted); min-width: 54px; text-align: end; }
.job-state.done { color: var(--teal-ink); font-weight: 600; }

/* downloads */
.viz-dl { display: grid; gap: 14px; }
.url { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.url-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; }
.dl-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-steps .i { width: 14px; height: 14px; color: var(--muted); }
.st { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); animation: step-lit calc(4.5s * var(--t)) steps(1) infinite; }
.st-2 { animation-delay: 1.5s; } .st-3 { animation-delay: 3s; }
@keyframes step-lit { 0% { color: #fff; background: var(--violet); border-color: transparent; } 33.3%, 100% { color: var(--ink-2); background: transparent; border-color: var(--line-2); } }

/* denoise */
.cell-denoise { flex-direction: row; align-items: center; gap: clamp(24px, 4vw, 64px); }
.cell-denoise .cell-copy { flex: 0 0 min(40%, 420px); }
@property --sweep { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.viz-denoise { flex: 1; height: 150px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; animation: sweep calc(7s * var(--t)) var(--ease-io) infinite alternate; animation-play-state: paused; }
.is-live .viz-denoise { animation-play-state: running; }
@keyframes sweep { from { --sweep: 14%; } to { --sweep: 86%; } }
.wave { position: absolute; inset: 14px 0; width: 100%; height: calc(100% - 28px); }
.wave path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wave-noisy path { stroke: rgb(93 111 132 / 0.5); }
.wave-clean { clip-path: inset(0 0 0 var(--sweep, 50%)); }
.wave-clean path { stroke: var(--coral); stroke-width: 2.4; }
.sweep { position: absolute; top: 0; bottom: 0; left: var(--sweep, 50%); width: 2px; background: linear-gradient(180deg, transparent, var(--coral), transparent); }
.wave-label { position: absolute; top: 10px; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.l-before { left: 14px; } .l-after { right: 14px; color: var(--coral); font-weight: 600; }

.feature-more { margin-top: 36px; color: var(--muted); font-size: 0.97rem; }

/* ---------- How it works ---------- */
.how .section-head { margin-inline: auto; text-align: center; }
.how .section-lede { margin-inline: auto; }
.pipeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--teal); box-shadow: 0 10px 22px -8px rgb(12 157 149 / 0.7); }
.step:nth-child(2) .step-num { background: var(--violet); box-shadow: 0 10px 22px -8px rgb(106 92 240 / 0.7); }
.step:nth-child(3) .step-num { background: #c4432f; box-shadow: 0 10px 22px -8px rgb(242 96 76 / 0.7); }
.step h3 { margin-top: 20px; font-size: 1.25rem; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 0.97rem; }
.rail { position: relative; height: 4px; margin: 34px auto 30px; max-width: 900px; border-radius: 4px; overflow: hidden; background: linear-gradient(90deg, var(--teal-soft), var(--violet-soft), var(--coral-soft)); }
.rail-pulse { position: absolute; top: 0; left: 0; width: 140px; height: 100%; border-radius: inherit; background: var(--grad); animation: rail calc(3.2s * var(--t)) var(--ease-io) infinite; }
@keyframes rail { from { transform: translateX(-140px); } to { transform: translateX(900px); } }
.text-link { display: flex; width: fit-content; margin-inline: auto; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.text-link .i { transition: transform 0.25s var(--ease-out); }
.text-link:hover .i { transform: translateX(4px); }

/* ---------- Download ---------- */
.download { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
.dl-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow 0.4s, border-color 0.4s, transform 0.5s var(--ease-out), opacity 0.9s var(--ease-out); }
.dl-card:hover { box-shadow: var(--shadow); }
.dl-card.is-recommended { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.dl-os { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: 0.92rem; }
.dl-badge { padding: 3px 9px; border-radius: var(--r-pill); font-size: 0.7rem; color: #fff; background: var(--violet); }
.dl-card h3 { margin-top: 6px; font-size: 1.25rem; }
.dl-card h3 code { font-size: 0.8em; }
.dl-size { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.dl-desc { flex: 1; color: var(--ink-2); font-size: 0.95rem; }
.dl-card .btn { margin-top: 12px; }
.dl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dl-pair .btn { padding-inline: 10px; }
.dl-code { overflow-x: auto; padding: 12px; border-radius: 12px; background: var(--night); color: #d9e2ff; font-size: 0.72rem; line-height: 1.6; }
.dl-code code { padding: 0; background: none; color: inherit; }
.mac-install { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px 32px; align-items: center; margin-top: 22px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); scroll-margin-top: 90px; }
.mac-install h3 { margin-top: 8px; font-size: 1.35rem; }
.mac-install-head p:last-child { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }
.mac-install:target { box-shadow: 0 0 0 3px var(--violet), var(--shadow); }
.code-box { position: relative; min-width: 0; }
.code-box pre { overflow-x: auto; padding: 18px 18px 18px; padding-right: 90px; border-radius: 14px; background: var(--night); color: #d9e2ff; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.code-box code { padding: 0; background: none; color: inherit; font-size: inherit; }
.copy-btn { position: absolute; top: 10px; right: 10px; padding: 7px 14px; border-radius: var(--r-pill); border: 0; background: #fff; color: var(--night); font-weight: 600; font-size: 0.82rem; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.copy-btn:hover { transform: translateY(-1px); background: var(--teal-soft); }
.copy-btn.is-done { background: var(--teal); color: #fff; }
.mac-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; }
.dl-note { margin-top: 26px; text-align: center; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color 0.3s, box-shadow 0.3s; }
.faq-list details[open] { border-color: rgb(106 92 240 / 0.35); box-shadow: var(--shadow); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-size: 1.2rem; transition: transform 0.3s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- Contact + Support ---------- */
.contact .section-head { margin-inline: auto; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
.contact-card { display: grid; gap: 6px; align-content: start; padding: 28px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: box-shadow 0.4s, transform 0.5s var(--ease-out), opacity 0.9s var(--ease-out); }
.contact-card:hover { color: var(--ink); box-shadow: var(--shadow); }
.contact-ic { --tone: var(--teal); display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 10px; border-radius: 15px; color: #fff; background: var(--tone); }
.contact-ic.tone-coral { --tone: var(--coral); } .contact-ic.tone-violet { --tone: var(--violet); }
.contact-ic .i { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.2rem; }
.contact-val { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 600; color: var(--violet); overflow-wrap: anywhere; }
.contact-reveal { padding: 7px 14px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.contact-reveal:hover:not(:disabled) { color: #fff; background: var(--violet); border-color: var(--violet); }
.contact-reveal:disabled { cursor: default; opacity: 0.7; }
.contact-card p:last-child { color: var(--ink-2); font-size: 0.95rem; }

.support-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); margin-top: 32px; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); color: var(--night-text); background: radial-gradient(600px 300px at 90% 0%, rgb(106 92 240 / 0.55), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgb(12 157 149 / 0.5), transparent 70%), var(--night); box-shadow: var(--shadow-lg); }
.support-card h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.support-copy p { margin-top: 12px; color: var(--night-muted); max-width: 60ch; }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.support-orbit { position: relative; flex: none; display: grid; place-items: center; width: 160px; height: 160px; }
.support-orbit img { position: relative; z-index: 1; border-radius: 20px; box-shadow: 0 16px 40px -10px rgb(12 157 149 / 0.8); }
.support-orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(124 232 220 / 0.6); animation: orbit calc(3.6s * var(--t)) ease-out infinite; }
.support-orbit span:nth-child(3) { animation-delay: -1.2s; border-color: rgb(179 169 255 / 0.6); }
.support-orbit span:nth-child(4) { animation-delay: -2.4s; border-color: rgb(255 171 158 / 0.6); }
@keyframes orbit { from { transform: scale(0.45); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.footer-brand { display: grid; gap: 8px; }
.site-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.site-stats span + span::before { content: "·"; margin-inline-end: 16px; }
.site-stats[hidden], .site-stats [hidden] { display: none; }
.site-stats strong { color: var(--ink-2); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.footer-nav a:hover { color: var(--violet); }

/* 3D tilt only while hovered (a permanent 3D transform on every card cost layout time). */
html.js [data-tilt-card].sr.in:hover, [data-tilt-card]:hover { transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }

/* ---------- Built-on line ---------- */
.built-on { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--ink-2); font-size: 0.97rem; }

/* ---------- Compare ---------- */
.compare .section-head { margin-inline: auto; text-align: center; }
.compare .section-lede { margin-inline: auto; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; font-size: 0.94rem; }
.compare-table th[scope="row"], .compare-table thead th:first-child { width: 18%; }
.compare-table caption { caption-side: bottom; padding: 12px 18px; text-align: start; color: var(--muted); font-size: 0.82rem; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); background: var(--surface-2); }
.compare-table thead th:nth-child(2), .compare-table td:nth-child(2) { background: var(--teal-soft); }
.compare-table tbody th { color: var(--ink-2); font-weight: 600; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ as visible Q&A ---------- */
.faq-list .qa { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 18px 22px; }
.faq-list .qa h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.faq-list .qa .faq-a { padding: 8px 0 0; }

/* ---------- Star ask (after a download) ---------- */
.star-toast { position: fixed; z-index: 60; right: 16px; bottom: 16px; max-width: 380px; display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.star-toast.is-on { opacity: 1; transform: none; }
.star-toast p { font-size: 0.92rem; color: var(--ink-2); }
.star-toast-actions { display: flex; align-items: center; gap: 10px; }
.star-toast-close { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.star-toast-close:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 760px) { .star-toast { left: 16px; right: 16px; max-width: none; } }

/* ---------- Motion off ---------- */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
html[data-motion="off"] .marquee-track, html[data-motion="off"] .rail-pulse { animation: none !important; }
html[data-motion="off"] .rail-pulse { transform: translateX(380px); }

/* ---------- What's new in 2.0 ---------- */
.whatsnew { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.new-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.new-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow 0.4s, border-color 0.4s; }
.new-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.new-card:nth-child(3n+1) .new-tag { color: #0a6f69; background: var(--teal-soft); }
.new-card:nth-child(3n+2) .new-tag { color: #4b3fd1; background: var(--violet-soft); }
.new-card:nth-child(3n) .new-tag { color: #b8402f; background: var(--coral-soft); }
.new-tag { align-self: flex-start; padding: 4px 10px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.new-card h3 { font-size: 1.2rem; line-height: 1.25; }
.new-card p:not(.new-tag) { color: var(--ink-2); font-size: 0.95rem; }
.new-shot { margin-top: auto; padding-top: 6px; }
.new-shot img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); }

/* ---------- Animated banners (still first, play-once SVG on view; see main.js) ---------- */
.promo { max-width: 960px; margin: 0 auto clamp(28px, 4vw, 48px); }
.promo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
.promo-after { margin: clamp(28px, 4vw, 48px) auto 0; }

/* ---------- Language menu + "shown in your language" notice (js/lang.js, tools/site_i18n.py) ---------- */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary .i { width: 16px; height: 16px; }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto;
  margin: 0; padding: 10px; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.lang-list a { display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--bg-2); color: var(--ink); }
.lang-list a[aria-current] { background: var(--teal-soft); font-weight: 600; }
.lang-notice {
  position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 70;
  max-width: 680px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.lang-notice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lang-notice p { margin: 0; font-size: 0.95rem; }
.site-nav a, .brand-name { white-space: nowrap; }
/* below this width the one-line menu and the header buttons no longer fit side by side */
@media (max-width: 1240px) { .site-nav { display: none; } .site-nav + .header-cta { margin-inline-start: auto; } }
@media (max-width: 1500px) {
  /* the globe alone: the header row has no room for a language name next to the menu */
  .lang-current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 640px) {
  .lang-current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-list { position: fixed; inset-inline: 12px; top: 64px; width: auto; }
}

html[lang="en"] .mt-note { display: none; }

/* ---------- Right-to-left languages (ar, fa, he) ---------- */
[dir="rtl"] body { font-family: var(--font-body), "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] code, [dir="rtl"] pre, [dir="rtl"] kbd { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .marquee { direction: ltr; } /* the track scrolls by translateX(-50%) */
[dir="rtl"] .i-trail, [dir="rtl"] .text-link .i { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .i-trail { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .text-link:hover .i { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .bar i.run { transform-origin: right; }
/* carousel dots: a 24px target around the 9px dot (WCAG 2.5.8) */
.reel-dots button { box-sizing: border-box; width: 24px; height: 24px; padding: 7.5px; background-clip: content-box; }
.reel-dots button[aria-current="true"] { width: 43px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-scene { max-width: 680px; width: 100%; margin: 12px auto 0; }
  .dl-grid, .new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-areas: "eng eng eng eng eng eng fmt fmt fmt fmt fmt fmt" "live live live live live live spk spk spk spk spk spk" "que que que que que que dl dl dl dl dl dl" "den den den den den den den den den den den den"; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .brand-name { font-size: 0.92rem; }
  .hero { min-height: 0; padding-top: 104px; }
  .proof { grid-template-columns: repeat(2, auto); }
  .l-pop2 { right: 0; top: -2%; }
  .l-pop4 { display: none; }
  .srt-line { min-width: 12em; font-size: 0.8rem; }
  .bento { display: flex; flex-direction: column; }
  .cell-denoise { flex-direction: column; align-items: stretch; }
  .cell-denoise .cell-copy { flex: none; }
  /* minmax(0, 1fr): a long unbroken file name must wrap, not widen the column past the screen */
  .pipeline, .contact-grid, .dl-grid, .new-grid, .faq-grid, .mac-install { grid-template-columns: minmax(0, 1fr); }
  .dl-card { overflow-wrap: anywhere; }
  .faq-head { position: static; }
  .support-card { flex-direction: column; text-align: center; }
  .support-actions { justify-content: center; }
  .reel { --card-w: 82vw; --radius: calc(var(--card-w) * 1.25); }
  .reel-controls { gap: 10px; }
  .reel-btn { width: 44px; height: 44px; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}
