/* QChat website. One dark surface, the app's own glass for the demos, nothing else loud. */

:root {
  --bg: #08090d;
  --bg-2: #0d0f15;
  --ink: 245 248 255;
  --text-1: rgb(var(--ink));
  --text-2: rgb(var(--ink) / 0.7);
  --text-3: rgb(var(--ink) / 0.48);
  --line: rgb(var(--ink) / 0.08);
  --line-2: rgb(var(--ink) / 0.14);
  --accent: #67e8f9;

  /* Aurora, QChat's default look. */
  --tint-a: 18 20 28;
  --tint-b: 25 27 39;
  --glass-a: 0.66;
  --accent-1: #22d3ee;
  --accent-2: #38bdf8;
  --accent-3: #818cf8;
  --orb-1: #22d3ee;
  --orb-2: #6366f1;
  --orb-3: #d946ef;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --font-app: "Segoe UI Variable Text", "Segoe UI", "Geist", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgb(103 232 249 / 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

code, kbd { font-family: var(--font-mono); font-size: 0.86em; }
code { color: var(--text-1); background: rgb(var(--ink) / 0.07); padding: 0.1em 0.38em; border-radius: 5px; }
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.08em 0.45em 0.12em;
  margin: 0 0.12em;
  border-radius: 6px;
  background: rgb(var(--ink) / 0.06);
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.12), inset 0 -1.5px 0 rgb(var(--ink) / 0.1);
  color: var(--text-1);
  text-align: center;
  line-height: 1.4;
  vertical-align: 0.06em;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--text-1); color: var(--bg);
}
.skip:focus { top: 16px; }

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px;
  border-radius: 999px;
  font: 500 15px/1 var(--font);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 200ms linear, box-shadow 300ms var(--ease-out), color 200ms linear, transform 400ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: var(--text-1);
  color: var(--bg);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.12), 0 8px 24px -10px rgb(var(--ink) / 0.5);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.12), 0 14px 32px -12px rgb(103 232 249 / 0.55); }
.btn-primary:hover svg { animation: nudge 700ms var(--ease-out); }
@keyframes nudge { 40% { transform: translateY(2px); } }
.btn-ghost { color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgb(var(--ink) / 0.06); }
.btn-small { height: 34px; padding: 0 15px; font-size: 14px; }

/* ---------------------------------------------------------------------------
   Nav, with a hairline that tracks page progress
   --------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding: 0 var(--gutter);
  background: linear-gradient(rgb(8 9 13 / 0.86), rgb(8 9 13 / 0.6));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  transform-origin: left; transform: scaleX(var(--page, 0)); opacity: 0.7;
}
.js .nav { animation: drop-in 900ms var(--ease-out) both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-12px); } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a { position: relative; transition: color 160ms linear; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease-out); }
.nav-links a:hover { color: var(--text-1); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------------------------------------------------------------------------
   Shared QChat pieces. Geometry and material follow docs/DESIGN.md
   (cozy density, Aurora look).
   --------------------------------------------------------------------------- */
.glass {
  background: linear-gradient(180deg, rgb(var(--tint-a) / var(--glass-a)), rgb(var(--tint-b) / var(--glass-a)));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.13),
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 10px 26px -8px rgb(0 0 0 / 0.42),
    0 1px 2px rgb(0 0 0 / 0.22);
  color: var(--text-1);
  font-family: var(--font-app);
}
.orb {
  flex: none;
  width: 18px; height: 18px; margin: 0 6px;
  border-radius: 50%;
  background:
    radial-gradient(60% 50% at 34% 24%, rgb(255 255 255 / 0.92) 0%, rgb(255 255 255 / 0) 100%),
    radial-gradient(90% 90% at 68% 82%, var(--orb-3) 0%, rgb(0 0 0 / 0) 72%),
    linear-gradient(145deg, var(--orb-1) 0%, var(--orb-2) 62%, var(--orb-3) 100%);
}
.qbar {
  display: flex; align-items: center;
  height: 44px; padding: 0 7px;
  border-radius: 22px;
  overflow: hidden;
  font-size: 15px; line-height: 1.45;
  z-index: 5;
}
.qfield {
  position: relative; flex: 1; min-width: 0;
  margin-left: 8px; white-space: nowrap; overflow: hidden;
  display: flex; align-items: center; height: 30px;
}
.qfield .ph { position: absolute; left: 0; color: rgb(var(--ink) / 0.5); }
.typed { white-space: pre; }
.caret {
  display: inline-block; flex: none; width: 1.5px; height: 18px; margin-left: 1px;
  background: var(--accent); border-radius: 1px;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.qtools { flex: none; display: flex; align-items: center; gap: 2px; }
.chip { padding: 0 8px; font-size: 12.5px; color: var(--text-2); }
.tool, .send {
  position: relative;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--text-2);
}
.tool svg, .send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tool.is-hot { background: rgb(var(--ink) / 0.14); color: var(--text-1); }
.send {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  color: #06121a;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.42), 0 2px 8px -1px rgb(56 189 248 / 0.5);
  opacity: 0; transform: scale(0.8);
}
.send svg { position: absolute; stroke-width: 2; }
.send .i-stop { fill: currentColor; stroke: none; opacity: 0; }

