/* ============ Tokens — LIGHT MODE ============ */
:root {
  --orange: #FF6B00;
  --orange-deep: #E55E00;
  --orange-soft: rgba(255, 107, 0, 0.18);
  --orange-glow: rgba(255, 107, 0, 0.06);
  --orange-tint: rgba(255, 107, 0, 0.06);
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --card-elev: #F4F4F0;
  --card-deep: #F0EFEA;
  --border: #E6E4DE;
  --border-strong: #D8D5CC;
  --text: #0D0D0D;
  --text-2: #6B6B66;
  --text-3: #9A9893;
  --blue: #2563EB;
  --blue-soft: #DBEAFE;
  --grey: #B0AEA8;
  --pass: #15803D;
  --pass-soft: #DCFCE7;
  --fail: #DC2626;
  --fail-soft: #FEE2E2;
  --max: 1280px;
  --sect-pad: 96px;
  --radius: 12px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-feature-settings: "ss01","cv11"; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

section { padding: var(--sect-pad) 0; position: relative; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); font-weight: 600;
}
.section-title { font-size: 44px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 12px; }
.section-sub { font-size: 17px; color: var(--text-2); max-width: 680px; margin: 0 0 56px; line-height: 1.5; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 100;
  background: rgba(250, 250, 247, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; display: block; }
.brand-word { font-weight: 700; letter-spacing: -0.01em; font-size: 15px; color: var(--text); }
.nav-center { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; text-align: center; color: var(--text); }
.nav-right { display: flex; justify-content: flex-end; }
.pill-badge {
  background: rgba(255,107,0,0.1); color: var(--orange);
  border: 1px solid rgba(255,107,0,0.3);
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============ Hero — editorial layout ============ */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; right: -200px; top: 30%; transform: translateY(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px; margin-bottom: 28px;
}
.hero-meta {
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  letter-spacing: 0.12em; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.035em; margin: 0 0 56px; max-width: 880px;
  text-wrap: balance; color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--orange); }

/* The 2.69M centerpiece */
.hero-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 16px 0 8px;
}
.hf-left { position: relative; }
.hf-number {
  display: flex; align-items: flex-start; gap: 16px;
  line-height: 0.85;
}
.hf-num-main {
  font-size: clamp(96px, 13vw, 180px);
  font-weight: 800; color: var(--orange);
  letter-spacing: -0.06em;
  font-feature-settings: "tnum";
  line-height: 0.82;
  display: inline-flex; align-items: baseline;
}
.hf-num-main .hf-mil {
  font-size: 0.55em; font-weight: 700;
  margin-left: -0.03em;
}
.hf-tiger {
  width: clamp(34px, 4.5vw, 56px);
  height: auto;
  margin-top: 8px;
  object-fit: contain;
  flex: none;
}
.hf-rule {
  height: 2px; background: var(--text); width: 100%;
  margin: 14px 0 12px; opacity: 0.85;
}
.hf-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text);
}
.hf-context {
  margin-top: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  letter-spacing: 0.02em;
}

.hf-right { border-left: 1px solid var(--border); padding-left: 40px; }
.hf-pull {
  font-size: 18px; line-height: 1.55; color: #2a2a2a; margin: 0;
  font-weight: 400;
}
.hf-pull-em {
  display: inline-block; margin-top: 8px; font-weight: 600;
  color: var(--text); border-bottom: 2px solid var(--orange); padding-bottom: 2px;
}

/* Bottom data strip */
.hero-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  gap: 0;
}
.hs-divider { width: 1px; height: 56px; background: var(--border); }
.hs-stat { padding: 0 8px; }
.hs-num {
  font-size: 38px; font-weight: 700; color: var(--orange);
  letter-spacing: -0.035em; line-height: 1; font-feature-settings: "tnum";
}
.hs-lbl {
  margin-top: 10px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
}
.hs-sub {
  margin-top: 2px; font-size: 11.5px; color: var(--text-2);
  font-family: var(--mono);
}

.scroll-arrow {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--text-3); opacity: 0.7; animation: bounce 1.8s infinite ease-in-out;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============ Chart glyph (tiger marker on chart titles) ============ */
.bench-card h3 {
  display: flex; align-items: center; gap: 8px;
}
.chart-glyph {
  width: 18px; height: 18px; object-fit: contain;
  flex: none;
}

