/* Glance pre-launch site. Plain CSS, no build step. */
:root {
  --bg: #08080c;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --dim: rgba(255, 255, 255, 0.6);
  --dimmer: rgba(255, 255, 255, 0.4);
  --accent: #ffd60a;
  --accent-2: #ff9500;
  --violet: #6b5cff;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;          /* clip, not hidden: keeps position: sticky working */
}

/* Soft colour behind everything, plus a faint dot grid. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(700px 500px at 18% -5%, rgba(255, 214, 10, 0.14), transparent 70%),
    radial-gradient(800px 600px at 92% 40%, rgba(255, 149, 0, 0.09), transparent 70%),
    radial-gradient(700px 600px at 55% 105%, rgba(107, 92, 255, 0.10), transparent 70%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.accent { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 8, 12, 0.62);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--dim); }
.nav-links a { padding: 10px 4px; }
.nav-links a.btn { padding: 8px 16px; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--panel-2); }
.btn.primary {
  background: linear-gradient(180deg, #ffe45c, var(--accent));
  color: #111; border-color: transparent;
  box-shadow: 0 8px 28px rgba(255, 214, 10, 0.28);
}
.btn.primary:hover { box-shadow: 0 10px 36px rgba(255, 214, 10, 0.42); }
.btn.small { padding: 8px 16px; font-size: 13.5px; }
.btn { position: relative; }
.btn::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; text-align: center; position: relative; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 214, 10, 0.35); background: rgba(255, 214, 10, 0.07);
  color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.pill-tag svg { width: 11px; height: 11px; }
h1 {
  margin: 22px auto 18px; max-width: 900px;
  font-size: clamp(42px, 8vw, 92px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; color: #fff;
}
h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
h1 .line > span {
  display: block; transform: translateY(112%);
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, 0.6)); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.05s cubic-bezier(.16, .8, .24, 1) .15s forwards;
}
h1 .line:nth-child(2) > span { animation-delay: .32s; }
@keyframes rise { to { transform: none; } }
.lede { max-width: 640px; margin: 0 auto; font-size: clamp(16px, 2vw, 19px); color: var(--dim); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--dimmer); }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  margin: 34px auto 0; font-size: 13.5px; color: var(--dim);
}
.trust span::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

/* ---------- Demo ---------- */
.demo-wrap { margin: 52px auto 0; max-width: 860px; }
.demo {
  position: relative; text-align: left; user-select: none; -webkit-user-select: none;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 90px rgba(255, 214, 10, 0.07);
}
.demo-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); font-size: 12px; color: var(--dimmer);
}
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: block; }
.demo-bar .menubar { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--dim); }
.demo-body { position: relative; aspect-ratio: 16 / 8.6; background: #14141a; overflow: hidden; }

.page { position: absolute; inset: 0; padding: 5% 6%; font-size: clamp(9px, 1.45vw, 13px); line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.page h4 { font-size: 1.35em; color: #fff; margin-bottom: .4em; letter-spacing: -0.01em; }
.page .q { font-weight: 600; color: #fff; margin-bottom: .3em; }
.page p { max-width: 62%; }
.page .mono { font-family: var(--mono); }
.page .err { color: #ff7366; }
.page .ghostcards { position: absolute; right: 6%; top: 14%; width: 24%; display: grid; gap: 10px; }
.page .ghostcards i { display: block; height: 46px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.bars { position: absolute; left: 8%; right: 34%; bottom: 22%; top: 42%; display: flex; align-items: flex-end; gap: 4%; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: rgba(255, 255, 255, 0.22); }
.bars i:last-child { background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 22px rgba(255, 214, 10, 0.4); }

/* The drag box. The huge shadow dims everything outside it. */
.sel {
  position: absolute; border-radius: 12px; opacity: 0; pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.5);
  transition: width 1.1s cubic-bezier(.4, .1, .2, 1), height 1.1s cubic-bezier(.4, .1, .2, 1), opacity .35s ease;
}
.sel .size {
  position: absolute; left: 0; top: calc(100% + 6px); padding: 2px 7px; border-radius: 5px;
  background: rgba(0, 0, 0, 0.75); font: 10px var(--mono); color: #fff; white-space: nowrap;
}
/* The arrow's tip is at (5,3) of a 24 box. The negative margin puts the TIP, not the corner, on the point. */
.cursor { position: absolute; width: 18px; height: 18px; margin: -2.25px 0 0 -3.75px; left: 90%; top: 92%; opacity: 0; z-index: 5; pointer-events: none;
  transition: left .8s cubic-bezier(.4, .1, .2, 1), top .8s cubic-bezier(.4, .1, .2, 1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }

.tag {
  position: absolute; z-index: 4; opacity: 0; transition: opacity .3s; pointer-events: none;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--accent);
  background: rgba(255, 214, 10, 0.13); border: 1px solid rgba(255, 214, 10, 0.45);
}
.answer {
  position: absolute; z-index: 4; opacity: 0; pointer-events: none; transform: scale(.7); transform-origin: top left;
  background: rgba(0, 0, 0, 0.94); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 17px;
  width: 78px; height: 34px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: opacity .3s, transform .35s cubic-bezier(.3, 1.4, .5, 1), width .5s cubic-bezier(.4, .1, .2, 1), height .5s cubic-bezier(.4, .1, .2, 1), border-radius .5s;
}
.answer.show { opacity: 1; transform: scale(1); }
.answer.open { width: 62%; height: var(--h, 58px); border-radius: 18px; }
.answer .wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity .2s; }
.answer .wait i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: bob 1.5s ease-in-out infinite; }
.answer .wait i:nth-child(2) { animation-delay: .17s; } .answer .wait i:nth-child(3) { animation-delay: .34s; }
.answer.open .wait { opacity: 0; }
.answer .txt { padding: 12px 14px; padding-right: 74px; font-size: clamp(9.5px, 1.3vw, 12.5px); line-height: 1.45; color: #fff; opacity: 0; transition: opacity .3s .2s; }
.answer.open .txt { opacity: 1; }
.answer .icons { position: absolute; right: 9px; top: 9px; display: flex; gap: 6px; opacity: 0; transition: opacity .35s; }
.answer.tools .icons { opacity: .85; }
.answer .icons svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copied {
  position: absolute; right: 10px; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700;
  background: #34c759; color: #04240f; opacity: 0; transition: opacity .3s;
}
.answer.done .copied { opacity: 1; }

@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-5px); opacity: 1; } }

.demo-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.22); }
.demo-tabs button {
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--dim); cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1px solid transparent; background: transparent;
  transition: all .18s ease;
}
.demo-tabs button:hover { color: var(--text); background: var(--panel); }
.demo-tabs button.on { color: var(--accent); background: rgba(255, 214, 10, 0.12); border-color: rgba(255, 214, 10, 0.4); }

