@font-face { font-family: "Outfit"; src: url("assets/fonts/Outfit-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/IBMPlexSans-Variable.ttf") format("truetype"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0d0b15; --sheet: #14111d; --panel: #1b1726; --panel-2: #231e31; --panel-3: #2a2338;
  --line: #2a2438; --line-2: #3a3250;
  --text: #efebf7; --text-2: #cbc5da; --muted: #a39cb8; --dim: #8f88a6;
  --accent: #f7a945; --accent-2: #ffc06b; --accent-lo: #b8761f; --accent-ink: #2b1804;
  --mauve: #c47fa3; --mauve-lo: #6f425a; --indigo: #4a3d8f; --indigo-hi: #7a6cc8; --indigo-lo: #2b2357; --lilac: #a786c9;
  --green: #5fd08f; --red: #e06a7e;
  --display: "Outfit", "IBM Plex Sans", system-ui, sans-serif;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 500px at 85% -10%, rgba(74,61,143,.35), transparent 60%), radial-gradient(700px 420px at -10% 20%, rgba(196,127,163,.16), transparent 60%), radial-gradient(800px 500px at 50% 110%, rgba(247,169,69,.08), transparent 60%); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
a { color: inherit; }
img { display: block; }
.mono { font-family: var(--mono); font-size: .88em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(167,134,201,.25); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -3px 0 var(--accent-lo); }
.btn.primary:hover { box-shadow: inset 0 -3px 0 var(--accent-lo), 0 8px 30px rgba(247,169,69,.35); }
.btn.ghost { background: transparent; }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100vw - var(--max)) / 2)); background: rgba(13,11,21,.72); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(58,50,80,.5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wm { font: 700 19px/1 var(--display); letter-spacing: -.2px; display: flex; flex-direction: column; }
.wm b { color: var(--accent); }
.wm small { font: 600 9.5px/1 var(--font); letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-size: 14.5px; }
.links a:hover { color: var(--text); }

/* Sections */
main { padding: 0 16px; }
.section, .hero { max-width: var(--max); margin: 0 auto; }
.section { padding: 96px 0 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 12px; }
.section-head p { color: var(--text-2); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 12.5px/1 var(--font); letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95,208,143,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(95,208,143,0); } 100% { box-shadow: 0 0 0 0 rgba(95,208,143,0); } }
.note { color: var(--muted); text-align: center; margin: 22px 0 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 24px; min-height: calc(100vh - 70px); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 16px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--mauve) 55%, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.facts li::before { content: "◆"; color: var(--mauve); font-size: 9px; margin-right: 8px; vertical-align: 2px; }
.facts b { color: var(--text); font-weight: 600; }

