/* ═══════════════════════════════════════════════════════
   AILANG Parse — Homepage Sections
   Visual story sections used only on index.html.
   The site-wide palette + typography lives in design-system.css.
   This file should only contain .v2-* and .vs-* components.
   ═══════════════════════════════════════════════════════ */

body.homepage-v2 {
  --border-v2: rgba(26, 25, 21, 0.08);
}

body.homepage-v2 .vs-title {
  font-family: var(--font-headline);
}

/* ── Layout ── */
.v2-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.v2-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.vs-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.vs-desc {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 520px;
  margin-top: 14px;
}

.vs-desc .hl { color: var(--emerald); font-weight: 600; }

/* ── Enhanced Scroll Reveal ── */
body.homepage-v2 .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s cubic-bezier(.16,1,.3,1),
              transform 0.45s cubic-bezier(.16,1,.3,1);
}
body.homepage-v2 .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Slide from left */
body.homepage-v2 .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.45s cubic-bezier(.16,1,.3,1),
              transform 0.45s cubic-bezier(.16,1,.3,1);
}
body.homepage-v2 .reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Slide from right */
body.homepage-v2 .reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.45s cubic-bezier(.16,1,.3,1),
              transform 0.45s cubic-bezier(.16,1,.3,1);
}
body.homepage-v2 .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Scale up */
body.homepage-v2 .reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s cubic-bezier(.16,1,.3,1),
              transform 0.45s cubic-bezier(.16,1,.3,1);
}
body.homepage-v2 .reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
body.homepage-v2 .reveal-delay-1 { transition-delay: .08s; }
body.homepage-v2 .reveal-delay-2 { transition-delay: .16s; }
body.homepage-v2 .reveal-delay-3 { transition-delay: .24s; }
body.homepage-v2 .reveal-delay-4 { transition-delay: .32s; }

/* ── XML Sidebar Parallax ── */
/* Vertical XML columns running down each side of the page.
   The text is rotated 90° so each tag reads top-to-bottom.
   Gradient mask fades toward center so it doesn't clash with content. */
.xml-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(200px, 20vw, 340px);
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.7) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.7) 40%, transparent 100%);
}
.xml-sidebar.visible { opacity: 1; }
.xml-sidebar-inner {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
  color: rgba(0,179,122,.22);
  line-height: 1.9;
  will-change: transform;
  user-select: none;
  padding: 20px 16px;
  white-space: pre;
}
.xml-sidebar-right {
  left: auto;
  right: 0;
  width: clamp(200px, 20vw, 340px);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.7) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.7) 40%, transparent 100%);
}
.xml-sidebar-right .xml-sidebar-inner {
  text-align: right;
  color: rgba(0,179,122,.15);
  font-size: 13px;
}

/* ── Sections ── */
.v2-section { padding: 100px 0; }
.v2-section.alt { background: var(--bg-alt); }
.v2-section.dark {
  background: var(--bg-dark);
  color: var(--cream);
}
.v2-section.dark .vs-desc { color: #a09c94; }
.v2-section.dark .v2-label { color: var(--lime); }

.v2-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ══════════ HERO ══════════ */
.v2-hero {
  display: grid;
  /* Give the path diagram column more room than the copy column —
     the 5-step pipeline is wider than the headline. */
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
}
.v2-hero-copy { /* left column */ }
.v2-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.v2-hero .accent {
  background: linear-gradient(135deg, var(--emerald), var(--lime-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.v2-hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 20px;
  line-height: 1.65;
}
.v2-hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ── Hero Path Diagram (right column) ── */
.v2-hero-diagram {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
  min-width: 0; /* allow grid child to shrink instead of forcing overflow */
}
.v2-path-card { min-width: 0; }
.v2-path-card {
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13px;
}
.v2-path-card--other {
  background: white;
  border: 1px solid var(--border-v2);
}
.v2-path-card--ours {
  background: white;
  border: 2px solid var(--emerald);
  box-shadow: 0 0 0 4px rgba(0,179,122,.06);
}
.v2-path-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.v2-path-card--other .v2-path-label { color: var(--ink-faint); }
.v2-path-card--ours .v2-path-label { color: var(--emerald); }
.v2-path-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
}
.v2-path-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
  min-width: 0;
}
.v2-path-node {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
}
.v2-path-note {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9px;
  color: var(--ink-faint);
}
.v2-path-arrow {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
  color: var(--ink-faint);
}
.v2-path-step--loss {
  background: rgba(255,107,71,.04);
  border: 1px solid rgba(255,107,71,.15);
}
.v2-path-step--win {
  background: rgba(0,179,122,.04);
  border: 1px solid rgba(0,179,122,.15);
}
.v2-path-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 3px;
  max-width: 130px;
}
.v2-path-tags span {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 8px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.v2-path-tags--lost span {
  background: rgba(255,107,71,.08);
  color: var(--coral);
  text-decoration: line-through;
}
.v2-path-tags--kept span {
  background: rgba(0,179,122,.08);
  color: var(--emerald);
}
.v2-path-score {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-v2);
  color: var(--ink-faint);
}
.v2-path-score--win { color: var(--emerald); }
.v2-btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
}
.v2-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.v2-btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-v2);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
}
.v2-hero-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* ══════════ XML TICKER ══════════ */
.xml-ticker {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--border-v2);
  border-bottom: 1px solid var(--border-v2);
}
.xml-ticker-inner {
  white-space: nowrap;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  color: rgba(0,179,122,.25);
  will-change: transform;
}

