/* ---------- tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #0e0e10;
  --bg-3: #131316;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(237, 109, 43, 0.35);
  --text: #f5f5f7;
  --muted: rgba(255, 255, 255, 0.58);
  --dim: rgba(255, 255, 255, 0.38);
  --accent: #ED6D2B;
  --accent-2: #8b8cf6;
  --accent-soft: rgba(237, 109, 43, 0.12);
  --accent-glow: rgba(237, 109, 43, 0.25);
  --good: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --r-card: 16px;
  --r-btn: 12px;
  --r-pill: 999px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-pad: clamp(72px, 12vw, 140px);
  --maxw: 1240px;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: white; }

/* ---------- layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { position: relative; }

.section-pad { padding: var(--section-pad) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--text); }
h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.3; }
p { margin: 0; color: var(--muted); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 56px;
  max-width: 760px;
}
.section-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head p { font-size: 18px; max-width: 600px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 160ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: #7577f5;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 12px 32px -8px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 16px var(--pad-x);
  transition: backdrop-filter 200ms ease, background 200ms ease, padding 200ms ease;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 10px var(--pad-x);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw);
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-brand .logo { width: 26px; height: 26px; }
.nav-brand .dot { color: var(--accent); }

/* Animated dragon in nav */
.nav-dragon {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  animation: nav-dragon-hover 800ms steps(4) infinite;
}
.nav-dragon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0;
  animation: nav-dragon-flap 800ms step-end infinite;
}
.nav-dragon img:nth-child(1) { animation-delay:    0ms; }
.nav-dragon img:nth-child(2) { animation-delay: -600ms; }
.nav-dragon img:nth-child(3) { animation-delay: -400ms; }
.nav-dragon img:nth-child(4) { animation-delay: -200ms; }
@keyframes nav-dragon-flap {
  0%   { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes nav-dragon-hover {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-2px); }
  75%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  transition: color 120ms, background 120ms;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-cta .btn { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

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

/* ---------- hero (scroll-pinned video scrub) ---------- */
.hero {
  position: relative;
  /* tall container provides scroll distance for video scrub */
  height: var(--hero-scrub-h, 260vh);
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(110px, 18vh, 200px);
  padding-bottom: 40px;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  /* blend the video into the dark page */
  mix-blend-mode: screen;
  filter: contrast(1.05) saturate(1.05);
  pointer-events: none;
}
.hero-video-bg.ready { opacity: 0.85; }
.hero-video-bg::-webkit-media-controls { display: none !important; }
.hero-video-vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, transparent 30%, rgba(10,10,10,0.55) 75%, #0a0a0a 100%),
    linear-gradient(180deg, rgba(10,10,10,0.35) 0%, transparent 30%, transparent 70%, rgba(10,10,10,0.85) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.dot-grid {
  position: absolute;
  inset: -50px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.085) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 30%, transparent 75%);
  animation: drift 60s linear infinite;
}
@keyframes drift {
  0% { transform: translate(0,0); }
  100% { transform: translate(-28px,-28px); }
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  left: 50%; top: 0%;
  transform: translate(-50%, -45%);
  background: radial-gradient(circle, rgba(237,109,43,0.18) 0%, rgba(237,109,43,0) 60%);
  filter: blur(20px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.hero h1 { max-width: 14ch; margin-top: 24px; }
.hero h1 .accent {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

/* video placeholder */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 80px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: linear-gradient(180deg, #16161b 0%, #0c0c0e 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(237,109,43,0.18),
    0 40px 120px -20px rgba(237,109,43,0.25),
    0 80px 180px -40px rgba(0,0,0,0.7);
}
.video-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(237,109,43,0.12), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.04), transparent 70%);
  pointer-events: none;
}
.video-window {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
}
.window-bar .url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.window-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.play-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(237,109,43,0.18);
  border: 1px solid rgba(237,109,43,0.35);
  backdrop-filter: blur(10px);
  transition: all 200ms ease;
  position: relative;
}
.play-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  filter: blur(20px);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.08); }
}
.play-btn svg { position: relative; }
.play-btn:hover { transform: scale(1.05); background: rgba(237,109,43,0.28); }
.video-caption {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
}
.proof-text { font-size: 13px; color: var(--dim); letter-spacing: 0.02em; }
.proof-logos { display: flex; gap: 36px; align-items: center; opacity: 0.6; flex-wrap: wrap; justify-content: center; }
.proof-logos .logo-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
}
.proof-logos .logo-item .gly {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-block;
}

