/* ═════════════════════════════════════════════
   FocusWatch — landing page
   Emerald = focus · Rose = blocked · Serif = voice · Mono = machine
   ═════════════════════════════════════════════ */

:root {
  --bg: #050706;
  --bg-2: #0a0e0c;
  --panel: #0d1311;
  --panel-2: #121a17;
  --line: #1a2420;
  --line-2: #25322d;
  --ink: #eeebe4;
  --ink-2: #a3aba5;
  --ink-3: #66716b;
  --em: #34d399;
  --em-2: #10b981;
  --em-glow: rgba(52, 211, 153, 0.18);
  --rose: #fb7185;
  --rose-2: #f43f5e;
  --amber: #fbbf24;
  --cyan: #22d3ee;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1200px;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--em); color: #04130d; }
a { color: var(--em); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--em); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }
code, kbd, .mono { font-family: var(--mono); }
code {
  font-size: 0.86em; padding: 0.12em 0.45em; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-rose { color: var(--rose); }
.c-em { color: var(--em); }

/* ───────── atmosphere ───────── */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.22; mix-blend-mode: screen;
  animation: drift 28s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: #10b981; top: -30vmax; right: -15vmax; }
.aurora i:nth-child(2) { background: #0e7490; bottom: -35vmax; left: -20vmax; opacity: 0.14; animation-duration: 34s; animation-delay: -8s; }
.aurora i:nth-child(3) { background: #065f46; top: 30%; left: 40%; width: 40vmax; height: 40vmax; opacity: 0.12; animation-duration: 40s; animation-delay: -16s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vmax, 4vmax) scale(1.12); }
  100% { transform: translate(5vmax, -3vmax) scale(0.95); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; }
.progress span {
  display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--em-2), var(--em), var(--cyan));
  box-shadow: 0 0 12px var(--em);
}

/* ───────── buttons ───────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.9em 1.5em; border-radius: 999px;
  background: var(--em); color: #03120c; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; overflow: hidden; isolation: isolate;
  box-shadow: 0 12px 34px -12px rgba(52, 211, 153, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: box-shadow 0.3s var(--ease), background 0.2s, border-color 0.2s;
  will-change: transform;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { text-decoration: none; box-shadow: 0 0 0 6px var(--em-glow), 0 18px 44px -12px rgba(52, 211, 153, 0.85); }
.btn:hover::after { transform: translateX(120%); transition: transform 0.8s var(--ease); }
.btn span[aria-hidden] { transition: transform 0.3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-ghost { background: rgba(255, 255, 255, 0.02); color: var(--ink); border-color: var(--line-2); box-shadow: none; backdrop-filter: blur(6px); }
.btn-ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(52, 211, 153, 0.18) 50%, transparent 70%); }
.btn-ghost:hover { border-color: var(--em); box-shadow: none; }
.btn-small { padding: 0.55em 1.1em; font-size: 0.88rem; }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.85rem var(--gut);
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5, 7, 6, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: rgba(26, 36, 32, 0.8); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 0.3rem; padding: 0.3rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(13, 19, 17, 0.6); backdrop-filter: blur(10px); }
.nav-links a { color: var(--ink-2); font-size: 0.9rem; font-weight: 600; padding: 0.4em 0.95em; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: var(--panel-2); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; }
.star-pill {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42em 0.5em 0.42em 0.8em;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-size: 0.86rem; font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.star-pill:hover { text-decoration: none; border-color: var(--amber); background: rgba(251, 191, 36, 0.06); }
.star-pill svg { width: 16px; height: 16px; }
.star-count { font-family: var(--mono); font-size: 0.8rem; padding: 0.1em 0.55em; border-radius: 999px; background: var(--panel-2); color: var(--amber); }

/* ───────── layout ───────── */
.section, .hero, .cta { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head.center { text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--em);
}
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--em); }
h2 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; }
h2 em { color: var(--em); }
.section-sub { margin-top: 1rem; color: var(--ink-2); font-size: 1.05rem; }

/* split headings: words rise in */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.split.is-in .w > span { transform: none; }

