:root {
  --bg: #0a0a0a;
  --card: #141414;
  --card-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --dim: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.36);
  --accent: #73a3ff;
  --accent-soft: rgba(115, 163, 255, 0.16);
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.dim { color: var(--dim); }
.muted { color: var(--faint); }

/* Glow */
.glow {
  position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 50% at 30% 8%, rgba(255,255,255,0.13), transparent 70%),
    radial-gradient(35% 40% at 72% 18%, rgba(255,255,255,0.10), transparent 70%),
    radial-gradient(45% 55% at 62% 4%, rgba(115,163,255,0.22), transparent 70%);
  mask-image: linear-gradient(#000 40%, transparent);
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
}

/* Nav */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px 16px 0; }
.nav {
  max-width: 980px; margin: 0 auto; height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 18px; border-radius: 999px;
  background: rgba(20, 20, 20, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 7px 14px; border-radius: 999px; color: var(--dim); font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { font-size: 1.1em; stroke-width: 2.2; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(115,163,255,0.22), 0 8px 30px rgba(115,163,255,0.35); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: rgba(115,163,255,0.7); background: rgba(255,255,255,0.06); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }

main { position: relative; z-index: 1; }
section { padding: 0 20px; }

/* Hero */
.hero { text-align: center; padding-top: 88px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--dim);
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill .version-label { color: var(--text); font-weight: 500; }
h1 {
  margin: 0 auto; max-width: 900px;
  font-size: clamp(44px, 8.2vw, 88px); line-height: 1.0; letter-spacing: -0.045em; font-weight: 700;
}
.lede { max-width: 580px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 19px); color: var(--dim); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.fine { margin: 18px 0 0; font-size: 13px; color: var(--faint); }

/* Window mock */
.window-stage { max-width: 1060px; margin: 72px auto 0; perspective: 1800px; }
.window {
  text-align: left; border-radius: 16px; overflow: hidden;
  background: #0b0b0b; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.6), 0 -20px 80px rgba(115,163,255,0.08);
  transform: rotateX(8deg) scale(0.97); transform-origin: 50% 0;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.window.in { transform: rotateX(0) scale(1); }
.titlebar { height: 30px; display: flex; gap: 8px; align-items: center; padding: 0 14px; }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2a; }
.app-nav {
  margin: 0 14px; height: 44px; border-radius: 999px; padding: 0 6px 0 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(255,255,255,0.045); border: 1px solid var(--line);
  font-size: 13px;
}
.app-brand { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.app-tabs { display: flex; gap: 2px; }
.app-tabs span { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; color: var(--dim); font-weight: 500; }
.app-tabs span.on { color: #fff; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(115,163,255,0.28); }
.app-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.circle { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.avatar { font-weight: 600; font-size: 12px; }
.newp { background: #fff; color: #000; font-weight: 600; padding: 6px 14px; border-radius: 999px; }

.app-body { padding: 34px 9% 40px; position: relative; }
.app-body::before {
  content: ""; position: absolute; inset: -80px 0 auto 0; height: 340px; pointer-events: none;
  background:
    radial-gradient(40% 60% at 35% 20%, rgba(255,255,255,0.07), transparent 70%),
    radial-gradient(40% 60% at 70% 20%, rgba(115,163,255,0.12), transparent 70%);
}
.app-body > * { position: relative; }
.a-date { margin: 0; font-size: 13px; color: var(--dim); }
.a-hello { margin: 4px 0 4px; font-size: clamp(22px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.03em; }
.a-sum { margin: 0; font-size: 13px; color: var(--dim); }
.a-h { margin: 30px 0 10px; font-size: 16px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
.a-h em { font-style: normal; color: var(--faint); font-size: 12px; font-weight: 500; }
.a-link { margin-left: auto; font-size: 12px; color: var(--dim); font-weight: 500; }
.a-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.a-row:first-of-type { background: rgba(255,255,255,0.035); }
.a-row b { display: block; font-weight: 600; }
.a-row span { display: block; color: var(--dim); font-size: 12px; }
.a-when span { font-family: var(--mono); font-size: 11px; }
.a-meta { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.a-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.a-card { border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.a-card:first-child { border-color: rgba(115,163,255,0.55); }
.thumb { height: 92px; display: flex; gap: 2px; }
.thumb span { flex: 1; }
.t1 span:nth-child(1) { background: linear-gradient(160deg, #1b2a4a, #0d1424 60%, #3c2a55); }
.t1 span:nth-child(2) { background: linear-gradient(200deg, #f0a35e33, #22181a 50%, #0e0e12); }
.t1 span:nth-child(3) { background: linear-gradient(180deg, #273b5e, #0b1220); }
.t2 { background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)); display: grid; place-items: center; }
.t2 span { font-size: 26px; font-weight: 600; color: rgba(255,255,255,0.22); }
.t3 span:nth-child(1) { background: linear-gradient(170deg, #4a3624, #1c140e); }
.t3 span:nth-child(2) { background: linear-gradient(190deg, #2c2a26, #121110 60%, #5a4632); }
.a-card-body { padding: 10px 12px 12px; font-size: 13px; display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
.a-card-body b { font-weight: 600; }
.a-card-body span { grid-column: 1 / -1; color: var(--dim); font-size: 12px; }
.badge { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; align-self: center; }
.bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.08); margin-top: 10px; overflow: hidden; }
.bar div, .progress div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fff, var(--accent)); }

/* Stages */
.stages, .features, .changelog { max-width: 1060px; margin: 0 auto; padding-top: 150px; }
.stage-intro { text-align: center; max-width: 640px; margin: 0 auto 70px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--accent); }
h2 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; }
.stage-intro p:not(.eyebrow) { color: var(--dim); font-size: 18px; margin: 20px 0 0; }

.stage { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding: 56px 0; }
.stage.flip .stage-copy { order: 2; }
.step { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--dim); }
.step span { font-family: var(--mono); font-size: 12px; color: var(--accent); padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); }
h3 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 650; }
.stage-copy > p:not(.step) { margin: 0; color: var(--dim); font-size: 17px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373a3ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.panel {
  border-radius: 20px; padding: 22px; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 30%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 1px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 18px; }
.panel-head b { letter-spacing: -0.02em; }
.progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,0.08); margin-bottom: 10px; overflow: hidden; }
.shots { list-style: none; margin: 0; padding: 0; }
.shots li { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14.5px; }
.shots li.done { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
.cb { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.28); flex: none; }
.done .cb { border: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ref { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.r1 { background: linear-gradient(160deg, #1b2a4a, #3c2a55); }
.r2 { background: linear-gradient(200deg, #6b4a2e, #1a120c); }
.r3 { background: linear-gradient(180deg, #2a2f38, #0e1014); }
.add-shot { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13px; color: var(--faint); background: rgba(255,255,255,0.03); border: 1px solid var(--line); }

.btn-mini { font-size: 12.5px; font-weight: 600; background: #fff; color: #000; padding: 6px 12px; border-radius: 999px; }
.ws { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ws li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.ws b { display: block; font-size: 14.5px; font-weight: 600; }
.ws span:not(.ico) { display: block; font-size: 12.5px; color: var(--dim); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws div { min-width: 0; }
.ws em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; }
.i-blue { background: rgba(115,163,255,0.16); color: var(--accent); }
.i-amber { background: rgba(255,190,90,0.14); color: #ffc46b; }
.i-green { background: rgba(90,220,140,0.13); color: #6be09a; }
.i-white { background: rgba(255,255,255,0.08); color: #fff; }

.deliver { padding: 0; overflow: hidden; background: #0d0d0d; min-height: 340px; }
.dl-page { padding: 26px 30px 92px; }
.dl-brand { margin: 0 0 40px; font-weight: 600; letter-spacing: -0.02em; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dl-page .eyebrow { color: var(--dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.dl-name { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.03em; font-weight: 500; word-break: break-word; }
.dl-page .mono { display: block; margin: 0 0 22px; }
.toast {
  position: absolute; right: 18px; bottom: 18px; width: min(340px, calc(100% - 36px));
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 16px;
  background: rgba(40,40,40,0.72); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  font-size: 13px;
}
.toast img { border-radius: 7px; }
.toast b { display: block; font-weight: 600; }
.toast span { display: block; color: var(--dim); font-size: 12.5px; line-height: 1.35; }
.toast em { font-style: normal; color: var(--faint); font-size: 11.5px; align-self: start; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feat:hover { border-color: rgba(115,163,255,0.55); transform: translateY(-2px); }
.feat svg { font-size: 22px; color: var(--accent); margin-bottom: 18px; }
.feat b { display: block; font-size: 16px; margin-bottom: 6px; letter-spacing: -0.01em; }
.feat p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* Changelog */
.releases { max-width: 680px; margin: 0 auto; display: grid; gap: 12px; }
.release { padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.release:first-child { border-color: rgba(115,163,255,0.4); }
.rel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.release ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 15px; display: grid; gap: 4px; }
.more { justify-self: center; margin-top: 6px; background: none; border: 1px solid var(--line-2); color: var(--dim); font: 500 14px var(--sans); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.more:hover { color: #fff; border-color: rgba(115,163,255,0.7); }

/* Final */
.final { text-align: center; padding-top: 170px; padding-bottom: 120px; position: relative; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 110px; width: min(520px, 100%); height: 320px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(115,163,255,0.22), transparent);
}
.final > * { position: relative; }
.final-icon { margin: 0 auto 28px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); }
.final p { color: var(--dim); font-size: 18px; margin: 14px 0 32px; }
.install { max-width: 520px; margin: 34px auto 0; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.02); }
.install summary { cursor: pointer; padding: 14px 18px; font-size: 14.5px; font-weight: 500; color: var(--dim); list-style: none; }
.install summary::-webkit-details-marker { display: none; }
.install summary::after { content: "+"; float: right; color: var(--faint); }
.install[open] summary::after { content: "–"; }
.install ol { margin: 0; padding: 0 22px 18px 38px; color: var(--dim); font-size: 14.5px; display: grid; gap: 8px; }
.install b { color: var(--text); font-weight: 600; }

footer { border-top: 1px solid var(--line); padding: 26px 20px; }
.foot { max-width: 1060px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.foot p { margin: 0; }
.foot a.dim:hover { color: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .window { transition: none; opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .stage, .stage.flip { grid-template-columns: 1fr; gap: 36px; padding: 44px 0; }
  .stage.flip .stage-copy { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .stages, .features, .changelog { padding-top: 110px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding-left: 16px; }
  .hero { padding-top: 64px; }
  h1 { font-size: 40px; }
  h2 { font-size: 31px; }
  h2 br { display: none; }
  .badge { display: none; }
  .window-stage { margin-top: 52px; }
  .app-tabs span:not(.on) { display: none; }
  .newp { display: none; }
  .app-body { padding: 26px 18px 28px; }
  .a-row { grid-template-columns: 82px 1fr; }
  .a-meta { display: none; }
  .a-cards { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
  .grid { grid-template-columns: 1fr; }
  .foot { flex-direction: column; text-align: center; }
  .dl-page { padding: 22px 22px 100px; }
}