/* ---------- problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px;
  transition: border-color 200ms, transform 200ms;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(237,109,43,0.10),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 200ms;
}
.card:hover { border-color: var(--border-accent); }
.card:hover::before { opacity: 1; }

.problem-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.problem-card h3 { margin-bottom: 10px; font-size: 20px; }
.problem-card p { font-size: 14.5px; line-height: 1.55; }
/* ---------- problem card scenes ---------- */
.scene {
  position: relative;
  height: 132px;
  margin: -8px -8px 22px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 50% 100%, rgba(237,109,43,0.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.18));
  border: 1px solid var(--border);
  isolation: isolate;
}
.scene::before {
  /* subtle dot grid inside scene */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
}

/* scene 1 — sessions dissolve */
.scene-sessions { padding: 12px; }
.scene-sessions .stack {
  position: relative;
  width: 100%; height: 100%;
}
.scene-sessions .bubble {
  position: absolute;
  left: 12px; right: 12px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  animation: sessFlow 6s linear infinite;
}
.scene-sessions .bubble .tt {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: none;
  opacity: 0.9;
}
.scene-sessions .bubble .ln {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.18);
}
.scene-sessions .bubble .ln.a { width: 36%; }
.scene-sessions .bubble .ln.b { width: 18%; }
.scene-sessions .bubble:nth-child(1) { animation-delay: 0s; }
.scene-sessions .bubble:nth-child(2) { animation-delay: -1.5s; }
.scene-sessions .bubble:nth-child(3) { animation-delay: -3.0s; }
.scene-sessions .bubble:nth-child(4) { animation-delay: -4.5s; }
@keyframes sessFlow {
  0%   { top: -28px;  opacity: 0;   filter: blur(6px); }
  12%  { top: 6px;    opacity: 1;   filter: blur(0); }
  55%  { top: 56px;   opacity: 1;   filter: blur(0); border-color: var(--border); }
  82%  { top: 96px;   opacity: 0.5; filter: blur(2px); border-color: rgba(255,255,255,0.04); }
  100% { top: 132px;  opacity: 0;   filter: blur(8px); }
}
/* dust particles drifting from the dying bubble */
.scene-sessions .dust {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-2);
  left: var(--x);
  bottom: -4px;
  animation: dustFall 6s linear infinite;
  animation-delay: var(--d);
  opacity: 0;
}
@keyframes dustFall {
  0%, 70% { opacity: 0; transform: translateY(0) translateX(0); }
  78% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(28px) translateX(var(--xt, 0)); }
}

/* scene 2 — hidden terminal */
.scene-hidden { display: flex; align-items: center; gap: 14px; padding: 12px; }
.scene-hidden .term {
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: 8px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  padding: 8px 10px;
}
.scene-hidden .term .line {
  white-space: nowrap;
  overflow: hidden;
  height: 11px;
  margin-bottom: 3px;
  opacity: 0;
  animation: lineIn 5s linear infinite;
}
.scene-hidden .term .line .pr { color: var(--accent-2); }
.scene-hidden .term .line .ok { color: var(--good); }
.scene-hidden .term .line:nth-child(1) { animation-delay: 0s; }
.scene-hidden .term .line:nth-child(2) { animation-delay: 0.6s; }
.scene-hidden .term .line:nth-child(3) { animation-delay: 1.2s; }
.scene-hidden .term .line:nth-child(4) { animation-delay: 1.8s; }
.scene-hidden .term .line:nth-child(5) { animation-delay: 2.4s; }
@keyframes lineIn {
  0%   { opacity: 0; transform: translateY(2px); }
  4%   { opacity: 1; transform: translateY(0); }
  60%  { opacity: 1; }
  90%  { opacity: 0; }
  100% { opacity: 0; }
}
/* fog overlay over terminal */
.scene-hidden .term::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, rgba(10,10,12,0.55), rgba(10,10,12,0.25));
  animation: fogPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fogPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 0.9; }
}
.scene-hidden .viewers {
  width: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scene-hidden .viewer {
  width: 22px; height: 22px;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.scene-hidden .viewer .head {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border-strong);
}
.scene-hidden .viewer .body {
  width: 14px; height: 7px;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  background: rgba(255,255,255,0.3);
  border: 1px solid var(--border-strong);
  border-bottom: 0;
}
.scene-hidden .qmark {
  position: absolute;
  top: -10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-2);
  animation: qBounce 1.6s ease-in-out infinite;
}
.scene-hidden .qmark.q2 { animation-delay: 0.5s; }
.scene-hidden .qmark.q3 { animation-delay: 1s; }
@keyframes qBounce {
  0%, 100% { opacity: 0; transform: translateY(2px); }
  40%, 60% { opacity: 1; transform: translateY(-2px); }
}

