/* OpenLevel v2 - orange palette, dynamic scroll */
:root {
  --bg: #08080a;
  --bg-1: #0e0d10;
  --bg-2: #15131a;
  --bg-3: #1d1a23;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.14);
  --line-warm: rgba(255,138,31,0.18);
  --fg: #f6f4f1;
  --fg-2: #c5c1ba;
  --fg-3: #8d877e;
  --fg-4: #5b554c;

  --accent: #ff8a1f;
  --accent-soft: rgba(255,138,31,0.10);
  --accent-2: #ff4d2e;
  --accent-3: #ffb152;
  --accent-grad: linear-gradient(135deg, #ffa84a 0%, #ff4d2e 100%);
  --accent-ink: #0a0708;

  --warn: #ffb152;
  --bad: #ff5a55;
  --good: #4cd964;

  --radius: 14px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --max: 1280px;
  --pad: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); scroll-behavior: auto; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: 120px 0; position: relative; }
.section--sm { padding: 80px 0; }
.section--lg { padding: 160px 0; }

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.eyebrow--accent { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 84px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(38px, 5.2vw, 72px); letter-spacing: -0.03em; line-height: 1.0; }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.018em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }

.serif { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--accent); }
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { margin: 0; color: var(--fg-2); }
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--fg-2); max-width: 64ch; }

.section-header { display: flex; flex-direction: column; gap: 18px; max-width: 980px; margin-bottom: 64px; }
.section-header .eyebrow { margin-bottom: 4px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, filter .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-grad);
  color: #1a0f06;
  font-weight: 600;
  box-shadow: 0 8px 32px -8px rgba(255,77,46,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost {
  background: rgba(255,255,255,0.02);
  color: var(--fg);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.22); }