/* ───────── hero ───────── */
.hero { text-align: center; padding-top: clamp(3rem, 8vw, 6rem); }
.intro { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d) * 0.12s + 0.05s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.42em 1em; margin-bottom: 1.8rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(13, 19, 17, 0.6);
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
}
.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--em); animation: pulse 2s infinite; flex: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.hero-title .line { display: block; }
.rotator {
  position: relative; display: inline-block; vertical-align: bottom;
  font-style: italic; color: var(--em); text-align: left;
  transition: width 0.6s var(--ease); white-space: nowrap;
}
.rot-word { display: inline-block; transition: transform 0.55s var(--ease), opacity 0.4s, color 0.3s, filter 0.4s; }
.rot-word.enter { transform: translateY(60%) rotateX(-60deg); opacity: 0; filter: blur(8px); }
.rot-word.struck { color: var(--rose); }
.rot-word.leave { transform: translateY(-50%) rotateX(50deg); opacity: 0; filter: blur(8px); }
.rot-strike {
  position: absolute; left: -2%; right: -2%; top: 54%; height: 0.075em; border-radius: 99px;
  background: var(--rose); box-shadow: 0 0 24px rgba(251, 113, 133, 0.7);
  transform: scaleX(0) rotate(-3deg); transform-origin: left;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.rot-strike.on { transform: scaleX(1) rotate(-3deg); }
.rot-strike.off { opacity: 0; }
.period { color: var(--ink); }
.hero-sub { margin: 1.8rem auto 0; max-width: 34ch; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2.2rem; }

/* stage + app mock */
.stage { position: relative; margin: clamp(3rem, 7vw, 5rem) auto 0; max-width: 980px; perspective: 1600px; }
.app {
  position: relative; text-align: left;
  border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(18, 26, 23, 0.96), rgba(9, 13, 11, 0.96));
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.06), 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 0 160px -50px rgba(16, 185, 129, 0.55);
  transform: rotateX(calc(var(--tilt, 1) * 18deg)) scale(calc(1 - var(--tilt, 1) * 0.06));
  transform-origin: 50% 0;
  transition: transform 0.15s linear;
  overflow: hidden;
}
.app::before {
  content: ''; position: absolute; inset: 0 15% auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--em), transparent);
}
.app-bar { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); background: rgba(5, 7, 6, 0.5); }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; }
.lights i:nth-child(1) { background: #ff5f57; opacity: 0.8; }
.lights i:nth-child(2) { background: #febc2e; opacity: 0.8; }
.lights i:nth-child(3) { background: #28c840; opacity: 0.8; }
.app-title { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.85rem; color: var(--ink-2); }
.app-live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.72rem; color: var(--em); }
.app-body { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.app-timer { padding: 1.8rem; border-right: 1px solid var(--line); display: grid; align-content: center; gap: 1.3rem; }
.ring-wrap { position: relative; width: min(220px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; }
.ring-track { stroke: var(--line); stroke-width: 7; }
.ring-ticks { stroke: var(--line-2); stroke-width: 3; stroke-dasharray: 1 9.05; }
.ring-progress { stroke: var(--em); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.7)); transition: stroke-dashoffset 1s linear; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-time { font-family: var(--mono); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ring-sub { font-size: 0.75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.15em; font-family: var(--mono); }
.label { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.app-task { padding: 0.85rem 1rem; border-radius: 12px; background: rgba(5, 7, 6, 0.6); border: 1px solid var(--line); text-align: center; }
.app-task b { display: block; margin-top: 0.25rem; font-size: 0.98rem; }
.app-sites { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; }
.sites-head { display: flex; justify-content: space-between; margin-bottom: 0.7rem; }
.sites-head b { font-size: 0.85rem; margin-left: 0.3rem; display: inline-block; }
.sites-head b.bump { animation: bump 0.5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.8); } }
.app-sites ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.app-sites li {
  position: relative; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.62rem 0.8rem; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(5, 7, 6, 0.5); font-family: var(--mono); font-size: 0.84rem; color: var(--ink-2);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.fav { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-size: 0.7rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.state {
  margin-left: auto; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2em 0.6em; border-radius: 5px; color: var(--rose); background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.25);
}
.app-sites li.is-allowed .state { color: var(--em); background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.3); }
.app-sites li.hit { border-color: rgba(251, 113, 133, 0.6); background: rgba(251, 113, 133, 0.08); transform: translateX(6px); animation: shake 0.45s; }
.app-sites li.hit .state { animation: stamp 0.5s var(--spring); background: var(--rose); color: #1a0508; }
.app-sites li.pass { border-color: rgba(52, 211, 153, 0.6); background: rgba(52, 211, 153, 0.07); }
@keyframes shake { 20% { transform: translateX(2px); } 40% { transform: translateX(10px); } 60% { transform: translateX(3px); } 80% { transform: translateX(8px); } }
@keyframes stamp { 0% { transform: scale(2.2) rotate(-8deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.bars { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: flex-end; gap: 5px; height: 72px; }
.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--em), rgba(16, 185, 129, 0.25)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.bars i:nth-child(odd) { animation-delay: 0.1s; } .bars i:nth-child(3n) { animation-delay: 0.25s; }
@keyframes grow { from { transform: scaleY(0); } }
.toast {
  position: absolute; left: 50%; bottom: 1.2rem; z-index: 2;
  display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.1rem;
  border-radius: 12px; border: 1px solid rgba(251, 113, 133, 0.4);
  background: rgba(20, 8, 11, 0.92); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink); white-space: nowrap;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(251, 113, 133, 0.5);
  transform: translate(-50%, 160%); opacity: 0;
  transition: transform 0.5s var(--spring), opacity 0.3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.ok { border-color: rgba(52, 211, 153, 0.4); background: rgba(6, 20, 14, 0.92); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(52, 211, 153, 0.5); }
.float-chip {
  position: absolute; z-index: 3; padding: 0.55rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(13, 19, 17, 0.85); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-2); white-space: nowrap;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  animation: bob 6s ease-in-out infinite;
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
}
.chip-a { top: 20%; right: calc(100% - 18px); }
.chip-b { top: 50%; left: calc(100% - 18px); animation-delay: -2s; }
.chip-c { bottom: -1.2rem; left: 12%; animation-delay: -4s; }
@keyframes bob { 50% { margin-top: -12px; } }

/* ───────── marquee ───────── */
.marquee { margin-top: clamp(4rem, 8vw, 6rem); padding-block: 1.6rem; border-block: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; gap: 3.5rem; padding-right: 3.5rem; }
.marquee-row span {
  position: relative; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--ink-3); white-space: nowrap;
}
.marquee-row span::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 55%; height: 3px; border-radius: 3px;
  background: var(--rose); transform: rotate(-4deg); box-shadow: 0 0 14px rgba(251, 113, 133, 0.6);
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ───────── story (pinned) ───────── */
.story { position: relative; height: 420vh; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 600px;
  width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem);
}
.beats { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 0.4rem; }
.beats li {
  display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; column-gap: 0.4rem;
  padding: 0.8rem 1rem; border-radius: 14px; border: 1px solid transparent;
  color: var(--ink-3); transition: all 0.5s var(--ease);
}
.beats li span { font-family: var(--mono); font-size: 0.78rem; }
.beats li b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.beats li small { grid-column: 2; font-size: 0.92rem; max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s var(--ease); }
.beats li.is-on { color: var(--ink); border-color: var(--line-2); background: rgba(13, 19, 17, 0.7); }
.beats li.is-on span { color: var(--em); }
.beats li.is-on small { max-height: 2em; opacity: 1; color: var(--ink-2); }
.beats li.is-done { color: var(--ink-2); }
.story-bar { margin-top: 1.6rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.story-bar span { display: block; height: 100%; background: var(--em); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--em); }

.screen {
  position: relative; aspect-ratio: 5 / 4; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(500px 300px at 70% 0%, rgba(16, 185, 129, 0.12), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 120px -50px rgba(16, 185, 129, 0.45);
}
.scene {
  position: absolute; inset: 0; padding: clamp(1.4rem, 4vw, 2.6rem);
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(6px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.6s;
  pointer-events: none;
}
.scene.is-on { opacity: 1; transform: none; filter: none; }
.scene-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--em); }

/* scene 1: plan */
.field {
  margin-top: 1rem; padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px solid var(--em);
  background: rgba(5, 7, 6, 0.7); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; min-height: 3.6rem;
  box-shadow: 0 0 0 5px var(--em-glow);
}
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--em); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.chips span { padding: 0.55em 1.1em; border-radius: 10px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.85rem; color: var(--ink-2); transition: all 0.4s var(--ease); }
.scene-plan.is-on .chips .pick { animation: pick 0.5s var(--spring) 1.6s both; }
@keyframes pick { from { background: transparent; color: var(--ink-2); transform: scale(1); } 50% { transform: scale(1.12); } to { background: var(--ink); color: var(--bg); border-color: var(--ink); } }
.toggle-row { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; color: var(--ink-2); font-size: 0.95rem; }
.toggle { width: 40px; height: 22px; border-radius: 99px; background: var(--em); position: relative; flex: none; }
.toggle i { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #03120c; }
.start {
  margin-top: 1.5rem; align-self: flex-start; font: inherit; font-weight: 800; padding: 0.85em 1.6em; border-radius: 12px;
  border: 0; background: var(--em); color: #03120c; cursor: default;
}
.scene-plan.is-on .start { animation: ping 1.6s var(--ease) 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 100% { box-shadow: 0 0 0 18px rgba(52, 211, 153, 0); } }

/* scene 2: block */
.mini-browser { border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: var(--bg); height: 100%; display: flex; flex-direction: column; }
.mini-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.mini-url { flex: 1; padding: 0.3rem 0.8rem; border-radius: 99px; background: var(--bg); font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); }
.mini-page { position: relative; flex: 1; padding: 1rem; overflow: hidden; }
.yt-skeleton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.yt-skeleton i { aspect-ratio: 16 / 10; border-radius: 8px; background: linear-gradient(110deg, var(--panel-2) 30%, var(--line-2) 50%, var(--panel-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.slam {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.5rem; text-align: center;
  background: rgba(7, 4, 6, 0.94); border-top: 3px solid var(--rose);
  opacity: 0; transform: scale(1.4);
}
.scene-block.is-on .slam { animation: slam 0.55s var(--spring) 0.9s forwards; }
.scene-block.is-on .mini-browser { animation: jolt 0.4s ease 1.05s; }
@keyframes slam { to { opacity: 1; transform: none; } }
@keyframes jolt { 25% { transform: translate(-6px, 3px) rotate(-0.6deg); } 50% { transform: translate(5px, -2px) rotate(0.5deg); } 75% { transform: translate(-3px, 1px); } }
.slam-tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); padding: 0.3em 0.8em; border: 1px solid rgba(251, 113, 133, 0.4); border-radius: 6px; }
.slam b { font-family: var(--mono); font-size: clamp(1.4rem, 3vw, 2rem); }
.slam small { color: var(--ink-2); }
.slam-btn { margin-top: 0.6rem; padding: 0.6em 1.2em; border-radius: 10px; background: var(--em); color: #03120c; font-weight: 800; font-size: 0.88rem; }

/* scene 3: check-in */
.scene-check h3 { margin-top: 0.8rem; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; }
.answers { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.ans { padding: 0.8em 1.4em; border-radius: 12px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.95rem; color: var(--ink-2); background: rgba(5, 7, 6, 0.6); }
.scene-check.is-on .ans-yes { animation: choose 0.5s var(--spring) 1.5s forwards; }
@keyframes choose { 50% { transform: scale(0.92); } to { background: var(--em); color: #03120c; border-color: var(--em); box-shadow: 0 0 40px -6px var(--em); } }
.cursor { position: absolute; width: 26px; left: 70%; top: 85%; opacity: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)); }
.scene-check.is-on .cursor { animation: cursor 1.6s var(--ease) 0.2s forwards; }
@keyframes cursor {
  0% { opacity: 0; left: 70%; top: 85%; }
  20% { opacity: 1; }
  80% { left: calc(var(--cx, 12%) ); top: var(--cy, 62%); transform: scale(1); }
  90% { transform: scale(0.8); }
  100% { opacity: 1; left: var(--cx, 12%); top: var(--cy, 62%); transform: scale(1); }
}
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute; left: var(--ox, 18%); top: var(--oy, 64%); width: 8px; height: 12px; border-radius: 2px; background: var(--c);
  opacity: 0; animation: burst 1.3s var(--ease) forwards; animation-delay: 1.7s;
}
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

/* scene 4: review */
.review-top { display: flex; justify-content: space-between; align-items: flex-end; }
.score { display: block; font-family: var(--serif); font-size: clamp(4rem, 9vw, 6.5rem); line-height: 0.9; color: var(--em); font-weight: 400; }
.streak { padding: 0.5em 1em; border-radius: 99px; border: 1px solid rgba(251, 191, 36, 0.35); color: var(--amber); font-family: var(--mono); font-size: 0.85rem; background: rgba(251, 191, 36, 0.06); }
.review-bars { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.6rem; align-items: end; margin-top: 1.4rem; max-height: 55%; }
.review-bars > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.4rem; }
.review-bars i {
  width: 100%; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--em) 0 72%, var(--rose) 72% 100%);
  transform-origin: bottom; transform: scaleY(0); transition: transform 0.9s var(--spring);
}
.review-bars .today i { box-shadow: 0 0 24px -4px var(--em); }
.review-bars span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.scene-review.is-on .review-bars i { transform: scaleY(1); }
.scene-review.is-on .review-bars > div:nth-child(2) i { transition-delay: 0.08s; }
.scene-review.is-on .review-bars > div:nth-child(3) i { transition-delay: 0.16s; }
.scene-review.is-on .review-bars > div:nth-child(4) i { transition-delay: 0.24s; }
.scene-review.is-on .review-bars > div:nth-child(5) i { transition-delay: 0.32s; }
.scene-review.is-on .review-bars > div:nth-child(6) i { transition-delay: 0.4s; }
.scene-review.is-on .review-bars > div:nth-child(7) i { transition-delay: 0.48s; }
.review-legend { display: flex; gap: 1.2rem; margin-top: 1rem; font-size: 0.8rem; color: var(--ink-3); }
.review-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 0.4rem; }
.lg-em { background: var(--em); } .lg-rose { background: var(--rose); }