/* scene 3 — drift */
.scene-drift { padding: 14px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.scene-drift .col {
  display: flex; flex-direction: column; gap: 4px;
  animation: driftBreathe 5s ease-in-out infinite;
}
.scene-drift .col.right { animation-delay: -2.5s; }
.scene-drift .row {
  display: flex; gap: 3px; align-items: center;
  animation: rowSlide 5s ease-in-out infinite;
}
.scene-drift .col.right .row { animation-direction: reverse; }
.scene-drift .row .sw {
  width: 12px; height: 12px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.scene-drift .row .ln {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.14);
}
.scene-drift .row .ln.a { width: 38px; }
.scene-drift .row .ln.b { width: 22px; }
.scene-drift .col.right .row .ln {
  background: rgba(255,255,255,0.10);
}
.scene-drift .col.right .row .sw { border-color: rgba(255,255,255,0.05); }
@keyframes driftBreathe {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-10px); }
}
.scene-drift .col.right { animation-name: driftBreatheR; }
@keyframes driftBreatheR {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(10px); }
}
@keyframes rowSlide {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50%      { opacity: 0.5; transform: translateX(-2px); }
}
.scene-drift .link {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: linkBreak 5s ease-in-out infinite;
  pointer-events: none;
}
.scene-drift .link::before, .scene-drift .link::after {
  content: ""; position: absolute; top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.scene-drift .link::before { left: -3px; }
.scene-drift .link::after { right: -3px; }
@keyframes linkBreak {
  0%, 100% { opacity: 1; width: 36px; }
  45%      { opacity: 1; width: 36px; }
  55%      { opacity: 0.2; width: 70px; filter: blur(2px); }
  70%      { opacity: 0.2; width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-sessions .bubble,
  .scene-sessions .dust,
  .scene-hidden .term .line,
  .scene-hidden .term::after,
  .scene-hidden .qmark,
  .scene-drift .col,
  .scene-drift .row,
  .scene-drift .link { animation: none; }
}

/* ---------- solution ---------- */
.solution-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.solution-block:nth-child(even) { grid-template-columns: 1.1fr 1fr; }
.solution-block:nth-child(even) .solution-text { order: 2; }
.solution-block:nth-child(even) .solution-mock { order: 1; }
@media (max-width: 980px) {
  .solution-block, .solution-block:nth-child(even) { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .solution-block:nth-child(even) .solution-text,
  .solution-block:nth-child(even) .solution-mock { order: 0; }
}

.solution-text .step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}
.solution-text h2 { margin-bottom: 18px; max-width: 14ch; }
.solution-text p { font-size: 17px; max-width: 48ch; margin-bottom: 24px; }
.bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; color: var(--text);
}
.bullets .check {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: grid; place-items: center;
  margin-top: 3px;
}
.bullets .check::after {
  content: "";
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent-2);
  border-bottom: 1.5px solid var(--accent-2);
  transform: rotate(-45deg) translate(0px, -1px);
}