.btn--link {
  background: transparent;
  color: var(--fg-2);
  padding: 14px 4px;
  border-radius: 0;
}
.btn--link:hover { color: var(--fg); }
.btn--link::after { content: "→"; transition: transform .2s ease; }
.btn--link:hover::after { transform: translateX(3px); }
.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 10, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-color: var(--line); background: rgba(8, 8, 10, 0.82); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; font-size: 16px; }
.brand-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 15px rgba(245,158,11,0.3);
}
.brand-name {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-name-open { color: var(--fg); }
.brand-name-level {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 16px; font-size: 13px; }
.nav-login { font-size: 13px; color: var(--fg-2); padding: 10px 12px; }
.nav-login:hover { color: var(--fg); }
@media (max-width: 1024px) { .nav-links { display: none; } }
.nav-login, .nav .btn { white-space: nowrap; }

/* Backgrounds */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,138,31,0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.bg-glow {
  position: absolute;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(255,138,31,0.14), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
.bg-glow--tr { top: -300px; right: -300px; }
.bg-glow--bl { bottom: -400px; left: -300px; background: radial-gradient(circle, rgba(255,77,46,0.10), transparent 60%); }
.bg-glow--c { top: 30%; left: 50%; transform: translate(-50%, -50%); }

/* ===== HERO - pinned with scroll morph ===== */
.hero {
  position: relative;
  min-height: 240vh; /* extra scroll for morph */
  padding-top: 0;
}
.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 0;
}
@media (max-height: 820px) {
  .hero-pin { align-items: flex-start; padding-top: 96px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 2;
}
@media (max-width: 1024px) {
  .hero { min-height: 0; padding-top: 0; }
  .hero-pin {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    align-items: flex-start;
    padding: 100px 0 64px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy, .hero-visual { opacity: 1 !important; transform: none !important; }
}

.hero-copy { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.hero-copy h1 { margin-top: 4px; will-change: transform, opacity; }
.hero-copy h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: word-in .8s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-copy h1 .word.serif { color: var(--accent); }
@keyframes word-in { to { opacity: 1; transform: none; } }

.hero-sub { color: var(--fg-2); font-size: clamp(15px, 1.15vw, 18px); max-width: 60ch; line-height: 1.55; }
.hero-support { color: var(--fg-3); font-family: var(--font-mono); font-size: 12.5px; padding-top: 16px; border-top: 1px dashed var(--line); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.hero-trust { color: var(--fg-3); font-size: 13px; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); }
.hero-trust .check { color: var(--accent); font-size: 14px; }

/* Hero visual stack - receives scroll-driven transform */
.hero-visual {
  position: relative;
  will-change: transform;
}

/* The big "01 / problem" chapter plate */
.chapter {
  position: relative;
  height: 180vh; /* must exceed viewport so sticky inner has scroll room for pin-progress */
  display: block;
  overflow: visible;
  z-index: 5;
}
.chapter-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.chapter-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  will-change: transform, opacity;
  padding: 0 var(--pad);
}
.chapter-num {
  font-family: var(--font-display);
  font-size: clamp(140px, 26vw, 380px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-weight: 500;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chapter-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 24ch;
}
.chapter-title .serif { color: var(--accent); }

/* Live IDE / signal panel */
.live-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.6), 0 0 60px -20px rgba(255,138,31,0.08);
  position: relative;
}
.live-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  background: rgba(255,255,255,0.015);
}
.traffic { display: inline-flex; gap: 6px; }
.traffic span { width: 10px; height: 10px; border-radius: 50%; }
.traffic span:nth-child(1) { background: #ff5f57; }
.traffic span:nth-child(2) { background: #febc2e; }
.traffic span:nth-child(3) { background: #28c840; }
.live-card__head .label { margin-left: 6px; }
.live-card__head .tag {
  margin-left: auto; padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 11px;
  border: 1px solid var(--line-warm);
}

.code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 16px 18px;
  color: var(--fg-2);
  white-space: pre;
  overflow: hidden;
  min-height: 220px;
  margin: 0;
}
.code .ln { display: inline-block; width: 28px; color: var(--fg-4); user-select: none; }
.code .kw { color: #c084fc; }
.code .fn { color: #60d8ff; }
.code .str { color: var(--accent); }
.code .num { color: #ffb86c; }
.code .cm { color: var(--fg-4); font-style: italic; }
.code .ty { color: #ffb152; }
.code .cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.signal-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grader {
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  min-height: 200px;
  display: flex; flex-direction: column;
}
.grader-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.grader-head .title { color: var(--fg); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.grader-head .pulse { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 11px; }
.grader-head .pulse::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.grader-log { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.grader-log .row { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: start; opacity: 0; transform: translateY(4px); animation: in .5s ease forwards; }
.grader-log .row .t { color: var(--fg-4); }
.grader-log .row .m { color: var(--fg-2); }
.grader-log .row .m b { color: var(--accent); font-weight: 500; }
@keyframes in { to { opacity: 1; transform: none; } }

.signal {
  padding: 16px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 16px;
}
.signal-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.signal-score {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.signal-verdict {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--line-warm);
}
.signal-rows { display: flex; flex-direction: column; gap: 10px; }
.signal-rows .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }
.signal-rows .bar { grid-column: 1 / -1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.signal-rows .bar > i { display: block; height: 100%; background: var(--accent-grad); width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }

/* Marquee */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  overflow: hidden;
  background: var(--bg-1);
  position: relative;
  z-index: 6;
}
.marquee {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll 50s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  align-items: center;
}
.marquee .item { display: inline-flex; gap: 10px; align-items: center; }
.marquee .item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== PROBLEM - sticky stack ===== */
.problem-stack {
  position: relative;
  margin-top: 40px;
}
.problem-card {
  position: sticky;
  top: 120px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px 44px;
  min-height: 320px;
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 18px;
  transition: transform .4s ease, box-shadow .4s ease;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.7);
}
@media (max-width: 800px) {
  .problem-card { grid-template-columns: 1fr; padding: 32px 24px; }
}
.problem-card .idx {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.85;
  font-weight: 500;
  letter-spacing: -0.04em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.problem-card .ttl h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.022em;
  color: var(--fg);
}
.problem-card .ttl .strike {
  font-family: var(--font-mono); color: var(--bad);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.problem-card .ttl .strike::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.problem-card .body p { color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.problem-card .body .quote {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  line-height: 1.5;
}

/* ===== SOLUTION - horizontal pin scroll ===== */
.hpin {
  position: relative;
}
.hpin-track-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hpin-track {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--pad);
  gap: 24px;
  will-change: transform;
}
.hpin-title {
  flex-shrink: 0;
  width: 50vw;
  max-width: 600px;
  padding-right: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hpin-title h2 { font-size: clamp(40px, 6vw, 88px); }
.hpin-title .lede { font-size: 17px; color: var(--fg-2); }

.hpin-card {
  flex-shrink: 0;
  width: 460px;
  height: 70vh;
  max-height: 580px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.hpin-card:hover { border-color: var(--line-warm); }
.hpin-card .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.hpin-card h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hpin-card p { color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.hpin-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--line-warm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 18px;
}
.hpin-card .footnote {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
}
.hpin-card .visual {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  line-height: 1.6;
}

.hpin-progress {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  z-index: 5;
}
.hpin-progress > i {
  display: block;
  height: 100%;
  background: var(--accent-grad);
  width: 0;
  transition: width .1s linear;
}
.hpin-counter {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hpin-counter b { color: var(--accent); font-weight: 500; }

@media (max-width: 768px) {
  .hpin-track-wrap { position: static; height: auto; }
  .hpin-track { flex-direction: column; height: auto; transform: none !important; padding: 80px var(--pad); }
  .hpin-card, .hpin-title { width: 100%; height: auto; max-width: 100%; }
  .hpin-progress, .hpin-counter { display: none; }
}

/* ===== Two-buyer split ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split-card {
  padding: 52px 40px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background .4s ease;
  min-height: 420px;
  overflow: hidden;
}
.split-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255,138,31,0.10), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.split-card:hover::before { opacity: 1; }
.split-card .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase;
}
.split-card .role .swatch {
  width: 28px; height: 18px; border-radius: 4px;
  background: var(--accent-grad);
}
.split-card.right .role .swatch {
  background: linear-gradient(135deg, #ffb152, #ff8a1f);
}
.split-card h3 {
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  position: relative;
}
.split-card p { color: var(--fg-2); font-size: 15px; line-height: 1.55; max-width: 44ch; position: relative; }
.split-card .cta { margin-top: auto; position: relative; }
.split-card .bullets { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; position: relative; }
.split-card .bullets li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-3);
  list-style: none;
}
.split-card .bullets li::before { content: "›"; color: var(--accent); }

/* ===== HOW IT WORKS - sticky steps with crossfade ===== */
.hiw-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}
@media (max-width: 1024px) { .hiw-wrap { grid-template-columns: 1fr; gap: 32px; } }

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 30vh 0 30vh 28px;
  position: relative;
}

/* The vertical rail with dots indicating progress */
.hiw-rail {
  position: absolute;
  left: 0;
  top: 30vh;
  bottom: 30vh;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.hiw-rail__fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--accent-grad);
  border-radius: 2px;
  transition: height .6s cubic-bezier(.2,.7,.2,1);
}
.hiw-rail__dot {
  position: absolute;
  left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--line);
  transform: translate(-50%, -50%);
  transition: all .4s ease;
}
.hiw-rail__dot.is-passed { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent-soft); }
.hiw-rail__dot.is-active { width: 14px; height: 14px; box-shadow: 0 0 0 6px var(--accent-soft), 0 0 16px var(--accent); }

.hiw-step {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-align: left;
  width: 100%;
  min-height: 55vh;
  transition: none;
}

.hiw-step__card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 16px;
  width: 100%;
  opacity: 0.42;
  transform: scale(0.97);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1),
              transform .55s cubic-bezier(.2,.7,.2,1),
              border-color .4s ease,
              background .4s ease,
              box-shadow .4s ease;
}
.hiw-step:hover .hiw-step__card { opacity: 0.7; }
.hiw-step.is-passed .hiw-step__card { opacity: 0.35; }
.hiw-step.is-active .hiw-step__card {
  opacity: 1;
  transform: scale(1);
  background: linear-gradient(180deg, var(--bg-1), transparent);
  border-color: var(--line-warm);
  box-shadow:
    0 0 0 1px var(--accent-soft) inset,
    0 24px 60px -30px rgba(255,138,31,0.18);
}

.hiw-step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all .35s ease;
}
.hiw-step.is-passed .step-num {
  background: rgba(255,138,31,0.06);
  border-color: var(--line-warm);
  color: var(--accent);
}
.hiw-step.is-active .step-num {
  background: var(--accent-grad);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
}

.hiw-step h3 { font-size: 18px; color: var(--fg); }
.hiw-step .step-body { display: flex; flex-direction: column; gap: 6px; }
.hiw-step p { font-size: 13.5px; color: var(--fg-3); line-height: 1.55; }
.hiw-step .step-note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.hiw-stage {
  position: sticky;
  top: 100px;
  height: calc(100vh - 140px);
  max-height: 720px;
  min-height: 540px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  overflow: hidden;
}
.hiw-stage__meta {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}
.hiw-stage__counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hiw-stage__counter b {
  color: var(--accent);
  font-weight: 500;
}
.hiw-stage__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.hiw-frame {
  position: absolute; inset: 56px 28px 28px;
  display: flex; flex-direction: column;
  opacity: 0;
  transform: scale(0.96) translateY(16px);
  transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.hiw-frame.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.1s; }

@media (max-width: 1024px) {
  /* Reorder via grid-areas: stage first (sticky at top), steps below */
  .hiw-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "stage" "steps";
    gap: 24px;
  }
  .hiw-steps { grid-area: steps; padding: 0; gap: 16px; }
  .hiw-stage {
    grid-area: stage;
    position: sticky;
    top: 64px;
    height: 320px;
    min-height: 0;
    max-height: 60vh;
    z-index: 5;
    box-shadow: 0 14px 32px -18px rgba(0,0,0,0.7);
  }
  .hiw-frame { inset: 48px 16px 16px; }
  .hiw-rail { display: none; }
  .hiw-step { min-height: 0; }
  .hiw-step__card { opacity: 1; transform: none; }
  .hiw-step.is-active .hiw-step__card { box-shadow: 0 0 0 1px var(--accent-soft) inset; }
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feat { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: border-color .2s ease, transform .25s ease; }
.feat:hover { border-color: var(--line-warm); transform: translateY(-2px); }
.feat h4 { color: var(--fg); margin-bottom: 8px; font-size: 19px; }
.feat p { color: var(--fg-3); font-size: 14px; line-height: 1.55; }
.feat .meta { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.feat.col-6 { grid-column: span 6; }
.feat.col-4 { grid-column: span 4; }
.feat.col-8 { grid-column: span 8; }
.feat.col-12 { grid-column: span 12; }
@media (max-width: 900px) { .feat.col-6, .feat.col-4, .feat.col-8, .feat.col-12 { grid-column: span 12; } }

/* ===== Trial flow - horizontal stepper ===== */
.trial-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 32px;
}
@media (max-width: 900px) { .trial-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .trial-flow { grid-template-columns: 1fr; } }
.trial-step {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
  min-height: 210px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: border-color .2s ease;
}
.trial-step:hover { border-color: var(--line-warm); }
.trial-step .step-no { font-family: var(--font-mono); color: var(--accent); font-size: 11px; letter-spacing: 0.1em; }
.trial-step h4 { font-size: 14px; }
.trial-step p { font-size: 12.5px; color: var(--fg-3); line-height: 1.45; }
.trial-step.is-credit {
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border-color: var(--line-warm);
}

/* ===== Compare ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: 36px 32px; background: var(--bg); }
.compare-col h4 { font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 22px; font-weight: 400; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.compare-col li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
.compare-col li .mark { font-family: var(--font-mono); font-size: 12px; flex-shrink: 0; padding-top: 3px; }
.compare-col.bad li .mark { color: var(--bad); }
.compare-col.good { background: linear-gradient(180deg, var(--accent-soft), transparent); }
.compare-col.good li .mark { color: var(--accent); }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  font-family: var(--font-mono);
  color: var(--fg-3);
  font-size: 18px;
  transition: transform .2s ease, color .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary .plus { transform: rotate(45deg); color: var(--accent); }
.faq .answer { margin-top: 14px; color: var(--fg-2); max-width: 72ch; font-size: 15px; line-height: 1.6; }

/* ===== CTA band ===== */
.cta-band {
  border: 1px solid var(--line-warm);
  border-radius: 28px;
  padding: 80px 56px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255,138,31,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--accent), transparent 30%, transparent 70%, var(--accent-2)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  border-radius: 28px; opacity: 0.5; pointer-events: none;
}
.cta-band h2 { font-size: clamp(40px, 5.4vw, 72px); }
.cta-band .lede { text-align: center; margin: 0 auto; }
.cta-band .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.cta-band .micro { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }

/* ===== Footer ===== */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); color: var(--fg-3); position: relative; z-index: 4; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 { color: var(--fg); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; color: var(--fg-3); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; font-family: var(--font-mono); color: var(--fg-4); }
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 12px; } }