/* ───────── spotlight cards ───────── */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(52, 211, 153, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.spot:hover::before { opacity: 1; }

/* ───────── try it ───────── */
.browser {
  max-width: 980px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--panel);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 120px -60px rgba(16, 185, 129, 0.5);
}
.browser.jolt { animation: jolt 0.4s ease; }
.browser-bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 1rem; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.address { flex: 1; display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-3); transition: border-color 0.2s, box-shadow 0.2s; }
.address:focus-within { border-color: var(--em); box-shadow: 0 0 0 4px var(--em-glow); }
.address svg { width: 13px; height: 13px; flex: none; }
.address input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font-family: var(--mono); font-size: 0.88rem; }
.address input::placeholder { color: var(--ink-3); }
.ext-icon { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.ext-icon::after { content: ''; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--em); border: 2px solid var(--panel-2); }
.quick-sites { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.quick-sites button {
  font-family: var(--mono); font-size: 0.8rem; padding: 0.45em 1em; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer;
  transition: all 0.25s var(--ease);
}
.quick-sites button:hover { color: var(--ink); border-color: var(--em); transform: translateY(-2px); }
.quick-sites button.is-active { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.viewport {
  position: relative; min-height: 400px; display: grid; place-items: center; padding: 2rem; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.06), transparent 60%), var(--bg-2);
}
.viewport > * { animation: vpIn 0.5s var(--ease); }
@keyframes vpIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } }
.vp-idle { text-align: center; color: var(--ink-3); display: grid; justify-items: center; gap: 1.2rem; }
.radar { position: relative; width: 110px; height: 110px; border-radius: 50%; border: 1px solid var(--line-2); background: repeating-radial-gradient(circle, transparent 0 17px, var(--line) 17px 18px); overflow: hidden; }
.radar i { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(52, 211, 153, 0.45), transparent 25%); animation: spin 2.4s linear infinite; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.vp-loading { font-family: var(--mono); color: var(--ink-3); }
.vp-loading::after { content: '▍'; color: var(--em); animation: blink 0.8s steps(1) infinite; }
.blocked {
  width: min(520px, 100%); padding: 1.8rem; border-radius: 18px; position: relative; overflow: hidden;
  background: #07090b; border: 1px solid rgba(251, 113, 133, 0.4);
  box-shadow: 0 0 90px -25px rgba(251, 113, 133, 0.6);
  animation: slamIn 0.55s var(--spring) !important;
}
@keyframes slamIn { from { opacity: 0; transform: scale(1.35); } }
.blocked::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--rose), var(--em), var(--rose)); }
.blocked-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.blocked-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); background: rgba(251, 113, 133, 0.08); border: 1px solid rgba(251, 113, 133, 0.3); padding: 0.25em 0.7em; border-radius: 6px; }
.blocked h3 { margin-top: 0.6rem; font-family: var(--mono); font-size: 1.4rem; font-weight: 600; }
.blocked-count { text-align: right; font-family: var(--mono); }
.blocked-count span { display: block; font-size: 0.65rem; color: var(--ink-3); letter-spacing: 0.1em; }
.blocked-count b { font-size: 1.5rem; color: var(--rose); font-weight: 600; display: inline-block; animation: stamp 0.5s var(--spring) 0.2s both; }
.blocked-goal { margin-top: 1.3rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.blocked-goal span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--em); text-transform: uppercase; }
.blocked-goal p { margin-top: 0.35rem; font-weight: 600; }
.blocked-actions { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.blocked-actions button { font: inherit; font-weight: 700; font-size: 0.92rem; padding: 0.85em; border-radius: 11px; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s var(--ease); }
.blocked-actions button:hover { transform: translateY(-2px); }
.b-back { background: var(--em); color: #03120c; }
.b-unlock { background: transparent; color: var(--ink-2); border-color: var(--line-2) !important; font-weight: 500 !important; }
.allowed { width: min(520px, 100%); text-align: center; }
.allowed-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem; padding: 0.35em 0.9em; border-radius: 999px; color: var(--em); background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.3); }
.allowed h3 { margin-top: 1rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem); }
.allowed p { margin-top: 0.5rem; color: var(--ink-2); }
.eq { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 44px; margin-top: 1.4rem; }
.eq i, .viz-eq i { width: 5px; border-radius: 3px; background: var(--em); animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2n), .viz-eq i:nth-child(2n) { animation-delay: -0.3s; }
.eq i:nth-child(3n), .viz-eq i:nth-child(3n) { animation-delay: -0.6s; }
.eq i:nth-child(5n), .viz-eq i:nth-child(5n) { animation-delay: -0.15s; animation-duration: 0.7s; }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.doc-lines { margin: 1.4rem auto 0; width: 70%; display: grid; gap: 8px; }
.doc-lines i { height: 8px; border-radius: 4px; background: var(--line-2); transform-origin: left; animation: grow-x 0.8s var(--ease) both; }
.doc-lines i:nth-child(2) { width: 85%; animation-delay: 0.1s; } .doc-lines i:nth-child(3) { width: 92%; animation-delay: 0.2s; } .doc-lines i:nth-child(4) { width: 60%; animation-delay: 0.3s; }
@keyframes grow-x { from { transform: scaleX(0); } }