/* ---------- mockups (used in solution blocks & how-it-works) ---------- */
.mock {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #131318 0%, #0c0c10 100%);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(237,109,43,0.06);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.mock-bar .traffic { display: flex; gap: 6px; }
.mock-bar .traffic span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.mock-bar .title { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.04em; }

/* mock 1 — scoping */
.mock-scope { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.mock-scope .chap {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.mock-scope .chap-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text);
}
.mock-scope .chap-head .pill {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  padding: 2px 8px; border-radius: 999px;
}
.mock-scope .chap-head .meta { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.mock-scope .phases { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; }
.mock-scope .phase {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--muted);
  padding: 6px 0;
}
.mock-scope .phase .dotmark { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--dim); flex: none; }
.mock-scope .phase.done { color: var(--text); }
.mock-scope .phase.done .dotmark { background: var(--good); border-color: var(--good); }
.mock-scope .phase.active .dotmark { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mock-scope .phase .label { flex: 1; }
.mock-scope .phase .tag { font-family: var(--font-mono); font-size: 10px; color: var(--dim); }

/* mock 2 — claude code terminal */
.mock-term { padding: 18px; min-height: 380px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.78); }
.mock-term .prompt { color: var(--accent-2); }
.mock-term .cmd { color: var(--text); }
.mock-term .out { color: var(--muted); }
.mock-term .ok { color: var(--good); }
.mock-term .warn { color: var(--warn); }
.mock-term .dim { color: var(--dim); }
.mock-term .cursor::after {
  content: "▍";
  color: var(--accent);
  animation: blink 1.1s steps(2) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* mock 3 — design tokens */
.mock-design { padding: 18px; min-height: 380px; display: flex; flex-direction: column; gap: 14px; }
.mock-design .toolbar { display: flex; gap: 8px; }
.mock-design .tab { font-family: var(--font-mono); font-size: 11px; padding: 6px 10px; border-radius: 8px; color: var(--muted); border: 1px solid var(--border); }
.mock-design .tab.on { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.mock-design .swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mock-design .sw {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.mock-design .sw .lab {
  position: absolute;
  bottom: 4px; left: 4px;
  font-family: var(--font-mono); font-size: 9px;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.45);
  padding: 1px 4px; border-radius: 3px;
}
.mock-design .type-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid; grid-template-columns: 80px 1fr auto; gap: 12px;
  align-items: center;
}
.mock-design .type-row .name { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.mock-design .type-row .sample { color: var(--text); }
.mock-design .type-row .meta { font-family: var(--font-mono); font-size: 10px; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }

/* ---------- features ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-2);
}
@media (max-width: 880px) { .feat-grid { grid-template-columns: 1fr; } }
@media (min-width: 881px) and (max-width: 1100px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
.feat-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 200ms;
}
.feat-cell:hover { background: var(--surface); }
.feat-cell:nth-child(3n) { border-right: 0; }
.feat-cell:nth-last-child(-n+3) { border-bottom: 0; }
@media (max-width: 1100px) and (min-width: 881px) {
  .feat-cell:nth-child(3n) { border-right: 1px solid var(--border); }
  .feat-cell:nth-child(2n) { border-right: 0; }
  .feat-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .feat-cell:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 880px) {
  .feat-cell { border-right: 0; }
  .feat-cell:last-child { border-bottom: 0; }
}
.feat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--accent-2);
}
.feat-cell h3 { font-size: 17px; margin-bottom: 8px; }
.feat-cell p { font-size: 14px; line-height: 1.55; }

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: border-color 200ms, transform 200ms;
}
.step-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.step-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 10px;
}
.step-card .num::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.step-card h3 { font-size: 17px; }
.step-card p { font-size: 14px; line-height: 1.5; }
.step-card .visual {
  margin-top: 8px;
  height: 88px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  position: relative;
}

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color 200ms;
}
.price-card:hover { border-color: var(--border-strong); }
.price-card.featured {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(237,109,43,0.06) 0%, transparent 60%);
  box-shadow: 0 0 0 1px var(--border-accent), 0 30px 80px -30px var(--accent-glow);
  transform: scale(1.02);
}
@media (max-width: 980px) { .price-card.featured { transform: none; } }
.price-card .badge {
  position: absolute;
  top: -12px; left: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card .plan-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.price-card .price { display: flex; align-items: baseline; gap: 8px; }
.price-card .price .amount { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.price-card .price .currency { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.price-card .price .period { font-size: 14px; color: var(--muted); }
.price-card .tag { font-size: 14px; color: var(--muted); margin-top: -8px; }
.price-card .features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card .features li { display: flex; gap: 10px; font-size: 14px; color: var(--text); align-items: flex-start; }
.price-card .features li svg { flex: none; margin-top: 2px; color: var(--accent-2); }
.price-card .features li.muted { color: var(--muted); }
.price-card .divider { height: 1px; background: var(--border); margin: 4px 0; }
.price-fine { text-align: center; font-size: 13px; color: var(--dim); margin-top: 28px; }

/* ---------- personas ---------- */
.persona-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px;
  border-radius: var(--r-pill);
  margin: 0 auto 32px;
  width: fit-content;
}
.persona-tabs button {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 160ms;
}
.persona-tabs button:hover { color: var(--text); }
.persona-tabs button.active { background: var(--accent); color: white; }
.persona-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  background: linear-gradient(180deg, var(--surface), transparent);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  min-height: 360px;
}
@media (max-width: 880px) { .persona-panel { grid-template-columns: 1fr; padding: 28px; } }
.persona-panel .pp-emoji { font-size: 64px; margin-bottom: 12px; line-height: 1; }
.persona-panel .pp-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.persona-panel h3 { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.persona-panel p { font-size: 16px; max-width: 44ch; }
.persona-panel .pp-mock {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 260px;
  display: flex; flex-direction: column; gap: 6px;
}
.persona-panel .pp-mock .h { color: var(--accent-2); }
.persona-panel .pp-mock .v { color: var(--text); }
.persona-panel .pp-mock .ok { color: var(--good); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 4px;
  cursor: pointer;
  transition: background 160ms;
}
.faq details:hover { background: var(--surface); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--muted);
  transition: transform 200ms;
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 300;
}
.faq details[open] summary::after { content: "−"; color: var(--accent-2); border-color: var(--border-accent); }
.faq details p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- final CTA ---------- */
.final-cta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(237,109,43,0.18), transparent 70%),
    linear-gradient(180deg, #0a0a0a, #0c0c10);
  padding: 120px var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}