/* ===== Demo form ===== */
.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 56px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255,138,31,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .demo-wrap { grid-template-columns: 1fr; gap: 36px; padding: 36px 28px; }
}
.demo-copy { display: flex; flex-direction: column; gap: 18px; }
.demo-copy h2 { font-size: clamp(32px, 3.6vw, 52px); }
.demo-copy .lede { font-size: 16px; }
.demo-perks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.demo-perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.demo-perks li .mark { font-family: var(--font-mono); color: var(--accent); font-size: 12px; padding-top: 3px; flex-shrink: 0; }

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.demo-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .demo-form .form-row { grid-template-columns: 1fr; } }
.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-form label > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  outline: none;
}
.demo-form input::placeholder,
.demo-form textarea::placeholder { color: var(--fg-4); }
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.demo-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.demo-form textarea { resize: vertical; min-height: 96px; font-family: var(--font-sans); }
.demo-form .full { width: 100%; }
.demo-form .form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.demo-form .micro {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}

.demo-success {
  border: 1px solid var(--line-warm);
  border-radius: 24px;
  padding: 64px 48px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.demo-success h2 { font-size: clamp(32px, 4vw, 48px); }

/* ===== Stats counter row ===== */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  margin-top: 56px;
}
@media (max-width: 800px) { .stat-bar { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--bg);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.stat .value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 64px);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat .label { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.stat .desc { color: var(--fg-3); font-size: 13.5px; line-height: 1.5; }

/* ===== Reveal helpers (scroll in) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: 0.48s; }

/* Section divider line that draws in */
.draw-line {
  position: relative;
  height: 1px;
  background: var(--line);
  overflow: hidden;
  margin: 0;
}
.draw-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.draw-line.is-in::after { transform: scaleX(1); }

/* Scroll progress bar (top) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress > i {
  display: block; height: 100%;
  background: var(--accent-grad);
  width: 0;
  transform-origin: left;
}

/* Big section title with mask shimmer */
.big-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.big-eyebrow .bar {
  width: 32px; height: 1px; background: var(--accent);
}

/* ===== Mobile fixes ===== */

/* Hero H1: avoid clipping when words like "AI" run to the edge */
.hero-copy h1 { overflow-wrap: anywhere; word-break: break-word; }
.hero-copy h1, .cta-band h2 { text-wrap: pretty; }

@media (max-width: 640px) {
  h1 { font-size: 36px; letter-spacing: -0.025em; line-height: 1.08; }
  h2 { font-size: 32px; line-height: 1.1; }
  .lede { font-size: 15px; }
  .hero-copy { gap: 14px; }
  .hero-copy h1 { margin-top: 0; }
}

/* Split-card CTA: button overflows the card on narrow widths */
@media (max-width: 800px) {
  .split-card { padding: 36px 22px; min-height: 0; }
  .split-card h3 { font-size: 22px; }
  .split-card p { font-size: 14px; }
  .split-card .cta { width: 100%; }
  .split-card .cta .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 14px 16px;
    justify-content: center;
  }
}