/* ---------- Sections ---------- */
section { padding: 92px 0 20px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 12px 0 14px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.sub { max-width: 620px; color: var(--dim); font-size: 17px; }
.center { text-align: center; } .center .sub { margin-inline: auto; }

.grid { display: grid; gap: 14px; margin-top: 42px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card::after { content: ""; position: absolute; inset: -6px -6px -12px; }   /* keeps the hover area steady while the card lifts */
.card:hover { translate: 0 -3px; border-color: rgba(255, 214, 10, 0.35); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 40px rgba(255, 214, 10, 0.06); }
.ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  border: 1px solid rgba(255, 214, 10, 0.3); background: linear-gradient(180deg, rgba(255, 214, 10, 0.14), rgba(255, 214, 10, 0.03)); color: var(--accent);
}
.ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--dim); }
.step { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 14px; display: block; letter-spacing: .1em; }

/* ---------- Star states ---------- */
.stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.starcard { text-align: center; padding: 26px 12px 20px; }
.starbox { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.star { width: 38px; height: 38px; overflow: visible; }
.star .body { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 214, 10, 0.6)); transform-origin: 10px 10px; }
.star .ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform-origin: 10px 10px; }
.star .orbit { fill: var(--accent); opacity: 0; transform-origin: 10px 10px; }
.star .spark { fill: var(--accent); opacity: 0; transform-origin: 10px 10px; }
.s-armed .ring { animation: ring 1.4s ease-out infinite; }
.s-armed .body { transform: scale(.68); }
.s-working .body { animation: spin 1.5s linear infinite; transform: scale(.82); }
.s-working .orbit { opacity: 1; animation: spin 0.95s linear infinite; }
.s-done .body { animation: pop 2s ease-out infinite; }
.s-done .spark { animation: spark 2s ease-out infinite; }
.s-failed .body { animation: blink 1.6s steps(1) infinite; }
@keyframes ring { 0% { transform: scale(.4); opacity: .95; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.8); } 20% { transform: scale(1.3); } 45%, 100% { transform: scale(1); } }
@keyframes spark { 0% { transform: scale(.3); opacity: 1; } 45% { opacity: 0; transform: scale(2.2); } 100% { opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 12%, 37% { opacity: .25; } 25%, 50% { opacity: 1; } }
.starcard h3 { font-size: 15px; margin-bottom: 2px; } .starcard p { font-size: 13px; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 520px; margin: 44px auto 0; text-align: center; padding: 38px 34px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 214, 10, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 70px rgba(255, 214, 10, 0.1);
}
.price { font-size: 68px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price small { font-size: 16px; font-weight: 500; color: var(--dim); letter-spacing: 0; margin-left: 6px; }
.price-card ul { list-style: none; text-align: left; margin: 26px auto 28px; max-width: 340px; display: grid; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.82); }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.note { font-size: 13px; color: var(--dimmer); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 0 20px; transition: border-color .2s; }
details[open] { border-color: rgba(255, 214, 10, 0.3); }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 18px; color: var(--dim); font-size: 15px; }