/* ══════════ DOCUMENT DECOMPOSITION ══════════ */
.vs-doc-visual {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 3/4;
}
.vs-doc-page {
  position: absolute;
  inset: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
  padding: 28px;
  transition: all .8s cubic-bezier(.23,1,.32,1);
  overflow: hidden;
}
.vs-doc-page.breaking {
  opacity: .15;
  transform: scale(.92) rotate(-2deg);
}
.vs-doc-line {
  height: 6px;
  background: rgba(26,25,21,.08);
  border-radius: 3px;
  margin-bottom: 8px;
}
.vs-doc-line.heading { height: 10px; background: rgba(26,25,21,.18); margin-bottom: 16px; width: 60%; }
.vs-doc-line.short { width: 40%; }
.vs-doc-line.mid { width: 70%; }
.vs-doc-line.long { width: 90%; }
.vs-doc-table-ph {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
  margin-top: 16px;
}
.vs-doc-tc { height: 14px; background: rgba(26,25,21,.06); border-radius: 2px; }
.vs-doc-tc.hdr { background: rgba(26,25,21,.12); }

.vs-block-chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-30px);
  transition: all .6s cubic-bezier(.23,1,.32,1);
  white-space: nowrap;
}
.vs-block-chip.vis {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════ TRACK CHANGES VIZ ══════════ */
.vs-tc-viz {
  background: white;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--border-v2);
  font-size: 15px;
  line-height: 2;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.vs-tc-del {
  color: var(--coral);
  text-decoration: line-through;
  text-decoration-color: rgba(255,107,71,.5);
  opacity: 0;
  transition: opacity .5s ease;
}
.vs-tc-ins {
  color: var(--emerald);
  background: rgba(0,179,122,.08);
  padding: 1px 4px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity .5s ease .3s;
}
.vs-tc-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  background: rgba(0,179,122,.08);
  color: var(--emerald);
  padding: 3px 10px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity .5s ease .6s;
  vertical-align: middle;
  margin-left: 6px;
}
.vs-tc-viz.active .vs-tc-del,
.vs-tc-viz.active .vs-tc-ins,
.vs-tc-viz.active .vs-tc-author { opacity: 1; }

/* ══════════ MERGED CELLS ══════════ */
.vs-merge-viz {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.vs-merge-table {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-v2);
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.vs-merge-table td {
  padding: 10px 14px;
  font-size: 12px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  border: 1px solid var(--border-v2);
  text-align: center;
  transition: all .6s cubic-bezier(.23,1,.32,1);
}
.vs-merge-table .merged {
  background: rgba(0,179,122,.06);
  border-color: rgba(0,179,122,.2);
  color: var(--emerald);
  font-weight: 600;
}
.vs-merge-table .flat td {
  background: rgba(255,107,71,.04);
  border-color: rgba(255,107,71,.15);
  color: var(--ink-soft);
}
.vs-merge-arrow {
  font-size: 24px;
  color: var(--emerald);
  align-self: center;
  opacity: 0;
  transform: scaleX(0);
  transition: all .5s cubic-bezier(.23,1,.32,1) .3s;
}
.vs-merge-arrow.vis { opacity: 1; transform: scaleX(1); }
.vs-merge-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 0 4px;
  color: var(--ink-faint);
}
.vs-merge-label.good { color: var(--emerald); }