/* CTA band: stop the headline fragmenting to one word per line */
@media (max-width: 640px) {
  .cta-band { padding: 56px 24px; border-radius: 22px; }
  .cta-band h2 { font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; }
  .cta-band .cta-row { flex-direction: column; width: 100%; }
  .cta-band .cta-row .btn { width: 100%; justify-content: center; white-space: normal; line-height: 1.3; }
}

/* How It Works mobile stage: give the sticky canvas room to actually
   show the active visual, and let it scroll internally if content is taller. */
@media (max-width: 1024px) {
  .hiw-stage { height: clamp(380px, 60vh, 460px); }
  .hiw-frame { inset: 44px 12px 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .hiw-frame::-webkit-scrollbar { width: 0; height: 0; }
  .hiw-frame { scrollbar-width: none; }
  .hiw-frame h3 { font-size: 16px; }
  .hiw-stage .live-card__head { padding: 10px 12px; font-size: 11px; }
}

/* Trust marquee + nav padding shrink on small phones for less crowding */
@media (max-width: 480px) {
  :root { --pad: 20px; }
  .section { padding: 80px 0; }
  .brand-name { font-size: 18px; }
  .nav-cta .btn { padding: 9px 13px; font-size: 12px; }
  .nav-login { padding: 8px 8px; }
}

/* Hero live-sim mobile fixes.
   After the animation completes, the 52px score + "STRONG HIRE" badge
   force the 2-col signal panel wider than its grid columns, blowing out
   the hero visual to the right. Stack the panel vertically on mobile
   and let grid items actually shrink. */
@media (max-width: 768px) {
  .hero-visual { width: 100%; min-width: 0; }
  .hero-visual .live-card,
  .hero-visual .grader,
  .hero-visual .signal { min-width: 0; }
  .signal-panel { grid-template-columns: 1fr; }
  .signal-panel > * { min-width: 0; }
  .signal-top { flex-wrap: wrap; gap: 12px; }
  .signal-score { font-size: 40px; }
  .signal-verdict { white-space: nowrap; }
  .grader-log .row { grid-template-columns: 50px 1fr; gap: 8px; }
  .code {
    font-size: 11.5px;
    line-height: 1.55;
    padding: 14px 14px;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .code .ln { width: 22px; }
}