/* ---------- Early access ---------- */
.signup {
  margin-top: 90px; padding: 56px 28px; text-align: center; border-radius: 28px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(255, 214, 10, 0.16), transparent 70%), var(--panel);
  border: 1px solid var(--line);
}
.signup h2 { margin-top: 0; }
form.ea { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
form.ea input {
  width: min(340px, 100%); padding: 13px 18px; border-radius: 999px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--text); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
form.ea input:focus { border-color: rgba(255, 214, 10, 0.6); box-shadow: 0 0 0 4px rgba(255, 214, 10, 0.12); }
.thanks { margin-top: 22px; color: #34c759; font-weight: 600; display: none; }
.err-msg { margin-top: 12px; color: #ff6b5e; font-size: 14px; display: none; }

/* ---------- Footer ---------- */
footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 34px 0 50px; font-size: 14px; color: var(--dim); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding: 64px 0 20px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); text-align: left; margin: 10px 0 8px; background: none; color: var(--text); -webkit-text-fill-color: var(--text); }
.legal h2 { font-size: 21px; margin: 34px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--dim); font-size: 15.5px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.draft { margin: 18px 0 8px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255, 149, 0, 0.5); background: rgba(255, 149, 0, 0.09); color: #ffc078; font-size: 14px; }

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

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .stars { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 54px; }
  section { padding-top: 70px; }
  .g4 { grid-template-columns: 1fr; }
  .stars { grid-template-columns: repeat(2, 1fr); }
  .starcard:last-child { grid-column: 1 / -1; }
  .pill-tag { font-size: 10.5px; letter-spacing: .1em; padding: 7px 12px; }
  .price { font-size: 56px; }
  .answer.open { width: 82%; }
  .page p { max-width: 100%; }
  .page .ghostcards { display: none; }
  .demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px; }
  .demo-tabs button { padding: 10px 2px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =====================================================================
   Scroll story: sticky scenes, scrubbed by scroll position (see app.js)
   ===================================================================== */
.hero-inner { will-change: transform, opacity; }
.hero-logo {
  width: 104px; height: 104px; display: block; margin: 0 auto 28px;
  filter: drop-shadow(0 22px 54px rgba(255, 214, 10, 0.3));
  translate: 0 var(--ly, 0px); animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-9px); } }
.link { color: var(--accent); font-size: 17px; font-weight: 500; padding: 12px 8px; }
.link span { display: inline-block; transition: transform .2s ease; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover span { transform: translateX(3px); }
.scroll-cue { margin: 40px auto 0; width: 24px; height: 38px; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 13px; position: relative; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.9s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

.scrolly { position: relative; padding: 0; }
#story { height: 440vh; }
#manifesto { height: 250vh; }
#star { height: 400vh; }
.sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 0 24px;
}

.captions { position: relative; width: min(900px, 100% - 48px); height: clamp(112px, 19vh, 150px); text-align: center; margin-bottom: 14px; }
.caption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; will-change: opacity, transform; }
.caption h2 { margin: 4px 0 6px; font-size: clamp(32px, 5.6vw, 60px); }
.caption p { color: var(--dim); font-size: clamp(14px, 1.8vw, 18px); }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .16em; font-size: 12px; }

.demo-slot .demo { margin: 0 auto; }
#storyDemo .demo { width: min(900px, calc(100vw - 40px), calc((100vh - 290px) * 1.7)); }
#loopDemo .demo { width: 100%; }