.hero-visual { position: relative; min-height: 470px; }
.stack3d { position: absolute; right: -10px; top: -30px; width: 220px; height: 220px; opacity: .55; filter: blur(.3px); }
.slab { position: absolute; left: 20px; width: 180px; height: 90px; transform: rotateX(60deg) rotateZ(45deg); border-radius: 18px; animation: float 6s var(--ease) infinite; }
.slab.s1 { top: 20px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 14px 0 var(--accent-lo); }
.slab.s2 { top: 70px; background: linear-gradient(135deg, #d595b6, var(--mauve-lo)); box-shadow: 0 14px 0 #4c2c3e; animation-delay: -.4s; }
.slab.s3 { top: 120px; background: linear-gradient(135deg, var(--indigo-hi), var(--indigo)); box-shadow: 0 14px 0 var(--indigo-lo); animation-delay: -.8s; }
@keyframes float { 50% { translate: 0 -8px; } }

.mock { position: relative; background: linear-gradient(180deg, var(--panel), var(--sheet)); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55); max-width: 440px; margin-left: auto; }
.mock-h { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--display); color: var(--muted); margin: 4px 0 10px; }
.g { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: var(--accent-ink); }
.g.amber { background: var(--accent); } .g.mauve { background: var(--mauve); color: #2a0f1e; }
.now { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; background: var(--panel-2); border-radius: 12px; padding: 10px; box-shadow: 0 4px 0 var(--accent-lo); margin-bottom: 16px; }
.now b { display: block; font-family: var(--display); font-size: 17px; }
.sub { display: block; font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.pill { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; transition: background .3s; }
.pill.on { background: var(--green); color: #082414; }
.art { border-radius: 9px; aspect-ratio: 16/10; }
.a1 { background: radial-gradient(circle at 30% 30%, #ffcf8a, transparent 55%), linear-gradient(135deg, #c35f2b, #3b1d4d); }
.a2 { background: radial-gradient(circle at 70% 40%, #9be0c0, transparent 50%), linear-gradient(135deg, #2c6a5b, #1b1530); }
.a3 { background: radial-gradient(circle at 40% 60%, #f6d5ff, transparent 50%), linear-gradient(135deg, #7a4fa8, #21173a); }
.a4 { background: radial-gradient(circle at 60% 30%, #ffe2a8, transparent 50%), linear-gradient(135deg, #3c5a8c, #181428); }
.next { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.next li { display: grid; grid-template-columns: 22px 56px 1fr; gap: 10px; align-items: center; background: var(--panel-2); border-radius: 10px; padding: 7px 10px; box-shadow: 0 3px 0 var(--mauve-lo); font-size: 14px; transition: transform .5s var(--ease), opacity .5s; }
.next .n { font: 600 12px/1 var(--mono); color: var(--mauve); }
.next .art { aspect-ratio: 16/10; }
.next li.out { transform: translateX(30px); opacity: 0; }
.incoming { background: var(--panel-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px; }
.incoming .row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.ver { color: var(--muted); } .to { color: var(--accent); }
.bar { height: 6px; border-radius: 6px; background: var(--panel-3); margin: 10px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; transition: width .4s linear; }
.state { font-size: 12px; color: var(--muted); }
.toast { position: absolute; left: 0; bottom: 6px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0,0,0,.5); display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); max-width: 340px; }
.toast.show { opacity: 1; transform: none; }
.ok { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--green); color: #082414; display: grid; place-items: center; font-weight: 700; font-size: 12px; }

/* Feature explorer */
.explorer { display: grid; grid-template-columns: 340px 1fr; gap: 24px; }
.tabs { display: grid; gap: 8px; align-content: start; }
.tab { display: flex; gap: 14px; align-items: center; text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--text); font: inherit; cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.tab:hover { background: var(--panel); transform: translateX(3px); }
.tab b { display: block; font: 600 15.5px/1.25 var(--display); }
.tab small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ti { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--panel-2); color: var(--muted); transition: background .25s, color .25s; }
.tab[aria-selected="true"] { background: var(--panel); border-color: var(--line-2); }
.tab[aria-selected="true"][data-tone="amber"] .ti { background: var(--accent); color: var(--accent-ink); }
.tab[aria-selected="true"][data-tone="lilac"] .ti { background: var(--lilac); color: #1d1230; }
.tab[aria-selected="true"][data-tone="mauve"] .ti { background: var(--mauve); color: #2a0f1e; }
.tab[aria-selected="true"][data-tone="indigo"] .ti { background: var(--indigo-hi); color: #110c2a; }
.panels { background: linear-gradient(180deg, var(--panel), var(--sheet)); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; min-height: 440px; position: relative; overflow: hidden; }
.panel.active { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.clip { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); display: block; background: var(--bg); }
.points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--text-2); }
.points li { padding-left: 24px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 28px; height: 2px; background: var(--line-2); }
.step { position: relative; text-align: center; display: grid; gap: 4px; justify-items: center; opacity: .35; transition: opacity .4s; }
.step .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--panel-3); border: 1px solid var(--line-2); transition: background .4s, transform .4s var(--ease), color .4s; }
.step b { font-family: var(--display); font-size: 15px; } .step small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.step.lit { opacity: 1; } .step.lit .ico { background: var(--accent); color: var(--accent-ink); transform: translateY(-4px); border-color: var(--accent); }

.choicemap { width: 100%; height: auto; max-height: 240px; }
.choicemap .edges path { stroke: var(--line-2); stroke-dasharray: 220; stroke-dashoffset: 220; }
.choicemap .edges path.you { stroke: var(--lilac); }
.choicemap .nodes circle { fill: var(--panel-3); stroke: var(--line-2); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.choicemap .nodes circle.you { fill: var(--lilac); stroke: #d8c4f0; }
.panel.active .choicemap .edges path { animation: draw 1.4s var(--ease) forwards; }
.panel.active .choicemap .nodes circle { animation: pop .5s var(--ease) forwards; }
.panel.active .choicemap .edges path:nth-child(n+3) { animation-delay: .35s; } .panel.active .choicemap .edges path:nth-child(n+7) { animation-delay: .7s; }
.panel.active .choicemap .nodes circle:nth-child(n+2) { animation-delay: .3s; } .panel.active .choicemap .nodes circle:nth-child(n+4) { animation-delay: .65s; } .panel.active .choicemap .nodes circle:nth-child(n+8) { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

.modcard { display: grid; gap: 10px; }
.modrow { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--panel-2); border-radius: 12px; padding: 14px 16px; flex-wrap: wrap; }
.chipx { border: 1px solid var(--line-2); border-radius: 20px; padding: 5px 12px; font-size: 13.5px; }
.chipx.mauve { border-color: var(--mauve); color: var(--mauve); } .chipx.lilac { border-color: var(--lilac); color: var(--lilac); }
.state-swap { display: grid; color: var(--muted); }
.state-swap span { grid-area: 1/1; transition: opacity .5s; }
.state-swap span:last-child { opacity: 0; color: var(--green); }
.panel.active .state-swap span:first-child { animation: swapOut 4s 1s infinite; } .panel.active .state-swap span:last-child { animation: swapIn 4s 1s infinite; }
@keyframes swapOut { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swapIn { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }

.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lane { background: var(--panel-2); border-radius: 12px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.lane b { font: 600 13px/1.2 var(--display); color: var(--muted); margin-bottom: 4px; }
.lane span { background: var(--panel-3); border-radius: 8px; padding: 9px 10px; font-size: 13.5px; opacity: 0; transform: translateY(8px); }
.lane.amber span { box-shadow: 0 3px 0 var(--accent-lo); } .lane.mauve span { box-shadow: 0 3px 0 var(--mauve-lo); } .lane.indigo span { box-shadow: 0 3px 0 var(--indigo-lo); }
.panel.active .lane span { animation: rise .5s var(--ease) forwards; }
.panel.active .lane span:nth-child(3) { animation-delay: .12s; } .panel.active .lane span:nth-child(4) { animation-delay: .24s; }
.panel.active .lane.mauve span { animation-delay: .3s; } .panel.active .lane.indigo span { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding: 0 6px; border-bottom: 1px solid var(--line-2); }
.bars span { flex: 1; height: 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-radius: 8px 8px 2px 2px; position: relative; transition: height 1s var(--ease); }
.bars span:nth-child(odd) { background: linear-gradient(180deg, #d595b6, var(--mauve)); }
.panel.active .bars span { height: var(--h); }
.bars i { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font: 400 12px/1 var(--mono); color: var(--muted); font-style: normal; }

.shield { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shield div { background: var(--panel-2); border-radius: 12px; padding: 16px; border-left: 3px solid var(--lilac); opacity: 0; transform: translateY(8px); }
.shield b { display: block; font-family: var(--display); } .shield small { color: var(--muted); }
.panel.active .shield div { animation: rise .5s var(--ease) forwards; }
.panel.active .shield div:nth-child(2) { animation-delay: .1s; } .panel.active .shield div:nth-child(3) { animation-delay: .2s; } .panel.active .shield div:nth-child(4) { animation-delay: .3s; }

/* ═══════════════════════════════════════════════════════════════════════════
   Try it yourself (#demo): a simulated app window with six scenarios (try.js).
   .window / .chrome are the pretend title bar; .try-* is the shell (scenario
   list, stage, status line); then one block per scenario:
   t- shared + update, ch- choices, md- mods, q- queue, pt- play time, sf- safety.
   ═══════════════════════════════════════════════════════════════════════════ */
.window { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; overflow: clip; background: var(--sheet); box-shadow: 0 40px 100px rgba(0,0,0,.55); }
.chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chrome i { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--line-2); }
.chrome i:first-child { background: var(--red); } .chrome i:nth-child(2) { background: var(--accent); } .chrome i:nth-child(3) { background: var(--green); }
.chrome span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chrome button { margin-left: auto; flex: none; background: none; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; color: var(--lilac); font: 500 13px/1.2 var(--font); cursor: pointer; transition: background .2s, border-color .2s; }
.chrome button:hover { background: var(--panel-2); border-color: var(--line-2); }

/* Shell */
.try [hidden] { display: none !important; }
.try-body { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 560px; }
.try-tabs { display: grid; gap: 4px; align-content: start; padding: 12px; background: var(--panel); border-right: 1px solid var(--line); }
.try-tab { display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; color: var(--text-2); font: 500 14px/1.25 var(--font); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.try-tab:hover { background: var(--panel-2); color: var(--text); }
.try-tab .ti { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.try-tab[aria-selected="true"] { background: var(--panel-2); border-color: var(--line-2); color: var(--text); box-shadow: 0 3px 0 var(--line); }
.try-tab[aria-selected="true"][data-tone="amber"] .ti { background: var(--accent); color: var(--accent-ink); }
.try-tab[aria-selected="true"][data-tone="lilac"] .ti { background: var(--lilac); color: #1d1230; }
.try-tab[aria-selected="true"][data-tone="mauve"] .ti { background: var(--mauve); color: #2a0f1e; }
.try-tab[aria-selected="true"][data-tone="indigo"] .ti { background: var(--indigo-hi); color: #110c2a; }
.try-stage { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(620px 300px at 70% 0%, rgba(74,61,143,.28), transparent 70%), var(--sheet); }
.try-pane { position: relative; flex: 1; display: grid; gap: 16px; align-content: start; padding: 22px 24px 26px; animation: tIn .45s var(--ease); }
.try-hint { margin: 0; max-width: 64ch; color: var(--text-2); font-size: 15px; }
.try-hint b { color: var(--accent); font-weight: 600; }
/* Status line: sticks to the bottom of the screen while the window is taller than the viewport (phones). */
.try-status { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0; min-height: 46px; padding: 10px 24px; background: var(--panel); border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); }
.try-status::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--line-2); transition: background .3s; }
.try-status[data-tone="ok"] { color: var(--text); } .try-status[data-tone="ok"]::before { background: var(--green); }
.try-status[data-tone="warn"] { color: var(--text); } .try-status[data-tone="warn"]::before { background: var(--red); }
.try-status[data-tone="busy"]::before { background: var(--accent); animation: tBlink 1s ease-in-out infinite; }
.try-status:empty::after { content: "Press a button above to see what happens."; color: var(--dim); }
@keyframes tBlink { 50% { opacity: .3; } }
@keyframes tIn { from { opacity: 0; transform: translateY(8px); } }

/* Shared bits */
.try h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 13px/1.2 var(--display); letter-spacing: 0; color: var(--muted); }
.try h3 > span:not(.g) { font-weight: 400; color: var(--dim); }
.try .btn:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.try .btn:disabled::after { display: none; }
.try .btn.danger { border-color: var(--red); color: var(--red); background: rgba(224,106,126,.08); }
.try .fresh { animation: tIn .45s var(--ease) both; }
.a5 { background: radial-gradient(circle at 65% 35%, #ffb3d1, transparent 50%), linear-gradient(135deg, #8c3c6e, #1c1433); }
.a6 { background: radial-gradient(circle at 35% 40%, #d7f0a0, transparent 50%), linear-gradient(135deg, #5d7a3a, #17182c); }
.t-badge { display: inline-flex; align-items: center; border-radius: 20px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.3; background: rgba(247,169,69,.14); color: var(--accent); }
.t-badge.ok { background: rgba(95,208,143,.14); color: var(--green); }
.t-badge.wait { background: rgba(122,108,200,.22); color: #b6adeb; }
.t-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.q-empty { margin: 0; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 13.5px; }

/* 1. An update arrives */
.t-card { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; background: var(--panel-2); border-radius: 14px; box-shadow: 0 4px 0 var(--accent-lo); transition: box-shadow .4s; }
.t-card.done { box-shadow: 0 4px 0 #2e6b4a; }
.t-card-b { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.t-name { font: 600 18px/1.2 var(--display); }
.try .bar { margin: 0; }
.try .bar i { transition-duration: .2s; }
.t-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.t-steps li { display: grid; gap: 2px; align-content: start; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; opacity: .55; transition: opacity .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.t-steps b { font: 600 14px/1.25 var(--display); }
.t-steps small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.t-steps li.on { opacity: 1; border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 3px 0 var(--accent-lo); }
.t-steps li.done { opacity: 1; border-color: rgba(95,208,143,.45); }
.t-steps li.done b::after { content: " ✓"; color: var(--green); }
.t-saves { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 14px; color: var(--text-2); }
.t-saves b { color: var(--text); font-weight: 600; }
.t-saves .mono { color: var(--lilac); }
.t-disk { color: var(--lilac); }
.t-kept { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; background: var(--panel); border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; color: var(--text-2); animation: tIn .45s var(--ease); }
.t-kept b { color: var(--text); }

/* 2. Make choices, watch the map grow */
.ch-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; align-items: start; }
.ch-left { display: grid; gap: 14px; min-width: 0; }
.ch-scene { background: var(--panel-2); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 0 var(--indigo-lo); }
.ch-art { position: relative; aspect-ratio: 16/5; border-radius: 0; }
.ch-count { position: absolute; left: 10px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(13,11,21,.7); color: var(--text-2); font-size: 12px; }
.ch-text { display: grid; gap: 10px; padding: 14px 16px 16px; }
.ch-who { font: 600 12px/1 var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--lilac); }
.ch-line { margin: 0; min-height: 3.2em; font-size: 15.5px; animation: tIn .4s var(--ease); }
.ch-opts { display: grid; gap: 8px; }
.ch-opt { text-align: left; padding: 10px 14px; background: rgba(13,11,21,.55); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: 500 14.5px/1.3 var(--font); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.ch-opt:hover { border-color: var(--lilac); background: rgba(167,134,201,.16); transform: translateX(3px); }
.ch-end { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-map { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.ch-map svg { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.ch-map .e { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: chDraw .6s var(--ease) forwards; transition: stroke .3s, stroke-width .3s; }
.ch-map .e.you { stroke: var(--lilac); stroke-width: 3.2; }
.ch-map .n { fill: var(--panel-3); stroke: var(--line-2); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pop .45s var(--ease) .25s both; transition: fill .3s, stroke .3s; }
.ch-map .n.open { stroke: var(--lilac); stroke-dasharray: 3 3; }
.ch-map .n.you { fill: var(--lilac); stroke: #d8c4f0; }
.ch-map .l { fill: var(--dim); font: 11px var(--font); transition: fill .3s; }
.ch-map .l.you { fill: var(--text); font-weight: 600; }
@keyframes chDraw { to { stroke-dashoffset: 0; } }
.ch-map .t-note { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ch-key { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-3); border: 2px solid var(--line-2); }
.ch-key.you { background: var(--lilac); border-color: #d8c4f0; }
.ch-key:not(.you) { margin-left: 10px; }
.ch-export { margin: 0; padding: 12px 14px 12px 36px; display: grid; gap: 8px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; font: 13px/1.45 var(--mono); color: var(--text-2); animation: tIn .45s var(--ease); }
.ch-export b { color: var(--lilac); font-weight: 400; }
.ch-export small { display: block; color: var(--dim); font-size: 12px; }

/* 3. Mods on, mods off */
.md-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.md-files { background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.md-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.md-head b { color: var(--text); font-family: var(--display); font-weight: 600; }
.md-head .mono { color: var(--accent); }
.md-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 4px; font: 13.5px/1.4 var(--mono); min-height: 258px; align-content: start; }
.md-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; transition: opacity .3s; }
.md-list li > span:first-child { overflow-wrap: anywhere; }
.md-tag { padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; font: 600 11.5px/1.3 var(--font); color: var(--dim); white-space: nowrap; }
.md-list .added, .md-list .replaced { background: rgba(196,127,163,.12); border-color: var(--mauve-lo); }
.md-list .added .md-tag, .md-list .replaced .md-tag { border-color: var(--mauve); color: var(--mauve); }
.md-list .held { opacity: .5; border-style: dashed; border-color: var(--line-2); }
.md-list .bump { animation: mdFlash .9s var(--ease); }
@keyframes mdFlash { 0% { background: rgba(247,169,69,.3); } }

/* 4. Build your queue */
.q-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.q-lib { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.q-game { display: grid; gap: 8px; align-content: start; padding: 8px; background: var(--panel-2); border-radius: 12px; box-shadow: 0 3px 0 var(--indigo-lo); animation: tIn .4s var(--ease); }
.q-game b { font: 600 14px/1.25 var(--display); }
.q-game .btn { width: 100%; padding: 8px 6px; font-size: 12.5px; }
.q-now { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: var(--panel-2); border-radius: 12px; box-shadow: 0 4px 0 var(--accent-lo); animation: tIn .45s var(--ease); }
.q-now b { display: block; margin-bottom: 6px; font: 600 16px/1.2 var(--display); }
.q-h2 { margin-top: 18px !important; }
.q-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.q-next li { display: grid; grid-template-columns: 18px 14px 48px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; background: var(--panel-2); border-radius: 10px; box-shadow: 0 3px 0 var(--mauve-lo); font-size: 14px; line-height: 1.25; user-select: none; -webkit-user-select: none; cursor: grab; }
.q-next li.drag { position: relative; z-index: 1; cursor: grabbing; background: var(--panel-3); box-shadow: 0 3px 0 var(--mauve), 0 14px 30px rgba(0,0,0,.5); }
.q-next .n { font: 600 12px/1 var(--mono); color: var(--mauve); }
.q-grip { display: grid; place-items: center; align-self: stretch; color: var(--dim); font-size: 15px; touch-action: none; cursor: grab; }
.q-btns { display: flex; gap: 4px; }
.q-ib { min-width: 30px; height: 30px; padding: 0 6px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: 600 13px/1 var(--font); cursor: pointer; transition: background .2s, border-color .2s; }
.q-ib:hover { border-color: var(--lilac); }
.q-ib[aria-disabled="true"] { opacity: .35; cursor: default; border-color: var(--line-2); }
.q-start { padding: 0 10px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent-lo); }
.q-menu { position: absolute; z-index: 5; padding: 5px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.55); animation: tIn .2s var(--ease); }
.q-menu button { display: block; padding: 8px 12px; background: none; border: 0; border-radius: 6px; color: var(--text); font: 500 14px/1.2 var(--font); white-space: nowrap; cursor: pointer; }
.q-menu button:hover, .q-menu button:focus-visible { background: rgba(196,127,163,.22); }

/* 5. Honest play time */
.pt-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.pt-desk { position: relative; aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: radial-gradient(circle at 80% 90%, rgba(196,127,163,.18), transparent 55%), linear-gradient(135deg, #1a1630, #0f0c1c); }
.pt-win { position: absolute; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); box-shadow: 0 14px 40px rgba(0,0,0,.55); transition: transform .5s var(--ease), filter .5s, box-shadow .5s; }
.pt-game { left: 7%; top: 9%; width: 64%; z-index: 2; box-shadow: 0 0 0 2px var(--accent), 0 14px 40px rgba(0,0,0,.55); }
.pt-other { right: 5%; bottom: 8%; width: 56%; z-index: 1; filter: brightness(.6); }
.pt-bar { display: flex; align-items: center; gap: 6px; padding: 5px 9px; background: var(--panel-2); font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.pt-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.pt-game .art { position: relative; border-radius: 0; }
.pt-page { display: grid; gap: 7px; padding: 12px; }
.pt-page i { height: 7px; border-radius: 4px; background: var(--panel-3); }
.pt-page i:nth-child(2) { width: 80%; } .pt-page i:nth-child(4) { width: 60%; } .pt-page i:first-child { height: 26px; }
.pt-zzz { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13,11,21,.62); color: var(--lilac); font: 600 22px/1 var(--display); opacity: 0; transition: opacity .4s; }
.pt-desk.idle .pt-zzz { opacity: 1; }
.pt-desk.idle .pt-game, .pt-desk.away .pt-game { box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.pt-desk.away .pt-game { filter: brightness(.5) saturate(.6); }
.pt-desk.away .pt-other { z-index: 3; filter: none; transform: translate(-8%, -10%); box-shadow: 0 0 0 2px var(--indigo-hi), 0 14px 40px rgba(0,0,0,.55); }
.pt-read { display: grid; gap: 12px; min-width: 0; }
.pt-clock { display: grid; gap: 8px; justify-items: start; padding: 16px; background: var(--panel-2); border-radius: 14px; box-shadow: 0 4px 0 var(--accent-lo); transition: box-shadow .3s; }
.pt-clock small { color: var(--muted); font-size: 13px; }
.pt-clock b { font: 400 46px/1 var(--mono); font-variant-numeric: tabular-nums; transition: color .3s; }
.pt-clock.paused { box-shadow: 0 4px 0 var(--indigo-lo); }
.pt-clock.paused b { color: var(--dim); }
.pt-open { margin: 0; font-size: 14px; color: var(--muted); }
.pt-open .mono { color: var(--text-2); }
.pt-strip { display: flex; gap: 2px; height: 14px; overflow: hidden; border-radius: 4px; background: var(--panel); }
.pt-strip i { flex: 0 0 5px; border-radius: 2px; background: var(--accent); animation: tIn .3s var(--ease); }
.pt-strip i.off { background: var(--indigo); }
.pt-ctl { display: flex; flex-wrap: wrap; gap: 8px; }

/* 6. Safety net */
.sf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sf-side { display: grid; gap: 18px; min-width: 0; }
.sf-box { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s; }
.sf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; background: var(--panel-2); border-radius: 10px; box-shadow: 0 3px 0 var(--indigo-lo); font-size: 14px; line-height: 1.25; }
.sf-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.sf-list .btn { padding: 7px 10px; font-size: 12.5px; }
.sf-trash li { background: transparent; border: 1px dashed var(--line-2); box-shadow: none; }
.sf-trash .art { filter: grayscale(.8) brightness(.7); }
.sf-folder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sf-path { overflow-wrap: anywhere; color: var(--text-2); }
.sf-lock { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: var(--lilac); }
.sf-lock svg { flex: none; }
.sf-refusal { margin: 10px 0 0; font-size: 13.5px; color: var(--red); }
.sf-out.refused { border-color: var(--red); animation: sfShake .45s var(--ease); }
.sf-out.refused .sf-lock svg { animation: pop .45s var(--ease); }
@keyframes sfShake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* Try it yourself on narrow screens: the scenario list becomes a 3 × 2 grid above the stage, and every scenario stacks. */
@media (max-width: 860px) {
  .try-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .try-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .try-tab { flex-direction: column; gap: 6px; padding: 8px 4px; text-align: center; font-size: 12.5px; }
  .ch-cols, .q-cols, .pt-cols, .sf-cols { grid-template-columns: minmax(0, 1fr); }
  .t-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-list { min-height: 0; }
  /* The map goes above the scene, so it stays in view while you pick. */
  .ch-map { order: -1; padding: 10px 14px; }
  .ch-map svg { max-width: 280px; }
  .ch-art { aspect-ratio: 16/3; }
}
@media (max-width: 520px) {
  .try-pane { padding: 16px 14px 20px; }
  .try-status { padding: 10px 14px; font-size: 13.5px; }
  .chrome span { display: none; }
  .t-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .t-card > .btn { grid-column: 1 / -1; }
  .q-next li { grid-template-columns: 18px 14px minmax(0, 1fr) auto; }
  .q-next .art { display: none; }
  .pt-clock b { font-size: 40px; }
}

/* Comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.compare thead th { font: 600 14px/1.2 var(--display); color: var(--muted); }
.compare thead th.us { color: var(--accent); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td { text-align: center; width: 22%; font-size: 18px; }
.compare td.n { color: var(--dim); }
.compare td.p { color: var(--muted); font-size: 13.5px; } .compare td.y { color: var(--green); }
.compare .us { background: rgba(247,169,69,.06); }
.compare tbody th { color: var(--text-2); }

/* Beta */
.beta-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 40px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(247,169,69,.10), rgba(196,127,163,.08) 45%, rgba(74,61,143,.18)), var(--panel); }
.beta-copy h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 8px 0 14px; }
.beta-copy p { color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 10px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.form input[type=email], .form input[type=text], .form select, .form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; color: var(--text); font: 15px/1.4 var(--font); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(167,134,201,.2); }
.form textarea { resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.engines { display: flex; flex-wrap: wrap; gap: 8px; }
.engines .tick { display: inline-flex; border: 1px solid var(--line-2); border-radius: 20px; padding: 6px 12px; gap: 8px; cursor: pointer; }
.engines .tick:has(input:checked) { border-color: var(--accent); background: rgba(247,169,69,.12); color: var(--text); }
.tick { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 10px !important; cursor: pointer; }
.tick input { accent-color: var(--accent); width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.req, .opt { font-size: 11.5px; color: var(--dim); margin-left: 4px; } .req { color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 14px; }
.form-msg.err { color: var(--red); } .form-msg.ok { color: var(--green); }
.form.done > *:not(.form-msg) { display: none; }
.form.done .form-msg { font-size: 17px; padding: 30px 0; text-align: center; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 16.5px/1.3 var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: .8; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--text-2); }

/* Footer */
.foot { max-width: var(--max); margin: 110px auto 0; padding: 32px 16px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .brand { margin-bottom: 12px; } .foot .wm { font-size: 16px; }
.foot p { margin: 6px 0; max-width: 760px; } .foot .dim { color: var(--dim); font-size: 13px; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--mauve), var(--lilac)); }

/* Hero entrance: words rise in, slabs drop onto the stack, the mock tilts with the mouse */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px); animation: word .8s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.slab { opacity: 0; animation: drop .9s var(--ease) forwards, float 6s var(--ease) 1.4s infinite; }
.slab.s3 { animation-delay: .2s, 1.4s; } .slab.s2 { animation-delay: .45s, 1s; } .slab.s1 { animation-delay: .7s, .6s; }
@keyframes drop { from { opacity: 0; translate: 0 -90px; } to { opacity: 1; translate: 0 0; } }
.mock { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d; }
.mock::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 45%); }
.hero-visual::before { content: ""; position: absolute; inset: 10% 5% 0 20%; background: radial-gradient(closest-side, rgba(247,169,69,.22), transparent); filter: blur(30px); animation: breathe 5s ease-in-out infinite; z-index: -1; }
@keyframes breathe { 50% { opacity: .5; transform: scale(1.08); } }
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s var(--ease) 2s infinite; }
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }

/* Ticker */
.ticker { max-width: none; margin: 40px -16px 0; overflow: hidden; border-block: 1px solid var(--line); background: rgba(27,23,38,.55); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker .track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { padding: 16px 26px; font: 500 15px/1 var(--display); color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 26px; }
.ticker span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--mauve); opacity: .6; }
.ticker span:nth-child(3n)::after { background: var(--accent); } .ticker span:nth-child(3n+1)::after { background: var(--indigo-hi); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Numbers */
.stats { max-width: var(--max); margin: 56px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform .3s var(--ease), border-color .3s, opacity .8s var(--ease) !important; }
.stat:hover { transform: translateY(-4px); border-color: var(--line-2); }
.stat b { display: block; font: 700 46px/1 var(--display); background: linear-gradient(180deg, var(--text), var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.stats .stat:nth-child(2) { transition-delay: .08s !important; } .stats .stat:nth-child(3) { transition-delay: .16s !important; } .stats .stat:nth-child(4) { transition-delay: .24s !important; }

/* Feature panel: spotlight follows the mouse; selected tab shows its auto-advance timer */
.panels::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 70%) var(--my, 20%), rgba(167,134,201,.12), transparent 45%); transition: opacity .3s; }
.tab { position: relative; overflow: hidden; }
.tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); opacity: .8; }
.explorer.auto .tab[aria-selected="true"]::after { animation: timer var(--dwell, 7s) linear forwards; }
@keyframes timer { to { transform: scaleX(1); } }

/* Comparison: rows slide in, ticks pop */
.compare tbody tr { opacity: 0; transform: translateX(-14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--r) * 70ms); }
.table-wrap.in .compare tbody tr { opacity: 1; transform: none; }
.compare td.y.us { transform: scale(.3); opacity: 0; transition: transform .5s cubic-bezier(.3,1.6,.5,1), opacity .3s; transition-delay: calc(var(--r) * 70ms + 300ms); }
.table-wrap.in .compare td.y.us { transform: none; opacity: 1; }

/* The try-it window tips up into place */
.window.reveal { transform: perspective(1400px) rotateX(14deg) translateY(40px) scale(.96); transform-origin: 50% 0; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.window.reveal.in { transform: none; }

/* Beta card: a slowly turning gradient border */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.beta-card { position: relative; isolation: isolate; border-color: transparent; }
.beta-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang), var(--accent), var(--mauve), var(--indigo-hi), var(--lilac), var(--accent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 8s linear infinite; z-index: -1; }
@keyframes spin { to { --ang: 360deg; } }

/* Section headings: the eyebrow line draws in */
.section-head .eyebrow::before { content: ""; width: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: width .8s var(--ease) .2s; }
.section-head.in .eyebrow::before { width: 28px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Narrow screens */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .hero-visual { min-height: 0; padding-bottom: 70px; }
  .mock { margin: 0 auto; }
  .stack3d { display: none; }
  .explorer { grid-template-columns: 1fr; }
  .tabs { grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .tab { scroll-snap-align: start; }
  .beta-card { grid-template-columns: 1fr; padding: 28px 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .top { justify-content: space-between; }
  .section { padding-top: 72px; }
  .panels { padding: 20px 16px; min-height: 0; }
  .pipeline { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .pipeline::before { display: none; }
  .lanes, .shield { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .toast { position: relative; margin-top: 14px; max-width: none; }
}
@media (max-width: 420px) {
  .top .btn { padding: 8px 10px; font-size: 13px; }
  .wm small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .window.reveal, .compare tbody tr, .compare td.y.us, .hero h1 .w, .slab { opacity: 1; transform: none; filter: none; }
  .ticker .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  /* Try it yourself: everything is drawn in its final state straight away. */
  .ch-map .e { stroke-dashoffset: 0; }
  .try-pane, .try .fresh, .ch-map .n, .q-game, .q-now, .t-kept { opacity: 1; transform: none; }
  .try-status[data-tone="busy"]::before, .sf-out.refused { animation: none; }
}
