/* ==========================================================================
   V01 — site.css
   One design system for the landing page.

   The page is built around THE THREAD: a single context line that runs
   from the hero prompt to the final download button. Content sits in a
   "railed" layout so the thread has its own lane on the left; it leaves
   that lane only where there is room for it (the hero, the workflow
   timeline, and the finale).
   ========================================================================== */

:root {
  /* Matte Surfaces — velvety dark graphite and carbon */
  --bg: #090a0d;
  --bg-2: #0e0f14;
  --surface: #12141a;
  --surface-2: #171922;
  --surface-3: #1d202b;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.18);

  /* Ink — soft matte ivory and platinum tones */
  --text: #edeae4;
  --text-2: rgba(237, 234, 228, 0.70);
  --text-3: rgba(237, 234, 228, 0.44);
  --text-4: rgba(237, 234, 228, 0.24);

  /* Architectural Matte Spectrum (replaces bright neon rainbow with warm titanium & platinum) */
  --c1: #d6d3cb;
  --c2: #9e9b94;
  --c3: #eae8e3;
  --grad: linear-gradient(90deg, #d6d3cb, #9e9b94 55%, #eae8e3);
  --emerald: #82a898;
  --amber: #c9af82;

  /* Type */
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;

  /* Layout */
  --max: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --rail-w: 104px;   /* width of the thread's lane */
  --rail-x: 32px;    /* thread position inside that lane */
  --node: 13px;
  --chapter-py: clamp(112px, 15vh, 184px);

  /* Shape & motion */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (max-width: 900px) {
  :root { --rail-w: 34px; --rail-x: 7px; --node: 11px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: 'ss01', 'cv11';
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
code, kbd { font-family: var(--mono); }
::selection { background: rgba(255, 255, 255, 0.16); color: #fff; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.35); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d1f25; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a2d35; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 3000;
  padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* Film grain keeps big dark fields from banding */
.grain {
  position: fixed; inset: 0; z-index: 2500; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 2; }
.railed { padding-left: calc(var(--pad) + var(--rail-w)); }
.stage { position: relative; isolation: isolate; }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }
.grad-text {
  background: linear-gradient(135deg, #ffffff 10%, #dcdad5 45%, #a6a29a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: 0.06em; /* italic overhang */
}

.h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 560;
}
.h2 .serif { font-size: 1.08em; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.14rem); line-height: 1.7; color: var(--text-2); max-width: 56ch; }
.lede--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.eyebrow b {
  font-weight: 500; color: var(--text);
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
}
.eyebrow--center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 520; letter-spacing: -0.005em; white-space: nowrap;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform .5s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .4s var(--ease);
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 0.86rem; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-xl { height: 62px; padding: 0 34px; font-size: 1.08rem; }
.btn-light {
  background: var(--text); color: #090a0d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 24px -8px rgba(0,0,0,.6);
}
.btn-light:hover { background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 30px -10px rgba(0,0,0,.7); }
.btn-ghost { color: var(--text-2); border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-3); background: rgba(255,255,255,.05); }
.btn:active { transition-duration: .1s; transform: translate3d(var(--bx), var(--by), 0) scale(.98); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 0.84rem; color: var(--text-2);
  border: 1px solid var(--line-2);
  background: rgba(18, 20, 26, 0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s, color .3s;
}
.pill:hover { border-color: var(--line-3); color: var(--text); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(130,168,152,.2); animation: breathe 3s ease-in-out infinite; }
.pill-arrow { transition: transform .4s var(--ease); }
.pill:hover .pill-arrow { transform: translateX(3px); }
@keyframes breathe { 50% { box-shadow: 0 0 0 5px rgba(130,168,152,0); } }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--ok { background: var(--emerald); }
.dot--run { background: #d6d3cb; box-shadow: 0 0 0 2px rgba(255,255,255,.1); }
.dot--wait { background: var(--amber); }
.dot--mem { background: #9e9b94; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: center; padding-inline: 14px;
  transition: transform .6s var(--ease), opacity .4s;
}
.nav.is-hidden { transform: translateY(-130%); }
.nav-inner {
  width: min(1120px, 100%); height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 16px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s, box-shadow .5s, backdrop-filter .5s;
}
.nav.is-scrolled .nav-inner {
  background: rgba(14, 16, 22, 0.85);
  border-color: var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.03em; font-size: 1.05rem; }
.nav-logo img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 0.9rem; color: var(--text-2);
  transition: color .25s, background-color .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--text); opacity: 0.85;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

.nav-sheet {
  position: fixed; inset: 0; z-index: 990;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 96px 28px 40px;
  background: rgba(6, 7, 9, 0.94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.nav-sheet a { font-size: 1.9rem; font-weight: 560; letter-spacing: -0.03em; padding: 6px 0; color: var(--text-2); transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease), color .2s; }
.nav-sheet a:hover { color: var(--text); }
.nav-sheet .btn { margin-top: 24px; align-self: flex-start; }
.nav-sheet.is-open { opacity: 1; visibility: visible; }
.nav-sheet.is-open a { transform: none; opacity: 1; }
.nav-sheet.is-open a:nth-child(2) { transition-delay: .03s; }
.nav-sheet.is-open a:nth-child(3) { transition-delay: .06s; }
.nav-sheet.is-open a:nth-child(4) { transition-delay: .09s; }
.nav-sheet.is-open a:nth-child(5) { transition-delay: .12s; }
.nav-sheet.is-open a:nth-child(6) { transition-delay: .15s; }
.nav-sheet.is-open a:nth-child(7) { transition-delay: .18s; }
.nav-sheet.is-open a:nth-child(8) { transition-delay: .21s; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   THE THREAD
   ========================================================================== */
.thread {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thread-route { stroke: rgba(255, 255, 255, 0.09); stroke-width: 1.25; stroke-dasharray: 2 7; }
.thread-halo  { display: none; }
.thread-line  { stroke: url(#thread-grad); stroke-width: 1.5; }
.thread-ring  { stroke: url(#thread-grad); stroke-width: 1.5; opacity: 0; }
.thread-ring.is-on { opacity: 1; }

/* The agent: minimal pearl orb riding the tip */
.agent {
  position: absolute; top: 0; left: 0; z-index: 6;
  pointer-events: none; will-change: transform;
  opacity: 0; transition: opacity .6s var(--ease);
}
.agent.is-ready { opacity: 1; }
.agent-orb {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: #f5f5f4;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.agent-orb i { display: none; }
.agent-chip { display: none; }

/* Nodes — the stations the thread passes through */
.node, .wp { position: absolute; pointer-events: none; }
.wp { width: 0; height: 0; left: calc(var(--rail-x) - var(--rail-w)); }
.railed > .wp { left: calc(var(--pad) + var(--rail-x)); }
.wp--tl-end { left: 50%; bottom: 0; }
@media (max-width: 900px) { .wp--tl-end { left: calc(var(--pad) + var(--rail-x)); } }
.node {
  width: var(--node); height: var(--node); border-radius: 50%;
  left: calc(var(--rail-x) - var(--rail-w) - var(--node) / 2);
  top: calc(0.5em - var(--node) / 2 + 3px);
  background: var(--bg);
  border: 1.5px solid rgba(255,255,255,.2);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
  z-index: 3;
}
.node::after {
  content: ''; position: absolute; inset: 2.5px; border-radius: 50%;
  background: #d6d3cb; transform: scale(0); transition: transform .4s var(--ease);
}
.node.is-lit { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.node.is-lit::after { transform: scale(1); }
.node.is-lit.is-fresh { animation: none; }
@keyframes nodePop { 0% { transform: scale(1); } 35% { transform: scale(1.55); } 100% { transform: scale(1); } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(148px, 19vh, 204px); overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 92% 85% at 50% 42%, #000 45%, transparent 88%);
          mask-image: radial-gradient(ellipse 92% 85% at 50% 42%, #000 45%, transparent 88%);
}
.hero-grid, .hero-glow { display: none; }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-pill { margin-bottom: 30px; }
.hero-title {
  font-size: clamp(2.8rem, 7.6vw, 6.8rem);
  line-height: 0.98; letter-spacing: -0.05em; font-weight: 580;
  margin-bottom: 24px;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.1em; margin: -0.04em -0.06em -0.1em; }
.hero-title .line-in { display: inline-block; }
.hero-title .serif { font-size: 1.07em; letter-spacing: -0.02em; font-weight: 400; }
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--text-2); max-width: 48ch; line-height: 1.62; margin-bottom: 34px; }

/* Prompt bar — precision matte capsule */
.prompt {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: min(620px, 100%); height: 58px; padding: 0 8px 0 20px;
  border-radius: 999px; text-align: left;
  background: rgba(16, 18, 24, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05);
  margin-bottom: 24px;
}
.prompt::before { display: none; }
.prompt-glyph { color: var(--text-3); display: grid; place-items: center; }
.prompt-text { flex: 1; min-width: 0; font-size: 0.98rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -0.2em; background: var(--text); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.prompt-model {
  font-family: var(--mono); font-size: 0.72rem; color: var(--text-3);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2);
}
.prompt-send {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #090a0d; background: var(--text);
  transition: transform .3s var(--ease), background-color .2s, box-shadow .3s;
}
.prompt-send:hover { background: #fff; transform: scale(1.03); }
.prompt-send.is-sending { transform: scale(.92); background: #d6d3cb; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.hero-meta { font-size: 0.84rem; color: var(--text-3); }

/* Hero hook — subtle origin cue below hero meta */
.hero-hook {
  position: relative; display: flex; align-items: center; justify-content: center;
  margin-top: 24px; height: 20px; width: 20px;
}
.hero-hook .node--origin {
  position: relative; top: auto; left: auto;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.float-cards { display: none; }

/* Product shot */
.hero-shot-wrap { margin-top: clamp(48px, 7vh, 80px); padding-bottom: clamp(80px, 12vh, 140px); }
.hero-shot { position: relative; perspective: 1800px; }
.hero-shot-frame {
  --p: 0;
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0b0c10;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.07);
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--p)) * 22deg)) scale(calc(0.9 + var(--p) * 0.1));
  will-change: transform;
}
.hero-shot-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%);
}
.hero-shot-frame img { width: 100%; }
.hero-shot-glow { display: none; }
.hero-shot-cap { margin-top: 18px; display: flex; justify-content: center; font-size: 0.8rem; color: var(--text-3); font-family: var(--mono); }
.hero-shot-cap span { display: inline-flex; align-items: center; gap: 8px; }

/* Hero intro choreography */
.js .hero-title .line-in { transform: translateY(105%); }
.js [data-hero] { opacity: 0; transform: translateY(16px); filter: blur(6px); }
.js .hero-shot-frame { opacity: 0; }
.is-loaded .hero-title .line-in { transform: none; transition: transform 1.3s var(--ease); }
.is-loaded .hero-title .line:nth-child(2) .line-in { transition-delay: .09s; }
.is-loaded [data-hero] { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.is-loaded .hero-pill { transition-delay: .05s; }
.is-loaded .hero-sub { transition-delay: .28s; }
.is-loaded .prompt { transition-delay: .42s; }
.is-loaded .hero-actions { transition-delay: .54s; }
.is-loaded .hero-meta { transition-delay: .64s; }
.is-loaded .hero-hook { transition-delay: .72s; }
.is-loaded .hero-shot-frame { opacity: 1; transition: opacity 1.4s var(--ease) .75s; }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
  position: relative; z-index: 3; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.ticker span { font-size: 1.02rem; color: var(--text-3); letter-spacing: -0.01em; white-space: nowrap; }
.ticker i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   CHAPTERS
   ========================================================================== */
.chapter { position: relative; padding-block: var(--chapter-py); }
.chapter-head { position: relative; margin-bottom: clamp(48px, 7vh, 80px); }
.chapter-head .eyebrow { margin-bottom: 22px; }
.chapter-head .h2 { margin-top: 0; }
.chapter-head--split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px 64px; align-items: end; }
.chapter-head--split .eyebrow { margin-bottom: 22px; }
.chapter-head--split .lede { justify-self: end; }
.chapter-head .node { top: 5px; }
.wp--bottom { bottom: -36px; }
@media (max-width: 900px) {
  .chapter-head--split { grid-template-columns: 1fr; }
  .chapter-head--split .lede { justify-self: start; }
}

/* Reveal system — natural rise, never a hard pop */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal="media"] { transform: translate3d(0, 48px, 0) scale(.985); transition-duration: 1.3s, 1.5s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 01 Manifesto ---------- */
.manifesto { padding-top: calc(var(--chapter-py) * 0.85); }
.manifesto .chapter-head { margin-bottom: 36px; }
.manifesto-text {
  font-size: clamp(1.8rem, 3.9vw, 3.4rem);
  line-height: 1.16; letter-spacing: -0.03em; font-weight: 500;
  max-width: 980px;
}
.manifesto-text .serif { font-size: 1.06em; }
.manifesto-text .w { color: var(--text); opacity: var(--o, 1); transition: opacity .25s linear; }
.js .manifesto-text .w { --o: .14; }

/* ---------- 02 Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cell {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .4s, transform .8s var(--ease), box-shadow .8s var(--ease), opacity 1.1s var(--ease);
}
.cell::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.07), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.cell:hover { border-color: var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.cell:hover::before { opacity: 1; }
.cell--7 { grid-column: span 7; }
.cell--5 { grid-column: span 5; }
.cell-media { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; background: #0b0c0f; border-bottom: 1px solid var(--line); }
.cell-media img, .cell-media video { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.4s var(--ease); }
.cell:hover .cell-media img, .cell:hover .cell-media video { transform: scale(1.025); }
.cell-body { padding: 26px 28px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cell-top { display: flex; align-items: baseline; justify-content: space-between; }
.cell h3 { font-size: 1.28rem; letter-spacing: -0.02em; font-weight: 580; }
.cell-idx { font-family: var(--mono); font-size: 0.78rem; color: var(--text-4); }
.cell p { color: var(--text-2); font-size: 0.97rem; line-height: 1.65; max-width: 52ch; }
@media (max-width: 900px) { .cell--7, .cell--5 { grid-column: span 12; } }

.know-more {
  align-self: flex-start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 520; color: var(--text);
  padding: 8px 0; position: relative;
}
.know-more::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; opacity: .25; transform-origin: left; transition: opacity .3s, transform .5s var(--ease); }
.know-more span { transition: transform .45s var(--ease); }
.know-more:hover::after { opacity: .8; }
.know-more:hover span { transform: translateX(4px); }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature--flip .feature-text { order: 2; }
.feature--flip .feature-media { order: 1; }
#meeting-section .feature { grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); gap: clamp(36px, 5vw, 80px); }
#companion .feature { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(36px, 5vw, 80px); }
.feature-text .chapter-head { margin-bottom: 0; }
.feature-text .h2 { margin-bottom: 22px; }
.feature-text .lede { margin-bottom: 8px; }
.feature-media { position: relative; }
@media (max-width: 900px) {
  .feature, #meeting-section .feature, #companion .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-text, .feature--flip .feature-media { order: 0; }
}

.frame {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-2); background: #0b0c0f;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06);
}
.frame img { width: 100%; }
.frame--tilt { transform: perspective(1600px) rotateY(calc(var(--tilt, 0) * -6deg)) rotateX(calc(var(--tilt-y, 0) * 4deg)); transition: transform 1s var(--ease-soft); }

.ticks { display: grid; gap: 14px; margin: 26px 0 6px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks i { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1px solid var(--line-2); position: relative; background: rgba(255,255,255,.02); }
.ticks i::after { content: ''; position: absolute; left: 6.5px; top: 3.5px; width: 5px; height: 9px; border: solid var(--text-2); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.ticks strong { display: block; font-weight: 560; font-size: 0.98rem; margin-bottom: 2px; }
.ticks span { color: var(--text-3); font-size: 0.92rem; line-height: 1.55; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.76rem; color: var(--text);
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px -16px rgba(0,0,0,.9);
}
.chip--float { position: absolute; z-index: 3; animation: bob 7s ease-in-out infinite; }
.chip--tl { top: -18px; left: 24px; }
.chip--bl { bottom: 22px; left: -18px; }
.chip--approve { display: none; }
.chip code { color: var(--amber); }
.bars { display: inline-flex; align-items: center; gap: 2.5px; height: 14px; }
.bars i { width: 2.5px; height: 100%; border-radius: 2px; background: var(--text-3); animation: eq 1.1s ease-in-out infinite; transform-origin: center; }
.bars i:nth-child(2) { animation-delay: -.2s; } .bars i:nth-child(3) { animation-delay: -.45s; }
.bars i:nth-child(4) { animation-delay: -.7s; } .bars i:nth-child(5) { animation-delay: -.9s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* Meeting composite — enlarged & refined placement */
.meeting { position: relative; padding: 18px 0 64px 0; }
.meeting .frame {
  width: 96%; border-radius: 18px;
  box-shadow: 0 45px 110px -35px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform 1s var(--ease-soft), box-shadow 1s var(--ease-soft);
}
.meeting:hover .frame {
  transform: translateY(-4px);
  box-shadow: 0 55px 125px -35px rgba(0,0,0,.98), inset 0 1px 0 rgba(255,255,255,.10);
}
.phone {
  border-radius: 34px; overflow: hidden; background: #000;
  border: 1px solid var(--line-3);
  box-shadow: 0 0 0 6px #0d0e12, 0 0 0 7px var(--line-2), 0 50px 90px -30px rgba(0,0,0,.95);
}
.phone img { width: 100%; }
.phone--meeting {
  position: absolute; right: -12px; bottom: 0;
  width: clamp(200px, 38%, 290px);
  transform: rotate(2.5deg) translate3d(0, var(--par, 0px), 0);
  box-shadow: 0 0 0 6px #0d0e12, 0 0 0 8px rgba(255,255,255,.14), 0 45px 95px -20px rgba(0,0,0,.95);
  transition: transform 1.2s var(--ease), box-shadow 0.6s var(--ease);
}
.meeting:hover .phone--meeting {
  transform: rotate(0.8deg) translate3d(-6px, calc(-14px + var(--par, 0px)), 0);
  box-shadow: 0 0 0 6px #0d0e12, 0 0 0 9px rgba(255,255,255,.20), 0 55px 110px -20px rgba(0,0,0,.98);
}
.meeting .chip--bl {
  top: -12px; bottom: auto; left: 24px; z-index: 4;
  background: rgba(16, 18, 24, 0.90); border-color: rgba(255, 255, 255, 0.12);
}

/* Intelligence graph */
.graph { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.graph-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.g-orbit { fill: none; stroke: rgba(255,255,255,.07); stroke-dasharray: 3 6; transform-origin: 200px 200px; animation: spin-slow 80s linear infinite; }
.g-orbit--2 { animation-direction: reverse; animation-duration: 60s; }
.g-edge { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.2; stroke-dasharray: 4 8; animation: flow 6s linear infinite; }
.g-edge--x { stroke: rgba(255,255,255,.08); animation-duration: 8s; }
@keyframes flow { to { stroke-dashoffset: -48; } }
.g-core {
  position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: #14151b;
  border: 1px solid var(--line-3);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem);
}
.g-core::after { display: none; }
.g-node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  font-size: 0.82rem; color: var(--text);
  background: rgba(18, 20, 26, 0.9);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.9);
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1);
}
.g-node i { width: 7px; height: 7px; border-radius: 50%; background: #d6d3cb; }
.g-node:nth-of-type(odd) i { background: #9e9b94; }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0 8px; border-radius: var(--r-md); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.mini-grid > div { background: var(--bg); padding: 18px 18px 18px; display: grid; gap: 4px; transition: background-color .4s; }
.mini-grid > div:hover { background: var(--surface); }
.mini-grid b { font-family: var(--mono); font-weight: 400; font-size: 0.72rem; color: var(--text-4); }
.mini-grid strong { font-weight: 560; font-size: 0.95rem; }
.mini-grid span { color: var(--text-3); font-size: 0.86rem; line-height: 1.5; }
@media (max-width: 520px) { .mini-grid { grid-template-columns: 1fr; } }

/* ---------- 06 Workflow timeline ---------- */
.timeline { position: relative; padding: 120px 0 40px; display: grid; gap: 28px; }
.step { position: relative; width: 50%; }
.step:nth-child(odd) { padding-right: 64px; justify-self: start; }
.step:nth-child(even) { padding-left: 64px; justify-self: end; }
.step + .step { margin-top: -72px; }
.step .node { top: 36px; }
.step:nth-child(odd) .node { left: auto; right: calc(var(--node) / -2); }
.step:nth-child(even) .node { left: calc(var(--node) / -2); }
.step-card {
  position: relative; padding: 28px 30px 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .5s, background-color .5s, transform .8s var(--ease);
}
.step-card::before {
  content: ''; position: absolute; top: 42px; width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.step:nth-child(odd) .step-card::before { right: -49px; transform: scaleX(-1); }
.step:nth-child(even) .step-card::before { left: -49px; }
.step.is-reached .step-card { border-color: var(--line-2); background: var(--surface-2); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 2.1rem; line-height: 1; color: var(--text-4); transition: color .6s; }
.step.is-reached .step-num { color: var(--text); }
.step h3 { font-size: 1.45rem; letter-spacing: -0.02em; font-weight: 580; margin: 14px 0 8px; }
.step p { color: var(--text-2); font-size: 0.97rem; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
@media (max-width: 900px) {
  .timeline { padding: 24px 0 0; padding-left: var(--rail-w); gap: 18px; }
  .step, .step:nth-child(odd), .step:nth-child(even) { width: 100%; padding: 0; justify-self: stretch; }
  .step + .step { margin-top: 0; }
  .step:nth-child(odd) .node, .step:nth-child(even) .node { left: calc(var(--rail-x) - var(--rail-w) - var(--node) / 2); right: auto; }
  .step-card::before { display: none; }
}

/* ---------- 07 Companion — enlarged & refined placement ---------- */
.phones {
  position: relative;
  height: clamp(520px, 52vw, 680px);
  display: flex; justify-content: center; align-items: center;
  perspective: 1400px;
}
.phones .phone {
  position: absolute;
  width: clamp(190px, 36%, 275px);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 6px #0d0e12, 0 0 0 7px var(--line-2), 0 45px 95px -25px rgba(0,0,0,.95);
  transition: transform 1.2s var(--ease), box-shadow 0.6s var(--ease), opacity 0.6s;
}
.phone--c {
  z-index: 3;
  width: clamp(220px, 42%, 315px) !important;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translate3d(0, var(--par-c, 0px), 0);
  box-shadow: 0 0 0 6px #0d0e12, 0 0 0 8px rgba(255,255,255,.16), 0 55px 115px -30px rgba(0,0,0,.98);
}
.phone--l {
  z-index: 1;
  transform: translate3d(-64%, calc(36px + var(--par-l, 0px)), 0) rotate(-6.5deg);
  opacity: .90;
}
.phone--r {
  z-index: 2;
  transform: translate3d(64%, calc(36px + var(--par-r, 0px)), 0) rotate(6.5deg);
  opacity: .90;
}
.phones:hover .phone--l {
  transform: translate3d(-78%, calc(22px + var(--par-l, 0px)), 0) rotate(-9.5deg);
  opacity: 1;
  box-shadow: 0 0 0 6px #0d0e12, 0 0 0 8px rgba(255,255,255,.18), 0 50px 100px -25px rgba(0,0,0,.98);
}
.phones:hover .phone--r {
  transform: translate3d(78%, calc(22px + var(--par-r, 0px)), 0) rotate(9.5deg);
  opacity: 1;
  box-shadow: 0 0 0 6px #0d0e12, 0 0 0 8px rgba(255,255,255,.18), 0 50px 100px -25px rgba(0,0,0,.98);
}
.phones:hover .phone--c {
  transform: translate3d(0, calc(-14px + var(--par-c, 0px)), 0) scale(1.02);
}

/* ---------- 08 Try it ---------- */
.try { overflow: clip; }
.try-bg { display: none; }
.try-stage {
  position: relative; border-radius: 28px; padding: clamp(10px, 1.6vw, 22px);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05);
}
.try-stage .ide-sandbox-container { width: 100%; max-width: none; margin: 0; box-shadow: none; }
#interactive-sandbox .wrap { max-width: var(--max); }

/* ---------- 09 Principles ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { padding: 30px 28px 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); transition: border-color .4s, transform .8s var(--ease); }
.pillar:hover { border-color: var(--line-2); transform: translateY(-4px); }
.pillar-ico { width: 44px; height: 44px; margin-bottom: 26px; fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar-ico * { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.pillar.is-in .pillar-ico * , html:not(.js) .pillar-ico * { stroke-dashoffset: 0; }
.pillar h3 { font-size: 1.24rem; letter-spacing: -0.02em; font-weight: 580; margin-bottom: 10px; }
.pillar p { color: var(--text-2); font-size: 0.96rem; line-height: 1.65; }
.wp--end { bottom: -80px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ==========================================================================
   FINALE
   ========================================================================== */
.finale { position: relative; padding: clamp(150px, 22vh, 240px) 0 clamp(130px, 18vh, 200px); overflow: clip; }
.finale-bg { display: none; }
.finale-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.finale .eyebrow { margin-bottom: 26px; }
.finale-title { font-size: clamp(2.8rem, 8vw, 7rem); line-height: 0.98; letter-spacing: -0.05em; font-weight: 580; margin-bottom: 24px; }
.finale-title .serif { font-weight: 400; font-size: 1.06em; }
.finale .lede { margin-bottom: 64px; }
.finale-cta { position: relative; margin-bottom: 30px; }
.finale-cta .btn-xl { transition: transform .5s var(--ease), box-shadow 1.2s var(--ease), background-color .3s; }
.finale.is-armed .finale-cta .btn-xl { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 20px 50px -15px rgba(0,0,0,.7); }
.finale-meta { display: flex; gap: 10px; margin-top: 28px; }
.finale-meta span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.76rem; color: var(--text-3); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: 44px; overflow: hidden; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { font-size: 0.9rem; color: var(--text-3); transition: color .25s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.84rem; color: var(--text-4); }
.kbd-hint { font-size: 0.74rem; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-3); cursor: pointer; }
.footer-mark {
  font-size: clamp(8rem, 30vw, 26rem); font-weight: 680; letter-spacing: -0.07em; line-height: .78;
  text-align: center; margin-top: 40px; user-select: none;
  background: linear-gradient(180deg, rgba(236,234,228,.12), rgba(236,234,228,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(var(--fm, 10%));
}

/* ==========================================================================
   MODALS (download + feature details) — markup preserved from v1
   ========================================================================== */
body.modal-open { overflow: hidden; }
.download-modal, .feature-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 20px;
  visibility: hidden; pointer-events: none;
}
.download-modal.open, .feature-modal.open { visibility: visible; pointer-events: auto; }
.download-modal-backdrop, .feature-modal-backdrop {
  position: absolute; inset: 0; background: rgba(3, 4, 6, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.open > .download-modal-backdrop, .open > .feature-modal-backdrop { opacity: 1; }
.download-modal-card, .feature-modal-card {
  position: relative; width: min(620px, 100%); max-height: calc(100dvh - 40px); overflow: auto;
  padding: 34px 32px 30px; border-radius: 26px;
  background: linear-gradient(180deg, #14161b, #0e0f13);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.open .download-modal-card, .open .feature-modal-card { opacity: 1; transform: none; }
.download-modal-close, .feature-modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-3); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background-color .2s;
}
.download-modal-close:hover, .feature-modal-close:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.04); }
.download-modal-label, .feature-modal-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.download-modal-title, .feature-modal-title { font-size: 1.9rem; letter-spacing: -0.03em; font-weight: 580; margin: 8px 0 10px; line-height: 1.1; }
.download-modal-desc, .feature-modal-desc { color: var(--text-2); font-size: 0.97rem; line-height: 1.65; margin-bottom: 22px; }
.download-modal-desc code { font-size: .86em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); }

.download-platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.download-platform-card {
  display: flex; flex-direction: column; gap: 20px; padding: 18px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  transition: border-color .3s, background-color .3s;
}
.download-platform-card:hover { border-color: var(--line-2); background: rgba(255,255,255,.035); }
.download-platform-card.detected { border-color: var(--line-3); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.platform-header { display: flex; align-items: center; gap: 12px; }
.platform-icon-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.platform-title-wrap { display: grid; }
.platform-title { font-weight: 600; }
.platform-sub { font-size: 0.78rem; color: var(--text-3); }
.btn-drop-primary, .btn-dl-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; border-radius: 12px; font-weight: 560; font-size: 0.9rem;
  background: var(--text); color: #090a0d; transition: background-color .25s, transform .3s var(--ease);
}
.btn-dl-action:hover { background: #fff; }
.download-modal-footer { margin-top: 18px; display: flex; justify-content: center; }
.download-alt-links a { font-size: 0.86rem; color: var(--text-3); transition: color .2s; }
.download-alt-links a:hover { color: var(--text); }
.download-success-header { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.download-success-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(130,168,152,.08); border: 1px solid rgba(130,168,152,.25); flex: none; }
.guide-tab-nav { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 14px; }
.guide-tab-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; font-size: 0.82rem; color: var(--text-3); transition: color .2s, background-color .2s; }
.guide-tab-btn.active { color: var(--text); background: rgba(255,255,255,.07); }
.modal-guide-box { border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; }
.modal-guide-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 0.84rem; font-weight: 560; border-bottom: 1px solid var(--line); }
.guide-steps-list { display: grid; gap: 16px; padding: 16px; }
.guide-step-item { display: flex; gap: 12px; font-size: 0.88rem; }
.guide-step-item strong { display: block; font-weight: 560; margin-bottom: 2px; }
.guide-step-item p { color: var(--text-3); line-height: 1.55; }
.guide-step-item code { font-size: .86em; color: var(--text-2); }
.guide-step-badge { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.72rem; border: 1px solid var(--line-2); color: var(--text-2); }
.guide-step-callout { margin-top: 10px; padding: 12px; border-radius: 12px; background: rgba(201,175,130,.05); border: 1px solid rgba(201,175,130,.16); }
.guide-methods-list { display: grid; gap: 6px; font-size: 0.84rem; color: var(--text-2); }
.guide-method-row { display: grid; gap: 4px; }
.method-tag { font-family: var(--mono); font-size: 0.72rem; color: var(--amber); }
.guide-cmd-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: #08090b; border: 1px solid var(--line); }
.guide-cmd-box code { font-size: 0.8rem; color: var(--text); }
.btn-copy-code { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: 0.76rem; color: var(--text-2); border: 1px solid var(--line); }
.btn-copy-code.copied { color: var(--emerald); border-color: rgba(130,168,152,.3); }
.download-success-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.download-retry-link { font-size: 0.86rem; color: var(--text-3); }
.download-retry-link:hover { color: var(--text); }
kbd { font-size: 0.78em; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
@media (max-width: 560px) { .download-platform-grid { grid-template-columns: 1fr; } .download-modal-card, .feature-modal-card { padding: 28px 20px 22px; } }

.feature-modal-points { display: grid; gap: 14px; }
.feature-modal-points li { display: flex; gap: 14px; align-items: flex-start; padding-top: 14px; border-top: 1px solid var(--line); }
.feature-modal-points i { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--text-2); }
.feature-modal-points strong { display: block; font-weight: 560; margin-bottom: 2px; }
.feature-modal-points p { color: var(--text-3); font-size: 0.92rem; line-height: 1.6; }

/* ---------- Command palette ---------- */
.cmdk-backdrop { position: fixed; inset: 0; z-index: 2100; background: rgba(3,4,6,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cmdk { position: fixed; z-index: 2101; top: 18vh; left: 50%; width: min(560px, calc(100vw - 32px)); transform: translate(-50%, 10px) scale(.98); border-radius: 18px; background: #111317; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -30px rgba(0,0,0,1); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .45s var(--ease), visibility .3s; overflow: hidden; }
.cmdk-backdrop.open, .cmdk.open { opacity: 1; visibility: visible; }
.cmdk.open { transform: translate(-50%, 0) scale(1); }
.cmdk-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmdk-prompt { color: var(--text-2); font-family: var(--mono); }
.cmdk-input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 1rem; }
.cmdk-list { padding: 6px; max-height: 320px; overflow: auto; }
.cmdk-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 10px; font-size: 0.94rem; color: var(--text-2); cursor: pointer; }
.cmdk-item.active { background: rgba(255,255,255,.06); color: var(--text); }
.cmdk-hint { font-family: var(--mono); font-size: 0.72rem; color: var(--text-4); }
.cmdk-empty { padding: 18px 12px; color: var(--text-3); font-size: 0.9rem; }
.cmdk-footer { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.74rem; color: var(--text-4); }

/* ==========================================================================
   SMALL SCREENS
   ========================================================================== */
@media (max-width: 900px) {
  .hero { padding-top: 112px; }
  .prompt { height: 56px; }
  .prompt-model { display: none; }
  .hero-shot-frame { border-radius: 12px; }
  .chip--bl { left: 8px; }
  .meeting .phone--meeting { width: clamp(160px, 38%, 230px); right: -4px; }
  .phones { height: 460px; }
  .phones .phone { width: clamp(140px, 32%, 210px); }
  .phone--c { width: clamp(160px, 38%, 240px) !important; }
  .finale .lede { margin-bottom: 48px; }
}
@media (max-width: 560px) {
  .hero-title { letter-spacing: -0.045em; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .prompt-text { font-size: .94rem; }
  .agent-chip { font-size: .68rem; height: 26px; top: -13px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   REDUCED MOTION — everything lands in its final state
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-hero], .js .hero-title .line-in, .js .hero-shot-frame { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .manifesto-text .w { --o: 1; }
  .hero-shot-frame { transform: none; }
}