.qbubble { border-radius: 20px; font-size: 15px; line-height: 1.45; opacity: 0; }
.qbubble.user {
  padding: 9px 15px;
  background:
    linear-gradient(180deg, rgb(56 189 248 / 0.14), rgb(129 140 248 / 0.12)),
    linear-gradient(180deg, rgb(var(--tint-a) / var(--glass-a)), rgb(var(--tint-b) / var(--glass-a)));
  transform-origin: 100% 100%;
}
.qbubble.reply { padding: 14px 20px 15px; font-size: 14.5px; line-height: 1.6; overflow: hidden; transform-origin: 50% 100%; }
.qbubble .w { opacity: 0; }
.qbubble.reply::before {
  content: ""; position: absolute; left: 21px; top: 20px; width: 28px; height: 6px;
  background: radial-gradient(circle 3px, var(--text-1) 96%, transparent) 0 0 / 11px 6px repeat-x;
  opacity: 0; transition: opacity 200ms linear;
}
.qbubble.reply.is-thinking::before { animation: think 1.2s ease-in-out infinite; opacity: 0.6; }
.qbubble strong { font-weight: 600; }
.quote-line { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.quote-line svg, .sel-chip svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.tabs { height: 24px; overflow: hidden; z-index: 4; }
.tabs-inner { display: flex; gap: 4px; height: 100%; padding: 0 8px; transform: translateY(24px); }
.tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px 1px;
  border-radius: 9px 9px 0 0;
  font: 400 11.5px/1 var(--font-app); color: var(--text-2);
  background: linear-gradient(180deg, rgb(var(--tint-a) / 0.6), rgb(var(--tint-a) / var(--glass-a)));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.1), inset -1px 0 0 rgb(255 255 255 / 0.1);
  white-space: nowrap;
}
.tab.is-current { color: var(--text-1); background: linear-gradient(180deg, rgb(var(--tint-b) / 0.78), rgb(var(--tint-a) / var(--glass-a))); }
.tab em { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 10.5px; }
.tab-logo { flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.75); }
.tab-logo.gem { border-radius: 0; box-shadow: none; background: linear-gradient(135deg, #8ab4f8, #a78bfa); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

.keys {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  color: var(--text-3); font: 500 13px/1 var(--font-mono);
}
.keys kbd {
  font-size: 13px; padding: 7px 11px 9px; border-radius: 9px; min-width: 38px;
  background: rgb(var(--ink) / 0.06);
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.13), inset 0 -3px 0 rgb(var(--ink) / 0.09), 0 6px 14px -8px rgb(0 0 0 / 0.6);
}
.keys.is-pressed kbd { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.2), inset 0 -1px 0 rgb(var(--ink) / 0.09); background: rgb(var(--ink) / 0.1); color: var(--accent); }
.keys-float {
  left: 0; right: 0; top: 196px; margin: auto; width: max-content;
  padding: 14px 18px; border-radius: 18px; z-index: 30;
  background: rgb(10 12 18 / 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 20px 40px -16px rgb(0 0 0 / 0.7);
  opacity: 0;
}

.thinking { position: absolute; left: 22px; top: 19px; display: flex; gap: 5px; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-1); opacity: 0.3; animation: think 1.2s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: 0.16s; }
.thinking i:nth-child(3) { animation-delay: 0.32s; }
@keyframes think { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }

/* Windows the demos float over */
.win {
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-app);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(0 0 0 / 0.35);
}
.win-bar {
  display: flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 14px;
  font-size: 12px;
}
.win-ico { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #f59e0b, #ef4444); }
.win-ico.doc { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.win-ico.sheet { background: linear-gradient(135deg, #34d399, #059669); }
.win-ctl { margin-left: auto; display: flex; gap: 20px; opacity: 0.6; }
.win-ctl i { position: relative; width: 10px; height: 10px; }
.win-ctl i:nth-child(1)::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: currentColor; }
.win-ctl i:nth-child(2) { box-shadow: inset 0 0 0 1px currentColor; border-radius: 2px; }
.win-ctl i:nth-child(3)::before, .win-ctl i:nth-child(3)::after { content: ""; position: absolute; left: -1px; right: -1px; top: 5px; height: 1px; background: currentColor; transform: rotate(45deg); }
.win-ctl i:nth-child(3)::after { transform: rotate(-45deg); }
.win-light { background: #fbfbfa; color: #1f2328; }
.win-light .win-bar { background: #f1f1ef; color: #4b5057; box-shadow: inset 0 -1px 0 #e4e4e1; }
.win-dark { background: #12141a; color: #c9d1d9; }
.win-dark .win-bar { background: #181b22; color: #8b949e; box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.05); }

.editor { position: relative; }
.ed-hl { position: absolute; left: 0; right: 0; top: 126.5px; height: 45px; background: rgb(46 160 67 / 0.16); box-shadow: inset 2px 0 0 rgb(63 185 80 / 0.8); opacity: 0; }
.editor pre { position: relative; margin: 0; padding: 14px 18px; font: 400 12.5px/1.8 var(--font-mono); white-space: pre; }
.editor b { font-weight: 400; }
.editor .ed-n { display: inline-block; width: 22px; margin-right: 18px; text-align: right; color: #3d434f; }
.editor .k { color: #ff7b72; }
.editor .f { color: #d2a8ff; }
.editor .s { color: #a5d6ff; }
.editor .c { color: #6e7681; }

.pointer {
  left: 0; top: 0; width: 18px; height: 26px; z-index: 40;
  fill: #fff; stroke: #111; stroke-width: 1.3; stroke-linejoin: round;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.45));
  opacity: 0;
}

/* ---------------------------------------------------------------------------
   Intro animation on first paint
   --------------------------------------------------------------------------- */
.js .intro { animation: intro 1000ms var(--ease-out) calc(var(--d, 0) * 90ms + 200ms) both; }
@keyframes intro { from { opacity: 0; transform: translateY(18px); } }
.intro-lines > span { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.intro-lines > span > span { display: inline-block; }
.js .intro-lines > span > span { animation: line-up 1100ms var(--ease-out) both; animation-delay: 260ms; }
.js .intro-lines > span:nth-child(2) > span { animation-delay: 360ms; }
@keyframes line-up { from { transform: translateY(110%); } }
.js .screen { animation: screen-in 1400ms var(--ease-out) both; }
@keyframes screen-in { from { scale: 0.96; opacity: 0; } }
.js .app .bar { animation: orb-in 1000ms var(--ease-out) 500ms both; }
@keyframes orb-in { from { scale: 0.3; opacity: 0; } }
.js .app .keys kbd { animation: key-in 900ms var(--ease-out) both; animation-delay: 800ms; }
.js .app .keys kbd:last-child { animation-delay: 880ms; }
@keyframes key-in { from { translate: 0 10px; opacity: 0; } }
.ripple {
  left: 298px; bottom: 0; width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(103 232 249 / 0.6);
  opacity: 0; pointer-events: none;
}
.js .ripple { animation: ripple 2400ms var(--ease-out) 1100ms 2; }
@keyframes ripple { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }

/* Scroll reveals */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 900ms var(--ease-out) calc(var(--i, 0) * 70ms), transform 1100ms var(--ease-out) calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wd > span { display: inline-block; }
.js [data-split] .wd > span { transform: translateY(108%); transition: transform 1000ms var(--ease-out) calc(var(--w) * 45ms); }
.js [data-split].is-in .wd > span { transform: none; }

/* ---------------------------------------------------------------------------
   Scroll story
   --------------------------------------------------------------------------- */
.story { position: relative; height: 760vh; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  padding: 64px 12px 12px;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--bg-2);
  transform-origin: 50% 40%;
}
.wallpaper {
  position: absolute; inset: -8% -4%; z-index: -1;
  background:
    radial-gradient(30% 38% at 66% 30%, rgb(34 211 238 / 0.3) 0%, transparent 70%),
    radial-gradient(28% 40% at 90% 58%, rgb(217 70 239 / 0.3) 0%, transparent 72%),
    radial-gradient(42% 40% at 62% 96%, rgb(99 102 241 / 0.42) 0%, transparent 70%),
    radial-gradient(22% 26% at 80% 12%, rgb(56 189 248 / 0.16) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgb(99 102 241 / 0.12) 0%, transparent 70%),
    linear-gradient(160deg, #0b0d14 0%, #0a0b11 55%, #0d0d17 100%);
  will-change: transform;
}
.wallpaper::after, .scene-wall::after {
  content: ""; position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: var(--grain);
}

/* Captions: every step shares one grid cell and crossfades. */
.copy {
  position: absolute; z-index: 2;
  left: clamp(28px, 5vw, 76px); top: 50%;
  width: min(440px, 36%);
  transform: translateY(-50%);
  display: grid;
}
.caption {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  filter: blur(4px);
  transition: opacity 420ms var(--ease-out), transform 620ms var(--ease-out), filter 420ms var(--ease-out), visibility 0s linear 420ms;
}
.caption.is-active {
  opacity: 1; visibility: visible; transform: none; filter: none;
  transition: opacity 600ms var(--ease-out) 100ms, transform 800ms var(--ease-out) 100ms, filter 600ms var(--ease-out) 100ms, visibility 0s;
}
.caption.is-past { transform: translateY(-18px); }
.caption h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 14px 0 20px;
}
.caption h2 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 10px 0 14px;
  text-wrap: balance;
}
.caption h2 kbd, .scene-copy h2 kbd { font-size: 0.62em; vertical-align: 0.22em; }
.caption p:not(.eyebrow, .step-num, .meta) { color: var(--text-2); font-size: 16.5px; max-width: 40ch; text-wrap: pretty; }
.caption .lede { font-size: 17px; max-width: 38ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.meta { margin-top: 16px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.eyebrow, .step-num {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.step-num { color: var(--accent); }

.rail { position: absolute; z-index: 2; left: clamp(28px, 5vw, 76px); bottom: 30px; display: flex; gap: 6px; }
.rail i { position: relative; display: block; width: 28px; height: 2px; border-radius: 2px; background: rgb(var(--ink) / 0.14); overflow: hidden; }
.rail i::after { content: ""; position: absolute; inset: 0; background: var(--text-1); transform-origin: left; transform: scaleX(var(--fill, 0)); }

.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%);
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
  padding-bottom: 26px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 18px;
  background: linear-gradient(var(--text-3), transparent);
  animation: hint 2.2s var(--ease-out) infinite;
}
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.demo { position: absolute; inset: 0 0 0 38%; }
.desk-win {
  position: absolute; left: 50%; top: 50%;
  width: 700px; height: 440px; margin: -220px 0 0 -350px;
  opacity: 0;
  will-change: transform, opacity;
}
.app {
  position: absolute; left: 50%; top: 50%;
  width: 640px; height: 520px;
  margin: -260px 0 0 -320px;
  font: 400 15px/1.45 var(--font-app);
  color: var(--text-1);
  transform-origin: 320px 498px;
  will-change: transform;
}
.app > * { position: absolute; }
.app .bar { bottom: 0; left: 90px; width: 460px; }
.app .msg-user { right: 90px; bottom: 52px; max-width: 420px; padding: 9px 15px; border-radius: 20px; opacity: 0; transform-origin: 100% 100%;
  background:
    linear-gradient(180deg, rgb(56 189 248 / 0.14), rgb(129 140 248 / 0.12)),
    linear-gradient(180deg, rgb(var(--tint-a) / var(--glass-a)), rgb(var(--tint-b) / var(--glass-a)));
}
.app .msg-reply { left: 0; bottom: 52px; width: 640px; height: 0; border-radius: 20px; overflow: hidden; opacity: 0; transform-origin: 50% 100%; }
.reply-body { padding: 15px 22px 17px; font-size: 15px; line-height: 1.6; }
.reply-body > .blk + .blk { margin-top: 12px; }
.reply-body .w, .reply-body .ln { opacity: 0; }
.reply-body code { font-size: 13px; }
.code {
  margin: 0; padding: 11px 14px;
  border-radius: 12px;
  background: rgb(var(--ink) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.08);
  font: 400 13px/1.62 var(--font-mono);
  color: rgb(var(--ink) / 0.88);
  white-space: pre; overflow: hidden;
}
.code .ln { display: inline-block; }
.code b { font-weight: 400; }
.code .k { color: #c4b5fd; }
.code .f { color: #67e8f9; }
.code .n { color: #fda4af; }
.app .tabs { left: 112px; bottom: 44px; width: 420px; }
.app .keys { left: 0; right: 0; bottom: -64px; }

/* ---------------------------------------------------------------------------
   Feature tour scenes
   --------------------------------------------------------------------------- */
.scenes { position: relative; }
.scenes-intro { max-width: 1160px; margin: 0 auto; padding: clamp(96px, 14vw, 168px) var(--gutter) 0; }
.scene { position: relative; height: 270vh; }
.scene-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  max-width: 1400px; margin: 0 auto;
  padding: 88px var(--gutter) 28px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
}
.scene-copy h2 {
  margin: 16px 0 16px;
  font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; font-weight: 500; letter-spacing: -0.03em;
  text-wrap: balance;
}
.scene-copy p:not(.step-num) { color: var(--text-2); font-size: 16.5px; max-width: 40ch; text-wrap: pretty; }
.js .scene-card[data-reveal] { transform: translateY(40px) scale(0.94); transition: opacity 1000ms var(--ease-out), transform 1400ms var(--ease-out); }
.js .scene-card[data-reveal].is-in { transform: none; }
.scene-progress { position: relative; width: 140px; height: 2px; margin-top: 32px; border-radius: 2px; background: rgb(var(--ink) / 0.12); overflow: hidden; }
.scene-progress i { position: absolute; inset: 0; background: var(--text-1); transform-origin: left; transform: scaleX(var(--p, 0)); }

.scene-card {
  position: relative;
  height: min(100%, 660px);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--bg-2);
  transform-origin: 50% 50%;
  will-change: transform;
}
.scene-wall { position: absolute; inset: -10%; z-index: -1; will-change: transform; }
.w-1 { background:
  radial-gradient(40% 46% at 22% 20%, rgb(251 113 133 / 0.42), transparent 70%),
  radial-gradient(40% 50% at 86% 30%, rgb(251 191 36 / 0.3), transparent 72%),
  radial-gradient(50% 50% at 50% 100%, rgb(168 85 247 / 0.4), transparent 70%),
  linear-gradient(160deg, #1a1018, #110c16); }
.w-2 { background:
  radial-gradient(40% 50% at 80% 20%, rgb(52 211 153 / 0.36), transparent 70%),
  radial-gradient(44% 46% at 14% 80%, rgb(14 165 233 / 0.36), transparent 72%),
  radial-gradient(40% 40% at 60% 100%, rgb(20 184 166 / 0.3), transparent 70%),
  linear-gradient(160deg, #0c1714, #0a1016); }
.w-3 { background:
  radial-gradient(44% 50% at 20% 26%, rgb(129 140 248 / 0.45), transparent 70%),
  radial-gradient(40% 46% at 90% 76%, rgb(217 70 239 / 0.36), transparent 72%),
  radial-gradient(30% 40% at 70% 10%, rgb(56 189 248 / 0.22), transparent 70%),
  linear-gradient(160deg, #0f0f1f, #0d0b18); }
.w-4 { background:
  radial-gradient(46% 50% at 82% 24%, rgb(251 146 60 / 0.4), transparent 70%),
  radial-gradient(40% 50% at 10% 90%, rgb(59 130 246 / 0.4), transparent 72%),
  radial-gradient(30% 30% at 40% 30%, rgb(244 114 182 / 0.22), transparent 70%),
  linear-gradient(160deg, #18100e, #0c0f1a); }
.w-5 { background:
  radial-gradient(44% 50% at 76% 22%, rgb(34 211 238 / 0.36), transparent 70%),
  radial-gradient(44% 50% at 16% 76%, rgb(99 102 241 / 0.42), transparent 72%),
  radial-gradient(30% 30% at 90% 90%, rgb(217 70 239 / 0.26), transparent 70%),
  linear-gradient(160deg, #0a1018, #0c0c18); }

.vig {
  position: absolute; left: 50%; top: 50%;
  width: 720px; height: 500px; margin: -250px 0 0 -360px;
  font-family: var(--font-app);
  will-change: transform;
}
.vig > * { position: absolute; }

/* Selected text */
.doc-body { padding: 22px 28px; font-size: 15.5px; line-height: 1.75; color: #24292f; }
.doc-body p + p { margin-top: 12px; }
.doc-body .w.is-sel { background: #b4d5fe; box-shadow: -3px 0 0 #b4d5fe, 3px 0 0 #b4d5fe; }
.doc-body strong { font-weight: 600; }
.sel-chip {
  left: 152px; bottom: 82px;
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 12px;
  font-size: 12.5px; color: var(--text-2);
  opacity: 0;
}

/* Snapshot */
.chart { padding: 18px 26px 22px; height: calc(100% - 34px); display: flex; flex-direction: column; }
.chart-head { display: flex; justify-content: space-between; font-size: 13px; color: #57606a; }
.chart-head strong { color: #1f2328; font-weight: 600; font-size: 14px; }
.bars {
  flex: 1; display: flex; align-items: flex-end; gap: 22px;
  margin-top: 16px; padding: 0 6px 22px;
  background: repeating-linear-gradient(to top, #ebecef 0 1px, transparent 1px 46px);
}
.bars i { position: relative; flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #4f8ef7, #2f6de0); }
.bars i:nth-child(3) { background: linear-gradient(180deg, #f59e8b, #e8664f); }
.bars b { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-weight: 400; font-size: 11px; color: #6e7781; }
.snap-frame { pointer-events: none; opacity: 0; z-index: 12; }
.snap-frame i { position: absolute; width: 22px; height: 22px; border: 0 solid #fff; filter: drop-shadow(0 0 6px rgb(0 0 0 / 0.5)); }
.snap-frame i:nth-child(1) { left: -6px; top: -6px; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 8px; }
.snap-frame i:nth-child(2) { right: -6px; top: -6px; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 8px; }
.snap-frame i:nth-child(3) { left: -6px; bottom: -6px; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 8px; }
.snap-frame i:nth-child(4) { right: -6px; bottom: -6px; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 8px; }
.snap-flash { background: #fff; border-radius: 10px; opacity: 0; z-index: 11; pointer-events: none; }
.snap-fly { left: 0; top: 0; width: 540px; height: 300px; border-radius: 10px; overflow: hidden; transform-origin: 0 0; opacity: 0; z-index: 10; box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.6); }
.snap-fly > .win { box-shadow: none; }
.att-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 12px;
  opacity: 0;
}
.att-chip strong { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.att-chip em { display: block; font-style: normal; font-size: 11px; color: var(--text-3); line-height: 1.3; }
.thumb { position: relative; width: 40px; height: 30px; border-radius: 7px; overflow: hidden; background: #fbfbfa; flex: none; }
.thumb > .win, .thumb-sm > .win { position: absolute; left: 0; top: 0; width: 540px; height: 300px; transform-origin: 0 0; box-shadow: none; border-radius: 0; }
.thumb.img { background: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 46%, #0ea5e9 47%, #0369a1 72%, #fcd34d 73%, #fbbf24 100%); }
.thumb.pdf, .file-pdf { display: grid; place-items: center; font: 700 9px/1 var(--font); color: #fff; background: #e5484d; letter-spacing: 0.04em; }
.thumb-sm { position: relative; display: block; width: 126px; height: 70px; margin: 2px 0 7px; border-radius: 8px; overflow: hidden; background: #fbfbfa; }

/* Commands */
.slash { bottom: 106px; padding: 6px; border-radius: 16px; opacity: 0; transform-origin: 50% 100%; z-index: 6; }
.slash-item {
  display: grid; grid-template-columns: 86px 1fr; align-items: center;
  height: 34px; padding: 0 10px; border-radius: 10px;
  overflow: hidden;
}
.slash-item code { background: none; padding: 0; font-size: 12.5px; color: var(--text-1); }
.slash-item span { font-size: 13px; color: var(--text-2); }
.slash-item.is-sel { background: rgb(56 189 248 / 0.2); }
.slash-item.is-sel code { color: var(--accent); }
.toast {
  left: 0; right: 0; top: 150px; margin: auto; width: max-content;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 14px;
  font-size: 13px; opacity: 0;
}
.toast .tab-logo { width: 11px; height: 11px; }
.mode-pill {
  flex: none; overflow: hidden; white-space: nowrap;
  max-width: 0; padding: 2px 0; margin-left: 0;
  border-radius: 8px;
  font-size: 11.5px; color: var(--text-2);
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.3);
  opacity: 0;
}
[data-el="logo-gem"] { margin-left: -15px; opacity: 0; }

/* Files */
.file { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.6); }
.file-img { width: 60px; height: 46px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 6px 14px -4px rgb(0 0 0 / 0.5); background: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 46%, #0ea5e9 47%, #0369a1 72%, #fcd34d 73%, #fbbf24 100%); }
.file-pdf { width: 46px; height: 58px; border-radius: 4px; box-shadow: 0 6px 14px -4px rgb(0 0 0 / 0.5); font-size: 11px; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.file.is-lifted { opacity: 0.35; }
.drop-zone {
  left: 116px; top: 262px; width: 488px; height: 222px;
  border-radius: 24px;
  border: 1.5px dashed rgb(var(--ink) / 0.55);
  background: rgb(56 189 248 / 0.1);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center; padding-top: 22px;
  font-size: 13.5px; color: var(--text-1);
  opacity: 0; z-index: 3;
}
.ghost { left: 0; top: 0; z-index: 35; opacity: 0; transform-origin: 30% 30%; filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.5)); }
.ghost > * { position: absolute; left: 0; top: 0; }

/* Search */
.search { bottom: 106px; padding: 6px; border-radius: 16px; opacity: 0; transform-origin: 50% 100%; z-index: 6; overflow: hidden; }
.search-field { position: relative; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px; margin-bottom: 4px; box-shadow: inset 0 -1px 0 rgb(var(--ink) / 0.1); font-size: 14px; }
.search-field svg { width: 16px; height: 16px; fill: none; stroke: var(--text-2); stroke-width: 1.7; stroke-linecap: round; }
.search-field .ph { position: absolute; left: 35px; color: rgb(var(--ink) / 0.45); }
.search-group { padding: 8px 10px 4px; font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); overflow: hidden; }
.search-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; overflow: hidden; }
.search-item em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--text-3); }
.search-item.is-sel { background: rgb(56 189 248 / 0.18); }
.search-item mark { background: rgb(103 232 249 / 0.28); color: inherit; border-radius: 3px; }

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */
.section { max-width: 1160px; margin: 0 auto; padding: clamp(96px, 14vw, 168px) var(--gutter) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section h2, .scenes-intro h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 16px;
  text-wrap: balance;
}
.scenes-intro > p { margin-top: 18px; color: var(--text-2); font-size: 17px; }
.section h3 { font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.section p { color: var(--text-2); font-size: 15px; text-wrap: pretty; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.feature-grid li { position: relative; padding: 30px 26px 36px 0; border-bottom: 1px solid var(--line); }
.feature-grid li:not(:nth-child(4n + 1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.feature-grid svg { width: 24px; height: 24px; fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; transition: stroke 300ms linear, transform 600ms var(--ease-out); }
.feature-grid li:hover svg { stroke: var(--accent); transform: translateY(-2px); }
.feature-grid h3 { margin-bottom: 8px; }
.feature-grid p { font-size: 14.5px; }

.shortcuts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid var(--line); }
.shortcuts > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.shortcuts dt { order: 2; white-space: nowrap; }
.shortcuts dd { color: var(--text-2); font-size: 15px; }
.shortcuts kbd { font-size: 12.5px; padding: 0.2em 0.55em 0.26em; }

/* Looks */
.looks { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.looks-copy > p { margin-top: 18px; max-width: 42ch; font-size: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.swatch {
  position: relative;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: var(--sw);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  transition: transform 400ms var(--ease-out);
}
.swatch:hover { transform: scale(1.08); }
.swatch::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px transparent; transition: box-shadow 160ms linear;
}
.swatch:hover::after { box-shadow: 0 0 0 1.5px rgb(var(--ink) / 0.25); }
.swatch[aria-checked="true"]::after { box-shadow: 0 0 0 1.5px var(--text-1); }
.swatch-name { margin-top: 18px; font: 500 12px/1 var(--font-mono) !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3) !important; }
.swatch-name strong { color: var(--text-1); font-weight: 500; }

.looks-preview {
  --lp-tint-a: 18 20 28; --lp-tint-b: 25 27 39; --lp-ink: 245 248 255; --lp-alpha: 0.68;
  --lp-a1: #22d3ee; --lp-a2: #38bdf8; --lp-a3: #818cf8;
  --lp-o1: #22d3ee; --lp-o2: #6366f1; --lp-o3: #d946ef;
  --lp-rim: 255 255 255; --lp-on: #06121a;
  position: relative;
  aspect-ratio: 7 / 5;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: end center;
  padding: 0 24px 36px;
  font-family: var(--font-app);
  color: rgb(var(--lp-ink));
}
.lp-wall {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 22%, rgb(168 85 247 / 0.55) 0%, transparent 72%),
    radial-gradient(44% 52% at 86% 20%, rgb(20 184 166 / 0.5) 0%, transparent 74%),
    radial-gradient(42% 52% at 76% 96%, rgb(251 113 133 / 0.48) 0%, transparent 74%),
    radial-gradient(38% 46% at 16% 92%, rgb(56 189 248 / 0.5) 0%, transparent 72%),
    linear-gradient(135deg, #1e1b4b 0%, #0f172a 48%, #1e293b 100%);
}
.lp-stack { width: min(100%, 400px); display: flex; flex-direction: column; gap: 8px; }
.lp-stack > * { transition: background 420ms var(--ease-out), color 420ms var(--ease-out), transform 520ms var(--ease-out); }
.looks-preview.is-swapping .lp-stack > * { transform: translateY(4px) scale(0.99); }
.lp-reply, .lp-user, .lp-bar {
  background: linear-gradient(180deg, rgb(var(--lp-tint-a) / var(--lp-alpha)), rgb(var(--lp-tint-b) / var(--lp-alpha)));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgb(var(--lp-rim) / 0.13), inset 0 1px 0 rgb(255 255 255 / 0.18), 0 10px 26px -8px rgb(0 0 0 / 0.38);
}
.lp-reply { border-radius: 18px; padding: 13px 18px 14px; font-size: 14px; line-height: 1.55; }
.lp-reply p { color: inherit; font-size: inherit; }
.lp-reply ol { list-style: decimal; padding-left: 20px; margin-top: 6px; }
.lp-reply li::marker { color: var(--lp-a2); font-weight: 600; }
.lp-user {
  align-self: flex-end; border-radius: 18px; padding: 8px 14px; font-size: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--lp-a2) 16%, transparent), color-mix(in srgb, var(--lp-a3) 12%, transparent)),
    linear-gradient(180deg, rgb(var(--lp-tint-a) / var(--lp-alpha)), rgb(var(--lp-tint-b) / var(--lp-alpha)));
}
.lp-bar { display: flex; align-items: center; height: 44px; border-radius: 22px; padding: 0 7px; font-size: 14.5px; }
.lp-orb {
  width: 18px; height: 18px; margin: 0 6px; border-radius: 50%;
  background:
    radial-gradient(60% 50% at 34% 24%, rgb(255 255 255 / 0.92) 0%, rgb(255 255 255 / 0) 100%),
    radial-gradient(90% 90% at 68% 82%, var(--lp-o3) 0%, rgb(0 0 0 / 0) 72%),
    linear-gradient(145deg, var(--lp-o1) 0%, var(--lp-o2) 62%, var(--lp-o3) 100%);
}
.lp-ph { flex: 1; margin-left: 8px; opacity: 0.55; }
.lp-send {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-a1), var(--lp-a2) 55%, var(--lp-a3));
  color: var(--lp-on);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.42);
}
.lp-send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Install */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { padding-top: 22px; border-top: 1px solid var(--line); }
.steps .step-num { display: block; margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps h3 kbd { font-size: 0.8em; }
.download-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 64px; padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(var(--ink) / 0.045), rgb(var(--ink) / 0.02));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(var(--ink) / 0.06);
}
.download-card h3 { font-size: 20px; }
.download-card .meta { margin-top: 6px; }
.download-card .cta-row { margin-top: 0; }
.fineprint { margin-top: 20px; max-width: 72ch; font-size: 13.5px !important; color: var(--text-3) !important; }
.fineprint em { font-style: normal; color: var(--text-2); }

/* FAQ */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--text-3);
  transition: transform 500ms var(--ease-out), color 200ms linear;
}
.faq summary:hover::after { color: var(--text-1); }
.faq details[open] summary::after { transform: rotate(135deg); color: var(--text-1); }
.faq details > div { padding: 0 0 24px; max-width: 64ch; }
.faq details[open] > div { animation: faq-open 600ms var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } }
.faq details p { font-size: 15.5px; }
.faq em { font-style: normal; color: var(--text-1); }

/* Finale */
.finale {
  position: relative;
  max-width: 1160px; margin: clamp(120px, 16vw, 200px) auto 0;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.finale h2 { max-width: 16ch; font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; font-weight: 500; letter-spacing: -0.04em; text-wrap: balance; }
.finale-glow {
  position: absolute; left: 50%; top: 55%; width: min(900px, 100%); height: 420px; z-index: -1;
  transform: translate(-50%, -50%) scale(0.8);
  background: radial-gradient(closest-side, rgb(99 102 241 / 0.35), rgb(34 211 238 / 0.12) 55%, transparent);
  filter: blur(20px); opacity: 0;
  transition: opacity 1600ms var(--ease-out), transform 1800ms var(--ease-out);
}
.finale.is-in .finale-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.finale-bar {
  display: flex; align-items: center;
  width: min(100%, 520px); height: 58px; margin-top: 48px; padding: 0 9px;
  border-radius: 29px;
  font-size: 17px; text-align: left;
  transform: scale(0.94); opacity: 0;
  transition: transform 1100ms var(--ease-out) 200ms, opacity 900ms var(--ease-out) 200ms, box-shadow 400ms var(--ease-out);
}
.finale.is-in .finale-bar { transform: none; opacity: 1; }
.finale-bar .orb { width: 22px; height: 22px; margin: 0 9px; }
.finale-bar .qfield { height: 34px; margin-left: 8px; }
.finale-send {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  color: #06121a;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.42), 0 4px 14px -2px rgb(56 189 248 / 0.55);
  transition: transform 500ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.finale-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.finale-bar:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.18), 0 20px 50px -14px rgb(56 189 248 / 0.45); }
.finale-bar:hover .finale-send { transform: scale(1.08); }
.finale .meta { margin-top: 18px; }

.footer {
  width: min(100% - 2 * var(--gutter), 1160px - 2 * var(--gutter));
  margin: clamp(96px, 14vw, 168px) auto 0;
  padding: 28px 0 40px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-3);
}
.footer .brand { color: var(--text-1); font-size: 14.5px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a:hover { color: var(--text-1); }
.footer p { margin-left: auto; }

/* ---------------------------------------------------------------------------
   Narrow screens: copy on top, demo underneath.
   --------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid li, .feature-grid li:not(:nth-child(4n + 1)) { padding: 28px 24px 32px 0; border-left: 0; }
  .feature-grid li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .copy { left: 24px; right: 24px; top: 28px; width: auto; transform: none; align-items: start; }
  .caption { align-self: start; }
  .caption h1 { font-size: clamp(34px, 8.4vw, 48px); margin: 10px 0 14px; }
  .caption h2 { font-size: clamp(24px, 6vw, 30px); margin: 8px 0 10px; }
  .caption p:not(.eyebrow, .step-num, .meta) { font-size: 15px; }
  .caption .lede { font-size: 15.5px; }
  .cta-row { margin-top: 20px; }
  .demo { inset: 40% 0 0 0; }
  .app.is-narrow .msg-user { max-width: 460px; }
  .wallpaper {
    background:
      radial-gradient(60% 30% at 70% 52%, rgb(34 211 238 / 0.26) 0%, transparent 70%),
      radial-gradient(50% 26% at 100% 74%, rgb(217 70 239 / 0.28) 0%, transparent 72%),
      radial-gradient(80% 30% at 40% 100%, rgb(99 102 241 / 0.4) 0%, transparent 70%),
      linear-gradient(170deg, #0b0d14 0%, #0a0b11 55%, #0d0d17 100%);
  }
  .rail { left: 24px; bottom: 20px; }
  .scroll-hint { display: none; }
  .scene { height: 240vh; }
  .scene-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 18px; padding: 80px 16px 16px; align-items: stretch; }
  .scene-copy h2 { font-size: clamp(26px, 6.4vw, 34px); margin: 10px 0 10px; }
  .scene-copy p:not(.step-num) { font-size: 15px; }
  .scene-progress { margin-top: 16px; }
  .scene-card { height: 100%; border-radius: 20px; }
  .looks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 22px 0 28px; }
  .shortcuts { grid-template-columns: 1fr; }
  .footer p { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .stage { padding: 60px 8px 8px; }
  .screen { border-radius: 20px; }
  .caption-hero .btn-ghost { display: none; }
  .demo { inset: 46% 0 0 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid li, .feature-grid li:nth-child(2n) { padding: 26px 0 30px; border-left: 0; }
  .download-card { padding: 24px; }
  .download-card .cta-row, .download-card .btn { width: 100%; }
  .looks-preview { aspect-ratio: 4 / 5; padding: 0 14px 22px; }
  .finale-bar { height: 52px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .caption, .caption.is-active { transition: opacity 200ms linear, visibility 0s; transform: none; filter: none; }
  .scroll-hint::after, .caret, .thinking i, .js .ripple { animation: none; }
  .js .intro, .js .intro-lines > span > span, .js .screen, .js .app .bar, .js .app .keys kbd, .js .nav { animation: none; }
  .js [data-reveal], .js [data-split] .wd > span, .js .scene-card[data-reveal] { transition: opacity 200ms linear; transform: none; }
  .qbubble.reply.is-thinking::before { animation: none; }
}