/* ══════════ SPEED RACE ══════════ */
.vs-race-lane {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.vs-race-label {
  font-size: 13px;
  font-weight: 600;
  min-width: 120px;
  text-align: right;
}
.vs-race-track {
  flex: 1;
  height: 36px;
  background: var(--bg-alt);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.vs-race-bar {
  height: 100%;
  border-radius: 8px;
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  color: white;
}
.vs-race-bar.ailang { background: linear-gradient(90deg, var(--emerald), var(--lime-deep)); }
.vs-race-bar.other { background: var(--ink-faint); }
.vs-race-time {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  min-width: 50px;
  color: var(--ink-soft);
}

/* ══════════ BENCHMARK BARS ══════════ */
.vs-bench-row { margin-bottom: 16px; }
.vs-bench-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 13px;
}
.vs-bench-name { font-weight: 600; }
.vs-bench-score {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 600;
}
.vs-bench-track {
  height: 28px;
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
}
.vs-bench-fill {
  height: 100%;
  border-radius: 8px;
  width: 0;
  transition: width 1.2s cubic-bezier(.23,1,.32,1);
}

/* ══════════ EVAL PIPELINE ══════════ */
.vs-eval-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}
.vs-eval-step {
  flex: 1;
  padding: 20px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s cubic-bezier(.23,1,.32,1), transform .5s cubic-bezier(.23,1,.32,1);
}
.vs-eval-step.vis { opacity: 1; transform: translateY(0); }
.vs-eval-step-num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.vs-eval-step-title {
  font-family: var(--font-heading, 'Source Serif 4', serif);
  font-size: 15px;
  font-weight: 700;
  color: #f0ede8;
  margin-bottom: 8px;
  line-height: 1.3;
}
.vs-eval-step-detail {
  font-size: 12px;
  color: #8a8880;
  line-height: 1.5;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
.vs-eval-arrow {
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  font-size: 20px;
  color: var(--lime);
  opacity: 0;
  transition: opacity .4s;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 700;
}
.vs-eval-arrow.vis { opacity: .6; }
.vs-eval-result {
  flex-shrink: 0;
  width: 120px;
  padding: 24px 16px;
  border-radius: 12px;
  background: rgba(184,230,0,.08);
  border: 2px solid var(--lime);
  text-align: center;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .6s cubic-bezier(.23,1,.32,1), transform .6s cubic-bezier(.23,1,.32,1);
}
.vs-eval-result.vis { opacity: 1; transform: scale(1); }
.vs-eval-score {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 32px;
  font-weight: 700;
  color: var(--lime);
}
.vs-eval-score-label {
  font-size: 10px;
  color: #8a8880;
  margin-top: 4px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ══════════ PRIVACY CARDS ══════════ */
.vs-privacy-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vs-priv-card {
  border-radius: 14px;
  padding: 24px 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.23,1,.32,1), transform .5s cubic-bezier(.23,1,.32,1);
}
.vs-priv-card.active { opacity: 1; transform: translateY(0); }
.vs-priv-card.local {
  background: rgba(0,179,122,.04);
  border: 1px solid rgba(0,179,122,.18);
}
.vs-priv-card.api {
  background: rgba(71,176,255,.04);
  border: 1px solid rgba(71,176,255,.15);
}
.vs-priv-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.vs-priv-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.vs-priv-badge.green { background: rgba(0,179,122,.12); color: var(--emerald); }
.vs-priv-badge.blue { background: rgba(71,176,255,.12); color: var(--blue); }
.vs-priv-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vs-priv-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.vs-priv-node {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.vs-priv-node.doc {
  background: rgba(71,176,255,.08);
  border: 1px solid rgba(71,176,255,.2);
  color: var(--blue);
}
.vs-priv-node.engine {
  background: rgba(0,179,122,.08);
  border: 1px solid rgba(0,179,122,.2);
  color: var(--emerald);
}
.vs-priv-node.engine.api {
  background: rgba(71,176,255,.08);
  border: 1px solid rgba(71,176,255,.2);
  color: var(--blue);
}
.vs-priv-node.result {
  background: rgba(184,230,0,.08);
  border: 1px solid rgba(184,230,0,.25);
  color: var(--lime-deep);
}
.vs-priv-arrow {
  font-size: 18px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.vs-priv-note {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ══════════ FORMAT PIPELINE ══════════ */
.vs-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.vs-pipe-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.vs-pipe-file {
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-20px);
  transition: all .4s cubic-bezier(.23,1,.32,1);
}
.vs-pipe-file.vis { opacity: 1; transform: translateX(0); }
.vs-pipe-file.det { background: rgba(0,179,122,.08); color: var(--emerald); border: 1px solid rgba(0,179,122,.2); }
.vs-pipe-file.ai { background: rgba(164,122,255,.08); color: var(--purple); border: 1px solid rgba(164,122,255,.2); }
.vs-pipe-file.nat { background: rgba(71,176,255,.08); color: var(--blue); border: 1px solid rgba(71,176,255,.2); }
.vs-pipe-funnel {
  width: 100px;
  height: 160px;
  margin: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vs-pipe-funnel svg { width: 100px; height: 160px; }
.vs-pipe-output {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}
.vs-pipe-block {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  background: rgba(184,230,0,.08);
  color: var(--lime-deep);
  border: 1px solid rgba(184,230,0,.2);
  opacity: 0;
  transform: translateX(20px);
  transition: all .4s cubic-bezier(.23,1,.32,1);
}
.vs-pipe-block.vis { opacity: 1; transform: translateX(0); }

/* ══════════ STATS ROW ══════════ */
.v2-stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
  padding: 100px 0;
}
.v2-stat { text-align: center; }
.v2-stat-value {
  font-family: var(--font-headline);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.v2-stat-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ══════════ CTA SECTION ══════════ */
.v2-cta {
  padding: 120px 0;
  background: var(--bg-dark);
  color: var(--cream);
  text-align: center;
}
.v2-cta h2 {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 560px;
  margin: 0 auto 16px;
}
.v2-cta .accent { color: var(--lime); }
.v2-cta-desc {
  font-size: 16px;
  color: #a09c94;
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.v2-btn-lime {
  background: var(--lime);
  color: var(--bg-dark);
  border: none;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
}
.v2-btn-lime:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(184,230,0,.25);
}

/* ══════════ WASM DEMO OVERRIDES ══════════ */
body.homepage-v2 .dp-dropzone {
  border-color: rgba(0,179,122,.25);
}
body.homepage-v2 .dp-dropzone:hover,
body.homepage-v2 .dp-dropzone.dragover {
  border-color: var(--emerald);
  background: rgba(0,179,122,.04);
  box-shadow: 0 0 0 4px rgba(0,179,122,.06);
}
body.homepage-v2 .dp-hero-cta {
  background: var(--ink);
}
body.homepage-v2 .dp-hero-cta:hover {
  background: #2a2820;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 768px) {
  .v2-two-col { grid-template-columns: 1fr; gap: 40px; }
  .vs-merge-viz { flex-direction: column; align-items: center; }
  .vs-pipeline { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .vs-pipe-files, .vs-pipe-output { justify-content: center; }
  .vs-pipe-funnel { margin: 0; }
  .v2-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 72px; }
  .v2-hero h1 { font-size: clamp(32px, 8vw, 48px); }
  /* Hero path diagram: switch to vertical flow on mobile so the
     5-step pipeline doesn't overflow the viewport. */
  .v2-hero-diagram { min-width: 0; }
  .v2-path-card { padding: 16px; }
  .v2-path-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .v2-path-step { width: 100%; padding: 8px 12px; }
  .v2-path-arrow {
    transform: rotate(90deg);
    align-self: center;
    margin: 2px 0;
  }
  .v2-path-tags { flex-wrap: wrap; justify-content: center; }
  .v2-path-tags span { font-size: 9px; padding: 2px 6px; }
  .v2-path-node { font-size: 12px; }
  .v2-section { padding: 60px 0; }
  .v2-stats-row { gap: 24px; padding: 60px 0; }
  .xml-sidebar { display: none; }
  .vs-eval-pipeline { flex-direction: column; gap: 8px; }
  .vs-eval-arrow { transform: rotate(90deg); width: auto; }
  .vs-eval-result { width: 100%; }
  .vs-priv-flow { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .vs-priv-card { padding: 18px 16px; }
  .vs-priv-node { padding: 10px 14px; font-size: 12px; }
  /* On mobile, directional reveals fall back to simple fade-up */
  body.homepage-v2 .reveal-left,
  body.homepage-v2 .reveal-right {
    transform: translateY(28px);
  }
  body.homepage-v2 .reveal-left.visible,
  body.homepage-v2 .reveal-right.visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.homepage-v2 .reveal,
  body.homepage-v2 .reveal-left,
  body.homepage-v2 .reveal-right,
  body.homepage-v2 .reveal-scale,
  .vs-block-chip,
  .vs-tc-del, .vs-tc-ins, .vs-tc-author,
  .vs-merge-arrow,
  .vs-race-bar,
  .vs-bench-fill,
  .vs-eval-step, .vs-eval-arrow, .vs-eval-result,
  .vs-priv-card,
  .vs-pipe-file, .vs-pipe-block {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }
  body.homepage-v2 .reveal,
  body.homepage-v2 .reveal-left,
  body.homepage-v2 .reveal-right,
  body.homepage-v2 .reveal-scale {
    opacity: 1;
    transform: none;
  }
  .xml-sidebar { display: none; }
}