.rail { position: absolute; right: 26px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 10px; }
.rail i { width: 6px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); transition: all .3s ease; }
.rail i.on { background: var(--accent); height: 24px; box-shadow: 0 0 12px rgba(255, 214, 10, 0.6); }
.rail-h { position: static; translate: none; flex-direction: row; margin-top: 18px; }
.rail-h i.on { height: 6px; width: 26px; }

/* Words that light up as you scroll */
.words { max-width: 1000px; width: calc(100% - 48px); font-size: clamp(30px, 5.6vw, 68px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.words .w { color: rgba(255, 255, 255, 0.16); }

/* Numbers */
.stats { padding: 90px 0 0; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 30px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); text-align: left; }
.stat .num { font-size: clamp(46px, 6vw, 74px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(180deg, #ffe45c, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .cap { margin-top: 10px; color: var(--dim); font-size: 14.5px; }

/* Keys pressed in the story */
.kbd { position: absolute; left: 50%; bottom: 9%; translate: -50% 0; display: flex; gap: 10px; opacity: 0; pointer-events: none; z-index: 6; }
.kbd span { min-width: 48px; height: 48px; padding: 0 12px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; font-weight: 500;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 0 26px rgba(255, 214, 10, 0.28); }

/* The scrubbed demo sets every value itself, so nothing should ease. */
.scrub .sel, .scrub .answer, .scrub .cursor, .scrub .tag, .scrub .answer .txt, .scrub .answer .icons, .scrub .copied, .scrub .answer .wait { transition: none !important; }
.scrub .demo-tabs { display: none; }
.scrub .answer { transform-origin: top left; }
.starbox.mini { width: 26px; height: 26px; border-radius: 8px; margin: 0; }
.mb-star, .starbox.mini .star { width: 18px; height: 18px; }   /* the mini star must fit its 26px box, or it sits off center */

/* Big star section */
.big { font-size: clamp(30px, 5vw, 58px); margin: 10px 0 0; }
.menubar-mock {
  display: flex; align-items: center; gap: 14px; width: min(560px, 100% - 48px); margin: 22px auto 0; padding: 7px 16px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); font-size: 12px; color: var(--dim);
}
.mm-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mm-space { flex: 1; }
.bigstar-wrap { width: min(250px, 32vh); height: min(250px, 32vh); margin: 22px auto 6px; display: grid; place-items: center; }
.bigstar { width: 100%; height: 100%; overflow: visible; }
.bigstar .body { filter: drop-shadow(0 0 10px rgba(255, 214, 10, 0.7)); }
.bigstar .ring { stroke-width: .5; }
.starcaps { position: relative; width: min(600px, 100% - 48px); height: 96px; text-align: center; }
.scap { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.scap h3 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.03em; margin-bottom: 6px; }
.scap p { color: var(--dim); font-size: clamp(14px, 1.8vw, 18px); }

/* Steady hover areas and reveal stagger */
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* Reduce Motion: no pinning. Everything is plain, readable and finished. */
.reduce .scrolly { height: auto !important; }
.reduce .sticky { position: static; height: auto; padding: 80px 0 30px; }
.reduce .captions, .reduce .starcaps { height: auto; }
.reduce .caption, .reduce .scap { position: static; opacity: 1 !important; transform: none !important; margin-bottom: 26px; }
.reduce .rail { display: none; }
.reduce h1 .line > span { transform: none; animation: none; }
.reduce .hero { min-height: 0; }

@media (max-width: 960px) {
  .statgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #story { height: 380vh; } #star { height: 340vh; } #manifesto { height: 220vh; }
  .rail:not(.rail-h) { display: none; }
  .hero-logo { width: 80px; height: 80px; }
  .hero { padding-top: 92px; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  #storyDemo .demo { width: calc(100vw - 32px); }
  .kbd span { min-width: 40px; height: 40px; font-size: 17px; }
}

/* Cards: reveal uses transform, the hover lift uses translate, so neither overrides the other.
   Stagger delay applies to opacity and transform only, never to the hover. */
.card.reveal { transition: opacity .7s ease, transform .7s ease, translate .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card.reveal[data-d="1"] { transition-delay: .08s, .08s, 0s, 0s, 0s; }
.card.reveal[data-d="2"] { transition-delay: .16s, .16s, 0s, 0s, 0s; }
.card.reveal[data-d="3"] { transition-delay: .24s, .24s, 0s, 0s, 0s; }
.bigstar .orbit { r: .85px; }
