:root {
  --bg: #0a0a0a; --panel: #171717; --panel-2: #1f1f1f; --line: rgba(255, 255, 255, .1); --ink: #fafafa; --muted: #a3a3a3; --faint: #737373;
  --accent: #7b6cff; --accent-ink: #ffffff; --accent-soft: rgba(123, 108, 255, .16); --yellow: #f5c518;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg) radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.6px) 0 0 / 26px 26px; color: var(--ink); font: 400 18px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.07; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
mark { color: inherit; background: none; border-radius: 6px; padding: .03em .12em .14em; white-space: nowrap; }
mark.hi { background: var(--accent); color: var(--accent-ink); }
mark.lo { background: rgba(255, 255, 255, .09); }
code { font: 500 .85em var(--mono); }

/* Header: a floating bar. */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); pointer-events: none; }
.bar { pointer-events: auto; min-width: 0; max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(28, 28, 28, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; }
.brand .mark { width: 22px; height: 22px; color: var(--accent); }
.links { display: flex; gap: 22px; margin: 0 auto; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.links a:hover { color: var(--ink); }
.links a.second { color: var(--ink); opacity: .85; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: 12px; font: 500 16px var(--font); text-decoration: none; white-space: nowrap; transition: transform .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.small { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 15px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #8d80ff; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .13); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The story. */
.story { position: relative; height: 520vh; margin-top: -68px; }
.stage { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; align-items: center; isolation: isolate; }
/* The canvas behind the story: a glow from the top, a fainter one low on the right, over the page's dot grid. */
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 55% at 50% -8%, rgba(123, 108, 255, .38), transparent 72%), radial-gradient(38% 36% at 88% 96%, rgba(123, 108, 255, .13), transparent 70%), radial-gradient(34% 30% at 6% 78%, rgba(245, 197, 24, .05), transparent 70%); }
/* Keeps the headline readable over the page's scattered parts. */
.hero::before { content: ""; position: absolute; inset: -70px -150px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(10, 10, 10, .94) 58%, rgba(10, 10, 10, 0)); }
.hero { position: absolute; z-index: 5; top: 50%; left: 50%; width: min(760px, calc(100% - 32px)); transform: translate(-50%, -50%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; will-change: opacity, transform; }
.lead { color: var(--ink); opacity: .86; font-size: 20px; line-height: 1.4; max-width: 30em; text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fine { color: var(--muted); font-size: 14px; text-wrap: balance; }
.caps { position: absolute; z-index: 4; top: 84px; left: 0; right: 0; height: 120px; pointer-events: none; }
.cap { position: absolute; inset: 0; margin: 0 auto; width: min(640px, calc(100% - 32px)); text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.cap.on { opacity: 1; transform: none; }
.cap p { margin-top: 10px; color: var(--ink); opacity: .8; font-size: 17px; text-wrap: balance; }
.scene-wrap { position: absolute; left: 0; right: 0; top: 204px; bottom: 20px; display: grid; place-items: start center; }
.scene { position: relative; width: 1200px; height: 560px; transform-origin: top center; flex: none; }
.scrollcue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); transition: opacity .3s; }

/* A frame: your app on the canvas. */
.frame { position: absolute; left: 0; top: 0; width: 640px; height: 430px; transform-origin: top left; will-change: transform, opacity; }
.chrome { height: 30px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.chrome .tag { font: 600 10.5px var(--font); letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; background: rgba(77, 124, 255, .18); color: #8fb0ff; }
.chrome .ver { padding: 2px 9px; border-radius: 6px; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.chrome .path { font-family: var(--mono); }
.chrome .kept { margin-left: auto; padding: 2px 9px; border-radius: 6px; background: rgba(52, 199, 123, .18); color: #63dd9b; opacity: 0; transition: opacity .3s; }
.chrome .kept.on { opacity: 1; }
.page { position: relative; height: 400px; border-radius: 12px; background: #f7f6f2; color: #1b1b1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .5); font-size: 13px; }
.frame#frame .page { background: transparent; box-shadow: none; }
.frame#frame .page::before { content: ""; position: absolute; inset: 0; border-radius: 12px; background: #f7f6f2; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .5); opacity: var(--g, 0); }
.pc { position: absolute; will-change: transform; }
.nav { left: 20px; top: 16px; width: 600px; height: 36px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-radius: 9px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .12); }
.nav b { font-weight: 600; margin-right: auto; }
.nav i { width: 44px; height: 7px; border-radius: 4px; background: #d9d6cd; }
.nav .pill { padding: 4px 10px; border-radius: 99px; background: #1b1b1f; color: #fff; font-size: 11px; }
.h { left: 24px; top: 74px; width: 330px; font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; color: #1b1b1f; }
.pc.h { padding: 10px 12px; margin: -10px -12px; border-radius: 10px; background: #f7f6f2; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.para { left: 24px; top: 150px; width: 300px; display: grid; gap: 8px; padding: 10px 12px; margin: -10px -12px; border-radius: 10px; background: #f7f6f2; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.para i { height: 8px; border-radius: 4px; background: #cfccc2; }
.para i.short { width: 60%; }
.card { position: relative; }
.pc.card { position: absolute; left: 372px; top: 74px; width: 244px; padding: 16px; border-radius: 14px; background: #fff; display: grid; gap: 6px; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 30px rgba(0, 0, 0, .14); }
.card b { font-size: 15px; }
.card span { color: #6b6b6b; }
.card .row { display: flex; gap: 8px; margin-top: 8px; }
.card button { font: 500 12px var(--font); border: 0; border-radius: 8px; padding: 8px 12px; pointer-events: none; }
.buy { background: #4f2bd6; color: #fff; transition: background .35s, color .35s; }
.buy.yellow, .buy.vb { background: #f5c518; color: #1b1b1f; }
.buy.vc { background: #1b1b1f; color: #f5c518; border-radius: 99px; }
.buy.vd { background: #fff3c4; color: #7a5a00; box-shadow: inset 0 0 0 1.5px #f5c518; }
.later { background: #efede6; color: #1b1b1f; }
.tile { top: 250px; width: 186px; height: 124px; padding: 10px; border-radius: 12px; background: #fff; display: grid; grid-template-rows: 1fr auto; gap: 8px; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .12); }
.tile em { border-radius: 8px; }
.tile b { font-weight: 500; }
.t1 { left: 24px; } .t2 { left: 227px; } .t3 { left: 430px; }
.selbox { position: absolute; left: 384px; top: 143px; width: 110px; height: 38px; border: 1.5px dashed var(--accent); border-radius: 10px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.selbox.on { opacity: 1; }
.selbox span { position: absolute; left: -1px; bottom: -19px; font: 500 10px var(--mono); padding: 1px 5px; border-radius: 4px; background: var(--accent); color: #fff; }
/* The other versions: whole pages, laid out in flow. */
.mini { opacity: 0; }

/* The chat. */
.chat { position: absolute; left: 720px; top: 0; width: 440px; height: 430px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; opacity: 0; will-change: opacity, transform; font-size: 14px; }
.ch { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
.ch .dot { width: 8px; height: 8px; border-radius: 99px; background: #d97757; }
.ch .st { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--faint); }
.msgs { flex: 1; min-height: 0; padding: 12px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; }
.m { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; max-width: 92%; }
.m.on { opacity: 1; transform: none; }
.m.you { align-self: flex-end; padding: 7px 11px; border-radius: 12px 12px 3px 12px; background: var(--panel-2); border: 1px solid var(--line); }
.m.claude { color: var(--ink); opacity: 0; line-height: 1.4; }
.m.claude.on { opacity: .92; }
.m.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.m.step i { font-style: normal; color: #63dd9b; }
.m.step code { color: var(--ink); opacity: .85; }
.m.act { font-size: 12.5px; color: var(--muted); }
.m.act span { display: inline-block; margin-right: 8px; padding: 4px 10px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 500; }
.box { padding: 10px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.ctx { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 7px; border: 1px solid rgba(123, 108, 255, .5); background: var(--accent-soft); font-size: 12px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; min-width: 0; }
.ctx.on { opacity: 1; transform: none; }
.ctx i { width: 10px; height: 10px; border-radius: 2px; border: 1.5px dashed var(--accent); flex: none; }
.ctx .crumbs, .ctx .q { color: var(--muted); white-space: nowrap; }
.ctx b { font: 500 11.5px var(--mono); color: #b3a9ff; }
.inp { display: flex; align-items: center; height: 38px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--panel-2); color: var(--faint); }
.inp .send { margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 14px; }

/* Sections after the story. */
main > section:not(.story) { padding: 96px max(20px, env(safe-area-inset-right)) 96px max(20px, env(safe-area-inset-left)); }
.works { text-align: center; padding-top: 28px !important; padding-bottom: 28px !important; border-block: 1px solid var(--line); }
.works p { color: var(--faint); font-size: 14px; margin-bottom: 12px; }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-weight: 500; }
.split .intro, .compare > h2, .compare > .sub, .faq, .final { max-width: 720px; margin-inline: auto; }
.split .intro { text-align: center; }
.split .intro p, .compare .sub { margin-top: 14px; color: var(--ink); opacity: .8; text-wrap: balance; }
.cards { max-width: 1040px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards article { padding: 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cards article p { color: var(--muted); font-size: 16px; }
.demo { margin-top: auto; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; display: grid; gap: 8px; }
.cards article p + .demo { margin-top: 14px; }
.files > div, .log > div { display: flex; align-items: center; gap: 8px; }
.files b { font: 500 12.5px var(--mono); margin-right: auto; }
.add { color: #63dd9b; } .del { color: #ff8b8b; }
.actions { margin-top: 4px; }
.chipbtn { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.chipbtn.on { background: var(--accent); border-color: transparent; color: #fff; }
.log i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--panel-2); font-size: 11px; }
.log span { margin-left: auto; color: var(--faint); }
.props label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.props label span { min-width: 34px; text-align: center; padding: 3px 6px; border-radius: 6px; background: var(--panel-2); color: var(--ink); font-family: var(--mono); font-size: 12px; }
.props label span:first-of-type { margin-left: auto; }
.props .sw { min-width: 20px !important; width: 20px; height: 20px; padding: 0 !important; background: #e9e4ff !important; }
.props .tok { background: rgba(77, 124, 255, .18) !important; color: #8fb0ff !important; }
.acct { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; }
.acct .dot { width: 8px; height: 8px; border-radius: 99px; background: #63dd9b; }
.acct small { flex-basis: 100%; color: var(--faint); font-size: 12px; }
.compare { background: #121212; }
.compare > h2, .compare > .sub { text-align: center; }
.table { max-width: 960px; margin: 44px auto 0; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; font-size: 16px; }
.tr { display: grid; grid-template-columns: 1fr 1.3fr 1.5fr; }
.tr + .tr { border-top: 1px solid var(--line); }
.tr span { padding: 16px 18px; color: var(--muted); min-width: 0; }
.tr span:first-child { color: var(--ink); font-weight: 500; }
.tr span:last-child { color: var(--ink); background: rgba(123, 108, 255, .07); }
.tr.th span { font-size: 13px; color: var(--faint); font-weight: 500; }
.tr.th span:last-child { color: #b3a9ff; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 16px; max-width: 60ch; }
.faq a { color: #b3a9ff; }
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: 120px !important; }
footer { border-top: 1px solid var(--line); background: rgba(10, 10, 10, .8); padding: 36px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left)); color: var(--faint); font-size: 14px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
.family { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fam-h { grid-column: 1 / -1; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.family a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.family a:hover { background: var(--panel-2); border-color: rgba(123, 108, 255, .5); }
.family b { color: var(--ink); font-weight: 500; font-size: 16px; }
.family a span { color: var(--muted); }
.legal { max-width: 1040px; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Small screens and reduced motion: no pinned story, each step is shown in place. */
@media (max-width: 860px) {
  .links a:not(.second) { display: none; }
  .links { margin-left: auto; margin-right: 0; }
  .bar { gap: 10px; }
}
@media (max-width: 520px) { .links a.second .long { display: none; } .bar { padding-left: 12px; gap: 8px; } .links { font-size: 13.5px; } .brand span { font-size: 15px; } .btn.small { padding: 0 10px; } }
html.flat .story { height: auto; margin-top: 0; }
html.flat .stage { position: relative; height: auto; min-height: 0; overflow: visible; padding: 72px 16px 40px; gap: 28px; }
html.flat .hero { position: static; transform: none; width: 100%; max-width: 760px; }
html.flat .caps { position: static; height: auto; display: grid; gap: 22px; width: 100%; }
html.flat .cap { position: static; opacity: 1; transform: none; }
html.flat .scene-wrap { position: static; width: 100%; order: 2; overflow: hidden; }
html.flat .scrollcue { display: none; }
html.flat .caps { order: 3; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } .tr { grid-template-columns: 1fr; } .tr.th { display: none; } .tr span { padding: 6px 16px; } .tr span:first-child { padding-top: 16px; } .tr span:last-child { padding-bottom: 16px; margin-top: 6px; } body { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .m, .cap, .ctx, .selbox, .buy { transition: none; } }
html.flat .hero::before { display: none; }
@media (max-width: 560px) { .family { grid-template-columns: 1fr; } }
main > section:last-child { background: radial-gradient(50% 85% at 50% 108%, rgba(123, 108, 255, .26), transparent 70%); }