.final-cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(38px, 5.4vw, 64px); margin-bottom: 16px; }
.final-cta p { font-size: 18px; margin-bottom: 32px; }
.final-cta .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot {
  background: var(--bg);
  padding: 80px var(--pad-x) 32px;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 980px) { .foot-inner { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 14px; }
.foot-brand .brand .logo { width: 24px; height: 24px; }
.foot-brand p { font-size: 14px; max-width: 280px; }
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--muted); transition: color 160ms; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-bottom .socials { display: flex; gap: 12px; }
.foot-bottom .socials a {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: all 160ms;
}
.foot-bottom .socials a:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- writing-in text reveal ---------- */
.write [data-w] {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.4em);
  transition:
    opacity 600ms cubic-bezier(.2,.7,.2,1),
    filter  600ms cubic-bezier(.2,.7,.2,1),
    transform 600ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.write [data-w]::after { content: "\00a0"; }
.write [data-w]:last-child::after { content: ""; }
.write.in [data-w] {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
/* keep hero italic span styling intact when wrapped */
.write .em { font-style: italic; }

/* ---------- cursor blur orb (global) ---------- */
.cursor-orb {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin-left: -260px; margin-top: -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at 50% 50%,
    var(--accent-glow) 0%,
    rgba(237,109,43,0.10) 30%,
    transparent 65%
  );
  filter: blur(40px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 400ms ease, width 220ms ease, height 220ms ease;
  will-change: transform, opacity;
}
.cursor-orb.on { opacity: 1; }
.cursor-orb.zoom {
  width: 720px; height: 720px;
  margin-left: -360px; margin-top: -360px;
  background: radial-gradient(
    circle at 50% 50%,
    var(--accent-glow) 0%,
    rgba(237,109,43,0.18) 25%,
    rgba(237,109,43,0.05) 55%,
    transparent 70%
  );
}
@media (max-width: 760px) { .cursor-orb { display: none; } }

/* (giant watermark logo replaced by scroll-scrub video bg) */

/* ---------- nav logo: rotates with scroll progress ---------- */
.nav-brand .logo {
  transform: rotate(var(--nav-rot, 0deg));
  transition: transform 100ms linear;
  will-change: transform;
}

/* ---------- parallax layers ---------- */
.parallax {
  will-change: transform;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .write [data-w] { opacity: 1; filter: none; transform: none; transition: none; }
  .cursor-orb { display: none; }
  .hero-watermark { animation: none; transition: none; }
  .dot-grid { animation: none; }
}

/* ---------- tweaks panel ---------- */
.tweaks {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  display: none;
  background: rgba(15,15,18,0.92);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px;
  width: 240px;
  box-shadow: 0 30px 80px -10px rgba(0,0,0,0.6);
  font-size: 13px;
}
.tweaks.show { display: block; }
.tweaks h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; font-weight: 500; }
.tweaks .row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.tweaks .row:last-child { margin-bottom: 0; }
.tweaks .swatches { display: flex; gap: 8px; }
.tweaks .swatches button {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid transparent;
  transition: border-color 160ms;
}
.tweaks .swatches button.on { border-color: white; }
.tweaks .toggle {
  display: flex; gap: 6px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
.tweaks .toggle button {
  flex: 1;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--muted);
}
.tweaks .toggle button.on { background: var(--accent); color: white; }
.tweaks-close {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
}
.tweaks-close:hover { color: var(--text); background: var(--surface); }