/* ───────── video ───────── */
.video-section { padding-top: 0; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 980px; margin: 0 auto; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(700px 360px at 50% 120%, rgba(16, 185, 129, 0.28), transparent 70%), repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.015) 22px 23px), var(--panel);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.2rem; text-align: center; }
.play {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  color: #03120c; background: var(--em);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5), 0 20px 50px -10px rgba(52, 211, 153, 0.7);
  animation: ripple 2.4s var(--ease) infinite;
}
.play svg { width: 36px; height: 36px; margin-left: 5px; }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45), 0 20px 50px -10px rgba(52, 211, 153, 0.7); } 100% { box-shadow: 0 0 0 40px rgba(52, 211, 153, 0), 0 20px 50px -10px rgba(52, 211, 153, 0.7); } }
.video-soon { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.video-soon em { color: var(--ink-3); }

/* ───────── feature tiles ───────── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile {
  padding: 1.4rem; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(13, 19, 17, 0.4));
  transition: border-color 0.3s, transform 0.5s var(--ease);
  overflow: hidden;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tile-wide { grid-column: span 2; }
.tile h3 { margin-top: 1.2rem; font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; }
.tile p { margin-top: 0.3rem; color: var(--ink-2); font-size: 0.93rem; }
.viz { height: 120px; border-radius: 12px; background: rgba(5, 7, 6, 0.6); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }

.viz-promise { display: flex; justify-content: center; gap: 0.6rem; }
.viz-promise span { padding: 0.6em 1.1em; border-radius: 10px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.85rem; color: var(--ink-3); animation: cycle 4.5s infinite; }
.viz-promise span:nth-child(2) { animation-delay: 1.5s; } .viz-promise span:nth-child(3) { animation-delay: 3s; }
.viz-promise span:nth-child(1) { --on: var(--em); } .viz-promise span:nth-child(2) { --on: var(--amber); } .viz-promise span:nth-child(3) { --on: var(--rose); }
@keyframes cycle { 0%, 30% { color: var(--on); border-color: var(--on); box-shadow: 0 0 24px -6px var(--on); transform: translateY(-3px); } 34%, 100% { color: var(--ink-3); border-color: var(--line-2); box-shadow: none; transform: none; } }

.viz-keys { display: grid; justify-items: center; align-content: center; gap: 0.7rem; }
.keyrow { display: flex; gap: 0.4rem; }
kbd {
  display: inline-grid; place-items: center; min-width: 2.4em; padding: 0.4em 0.6em; font-size: 0.85rem; color: var(--ink);
  background: linear-gradient(180deg, var(--panel-2), var(--bg)); border: 1px solid var(--line-2); border-bottom-width: 4px; border-radius: 8px;
  transition: transform 0.1s, border-bottom-width 0.1s, color 0.1s;
}
kbd.down { transform: translateY(3px); border-bottom-width: 1px; color: var(--em); border-color: var(--em); }
.key-label { font-family: var(--mono); font-size: 0.75rem; color: var(--em); transition: opacity 0.3s; }

.viz-eq { display: flex; align-items: flex-end; justify-content: center; gap: 5px; padding-bottom: 28px; }
.viz-eq i { width: 7px; height: 30%; }

.viz-heat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; padding: 12px; align-content: center; place-items: stretch; }
.viz-heat i { aspect-ratio: 1; border-radius: 3px; background: var(--line); transition: background 0.8s, box-shadow 0.8s; }
.viz-heat i[data-l='1'] { background: rgba(52, 211, 153, 0.25); }
.viz-heat i[data-l='2'] { background: rgba(52, 211, 153, 0.5); }
.viz-heat i[data-l='3'] { background: var(--em); box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }

.viz-tabs { display: grid; gap: 0.8rem; justify-items: center; align-content: center; }
.tabstrip { display: flex; gap: 4px; }
.tabstrip i { width: 34px; height: 18px; border-radius: 6px 6px 0 0; background: var(--line-2); animation: tabflick 2.5s steps(1) infinite; }
.tabstrip i:nth-child(2) { animation-delay: 0.25s; } .tabstrip i:nth-child(3) { animation-delay: 0.5s; }
.tabstrip i:nth-child(4) { animation-delay: 0.75s; } .tabstrip i:nth-child(5) { animation-delay: 1s; }
@keyframes tabflick { 0%, 9% { background: var(--em); } 10%, 100% { background: var(--line-2); } }
.nudge { font-family: var(--mono); font-size: 0.68rem; color: var(--amber); padding: 0.4em 0.8em; border-radius: 8px; border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.06); animation: nudge 2.5s infinite; }
@keyframes nudge { 0%, 45% { opacity: 0; transform: translateY(6px); } 55%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.viz-widget { background: repeating-linear-gradient(0deg, transparent 0 14px, var(--line) 14px 15px), rgba(5, 7, 6, 0.6); }
.widget { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--em); font-family: var(--mono); font-size: 1.1rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.8), 0 0 30px -10px var(--em); animation: hover 4s ease-in-out infinite; }
@keyframes hover { 50% { transform: translate(14px, -8px); } }

.ai-btn { padding: 0.7em 1.3em; border-radius: 10px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.85rem; color: var(--ink); background: var(--panel-2); transition: all 0.3s var(--spring); }
.ai-btn.done { background: var(--em); color: #03120c; border-color: var(--em); transform: scale(1.06); }

.viz-local { display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: 2rem; }
.viz-local .pc, .viz-local .cloud { display: grid; justify-items: center; gap: 0.2rem; }
.viz-local span { font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); }
.viz-local .cloud { opacity: 0.35; filter: grayscale(1); }
.viz-local .pc { animation: glowpc 3s ease-in-out infinite; }
@keyframes glowpc { 50% { filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.6)); } }
.cut { position: relative; width: clamp(80px, 18vw, 180px); height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.cut i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--em); box-shadow: 0 0 10px var(--em); animation: bounceback 2.4s var(--ease) infinite; }
.cut b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 0.9rem; color: var(--rose); background: var(--bg); padding: 0 0.3rem; font-family: var(--mono); }
@keyframes bounceback { 0% { left: 0; } 45% { left: 42%; } 55% { left: 42%; } 100% { left: 0; } }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(3rem, 6vw, 4.5rem); border-block: 1px solid var(--line); }
.stats > div { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--ink); }
.stats span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ───────── why ───────── */
.why { text-align: center; }
.why .kicker { justify-content: center; }
.pull { margin: 0 auto; max-width: 20ch; font-family: var(--serif); font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: 1.02; letter-spacing: -0.025em; }
.pull .word { color: var(--line-2); transition: color 0.4s; }
.pull .word.lit { color: var(--ink); }
.pull .word.lit.hl { color: var(--em); font-style: italic; }
.principles { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: clamp(2.4rem, 5vw, 3.5rem); }
.principles span { padding: 0.6em 1.2em; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 0.95rem; background: rgba(13, 19, 17, 0.6); transition: all 0.3s var(--ease); }
.principles span:hover { border-color: var(--em); color: var(--ink); transform: translateY(-2px); }

/* ───────── updates ───────── */
.updates { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1rem; align-items: stretch; }
.milestones { display: grid; gap: 1rem; }
.ms { padding: 1.3rem 1.4rem; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1rem; align-items: baseline; transition: border-color 0.3s; }
.ms:hover { border-color: var(--line-2); }
.ms time { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); grid-row: span 2; }
.ms h3 { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ms p { color: var(--ink-2); font-size: 0.92rem; margin-top: 0.15rem; }
.ms:first-child { border-color: rgba(52, 211, 153, 0.3); background: radial-gradient(400px 120px at 0% 0%, rgba(16, 185, 129, 0.12), transparent 70%), var(--panel); }
.badge { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; padding: 0.15em 0.6em; border-radius: 6px; color: var(--em); border: 1px solid rgba(52, 211, 153, 0.35); }
.commits { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.commits-head { display: flex; justify-content: space-between; align-items: center; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.commits-head .mono { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.commits ul { list-style: none; margin: 0; padding: 0; }
.commits li { border-bottom: 1px solid var(--line); animation: vpIn 0.5s var(--ease) both; }
.commits li:nth-child(2) { animation-delay: 0.08s; } .commits li:nth-child(3) { animation-delay: 0.16s; } .commits li:nth-child(4) { animation-delay: 0.24s; } .commits li:nth-child(5) { animation-delay: 0.32s; }
.commits li:last-child { border-bottom: 0; }
.commits li a { display: block; padding: 0.85rem 1.2rem; color: var(--ink); transition: background 0.2s, padding 0.3s var(--ease); }
.commits li a:hover { background: var(--panel-2); text-decoration: none; padding-left: 1.5rem; }
.commit-msg { display: block; font-size: 0.92rem; font-weight: 600; }
.commit-meta { display: block; margin-top: 0.15rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.commit-loading { padding: 1rem 1.2rem; font-size: 0.82rem; color: var(--ink-3); }

/* ───────── install ───────── */
.install-card { max-width: 900px; margin: 0 auto; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); }
.tabs { position: relative; display: inline-flex; padding: 0.3rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 1.4rem; }
.tab-glider { position: absolute; top: 0.3rem; bottom: 0.3rem; left: 0; border-radius: 999px; background: var(--ink); transition: transform 0.45s var(--spring), width 0.45s var(--spring); }
.tabs button { position: relative; z-index: 1; font: inherit; font-weight: 700; font-size: 0.92rem; padding: 0.6em 1.3em; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: color 0.3s; }
.tabs button[aria-selected='true'] { color: var(--bg); }
.tab-panel { animation: vpIn 0.45s var(--ease); }
.tab-panel > p { color: var(--ink-2); margin-bottom: 1.1rem; }
.code { position: relative; border-radius: 14px; background: #040605; border: 1px solid var(--line-2); }
.code pre { margin: 0; padding: 3.2rem 1.3rem 1.3rem; max-height: 320px; overflow: auto; font-family: var(--mono); font-size: 0.8rem; line-height: 1.7; color: #c3ccc6; white-space: pre-wrap; word-break: break-word; }
.copy { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 1; font-family: var(--mono); font-size: 0.75rem; padding: 0.45em 0.9em; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); cursor: pointer; transition: all 0.25s var(--spring); }
.copy:hover { border-color: var(--em); color: var(--em); }
.copy.is-copied { background: var(--em); color: #03120c; border-color: var(--em); transform: scale(1.06); }
.manual { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; counter-reset: m; }
.manual li { position: relative; padding-left: 3.2rem; counter-increment: m; }
.manual li::before { content: counter(m); position: absolute; left: 0; top: -0.15rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--em); color: #03120c; font-family: var(--mono); font-weight: 600; font-size: 0.9rem; }
.manual h3 { font-weight: 800; font-size: 1.08rem; margin-bottom: 0.6rem; }
.manual p { color: var(--ink-2); }

/* ───────── faq ───────── */
.faq { padding-top: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.8rem); cursor: pointer; list-style: none; transition: color 0.2s; }
.faq summary:hover { color: var(--em); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 1rem; color: var(--em); transition: transform 0.4s var(--spring), background 0.3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: rgba(52, 211, 153, 0.1); }
.faq details p { padding: 0 0 1.3rem; color: var(--ink-2); animation: vpIn 0.4s var(--ease); }

/* ───────── cta ───────── */
.cta {
  position: relative; overflow: hidden; text-align: center;
  margin-block: clamp(2rem, 6vw, 4rem) clamp(4rem, 9vw, 6rem);
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 32px; border: 1px solid rgba(52, 211, 153, 0.25);
  background: radial-gradient(800px 360px at 50% 0%, rgba(16, 185, 129, 0.25), transparent 70%), var(--panel);
}
.cta-ring {
  position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(52, 211, 153, 0.07) 0 1deg, transparent 1deg 6deg);
  mask-image: radial-gradient(circle, transparent 30%, #000 31%, #000 60%, transparent 70%);
  animation: spin 90s linear infinite;
}
.cta h2 { font-size: clamp(2.8rem, 8vw, 6rem); }
.cta .hero-ctas { margin-top: 2.4rem; }

/* ───────── footer ───────── */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; width: min(var(--max), 100% - 2 * var(--gut)); margin: 0 auto; padding: 2rem 0 2.6rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9rem; }
.footer nav { display: flex; gap: 1.5rem; }
.footer nav a { color: var(--ink-2); }

/* ───────── scroll reveal ───────── */
.reveal-up { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: none; }
.tile.reveal-up.is-in:hover { transform: translateY(-4px); }

/* ───────── responsive ───────── */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .updates { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .story { height: auto; }
  .story-sticky { position: relative; height: auto; min-height: 0; grid-template-columns: 1fr; padding-block: clamp(4rem, 9vw, 6rem); }
  .beats { display: none; }
  .story-bar { display: none; }
  .screen { aspect-ratio: auto; display: grid; gap: 1rem; background: none; border: 0; box-shadow: none; overflow: visible; }
  .scene { position: relative; inset: auto; min-height: 340px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel), var(--bg-2)); opacity: 1; transform: none; filter: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats > div:nth-child(3) { border-right: 0; }
  .stats > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav .btn-small { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-timer { border-right: 0; border-bottom: 1px solid var(--line); }
  .ring-wrap { width: 170px; }
  .tiles { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .ms { grid-template-columns: 1fr; }
  .ms time { grid-row: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { border-right: 0 !important; border-top: 1px solid var(--line); }
  .stats > div:first-child, .stats > div:nth-child(2) { border-top: 0; }
  .viewport { min-height: 440px; padding: 1.2rem; }
  .footer { flex-direction: column; align-items: flex-start; }
  .br-d { display: none; }
}

/* Reduced motion: keep fades, colour changes and content changes; drop large movement
   (drifting, sliding, shaking, zooming, parallax). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .marquee-track, .float-chip, .cta-ring, .widget, .cut i, .radar i { animation: none !important; }
  .app { transform: none !important; }
  .intro { transform: none; animation-name: fade; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .reveal-up { transform: none; }
  .split .w > span { transform: none; opacity: 0; transition: opacity 0.6s; }
  .split.is-in .w > span { opacity: 1; }
  .scene { transform: none; filter: none; }
  .rot-word.enter, .rot-word.leave { transform: none; filter: none; }
  .app-sites li.hit, .browser.jolt, .scene-block.is-on .mini-browser { animation: none; transform: none; }
  .blocked, .slam { transform: none !important; }
  .scene-block.is-on .slam { animation-name: fade; }
  .blocked { animation-name: fade !important; }
  .marquee { mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-row:nth-child(2) { display: none; }
  .marquee-track { width: 100%; }
  .marquee-row { width: 100%; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; padding: 0 var(--gut); }
}
