/* Relay — marketing page.
   Midnight ink with a mint accent. Light comes from soft, eased radial glows
   with a fine film grain on top (no banding, no hard edges). Headlines in
   Instrument Serif, body in Figtree. */

@font-face { font-family: 'Figtree'; src: url('/assets/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/instrument-serif.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #0b0e14;
  --ink-2: #0e121a;
  --surface: #121722;
  --surface-2: #171d2a;
  --surface-3: #1e2534;
  --line: rgba(226, 236, 255, 0.07);
  --line-2: rgba(226, 236, 255, 0.12);
  --line-3: rgba(226, 236, 255, 0.18);
  --text: #f2f5f7;
  --text-2: #aeb7c2;
  --muted: #7b8594;
  --faint: #556070;
  --mint: #7ee0c3;
  --mint-2: #a6ecd6;
  --mint-ink: #04221a;
  --mint-soft: rgba(126, 224, 195, 0.12);
  --cyan: #5bc8e8;
  --violet: #8b7cf6;
  --rose: #ff8f87;
  --rose-soft: rgba(255, 143, 135, 0.12);
  --green: #8fe0a6;
  --amber: #f2c27b;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Figtree', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Cascadia Code', 'Cascadia Mono', 'SFMono-Regular', Consolas, ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Fine film grain, drawn once by the browser and tiled. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 420;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--mint-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.012em; line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: #d2f6ea; }
p { margin: 0; }
b, strong { font-weight: 650; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; color: var(--text-2); }
.mono { font-family: var(--mono); }
::selection { background: rgba(126, 224, 195, 0.3); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--mint-ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- Light: eased radial glows + grain ---------- */
.light { position: absolute; pointer-events: none; z-index: 0; }
.light::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); background-size: 200px; opacity: 0.22; mix-blend-mode: overlay; }
.light-hero {
  inset: -80px 0 0 0;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 96%);
  mask-image: linear-gradient(#000 62%, transparent 96%);
  background:
    radial-gradient(ellipse 34% 30% at 50% 63%, rgba(126, 224, 195, 0.34), rgba(126, 224, 195, 0.25) 20%, rgba(126, 224, 195, 0.16) 38%, rgba(126, 224, 195, 0.08) 56%, rgba(126, 224, 195, 0.03) 74%, rgba(126, 224, 195, 0) 100%),
    radial-gradient(ellipse 30% 26% at 24% 50%, rgba(91, 200, 232, 0.22), rgba(91, 200, 232, 0.15) 22%, rgba(91, 200, 232, 0.08) 45%, rgba(91, 200, 232, 0.03) 70%, rgba(91, 200, 232, 0) 100%),
    radial-gradient(ellipse 30% 26% at 78% 46%, rgba(139, 124, 246, 0.22), rgba(139, 124, 246, 0.15) 22%, rgba(139, 124, 246, 0.08) 45%, rgba(139, 124, 246, 0.03) 70%, rgba(139, 124, 246, 0) 100%),
    radial-gradient(ellipse 50% 22% at 50% 0%, rgba(126, 224, 195, 0.10), rgba(126, 224, 195, 0.04) 50%, rgba(126, 224, 195, 0) 100%);
}
.light-scene { inset: 0; background:
    radial-gradient(ellipse 40% 60% at 82% 52%, rgba(126, 224, 195, 0.20), rgba(126, 224, 195, 0.12) 30%, rgba(126, 224, 195, 0.05) 60%, rgba(126, 224, 195, 0) 100%),
    radial-gradient(ellipse 45% 55% at 25% 40%, rgba(91, 200, 232, 0.10), rgba(91, 200, 232, 0.05) 45%, rgba(91, 200, 232, 0) 100%); }
.light-a { inset: 0; background:
    radial-gradient(ellipse 60% 55% at 50% 30%, rgba(126, 224, 195, 0.30), rgba(126, 224, 195, 0.18) 30%, rgba(126, 224, 195, 0.07) 60%, rgba(126, 224, 195, 0) 100%),
    radial-gradient(ellipse 50% 50% at 85% 90%, rgba(91, 200, 232, 0.20), rgba(91, 200, 232, 0.08) 50%, rgba(91, 200, 232, 0) 100%); }
.light-b { inset: 0; background:
    radial-gradient(ellipse 60% 60% at 30% 25%, rgba(139, 124, 246, 0.28), rgba(139, 124, 246, 0.16) 30%, rgba(139, 124, 246, 0.06) 60%, rgba(139, 124, 246, 0) 100%),
    radial-gradient(ellipse 55% 55% at 80% 80%, rgba(126, 224, 195, 0.22), rgba(126, 224, 195, 0.09) 50%, rgba(126, 224, 195, 0) 100%); }
.light-c { inset: 0; background:
    radial-gradient(ellipse 60% 60% at 70% 30%, rgba(91, 200, 232, 0.28), rgba(91, 200, 232, 0.16) 30%, rgba(91, 200, 232, 0.06) 60%, rgba(91, 200, 232, 0) 100%),
    radial-gradient(ellipse 55% 55% at 20% 85%, rgba(126, 224, 195, 0.24), rgba(126, 224, 195, 0.10) 50%, rgba(126, 224, 195, 0) 100%); }
.light-d { inset: 0; background:
    radial-gradient(ellipse 60% 60% at 75% 50%, rgba(126, 224, 195, 0.28), rgba(126, 224, 195, 0.15) 30%, rgba(126, 224, 195, 0.05) 60%, rgba(126, 224, 195, 0) 100%),
    radial-gradient(ellipse 50% 55% at 15% 20%, rgba(139, 124, 246, 0.20), rgba(139, 124, 246, 0.08) 50%, rgba(139, 124, 246, 0) 100%); }
.light-final { inset: 0; background:
    radial-gradient(ellipse 38% 55% at 50% 100%, rgba(126, 224, 195, 0.32), rgba(126, 224, 195, 0.20) 25%, rgba(126, 224, 195, 0.09) 52%, rgba(126, 224, 195, 0.03) 75%, rgba(126, 224, 195, 0) 100%),
    radial-gradient(ellipse 30% 45% at 22% 90%, rgba(91, 200, 232, 0.16), rgba(91, 200, 232, 0.06) 50%, rgba(91, 200, 232, 0) 100%),
    radial-gradient(ellipse 30% 45% at 78% 90%, rgba(139, 124, 246, 0.16), rgba(139, 124, 246, 0.06) 50%, rgba(139, 124, 246, 0) 100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 650; letter-spacing: 0.005em; white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--mint); color: var(--mint-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px -12px rgba(126, 224, 195, 0.7); }
.btn-primary:hover { background: var(--mint-2); color: var(--mint-ink); transform: translateY(-1px); }
.btn-ghost { background: rgba(226, 236, 255, 0.04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(226, 236, 255, 0.08); color: var(--text); }
.btn-quiet { background: rgba(226, 236, 255, 0.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { background: rgba(226, 236, 255, 0.1); color: var(--text); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.nav.scrolled { background: rgba(11, 14, 20, 0.78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 30px; margin: 0 auto; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.icon-link { color: var(--text-2); display: inline-flex; padding: 7px; border-radius: 10px; }
.icon-link:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 24px; overflow: hidden; }
.hero-copy { text-align: center; z-index: 1; }
.badge-link { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(226, 236, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.badge-link:hover { color: var(--text); background: rgba(226, 236, 255, 0.07); }
.badge-link .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(126, 224, 195, 0.18); }
.badge-link .arrow { color: var(--muted); }
h1 { margin-top: 28px; font-size: clamp(48px, 7.6vw, 96px); }
.lede { margin: 24px auto 0; max-width: 34em; font-size: clamp(17px, 1.5vw, 19.5px); color: var(--text-2); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.os-note { margin-top: 10px; font-size: 14px; color: var(--amber); }

/* ---------- The live scene: a Windows 11 desktop ---------- */
.scene { position: relative; z-index: 1; margin: 64px auto 0; max-width: 1120px; padding: 10px; border-radius: 26px; background: linear-gradient(180deg, rgba(226, 236, 255, 0.07), rgba(226, 236, 255, 0.02)); box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 120px -50px rgba(0, 0, 0, 0.9), 0 0 140px -40px rgba(126, 224, 195, 0.28); }
.scene-in { position: relative; aspect-ratio: 16 / 9.6; border-radius: 17px; overflow: hidden; background: #0a0f17; container-type: inline-size; font-size: clamp(7px, 1.12cqw, 13px); }
/* Wallpaper: a soft mint "bloom" with grain, like a Windows 11 theme */
.wallpaper { position: absolute; inset: 0; background:
    radial-gradient(ellipse 55% 45% at 72% 78%, rgba(126, 224, 195, 0.42), rgba(126, 224, 195, 0.24) 30%, rgba(126, 224, 195, 0.09) 60%, rgba(126, 224, 195, 0) 100%),
    radial-gradient(ellipse 45% 40% at 88% 40%, rgba(91, 200, 232, 0.34), rgba(91, 200, 232, 0.16) 40%, rgba(91, 200, 232, 0) 100%),
    radial-gradient(ellipse 50% 45% at 20% 20%, rgba(139, 124, 246, 0.26), rgba(139, 124, 246, 0.10) 45%, rgba(139, 124, 246, 0) 100%),
    linear-gradient(160deg, #0d1422, #0a0f17 55%, #0b1517); }
.wallpaper::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); background-size: 200px; opacity: 0.25; mix-blend-mode: overlay; }

/* Windows */
.app { position: absolute; border-radius: 9px; overflow: hidden; background: #161a22; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 60px -18px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), filter 0.4s; }
.tbar { flex: none; height: 2.9em; display: flex; align-items: center; gap: 0.6em; padding-left: 0.7em; background: #1d222c; color: #c9d1dc; font-size: 0.95em; white-space: nowrap; }
.tbar img { width: 1.2em; height: 1.2em; }
.tab { display: inline-flex; align-items: center; gap: 0.55em; height: 2.2em; padding: 0 1.1em 0 0.8em; margin-top: 0.7em; border-radius: 0.6em 0.6em 0 0; background: #0f1218; color: #eef2f6; }
.tab-plus { color: #8a94a3; padding: 0 0.4em; }
.title { display: inline-flex; align-items: center; gap: 0.6em; padding-left: 0.2em; }
.ctl { margin-left: auto; display: flex; height: 100%; }
.ctl i { width: 3.4em; height: 100%; position: relative; }
.ctl i::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.c-min::before { width: 0.85em; height: 1px; background: #c9d1dc; }
.c-max::before { width: 0.75em; height: 0.75em; border: 1px solid #c9d1dc; border-radius: 1px; }
.ctl .c-x::before, .ctl .c-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1em; height: 1px; background: #c9d1dc; transform: translate(-50%, -50%) rotate(45deg); }
.ctl .c-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Claude Code in Windows Terminal */
.app-term { left: 3%; top: 5%; width: 58%; height: 76%; z-index: 1; }
.term { flex: 1; background: #0f1218; padding: 1.1em 1.3em; display: grid; gap: 0.55em; align-content: start; color: #c9d1dc; font-size: 0.98em; line-height: 1.45; overflow: hidden; }
.term b { color: #eef2f6; font-weight: 600; }
.term .dim { color: #5f6b7b; }
.term .prompt { margin-top: 0.4em; padding: 0.6em 0.8em; border-radius: 0.5em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: #eef2f6; }
.term .gt { color: #8a94a3; }
.caret { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.2em; margin-left: 1px; background: #eef2f6; opacity: 0; }
.caret.on { opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term .dot { color: #8a94a3; }
.term .dot.ok { color: #8fe0a6; }
.term .res { padding-left: 1.4em; color: #8a94a3; }
.term .spin { color: #f2a07b; }
.term .stop { color: var(--rose); padding-left: 0; }
.term .stop::before { content: ''; }
.ln { opacity: 0; transform: translateY(0.3em); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.ln.show { opacity: 1; transform: none; }
.ln.gone { display: none; }

/* Antigravity */
.app-ag { left: 2.5%; top: 3.5%; width: 69%; height: 82%; z-index: 2; opacity: 0; transform: scale(0.96); transform-origin: 40% 40%; pointer-events: none; }
.app-ag .tbar { padding-left: 0.9em; }
.ag-body { flex: 1; display: grid; grid-template-columns: 17% 1fr 37%; min-height: 0; }
.files { background: #12161d; border-right: 1px solid rgba(255, 255, 255, 0.06); padding: 0.9em 0.8em; display: grid; gap: 0.5em; align-content: start; color: #aab4c1; font-size: 0.92em; white-space: nowrap; overflow: hidden; }
.files-h { color: #6d7887; font-size: 0.8em; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 0.2em; }
.files .f-dir { color: #8a94a3; }
.files .f-in { padding-left: 0.9em; }
.files .f-on { background: rgba(126, 224, 195, 0.12); color: #eef2f6; border-radius: 0.35em; margin: 0 -0.4em; padding: 0.1em 0.4em; }
.editor { background: #0f1218; display: flex; flex-direction: column; min-width: 0; font-size: 0.92em; }
.ed-tab { align-self: flex-start; padding: 0.55em 1.1em; background: #161a22; color: #eef2f6; border-bottom: 1px solid var(--mint); }
.src { padding: 0.9em 0; display: grid; gap: 0.3em; color: #c9d1dc; white-space: pre; overflow: hidden; }
.src p { padding: 0.08em 1em; }
.src i { display: inline-block; width: 2.2em; color: #4f5a69; font-style: normal; }
.src .tg { color: #7cc4f2; }
.src .at { color: #b3a8ff; }
.src .st { color: #a6e3b8; }
.src .add { opacity: 0; transition: opacity 0.4s, background 1.2s; }
.src .add.show { opacity: 1; background: rgba(143, 224, 166, 0.13); }
.src .add.settled { background: transparent; }
.agent { background: #141922; border-left: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; min-width: 0; }
.agent-h { padding: 0.75em 1em; color: #aab4c1; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.thread { flex: 1; padding: 0.9em; display: grid; gap: 0.7em; align-content: start; overflow: hidden; }
.msg { opacity: 0; transform: translateY(0.3em); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); line-height: 1.45; }
.msg.show { opacity: 1; transform: none; }
.msg.gone { display: none; }
.msg.you { background: #1e2533; border-radius: 0.8em 0.8em 0.2em 0.8em; padding: 0.7em 0.8em; color: #c9d1dc; font-size: 0.86em; margin-left: 1.2em; }
.msg.think { color: #7b8594; font-style: italic; }
.msg.ai { color: #eef2f6; }
.msg.tool { color: #aab4c1; font-size: 0.86em; background: rgba(255, 255, 255, 0.03); border-radius: 0.5em; padding: 0.45em 0.6em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.msg .dot { color: #8a94a3; }
.msg .dot.ok { color: #8fe0a6; }
.msg .plus { color: #8fe0a6; }
.composer { margin: 0.8em; padding: 0.7em 0.8em; border-radius: 0.7em; background: #0f1218; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); min-height: 3.2em; color: #6d7887; font-size: 0.9em; transition: box-shadow 0.2s; position: relative; }
.composer.focus { box-shadow: inset 0 0 0 1px rgba(126, 224, 195, 0.7), 0 0 0 3px rgba(126, 224, 195, 0.12); }
.composer .draft { display: none; color: #c9d1dc; font-size: 0.95em; }
.composer.filled .ph { display: none; }
.composer.filled .draft { display: block; }

/* Focus order: Antigravity opens in front, Claude Code fades behind */
.scene.ag-open .app-ag { opacity: 1; transform: none; }
.scene.ag-open .app-term { filter: brightness(0.6); }
.scene.ag-open .tk-ag { opacity: 1; transform: none; }
.scene.ag-open .tk-ag::after { opacity: 1; }
.scene.ag-open .tk-term::after { width: 0.35em; background: #8a94a3; }

/* Relay */
.panel { position: absolute; right: 3.1%; top: 3.5%; height: 85%; aspect-ratio: 440 / 860; border-radius: 0.9em; overflow: hidden; z-index: 4; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), -2em 2.6em 5em -1.6em rgba(0, 0, 0, 0.85); opacity: 0; transform: translateX(1.8em); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); background: #1b1a18; }
.panel.open { opacity: 1; transform: none; }
.panel .shot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.3s ease; }
.panel .shot.on { opacity: 1; }
.edge { position: absolute; right: 0; top: 36%; width: 1.8em; aspect-ratio: 20 / 88; background: #23272f; border: 1px solid rgba(126, 224, 195, 0.45); border-right: 0; border-radius: 0.8em 0 0 0.8em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6em; z-index: 5; transition: background 0.25s, border-color 0.25s; }
.edge img { width: 1.1em; height: auto; }
.edge i { width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--mint); position: relative; transition: background 0.3s; }
.edge.hover { background: #2c323c; }
.edge.open { background: #1f2e2c; border-color: rgba(126, 224, 195, 0.85); }
.edge.stopped i { background: var(--rose); }
.edge.stopped i::after { content: ''; position: absolute; inset: -0.35em; border-radius: 50%; border: 1.5px solid var(--rose); animation: ping 1.2s ease-out 2; opacity: 0; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

/* Taskbar */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4.2em; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(22, 27, 36, 0.86); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.tk-apps { display: flex; gap: 0.35em; }
.tk { position: relative; width: 3.2em; height: 3.2em; border-radius: 0.5em; display: grid; place-items: center; transition: opacity 0.3s, transform 0.3s var(--ease); }
.tk svg { width: 1.5em; height: 1.5em; }
.tk img { width: 1.55em; height: 1.55em; }
.tk::after { content: ''; position: absolute; bottom: 0.15em; left: 50%; transform: translateX(-50%); width: 0.35em; height: 0.25em; border-radius: 1em; background: #8a94a3; opacity: 0; transition: width 0.3s, background 0.3s, opacity 0.3s; }
.tk.on::after { opacity: 1; width: 1.1em; background: var(--mint); }
.tk-ag { opacity: 0; transform: translateY(0.6em); }
.tk-ag::after { width: 1.1em; background: var(--mint); }
.win-logo rect { fill: #5ab3f0; }
.search { fill: none; stroke: #c9d1dc; stroke-width: 1.6; stroke-linecap: round; }
.term-ico { fill: none; stroke: #c9d1dc; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.term-ico rect { fill: #0f1218; }
.tray { position: absolute; right: 1.4em; display: flex; align-items: center; gap: 1em; color: #c9d1dc; font-size: 0.9em; }
.tray img { width: 1.2em; height: 1.2em; }

/* Keyboard hint, click ripple, cursor */
.keys { position: absolute; left: 33%; bottom: 10em; z-index: 6; display: flex; align-items: center; gap: 0.5em; transform: translate(-50%, 0.6em); opacity: 0; transition: opacity 0.25s, transform 0.25s var(--ease); color: #aab4c1; font-size: 1.15em; pointer-events: none; }
.keys.show { opacity: 1; transform: translate(-50%, 0); }
.keys kbd { font-family: var(--sans); font-weight: 650; color: #eef2f6; padding: 0.35em 0.75em; border-radius: 0.45em; background: rgba(30, 36, 48, 0.95); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0.25em 0 rgba(0, 0, 0, 0.45), 0 10px 30px -10px rgba(0, 0, 0, 0.7); }
.ripple { position: absolute; left: 0; top: 0; z-index: 6; width: 2.4em; height: 2.4em; margin: -1.2em 0 0 -1.2em; border-radius: 50%; border: 2px solid rgba(126, 224, 195, 0.85); opacity: 0; pointer-events: none; }
.ripple.go { animation: ripple 0.5s ease-out; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.3); } }
.cursor { position: absolute; left: 0; top: 0; width: 1.9em; height: 1.9em; z-index: 7; fill: #fff; stroke: #0b0e14; stroke-width: 1.3; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55)); opacity: 0; transform: translate(var(--cx, 600px), var(--cy, 400px)); transition: transform 0.95s cubic-bezier(0.45, 0.05, 0.2, 1), opacity 0.3s; }
.cursor.on { opacity: 1; }
.cursor.press { animation: press 0.22s ease; }
@keyframes press { 50% { scale: 0.85; } }

.steps-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 8px 4px; }
.beats { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 28px; flex-wrap: wrap; }
.beats li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 500; transition: color 0.3s; }
.beats li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.beats li.on { color: var(--text); }
.beats li.on span { background: var(--mint); color: var(--mint-ink); box-shadow: none; }
.play { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.play:hover { color: var(--text); background: rgba(226, 236, 255, 0.05); }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; }
.strip-in { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 30px; padding-bottom: 30px; text-align: center; }
.strip p { color: var(--muted); font-size: 14px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.strip li { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; color: rgba(242, 245, 247, 0.55); }
.strip li img { width: 20px; height: 20px; filter: grayscale(1) brightness(1.5); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.strip li:hover img { filter: none; opacity: 1; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 116px 0; }
.head { max-width: 760px; margin-bottom: 64px; }
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.label::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.head.center .label::before { display: none; }
h2 { font-size: clamp(38px, 5.2vw, 64px); }
.sub { margin-top: 18px; color: var(--text-2); font-size: 18.5px; line-height: 1.55; }
.head.center .sub { max-width: 34em; margin-left: auto; margin-right: auto; }

/* Handoff */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.split-copy { position: sticky; top: 110px; }
.ticks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); }
.ticks li b { color: var(--text); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft); box-shadow: inset 0 0 0 1px rgba(126, 224, 195, 0.3); }
.ticks li::after { content: ''; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.code { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -50px rgba(0, 0, 0, 0.9); min-width: 0; }
.code::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(rgba(14, 18, 26, 0), var(--ink-2)); pointer-events: none; }
.code figcaption { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.code .file { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.copy { background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); border-radius: 999px; padding: 6px 15px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.copy:hover { background: rgba(226, 236, 255, 0.06); }
.code pre { margin: 0; padding: 24px; max-height: 580px; overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.code .h { color: var(--mint); font-weight: 700; }
.code .q { color: var(--text); }
.code mark { background: var(--rose-soft); color: var(--rose); padding: 0 4px; border-radius: 5px; }
.code em { color: var(--amber); font-style: normal; }

/* Feature rows */
.row { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: 80px; align-items: center; }
.row + .row { margin-top: 130px; }
.row.flip { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
.row.flip .stage { order: 2; }
.stage { position: relative; aspect-ratio: 5 / 4; border-radius: 26px; overflow: hidden; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(rgba(14, 18, 26, 0), var(--ink-2)); z-index: 2; pointer-events: none; }
.ui { position: absolute; width: 40%; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.35); z-index: 1; }
.ui.solo { left: 50%; top: 10%; width: 44%; transform: translateX(-50%); }
.ui.one { left: 11%; top: 10%; }
.ui.two { left: 49%; top: 21%; }
.row-copy .num { display: block; font-family: var(--mono); font-size: 13px; color: var(--mint); letter-spacing: 0.1em; margin-bottom: 18px; }
.row-copy h3 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.01em; }
.row-copy p { margin-top: 18px; color: var(--text-2); font-size: 17.5px; line-height: 1.65; }
.desk { position: absolute; inset: 10% 0 10% 10%; background: #0a0d13; border-radius: 18px 0 0 18px; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px -20px rgba(0, 0, 0, 0.8); z-index: 1; overflow: hidden; }
.desk-win { position: absolute; inset: 14px; background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 20px; display: grid; gap: 12px; align-content: start; }
.desk-win span { height: 9px; border-radius: 6px; background: var(--surface-3); width: 50%; }
.desk-win span.w2 { width: 38%; }
.desk-win span.red { width: 30%; background: var(--rose-soft); }
.desk-panel { position: absolute; top: 6%; right: 7%; height: 88%; width: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2), -20px 26px 50px -16px rgba(0, 0, 0, 0.9); }
.desk .edge { width: 4%; top: 38%; }
.desk .edge i { background: var(--rose); }

/* Works with */
.tile-groups { display: grid; grid-template-columns: auto auto 1fr; gap: 28px; align-items: center; max-width: 1080px; margin: 0 auto; }
.tile-group { border-radius: 24px; padding: 24px 26px 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tg-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.tg-arrow svg { width: 34px; height: 34px; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 76px); gap: 20px 14px; }
.tile-group:first-child .tiles { grid-template-columns: repeat(3, 76px); }
.tiles li { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; font-size: 12.5px; font-weight: 550; color: var(--text-2); line-height: 1.3; }
.t { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px; background: linear-gradient(180deg, #1c2230, #151a25); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px -14px rgba(0, 0, 0, 0.8); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.t img { width: 30px; height: 30px; }
.tile-group.wide .tiles { grid-template-columns: repeat(4, 76px); }
.t-icon svg { fill: none; stroke: var(--mint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-more { font-weight: 700; font-size: 15px; color: var(--mint); letter-spacing: -0.01em; }

/* "Your download has started" note after clicking a download button */
.dl-toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; display: flex; gap: 14px; align-items: flex-start; width: min(460px, calc(100vw - 32px)); padding: 16px 18px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -18px rgba(0, 0, 0, 0.8); transform: translate(-50%, 16px); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); pointer-events: none; }
.dl-toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dl-toast .dl-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--mint-soft); }
.dl-toast .dl-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: dl-bob 1.4s var(--ease) infinite; }
@keyframes dl-bob { 50% { transform: translateY(2px); } }
.dl-toast b { display: block; font-size: 14.5px; font-weight: 650; }
.dl-toast p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.dl-toast a { color: var(--mint); }
.dl-toast .dl-x { flex: none; margin: -4px -6px 0 auto; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.dl-toast .dl-x:hover { color: var(--text); background: rgba(226, 236, 255, 0.06); }
.tiles li:hover .t { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-3), 0 14px 30px -14px rgba(126, 224, 195, 0.35); }
.tm-note { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--faint); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 80px; }
.card { border-radius: 22px; padding: 10px 10px 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.03); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -30px rgba(0, 0, 0, 0.9); }
.card figure { margin: 0 0 18px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { font-size: 17px; font-weight: 650; padding: 0 12px; letter-spacing: -0.005em; }
.card p { margin-top: 6px; color: var(--text-2); font-size: 15px; padding: 0 12px; }

/* Download */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto; }
.plan { position: relative; border-radius: 24px; padding: 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; overflow: hidden; }
.plan.pick { background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(126, 224, 195, 0.12), rgba(126, 224, 195, 0.04) 50%, rgba(126, 224, 195, 0) 100%), var(--surface); box-shadow: inset 0 0 0 1px rgba(126, 224, 195, 0.35), 0 30px 80px -40px rgba(126, 224, 195, 0.35); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 19px; font-weight: 650; }
.tag { font-size: 12px; font-weight: 700; color: var(--mint-ink); background: var(--mint); padding: 4px 10px; border-radius: 999px; }
.tag-quiet { background: var(--surface-3); color: var(--text-2); }
.plan-desc { margin-top: 12px; color: var(--text-2); font-size: 15.5px; flex: 1; }
.price { margin: 28px 0 22px; font-family: var(--serif); font-size: 46px; line-height: 1; }
.price small { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-left: 10px; }
.install { list-style: none; counter-reset: s; padding: 0; margin: 48px auto 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.install li { counter-increment: s; position: relative; padding: 18px 20px 18px 58px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 15px; }
.install li::before { content: counter(s); position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--mint); box-shadow: inset 0 0 0 1px rgba(126, 224, 195, 0.4); }
.install li b { color: var(--text); display: block; }

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact { border-radius: 20px; padding: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fact h3 { font-size: 17px; font-weight: 650; }
.fact h3::before { content: ''; display: block; width: 26px; height: 2px; background: var(--mint); border-radius: 2px; margin-bottom: 16px; }
.fact p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 72px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; padding: 24px 44px 24px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--text-2); transition: transform 0.25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--mint-2); }
.faq details p { color: var(--text-2); padding: 0 40px 26px 0; line-height: 1.65; }

/* Final */
.final { position: relative; padding: 150px 0 170px; overflow: hidden; border-top: 1px solid var(--line); }
.final-in { text-align: center; z-index: 1; }
.final-mark { margin: 0 auto 26px; }
.final h2 { font-size: clamp(42px, 6.4vw, 84px); }

/* Footer */
.foot { position: relative; background: #080a0f; border-top: 1px solid var(--line); padding: 64px 0 34px; }
.foot-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 22em; }
.foot nav { display: grid; gap: 11px; align-content: start; }
.foot h4 { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.foot nav a { color: var(--text-2); font-size: 15px; }
.foot nav a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* Reveal once on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .split, .privacy, .faq-wrap { grid-template-columns: 1fr; gap: 44px; }
  .split-copy, .faq-head { position: static; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 36px; }
  .row.flip .stage { order: 0; }
  .row + .row { margin-top: 96px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tile-groups { grid-template-columns: 1fr; justify-items: center; }
  .tg-arrow { transform: rotate(90deg); }
  .plans, .install { grid-template-columns: 1fr; max-width: 560px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { padding-top: 40px; }
  .actions .btn { width: 100%; }
  .scene { margin-top: 44px; padding: 6px; border-radius: 20px; }
  .scene-in { aspect-ratio: 3 / 4; border-radius: 15px; font-size: clamp(7px, 2.6cqw, 12px); }
  .app-term { left: 3%; top: 3%; width: 94%; height: 54%; }
  .app-ag { left: 3%; top: 3%; width: 94%; height: 82%; }
  .ag-body { grid-template-columns: 1fr; }
  .files, .editor { display: none; }
  .panel { height: 66%; top: auto; bottom: 7.5em; right: 6%; }
  .edge { top: 46%; }
  .tray .clock { display: none; }
  .steps-bar { flex-direction: column; align-items: flex-start; }
  .beats { flex-direction: column; gap: 10px; }
  .section { padding: 92px 0; }
  .head { margin-bottom: 44px; }
  .stage { aspect-ratio: 4 / 4.6; border-radius: 20px; }
  .ui { width: 54%; }
  .ui.one { left: 5%; }
  .ui.two { left: 41%; top: 17%; }
  .ui.solo { width: 62%; }
  .cards, .facts { grid-template-columns: 1fr; }
  .tiles, .tile-group:first-child .tiles, .tile-group.wide .tiles { grid-template-columns: repeat(3, 76px); gap: 18px 12px; }
  .tile-group { padding: 20px 16px; width: 100%; display: grid; justify-items: center; }
  .final { padding: 110px 0 120px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-primary:hover, .card:hover { transform: none; }
  .app, .panel, .ln, .msg, .cursor, .panel .shot, .src .add { transition: none !important; }
  .caret { display: none; }
  .edge.stopped i::after { animation: none; }
}
