/* =========================================================
   Tokens
   ========================================================= */
:root {
  --bg: #07080A;
  --card: #0C0D0F;
  --text: #FFFFFF;
  --muted: #9C9C9D;
  --faint: #6A6B6C;
  --red: #FF6363;
  --crimson: #B50B1E;
  --btn: #E6E6E6;
  --btn-text: #2F3031;
  --border: rgba(255, 255, 255, .08);
  --radius: 16px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--btn); color: var(--btn-text);
  padding: 10px 14px; border-radius: 8px; font-weight: 500;
}
.skip:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 8px; border: 0; cursor: pointer;
  font: 500 14px/1 var(--sans); white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-light {
  background: var(--btn); color: var(--btn-text);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.btn-light:hover { background: #fff; }
.btn-light:active { transform: translateY(1px); }
.btn-lg { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost {
  background: rgba(255,255,255,.05); color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* =========================================================
   Nav
   ========================================================= */
.nav-wrap {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 16px; pointer-events: none;
}
.nav {
  pointer-events: auto; position: relative;
  width: min(1100px, 100%); height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 16px; border-radius: 16px;
  background: rgba(20, 21, 24, .55);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  transition: background .3s;
}
.nav.is-scrolled { background: rgba(14, 15, 17, .8); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.logo-slot {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  border: 1px dashed rgba(255,255,255,.3); background: rgba(255,255,255,.03);
}
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
}
.nav-links a, .link-quiet {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--muted); transition: color .2s, background .2s;
}
.nav-links a:hover, .link-quiet:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 0; color: var(--text);
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

.mobile-menu {
  pointer-events: auto; width: min(1100px, 100%);
  border-radius: 16px; padding: 8px;
  background: rgba(14, 15, 17, .92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  animation: drop .25s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a {
  display: block; padding: 14px 14px; border-radius: 10px;
  font-size: 18px; font-weight: 500; color: var(--text);
}
.mobile-menu a:hover { background: rgba(255,255,255,.05); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   Ribbon artwork
   ========================================================= */
.art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ribbons {
  position: absolute; left: 50%; top: 50%;
  width: 220vmax; height: 220vmax;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(26px, 3.4vmax, 60px);
  transform: translate(-50%, -50%) rotate(33deg);
  animation: drift 26s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes drift {
  from { transform: translate(-50%, -50%) rotate(33deg) translateY(-1.2%); }
  to   { transform: translate(-50%, -50%) rotate(33deg) translateY(1.2%); }
}
.ribbon {
  position: relative; display: block; flex: none;
  height: var(--h, 80px);
  margin-left: var(--x, 0);
}
/* soft wide glow + moving light */
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; border-radius: 999px;
  animation: shimmer var(--d, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.ribbon::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,140,140,.55) 40%, rgba(255,215,215,.8) 50%, rgba(255,140,140,.55) 60%, transparent) -160% 0 / 34% 100% no-repeat,
    linear-gradient(90deg, transparent 24%, rgba(181,11,30,.75) 36%, rgba(255,99,99,.95) 50%, rgba(181,11,30,.75) 64%, transparent 76%);
  filter: blur(var(--b, 18px));
  opacity: var(--o, .85);
}
/* thinner, sharper core */
.ribbon::after {
  left: 0; right: 0; top: 36%; bottom: 36%;
  background:
    linear-gradient(90deg, transparent, rgba(255,230,230,.9) 50%, transparent) -160% 0 / 24% 100% no-repeat,
    linear-gradient(90deg, transparent 32%, rgba(255,99,99,.55) 50%, transparent 68%);
  filter: blur(3px);
  opacity: .7;
}
@keyframes shimmer {
  from { background-position: -160% 0, 0 0; }
  to   { background-position: 260% 0, 0 0; }
}
.ribbon:nth-child(1) { --h: 64px;  --b: 20px; --o: .55; --d: 15s; --delay: -3s;  --x: 6%; }
.ribbon:nth-child(2) { --h: 104px; --b: 22px; --o: .9;  --d: 11s; --delay: -7s;  --x: -4%; }
.ribbon:nth-child(3) { --h: 82px;  --b: 16px; --o: .8;  --d: 13s; --delay: -1s;  --x: 2%; }
.ribbon:nth-child(4) { --h: 118px; --b: 24px; --o: .95; --d: 10s; --delay: -5s;  --x: -6%; }
.ribbon:nth-child(5) { --h: 70px;  --b: 16px; --o: .75; --d: 14s; --delay: -9s;  --x: 4%; }
.ribbon:nth-child(6) { --h: 56px;  --b: 20px; --o: .5;  --d: 16s; --delay: -11s; --x: -2%; }

.grain {
  position: absolute; inset: -50%;
  background: url("/assets/noise.svg") repeat;
  opacity: .14; mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
.vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 75% at 50% 50%, transparent 30%, rgba(7,8,10,.8) 72%, #07080A 100%),
    linear-gradient(to bottom, rgba(7,8,10,.55), transparent 22%, transparent 70%, #07080A 100%);
}
/* dark pool behind the text keeps contrast high */
.scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 28% at 50% 46%, rgba(7,8,10,.88), rgba(7,8,10,.55) 55%, transparent 100%);
}
html.no-ribbons .ribbons, html.no-grain .grain { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 120px 24px 48px; text-align: center;
}
.hero-inner { position: relative; z-index: 2; margin: auto 0; max-width: 900px; }
.hero h1 {
  font-size: clamp(40px, 6.2vw, 64px); font-weight: 600;
  line-height: 1.1; letter-spacing: normal;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(7,8,10,.7);
}
.lede {
  margin: 20px auto 0; max-width: 640px;
  font-size: 18px; line-height: 1.55; letter-spacing: .01em;
  color: var(--muted);
  text-shadow: 0 1px 20px rgba(7,8,10,.9);
}
.hero-cta {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 40px;
}
.mono-note { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--muted); }
.mono-note p { margin: 0; }
.ca-line { display: inline-flex; align-items: center; gap: 6px; max-width: 92vw; }
.ca-line code {
  font-family: inherit; color: #C9C9CA;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch;
}
.copy-btn {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { color: var(--text); background: rgba(255,255,255,.08); }
.copy-btn.is-done { color: var(--red); }

/* =========================================================
   Sections
   ========================================================= */
.section { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 150px) 24px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.eyebrow {
  margin: 0 0 16px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red);
}
.section-head h2, .cta-inner h2 {
  font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; line-height: 1.1;
  letter-spacing: -.01em; text-wrap: balance;
}
.section-head p:not(.eyebrow) { margin: 18px auto 0; font-size: 18px; letter-spacing: .01em; color: var(--muted); }

/* =========================================================
   Cards + bento
   ========================================================= */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 24px;
  padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  --glow: 255,99,99;
}
.card::before, .card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.card::before { background: radial-gradient(110% 80% at 100% 0%, rgba(var(--glow), .12), transparent 55%); }
.card::after {
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--glow), .15), transparent 60%);
}
html.card-glow .card:hover::after { opacity: 1; }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
.h-ic { width: 20px; height: 20px; color: rgb(var(--glow)); opacity: .9; flex: none; }
.card p { margin: 0; color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.row-2  { grid-row: span 2; }

/* faux command bar */
.cmd {
  margin-top: auto; border-radius: 12px; overflow: hidden;
  background: rgba(20,21,24,.8); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  font-size: 14px;
}
.cmd-input {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06); color: var(--muted);
}
.cmd-input svg { width: 16px; height: 16px; }
.cmd-input span { flex: 1; }
kbd {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  padding: 2px 6px; border-radius: 5px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.cmd-list { list-style: none; margin: 0; padding: 6px; }
.cmd-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: #E8E8E8; }
.cmd-list li.is-active { background: rgba(255,255,255,.07); }
.cmd-list em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.cmd-ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; }
.cmd-ic svg { width: 14px; height: 14px; }
.cmd-ic.r { background: rgba(255,99,99,.16); color: #FF8A8A; }
.cmd-ic.b { background: rgba(99,140,255,.16); color: #9DB5FF; }
.cmd-ic.g { background: rgba(90,210,150,.16); color: #8BE3B6; }
.cmd-ic.a { background: rgba(255,180,80,.16); color: #FFCB85; }
.cmd-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: var(--muted);
}

/* stats */
.stats { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: auto; }
.stat {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px;
  border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
}
.stat[hidden] { display: none; }
.stat-v { font-size: 28px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat-l { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* image slots */
.img-slot {
  margin-top: auto; aspect-ratio: 16 / 10; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px dashed rgba(255,255,255,.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,.03), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.015) 14px 15px);
}
.img-slot.wide { aspect-ratio: 21 / 10; }
.img-slot span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.keys { margin-top: auto; display: flex; justify-content: center; gap: 10px; padding: 18px 0 6px; }
.keys kbd {
  width: 64px; height: 64px; display: grid; place-items: center;
  font-family: var(--sans); font-size: 22px; font-weight: 500; color: #E8E8E8;
  border-radius: 12px;
  background: linear-gradient(#17181B, #101113);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 0 #050506, 0 10px 24px rgba(0,0,0,.5);
}

.ticks { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: #D4D4D5; }
.ticks svg { width: 18px; height: 18px; color: var(--red); flex: none; }

/* =========================================================
   Extensions tiles
   ========================================================= */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: rgba(255,255,255,.16); transform: translateY(-2px); }
.tile-ic {
  /* ICON SLOT: swap for <img src="/assets/ext-1.png" alt=""> */
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  border: 1px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.03);
}
.tile strong { display: block; font-weight: 500; font-size: 15px; }
.tile small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* =========================================================
   Quote
   ========================================================= */
.quote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote blockquote {
  margin: 0; font-size: clamp(22px, 2.8vw, 32px); font-weight: 500;
  line-height: 1.35; letter-spacing: -.005em; text-wrap: balance;
}
.quote figcaption { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.avatar-slot { width: 40px; height: 40px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); }
.quote strong { display: block; font-weight: 500; }
.quote small { display: block; color: var(--muted); font-size: 14px; }

/* =========================================================
   Pricing
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { gap: 18px; }
.plan .btn { margin-top: 8px; }
.plan .ticks { margin: 4px 0 0; }
.plan > .btn { margin-top: auto; }
.price { color: var(--muted) !important; font-size: 14px; }
.price span { color: var(--text); font-size: 40px; font-weight: 600; letter-spacing: -.02em; margin-right: 4px; }
.plan.is-featured { border-color: rgba(255,99,99,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,99,99,.08), 0 30px 80px -30px rgba(181,11,30,.5); }
.badge {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red) !important; padding: 4px 8px; border-radius: 6px;
  background: rgba(255,99,99,.1); border: 1px solid rgba(255,99,99,.25);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-sec { max-width: 820px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 4px; position: relative;
  font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; color: var(--muted); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; padding: 0 4px; color: var(--muted); max-width: 640px; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--border);
  background: #08090B; min-height: 440px;
  display: grid; place-items: center; text-align: center;
  padding: 72px 24px;
}
.art.small .ribbons { width: 160vmax; height: 160vmax; gap: clamp(18px, 2.4vmax, 40px); }
.art.small .ribbon { height: calc(var(--h) * .7); }
.art.small .scrim { background: radial-gradient(ellipse 52% 46% at 50% 50%, rgba(7,8,10,.9), rgba(7,8,10,.6) 55%, transparent 100%); }
.art.small .vignette { background: radial-gradient(ellipse 85% 85% at 50% 50%, transparent 35%, rgba(7,8,10,.85) 80%, #07080A 100%); }
.cta-inner { position: relative; z-index: 2; max-width: 560px; }
.cta-inner > p { margin: 16px 0 0; font-size: 18px; letter-spacing: .01em; color: var(--muted); }
.notify { display: flex; gap: 8px; margin: 32px auto 0; max-width: 440px; }
.notify input {
  flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: var(--text); font: 400 15px var(--sans);
}
.notify input::placeholder { color: var(--muted); }
.notify input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.form-msg { min-height: 1.6em; margin: 12px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.form-msg.is-error { color: #FF8A8A; }

/* =========================================================
   Footer
   ========================================================= */
.footer { max-width: var(--maxw); margin: clamp(80px, 10vw, 140px) auto 0; padding: 0 24px 40px; }
.footer-inner {
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px;
  padding-top: 48px; border-top: 1px solid var(--border);
}
.footer-brand p { margin: 14px 0 0; color: var(--muted); max-width: 300px; font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h2 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; color: var(--muted); font-size: 14px;
}
.footer-base p { margin: 0; }
.footer-base .mono { font-family: var(--mono); font-size: 12px; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
html.js.reveal-on .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--rd, 0s);
}
html.js.reveal-on .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1040px) {
  .nav-links, .nav-actions .link-quiet { display: none; }
  .menu-btn { display: inline-flex; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-4 { grid-column: span 2; }
  .span-2, .span-3 { grid-column: span 1; }
  .row-2 { grid-row: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .br-d { display: none; }
  .nav { height: 52px; padding: 0 6px 0 12px; }
  .nav .btn { height: 34px; padding: 0 12px; }
  .nav .btn svg { display: none; }
  .hero { padding: 104px 20px 36px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .lede { font-size: 17px; }
  .scrim { background: radial-gradient(ellipse 78% 26% at 50% 46%, rgba(7,8,10,.85), rgba(7,8,10,.45) 60%, transparent 100%); }
  .ribbons { gap: 22px; }
  .ribbon { height: calc(var(--h) * .7); }
  .section { padding-left: 16px; padding-right: 16px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .card { padding: 22px; }
  .cmd-list em { display: none; }
  .cmd-input kbd { display: none; }
  .keys kbd { width: 56px; height: 56px; }
  .tiles { grid-template-columns: 1fr; }
  .cta-band { border-radius: 20px; padding: 56px 18px; min-height: 400px; }
  .notify { flex-direction: column; }
  .notify .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .ca-line code { max-width: 22ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbons, .ribbon::before, .ribbon::after, .grain, .mobile-menu { animation: none !important; }
  html.js.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
}
.ribbon.paused::before, .ribbon.paused::after { animation-play-state: paused; }

/* =========================================================
   v2 — Story, WebGL, cinematic chrome
   ========================================================= */
:root { --ch: #FF6363; --ch-deep: #B50B1E; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.has-lenis { scroll-behavior: auto; }

/* WebGL canvas sits behind everything */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
html:not(.webgl) .gl { display: none; }
html.webgl .hero .art .ribbons,
html.webgl .hero .art .grain,
html.webgl .hero .art .vignette { display: none; }

/* Intro: hide hero bits until GSAP takes over (removed by JS, with a timeout safety net) */
html.intro-pending .hero-inner,
html.intro-pending .hero-cta,
html.intro-pending .nav,
html.intro-pending .scroll-cue { opacity: 0; }

/* Split words */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.wi { display: inline-block; will-change: transform; }
.statement .w { overflow: visible; }

/* Scroll cue */
.scroll-cue {
  position: absolute; right: 32px; bottom: 32px; z-index: 2;
  width: 22px; height: 34px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.35);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px;
  border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* Letterbox + progress */
.letterbox {
  position: fixed; left: 0; right: 0; height: 0; z-index: 45; pointer-events: none;
  background: #000; transition: height .9s var(--ease);
}
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }
html.lb-on.in-story .letterbox { height: 5vh; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ch-deep), var(--ch));
}

/* Chapter rail */
.rail {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
html.in-story .rail { opacity: 1; visibility: visible; }
.rail ol { list-style: none; margin: 0; padding: 0 16px 0 0; display: grid; gap: 14px; }
.rail a {
  display: flex; flex-direction: row-reverse; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 2px 4px;
}
.rail-n { transition: color .3s; }
.rail-t { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.rail a:hover .rail-t, .rail a:focus-visible .rail-t { opacity: 1; transform: none; }
.rail a:hover, .rail a.is-active { color: #fff; }
.rail a.is-active .rail-n { color: var(--ch); }
.rail-line { position: absolute; right: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.14); }
.rail-line span { display: block; height: 100%; transform-origin: top; transform: scaleY(0); background: var(--ch); }

/* ---------- Chapters ---------- */
.story { position: relative; }
.chapter { position: relative; }
.scene {
  position: relative; min-height: 100vh; min-height: 100svh;
  max-width: 1280px; margin: 0 auto; padding: 104px 32px 64px;
  display: flex; align-items: center;
}
.ch-meta {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.ch-num {
  color: var(--ch); font-size: 13px; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--ch) 40%, transparent);
  background: color-mix(in srgb, var(--ch) 10%, transparent);
}
.ch-title {
  font-size: clamp(36px, 5.2vw, 72px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em;
  text-wrap: balance; text-shadow: 0 2px 40px rgba(7,8,10,.6);
}
.ch-body {
  margin: 22px 0 0; max-width: 520px; font-size: 18px; letter-spacing: .01em; color: #B4B4B5;
  text-shadow: 0 1px 20px rgba(7,8,10,.9);
}
/* soft dark pool behind copy so text stays readable over the paint */
.scene-copy, .pan-head, .zoom-copy { position: relative; }
.scene-finale .scene > :not(.sr-only) { position: relative; }
.scene-copy::before, .pan-head::before, .zoom-copy::before {
  content: ""; position: absolute; inset: -18% -16%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7,8,10,.78), rgba(7,8,10,.4) 60%, transparent);
}

/* I — reveal */
.scene-reveal .scene { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.frame {
  aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.03);
}
.frame-inner.img-slot { width: 100%; height: 100%; margin: 0; aspect-ratio: auto; border: 0; border-radius: 0; }

/* II — pan */
.scene-pan .scene {
  flex-direction: column; align-items: stretch; justify-content: center; gap: 40px;
  max-width: none; padding-left: 0; padding-right: 0;
}
.pan-head { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.pan-viewport { width: 100%; overflow: hidden; }
.pan-track {
  list-style: none; margin: 0; display: flex; gap: 24px; width: max-content;
  padding: 0 max(32px, calc((100vw - 1280px) / 2 + 32px));
  perspective: 1200px;
}
.panel {
  width: min(540px, 78vw); flex: none; display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: 16px;
  background: rgba(12,13,15,.84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.panel-n { font-family: var(--mono); font-size: 13px; color: var(--ch); }
.panel h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.panel p { margin: 0; color: var(--muted); }
.panel .img-slot { margin-top: 14px; aspect-ratio: auto; height: clamp(140px, 28vh, 300px); }
html:not(.cinema) .pan-viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
html:not(.cinema) .panel { scroll-snap-align: center; }

/* III — zoom */
.scene-zoom { overflow: hidden; }
.scene-zoom .scene { justify-content: center; text-align: center; }
.zoom-word {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; pointer-events: none;
  font-size: clamp(96px, 24vw, 380px); font-weight: 600; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, var(--ch)); -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform;
}
html:not(.cinema) .zoom-word { opacity: .1; }
.zoom-copy { max-width: 780px; margin: 0 auto; }
.zoom-copy .ch-meta { justify-content: center; }
.zoom-copy .ch-body { margin-left: auto; margin-right: auto; }

/* IV — deck */
.scene-deck .scene { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.deck { list-style: none; margin: 0; padding: 0; position: relative; perspective: 1400px; }
html.cinema .deck { height: min(62vh, 520px); }
html.cinema .deck-card { position: absolute; inset: 0; transform-origin: 50% 0%; }
html:not(.cinema) .deck { display: grid; gap: 16px; }
.deck-card {
  display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 18px;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--ch) 14%, transparent), transparent 55%), var(--card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 80px -20px rgba(0,0,0,.85);
}
.deck-n { font-family: var(--mono); font-size: 13px; color: var(--ch); }
.deck-card h3 { font-size: 24px; font-weight: 600; }
.deck-card p { margin: 0; color: var(--muted); }
.deck-card .img-slot { flex: 1; aspect-ratio: auto; min-height: 120px; margin-top: 16px; }

/* V — finale */
.scene-finale .scene { flex-direction: column; justify-content: center; align-items: center; text-align: center; isolation: isolate; }
.scene-finale .scene::before {
  content: ""; position: absolute; inset: 8% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 50% 50%, rgba(7,8,10,.82), rgba(7,8,10,.45) 60%, transparent);
}
.statement {
  margin: 0; max-width: 1100px; font-size: clamp(30px, 4.4vw, 60px); font-weight: 600;
  line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 2px 40px rgba(7,8,10,.7);
}
.counters { list-style: none; margin: 56px 0 0; padding: 0; display: flex; gap: clamp(28px, 7vw, 110px); }
.counters li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.counter { font-size: clamp(36px, 4vw, 56px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.counters li > span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* sections float over the paint — keep cards solid */
.section-head h2, .quote blockquote { text-shadow: 0 2px 30px rgba(7,8,10,.7); }

@media (max-width: 1040px) {
  .rail { display: none; }
}
@media (max-width: 860px) {
  .scene { padding: 92px 20px 40px; }
  .scene-reveal .scene, .scene-deck .scene { grid-template-columns: 1fr; gap: 28px; align-content: center; }
  .frame { aspect-ratio: 16 / 11; }
  html.cinema .deck { height: 42svh; margin-top: 18px; }
  .scene-deck .ch-body { font-size: 15px; }
  .deck-card { padding: 20px; }
  .ch-body { font-size: 16px; margin-top: 16px; }
  .ch-meta { margin-bottom: 16px; }
  .pan-head { padding: 0 20px; }
  .pan-track { padding: 0 20px; gap: 14px; }
  .panel { padding: 22px; }
  .counters { flex-wrap: wrap; justify-content: center; gap: 24px 36px; }
  .scroll-cue { display: none; }
  html.lb-on.in-story .letterbox { height: 3vh; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
  .letterbox { display: none; }
}