/* TigerGraph mark — used to identify the GraphRAG pipeline */
.tg-mark {
  width: 22px; height: 22px; object-fit: contain;
  flex: none; display: inline-block; vertical-align: middle;
}
.tg-mark.tiny { width: 14px; height: 14px; margin-right: 6px; }
.bar-label .tg-mark { width: 20px; height: 20px; }
.lat-stat.gr .lbl { display: flex; align-items: center; justify-content: center; gap: 0; }

/* Highlight key stats in hero strip */
.hero-strip .hs-stat.key .hs-num { color: var(--orange); }

/* ============ Benchmark ============ */
.bench-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.bench-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.bench-card.span-2 { grid-column: 1 / -1; }
.bench-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.bench-card .desc { color: var(--text-2); font-size: 13px; margin-bottom: 24px; }

/* Bars (Chart A) */
.bar-row { display: grid; grid-template-columns: 220px 1fr 100px; align-items: center; gap: 18px; margin-bottom: 18px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; color: var(--text); }
.bar-label .trophy { color: var(--orange); }
.bar-track { height: 28px; background: var(--card-elev); border-radius: 6px; position: relative; overflow: hidden; border: 1px solid var(--border); }
.bar-fill { height: 100%; border-radius: 5px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.bar-fill.gr { background: linear-gradient(90deg, var(--orange) 0%, #ff8a2b 100%); box-shadow: 0 0 18px rgba(255,107,0,0.45); }
.bar-fill.br { background: var(--blue); }
.bar-fill.ll { background: var(--grey); }
.bar-val { font-family: var(--mono); font-size: 16px; font-weight: 600; text-align: right; }
.bar-val.gr { color: var(--orange); }
.bar-val.br { color: var(--blue); }
.bar-val.ll { color: var(--text-3); }

.bar-annotate {
  position: absolute; top: -22px; bottom: -22px; width: 1.5px; background: var(--fail);
  pointer-events: none;
}
.bar-annotate .label {
  position: absolute; top: -22px; left: 8px;
  font-size: 10px; color: var(--fail); font-weight: 600; white-space: nowrap;
  background: var(--bg); padding: 2px 6px; border-radius: 3px;
}
.bar-stage { position: relative; padding: 22px 0 6px; }

/* Line chart (Chart B) */
.line-wrap { position: relative; }
.line-svg { width: 100%; height: 240px; display: block; }
.line-callout {
  font-family: var(--mono); font-size: 13px; color: var(--orange); font-weight: 600;
  text-align: right; margin-top: 8px;
}

/* Donuts (Chart C) */
.donut-row { display: flex; gap: 32px; justify-content: center; align-items: center; }
.donut-wrap { text-align: center; }
.donut { width: 160px; height: 160px; position: relative; }
.donut svg { transform: rotate(-90deg); }
.donut-center {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 22px;
}
.donut-label { margin-top: 14px; font-size: 13px; font-weight: 600; }
.donut-label.gr { color: var(--orange); }
.donut-label.br { color: var(--blue); }
.donut-caption { font-size: 13px; color: var(--text-2); margin-top: 24px; text-align: center; line-height: 1.5; }

/* Latency (Chart D) */
.lat-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.lat-stat { text-align: center; padding: 32px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-elev); }
.lat-stat .num { font-family: var(--mono); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; }
.lat-stat.br .num { color: var(--blue); }
.lat-stat.gr .num { color: var(--orange); }
.lat-stat .lbl { font-size: 12px; color: var(--text-2); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.lat-badge {
  background: var(--card); color: var(--orange); border: 1px solid rgba(255,107,0,0.3);
  border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 14px;
  box-shadow: 0 0 24px var(--orange-soft);
  white-space: nowrap;
}

/* ============ Architecture ============ */
.arch-stack { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.arch-layer {
  display: grid; grid-template-columns: 220px 1fr; gap: 0;
  padding: 28px 32px; position: relative;
  border-bottom: 1px solid var(--border);
}
.arch-layer:last-child { border-bottom: 0; }
.arch-layer:nth-child(odd) { background: var(--card); }
.arch-layer:nth-child(even) { background: var(--card-elev); }
.arch-layer::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange); opacity: 0.4;
}
.arch-layer.l1::before { opacity: 1; }
.arch-layer .lnum { font-family: var(--mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.1em; text-transform: uppercase; }
.arch-layer .lname { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; color: var(--text); }
.arch-layer .lsys { font-family: var(--mono); font-size: 12px; color: var(--orange); margin-top: 8px; }
.arch-layer .ldesc { font-size: 14px; line-height: 1.6; color: #2a2a2a; }
.arch-layer .lhint { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); margin-top: 10px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; display: inline-block; }
.arch-flow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 20px 0 0; font-size: 12px; color: var(--text-2); font-family: var(--mono);
}

.code-block {
  margin-top: 32px;
  background: #1A1815; color: #f4f1ea; border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 22px 26px; font-family: var(--mono); font-size: 13px; line-height: 1.7;
  overflow-x: auto;
  position: relative;
}
.code-block::before {
  content: 'gsql'; position: absolute; top: 12px; right: 16px;
  font-size: 10px; color: #888; letter-spacing: 0.1em; text-transform: uppercase;
}
.code-block .k { color: #ff9744; font-weight: 600; }
.code-block .s { color: #79c0ff; }
.code-block .c { color: #888; }
.code-cap { text-align: center; color: var(--text-2); font-style: italic; font-size: 13px; margin-top: 14px; }

/* ============ Dataset ============ */
.data-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.data-head .left { flex: 1; min-width: 280px; }
.data-head .section-sub { margin-bottom: 0; }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: white; border: 0;
  padding: 14px 22px; border-radius: 10px; font-weight: 600; font-size: 14px;
  font-family: inherit; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 24px var(--orange-soft);
  transition: transform .15s, filter .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn-download:hover { filter: brightness(1.08); box-shadow: 0 0 32px rgba(255,107,0,0.35); }
.btn-download:active { transform: scale(0.98); }
.btn-download .size {
  font-family: var(--mono); font-size: 11px; opacity: 0.75; font-weight: 500;
  padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.3); margin-left: 2px;
}

.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.data-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.data-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.data-stat .num { font-size: 38px; font-weight: 700; color: var(--orange); letter-spacing: -0.03em; font-feature-settings: "tnum"; line-height: 1; }
.data-stat .lbl { font-size: 13px; margin-top: 10px; font-weight: 600; color: var(--text); }
.data-stat .sub { font-size: 12px; color: var(--text-2); margin-top: 2px; font-style: italic; }

.entity-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.entity-card h4 { margin: 0 0 18px; font-size: 13px; color: var(--text-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.entity-list { display: flex; flex-direction: column; gap: 14px; }
.entity-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 12px; }
.entity-row .name { font-size: 13px; font-weight: 500; }
.entity-row .bar { height: 8px; background: var(--card-elev); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.entity-row .bar-fill { height: 100%; background: var(--orange); border-radius: 4px; }
.entity-row .num { font-family: var(--mono); font-size: 12px; text-align: right; color: #333; }

.callout {
  margin-top: 24px;
  background: var(--card); border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius); padding: 22px 26px;
  font-style: italic; color: #2a2a2a; line-height: 1.6; font-size: 15px;
}

.difficulty {
  margin-top: 32px;
}
.difficulty-title { font-size: 12px; color: var(--text-2); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.diff-bar { display: flex; height: 36px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.diff-seg { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 0 12px; }
.diff-seg.simple { background: var(--orange); color: #fff; }
.diff-seg.multi { background: #ffd9b8; color: #5a2200; }
.diff-seg.synth { background: var(--card-elev); color: var(--text); border-left: 1px solid var(--border); }
.diff-seg .c { font-family: var(--mono); }

/* ============ Live Demo ============ */
.demo-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.query-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 6px 6px 18px;
  display: flex; align-items: center; gap: 8px;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.query-box:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,0,0.15); }
.query-box svg { color: var(--text-3); flex: none; }
.query-input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 15px; padding: 16px 8px; font-family: inherit;
}
.query-input::placeholder { color: var(--text-3); }
.query-submit {
  background: var(--orange); color: white; border: 0; padding: 12px 22px;
  border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.query-submit:hover { filter: brightness(1.1); }
.query-submit:active { transform: scale(0.97); }

.quick-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-pick {
  background: var(--card); border: 1px solid var(--border); color: #333;
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.quick-pick:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-tint); }

.answer-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.answer-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; border-left: 4px solid;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.answer-panel.show { opacity: 1; transform: translateY(0); }
.answer-panel.gr { border-left-color: var(--orange); box-shadow: 0 0 22px var(--orange-soft); }
.answer-panel.br { border-left-color: var(--blue); }
.answer-panel.ll { border-left-color: var(--grey); }
.ap-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ap-name { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.ap-name.gr { color: var(--orange); }
.ap-name.br { color: var(--blue); }
.ap-name.ll { color: var(--text-2); }
.chip {
  font-family: var(--mono); font-size: 10.5px; padding: 3px 8px;
  border-radius: 4px; background: var(--card-elev); border: 1px solid var(--border); color: #555;
  letter-spacing: 0.02em;
}
.chip.pass { color: var(--pass); border-color: #BBF7D0; background: var(--pass-soft); }
.chip.fail { color: var(--fail); border-color: #FECACA; background: var(--fail-soft); }
.ap-body { font-size: 14px; line-height: 1.55; color: #2a2a2a; }
.ap-body .placeholder { color: var(--text-3); font-style: italic; }
.skel { display: flex; flex-direction: column; gap: 8px; }
.skel-line { height: 10px; border-radius: 3px;
  background: linear-gradient(90deg, #eee 0%, #ffe5d0 50%, #eee 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.skel-line:nth-child(2) { width: 88%; }
.skel-line:nth-child(3) { width: 65%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.token-compare { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.token-compare .tc-label { font-size: 11px; color: var(--text-2); width: 80px; font-family: var(--mono); }
.token-compare .tc-row { display: flex; align-items: center; gap: 8px; flex: 1; }
.tc-bar { height: 8px; border-radius: 4px; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.tc-bar.gr { background: var(--orange); }
.tc-bar.br { background: var(--blue); }
.tc-bar.ll { background: var(--grey); }
.tc-num { font-family: var(--mono); font-size: 11px; color: var(--text-2); width: 70px; }

/* Graph canvas */
.graph-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; position: sticky; top: 80px;
  display: flex; flex-direction: column; height: fit-content;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.graph-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.graph-head .ttl { font-size: 13px; font-weight: 600; }
.graph-status {
  font-family: var(--mono); font-size: 11px; color: var(--orange);
  background: var(--orange-tint); padding: 4px 10px; border-radius: 4px;
  border: 1px solid rgba(255,107,0,0.25);
  opacity: 0; transition: opacity .3s;
}
.graph-status.show { opacity: 1; }
.graph-canvas { width: 100%; aspect-ratio: 1 / 1; background: var(--card-elev); border: 1px solid var(--border); border-radius: 8px; position: relative; overflow: hidden; }
.graph-canvas svg { width: 100%; height: 100%; display: block; }
.graph-legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px;
  font-size: 11px; color: var(--text-2);
}
.graph-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; border: 1px solid rgba(0,0,0,0.1); }

/* graph nodes */
.gnode circle { transition: r .3s, opacity .3s, fill .3s, filter .3s; cursor: pointer; }
.gnode text { font-size: 8px; fill: #333; pointer-events: none; transition: opacity .3s; user-select: none; font-weight: 500; }
.gnode.dim { opacity: 0.18; }
.gnode.hot circle { filter: drop-shadow(0 0 6px rgba(255,107,0,0.7)); }
.gedge { stroke: #c8c5be; stroke-width: 1; transition: stroke .3s, stroke-width .3s; }
.gedge.dim { opacity: 0.15; }
.gedge.hot { stroke: var(--orange); stroke-width: 1.5; opacity: 0.85; }
.gpulse circle { fill: var(--orange); }

/* ============ Why won ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.why-card:hover { border-color: rgba(255,107,0,0.4); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,0,0.08); }
.why-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange-tint); color: var(--orange);
  display: grid; place-items: center; font-size: 20px;
  border: 1px solid rgba(255,107,0,0.25);
  margin-bottom: 18px;
}
.why-card h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.why-card .tag { color: var(--orange); font-family: var(--mono); font-size: 12px; margin-bottom: 14px; }
.why-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #444; }

/* ============ Sample QA ============ */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qa-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.qa-q { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--text); }
.qa-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.qa-tag {
  font-family: var(--mono); font-size: 10px; padding: 3px 6px; border-radius: 3px;
  font-weight: 700; flex: none; margin-top: 1px; letter-spacing: 0.02em;
}
.qa-tag.gr { color: var(--orange); background: var(--orange-tint); border: 1px solid rgba(255,107,0,0.3); }
.qa-tag.br { color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(37,99,235,0.3); }
.qa-text { color: #333; }
.qa-text .pass { color: var(--pass); font-weight: 600; }
.qa-text .fail { color: var(--fail); font-weight: 600; }

.qa-path {
  display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px;
  border-top: 1px solid var(--border); margin-top: auto;
}
.qa-path .step {
  font-family: var(--mono); font-size: 10.5px; padding: 4px 8px;
  background: var(--orange-tint); border: 1px solid rgba(255,107,0,0.2); border-radius: 4px; color: var(--orange-deep);
}
.qa-path .arr { color: var(--text-3); display: grid; place-items: center; font-size: 10px; }

/* ============ Footer ============ */
.foot {
  border-top: 1px solid var(--border); padding: 36px 0;
  background: var(--card-elev);
}
.foot-inner { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 24px; }
.foot-l { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.foot-l img { width: 22px; height: 22px; object-fit: contain; }
.foot-c { font-family: var(--mono); font-size: 12px; color: var(--orange); text-align: center; letter-spacing: 0.02em; }
.foot-r { font-size: 12px; color: var(--text-2); text-align: right; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .stat-grid, .why-grid, .qa-grid { grid-template-columns: 1fr 1fr; }
  .bench-grid, .data-grid, .demo-grid { grid-template-columns: 1fr; }
  .arch-layer { grid-template-columns: 1fr; gap: 12px; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
  .graph-card { position: static; }
  .bar-row { grid-template-columns: 140px 1fr 70px; }
  .foot-inner { grid-template-columns: 1fr; text-align: center; }
  .foot-l, .foot-r { justify-content: center; }
  .hero-feature { grid-template-columns: 1fr; gap: 28px; }
  .hf-right { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 28px; }
  .hero-strip { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .hs-divider { display: none; }
}
@media (max-width: 600px) {
  .stat-grid, .why-grid, .qa-grid { grid-template-columns: 1fr; }
  .lat-grid { grid-template-columns: 1fr; }
  .data-stats { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero h1 { font-size: 36px; }
  .hf-num-main { font-size: 110px; }
  .hero-strip { grid-template-columns: 1fr; }
  .hs-num { font-size: 32px; }
}


/* ============ Latency BERTScore pairing ============ */
.lat-badge-stack {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.lat-bert {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; line-height: 1.1;
}
.lat-bert .lb-num {
  font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--orange);
  letter-spacing: -0.01em;
}
.lat-bert .lb-lbl {
  font-size: 9.5px; color: var(--text-2); letter-spacing: 0.12em;
  text-transform: uppercase; margin-top: 4px; font-weight: 600;
}

/* ============ Tweaks panel ============ */
#tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  width: 280px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  font-family: var(--sans);
  overflow: hidden;
}
.tw-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.tw-title { font-weight: 700; font-size: 13px; letter-spacing: -0.01em; }
.tw-close {
  background: transparent; border: 0; width: 24px; height: 24px;
  border-radius: 6px; color: var(--text-2); cursor: pointer;
  font-size: 20px; line-height: 1; padding: 0;
}
.tw-close:hover { background: var(--card-elev); color: var(--text); }
.tw-body {
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; gap: 16px;
  max-height: 70vh; overflow-y: auto;
}
.tw-section { display: flex; flex-direction: column; gap: 8px; }
.tw-section-title {
  font-size: 10.5px; font-weight: 600; color: var(--text-2);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tw-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tw-swatch {
  width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid var(--border); padding: 0; cursor: pointer;
  transition: transform .12s, border-color .12s;
}
.tw-swatch:hover { transform: scale(1.08); }
.tw-swatch.active { border-color: var(--text); transform: scale(1.08); }
.tw-segment {
  display: flex; background: var(--card-elev); border: 1px solid var(--border);
  border-radius: 8px; padding: 3px; gap: 2px;
}
.tw-seg {
  flex: 1; background: transparent; border: 0; color: var(--text-2);
  font-size: 12px; padding: 7px 10px; cursor: pointer;
  border-radius: 6px; font-weight: 500;
  font-family: inherit;
}
.tw-seg:hover { color: var(--text); }
.tw-seg.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.tw-slider { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; margin: 4px 0; }
.tw-slider::-webkit-slider-runnable-track {
  height: 4px; background: var(--card-elev); border-radius: 2px; border: 1px solid var(--border);
}
.tw-slider::-moz-range-track {
  height: 4px; background: var(--card-elev); border-radius: 2px; border: 1px solid var(--border);
}
.tw-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); border: 2px solid white; cursor: pointer;
  margin-top: -7px; box-shadow: 0 0 0 1px var(--border);
}
.tw-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); border: 2px solid white; cursor: pointer;
}
.tw-slider-val {
  font-family: var(--mono); font-size: 11px; color: var(--orange);
  text-align: right; font-weight: 600;
}

/* ============ Label visibility tweak ============ */
body[data-no-labels] .gnode text { opacity: 0; }

/* ============ Density: compact ============ */
body[data-compact] section { padding: 64px 0; }
body[data-compact] .section-title { font-size: 36px; }
body[data-compact] .section-sub { margin-bottom: 36px; }
body[data-compact] .hero { padding: 96px 0 56px; min-height: auto; }
body[data-compact] .hero h1 { margin-bottom: 36px; }
body[data-compact] .hero-strip { margin-top: 40px; padding-top: 20px; }
body[data-compact] .stat-card,
body[data-compact] .bench-card,
body[data-compact] .data-stat,
body[data-compact] .why-card,
body[data-compact] .qa-card { padding: 18px 20px; }
body[data-compact] .arch-layer { padding: 18px 24px; }

/* ============ Dark theme ============ */
body[data-theme="dark"] {
  --bg: #0D0D0D;
  --card: #141414;
  --card-elev: #1C1C1C;
  --card-deep: #0A0A0A;
  --border: #2A2A2A;
  --border-strong: #3A3A3A;
  --text: #FFFFFF;
  --text-2: #9A9893;
  --text-3: #6B6B66;
  --blue: #4A9EFF;
  --blue-soft: #1a3a6e;
  --grey: #555555;
  --pass: #22C55E;
  --pass-soft: #0a2a18;
  --fail: #EF4444;
  --fail-soft: #2a0a0a;
}
body[data-theme="dark"] .nav { background: rgba(13,13,13,0.85); }
body[data-theme="dark"] .lat-bert { background: var(--card-elev); }
body[data-theme="dark"] .qa-text { color: #ccc; }
body[data-theme="dark"] .ap-body,
body[data-theme="dark"] .why-card p,
body[data-theme="dark"] .arch-layer .ldesc,
body[data-theme="dark"] .callout { color: #ccc; }
body[data-theme="dark"] .hf-pull { color: #ccc; }
body[data-theme="dark"] .hf-rule { background: #fff; opacity: 0.85; }
body[data-theme="dark"] .gnode text { fill: #ddd; }
body[data-theme="dark"] .gedge { stroke: #2a2a2a; }
body[data-theme="dark"] .skel-line {
  background: linear-gradient(90deg, #1a1a1a 0%, #2a1a0d 50%, #1a1a1a 100%);
  background-size: 200% 100%;
}
body[data-theme="dark"] .tw-seg.active { background: #2a2a2a; }
body[data-theme="dark"] .tw-slider::-webkit-slider-thumb { border-color: #1c1c1c; box-shadow: 0 0 0 1px #2a2a2a; }
body[data-theme="dark"] .diff-seg.multi { background: rgba(255,107,0,0.45); color: #fff; }
body[data-theme="dark"] .diff-seg.synth { background: #2a2a2a; }
body[data-theme="dark"] .bar-annotate .label { background: var(--bg); }

@media (max-width: 600px) {
  #tweaks-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); max-width: 320px; }
}

/* ============ Architecture Visual Diagram ============ */
.arch-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  margin-bottom: 32px;
}
.arch-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 20px;
  display: flex; flex-direction: column;
}
.arch-box.l1 { border-top: 3px solid var(--orange); }
.arch-box.l2 { border-top: 3px solid #fb923c; }
.arch-box.l3 { border-top: 3px solid #fdba74; }
.arch-box.l4 { border-top: 3px solid #ffd9b8; }
.arch-box-num { font-family: var(--mono); font-size: 10px; color: var(--orange); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.arch-box-icon { margin-bottom: 8px; }
.arch-box-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 5px; color: var(--text); }
.arch-box-tech { font-family: var(--mono); font-size: 10.5px; color: var(--orange); margin-bottom: 14px; line-height: 1.4; }
.arch-box-specs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.arch-box-specs li { font-size: 12.5px; color: var(--text-2); line-height: 1.4; padding-left: 12px; position: relative; }
.arch-box-specs li::before { content: '·'; position: absolute; left: 0; color: var(--orange); }
.arch-conn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 10px; gap: 4px; }
.arch-conn-arrow { font-size: 18px; color: var(--orange); line-height: 1; }
.arch-conn-lbl { font-family: var(--mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 980px) {
  .arch-visual { grid-template-columns: 1fr; }
  .arch-conn { flex-direction: row; padding: 8px 0; }
}

/* ============ Hero description line ============ */
.hero-desc {
  font-size: 17px; color: var(--text-2); line-height: 1.6;
  max-width: 700px; margin: 0 0 0;
}

/* ============ QA Cards — breathing room ============ */
.qa-card { padding: 30px 26px; gap: 16px; }
.qa-q { font-size: 14.5px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.qa-line { gap: 12px; font-size: 12.5px; line-height: 1.65; }
.qa-text { color: #444; }

/* ============ Hero 2-column layout ============ */
.hero-title-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 20px; display: block;
}
.hero-2col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: flex-start; }
.hero-left { display: flex; flex-direction: column; }

/* Right-side data panel */
.hero-data-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  border-top: 3px solid var(--orange);
}
.hdp-number { display: flex; align-items: flex-start; gap: 12px; line-height: 0.85; }
.hdp-num {
  font-size: clamp(60px, 8vw, 100px); font-weight: 800; color: var(--orange);
  letter-spacing: -0.06em; line-height: 0.85; font-feature-settings: "tnum";
  display: inline-flex; align-items: baseline;
}
.hdp-m { font-size: 0.5em; font-weight: 700; }
.hdp-tiger { width: clamp(24px, 3vw, 40px); height: auto; margin-top: 6px; object-fit: contain; flex: none; }
.hdp-rule { height: 2px; background: var(--text); margin: 12px 0 8px; opacity: 0.85; }
.hdp-label { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.hdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.hdp-item-num { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.hdp-item-lbl { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.hdp-footer {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-2); font-family: var(--mono);
}
.hdp-pull { font-size: 12.5px; color: var(--text-2); font-style: italic; margin: 10px 0 0; line-height: 1.5; }

/* Bigger hero strip stats */
.hero-strip .hs-num { font-size: 46px; }

/* ── Section sidebar ── */
.sec-nav {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; z-index: 90;
}
.sec-nav-item {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 11px; font-weight: 500; color: var(--text-2);
  transition: color .2s;
  white-space: nowrap;
}
.sec-nav-item::before {
  content: ''; display: block; flex: none;
  width: 16px; height: 2px; border-radius: 2px;
  background: var(--border); transition: width .2s, background .2s;
}
.sec-nav-item:hover { color: var(--text); }
.sec-nav-item:hover::before { width: 22px; background: var(--text-2); }
.sec-nav-item.active { color: var(--orange); font-weight: 700; }
.sec-nav-item.active::before { width: 28px; background: var(--orange); }
/* Hide text by default, show only on hover or active */
.sec-nav-item span { opacity: 0; transition: opacity .2s; pointer-events: none; }
.sec-nav:hover .sec-nav-item span,
.sec-nav-item.active span { opacity: 1; }
@media (max-width: 1100px) { .sec-nav { display: none; } }

/* Nav team info */
.nav-team { font-family: var(--mono); font-size: 10px; color: var(--text-2); letter-spacing: 0.06em; white-space: nowrap; }

@media (max-width: 980px) {
  .hero-2col { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ Problem & Cost Section ============ */
.problem-flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center; gap: 0; margin-bottom: 48px;
}
.pf-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.pf-card.pf-bad  { border-top: 3px solid var(--fail); }
.pf-card.pf-good { border-top: 3px solid var(--pass); }
.pf-step { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text-3); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.pf-card.pf-bad  .pf-step { color: var(--fail); }
.pf-card.pf-good .pf-step { color: var(--pass); }
.pf-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.pf-body { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin-bottom: 14px; }
.pf-price { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.pf-price.bad  { color: var(--fail); }
.pf-price.good { color: var(--pass); }
.pf-conn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 16px;
}
.pf-conn-vs { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em; }
.pf-conn-arr { font-size: 22px; color: var(--orange); }

/* Cost table */
.cost-table {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: 8px;
}
.cost-head {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  padding: 14px 24px; background: var(--card-elev);
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
}
.cost-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  align-items: center; font-size: 14px;
  transition: background .15s;
}
.cost-row:last-child { border-bottom: 0; }
.cost-row:hover { background: var(--card-elev); }
.cost-row.highlight { background: var(--orange-tint); }
.cost-row .queries { font-family: var(--mono); font-weight: 600; color: var(--text); }
.cost-row .cost-bad  { font-family: var(--mono); color: var(--fail); font-weight: 600; }
.cost-row .cost-good { font-family: var(--mono); color: var(--pass); font-weight: 600; }
.cost-row .cost-save {
  font-family: var(--mono); font-weight: 700; color: var(--orange);
  display: flex; align-items: center; gap: 6px;
}
.cost-row .cost-save::before {
  content: '↓'; font-size: 12px;
}
.cost-note { font-size: 11.5px; color: var(--text-2); margin-top: 12px; font-style: italic; }
.pf-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; font-size: 24px; color: var(--text-2); align-self: center;
}

/* ── Per-query face-off ── */
.cpq-faceoff {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 40px;
}
.cpq-side { padding: 32px 32px; }
.cpq-side.bad  { background: color-mix(in srgb, var(--fail) 6%, var(--card)); border-right: 1px solid var(--border); }
.cpq-side.good { background: color-mix(in srgb, var(--pass) 6%, var(--card)); }
.cpq-tag  { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fail); margin-bottom: 10px; }
.cpq-big  { font-family: var(--mono); font-size: 52px; font-weight: 700; color: var(--fail); line-height: 1; margin-bottom: 10px; }
.cpq-detail { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cpq-mid  {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px; gap: 10px; background: var(--card);
}
.cpq-vs   { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--text-2); }
.cpq-arrow-line { width: 1px; flex: 1; background: var(--border); }
.cpq-pct-pill {
  background: var(--orange); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; padding: 5px 11px; white-space: nowrap;
  writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
}

/* ── Cost table ── */
.cost-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
.cost-row  { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; padding: 18px 24px; align-items: center; }
.cost-row:hover { background: var(--card-elev); }
.cost-row.highlight { background: var(--orange-tint); }
.cost-scale { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 3px; }
.cost-scale-sub { font-size: 11px; color: var(--text-2); font-weight: 400; }
.cost-scale-sub.enterprise {
  display: inline-block; background: var(--orange); color: #fff;
  border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: 10px;
}
.cost-bad  { font-family: var(--mono); color: var(--fail); font-weight: 600; font-size: 14px; }
.cost-good { font-family: var(--mono); color: var(--pass); font-weight: 600; font-size: 14px; }
.cost-save { display: flex; flex-direction: column; gap: 4px; }
.cs-num { font-family: var(--mono); font-size: 17px; font-weight: 800; color: var(--orange); }
.cs-pct {
  display: inline-block; font-size: 11px; font-weight: 700; background: var(--orange);
  color: #fff; border-radius: 999px; padding: 2px 8px; width: fit-content;
}

@media (max-width: 980px) {
  .problem-flow { grid-template-columns: 1fr; gap: 16px; }
  .pf-arrow { padding: 8px 0; transform: rotate(90deg); }
  .cpq-faceoff { grid-template-columns: 1fr; }
  .cpq-mid { flex-direction: row; padding: 12px 20px; }
  .cpq-arrow-line { width: 100%; height: 1px; flex: 0 0 auto; }
  .cpq-pct-pill { writing-mode: unset; transform: none; }
  .cost-head, .cost-row { grid-template-columns: 1fr 1fr 1fr 1fr; font-size: 12px; padding: 12px 16px; }
}
