/* DARE project page — dark scholarly editorial theme */
:root {
  --bg: #0d1016;
  --bg-soft: #121720;
  --bg-muted: #171d27;
  --surface: rgba(24, 30, 40, 0.86);
  --surface-solid: #181e28;
  --surface-2: rgba(30, 38, 50, 0.9);
  --surface-3: #202838;
  --line: rgba(194, 178, 135, 0.22);
  --line-strong: rgba(194, 178, 135, 0.42);
  --line-soft: rgba(255, 255, 255, 0.075);
  --fg: #f4efe6;
  --fg-dim: #c7c0b4;
  --fg-muted: #8e938d;
  --ink-soft: #a8adab;
  --accent: #c2a86d;
  --accent-deep: #92743f;
  --accent-soft: rgba(194, 168, 109, 0.14);
  --sage: #8faa8b;
  --sage-deep: #607e68;
  --blue: #91a3bd;
  --blue-soft: rgba(145, 163, 189, 0.16);
  --rose: #c7837d;
  --cyan: #9eb5c7;
  --mag: #a99bc7;
  --lime: #a9b980;
  --amber: #c2a86d;
  --red: #c7837d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34), 0 2px 10px rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --nav-h: 66px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.68;
  background:
    radial-gradient(900px 420px at 82% -180px, rgba(194, 168, 109, 0.16), transparent 64%),
    radial-gradient(700px 520px at 2% 8%, rgba(143, 170, 139, 0.12), transparent 62%),
    linear-gradient(180deg, #0d1016 0%, #111722 42%, #0d1016 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #dcc58c; text-decoration: underline; text-decoration-color: rgba(194, 168, 109, 0.42); }
code, pre, .formula, .hero-eyebrow, .section-eyebrow, .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { color: #ece2c9; }
sub { line-height: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 26px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.small { color: var(--fg-muted); font-size: 13px; margin: 12px 0 0; }
.align-start { align-items: start; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(13, 16, 22, 0.82);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border-bottom: 1px solid rgba(194, 178, 135, 0.18);
}
.site-nav .wrap {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none !important;
}
.brand-logo {
  width: 38px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #1b1409;
  background: linear-gradient(145deg, #e5cf93 0%, #a98343 100%);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 10px 24px rgba(194, 168, 109, 0.12);
}
.brand-name { color: var(--fg); font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: var(--fg-dim);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--fg); background: rgba(194, 168, 109, 0.12); transform: translateY(-1px); }
.nav-cta {
  margin-left: 6px;
  color: #17120a !important;
  background: linear-gradient(135deg, #dcc58c, var(--accent)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(194, 168, 109, 0.14);
}
.nav-cta:hover { color: #0d1016 !important; background: linear-gradient(135deg, #ecd69d, #c2a86d) !important; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--fg-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 66px;
  border-bottom: 1px solid rgba(194, 178, 135, 0.16);
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -260px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 168, 109, 0.11), transparent 64%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(194, 168, 109, 0.075);
  font-size: 12px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.hero-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(194, 168, 109, 0.11);
}
.hero h1 {
  margin: 24px 0 18px;
  max-width: 980px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(42px, 6.1vw, 76px);
  line-height: 1.01;
  font-weight: 750;
  letter-spacing: -0.045em;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(92deg, #f1e6c8 0%, #d1bc80 44%, #9db69a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.tagline {
  max-width: 900px;
  color: var(--fg-dim);
  font-size: clamp(16px, 1.55vw, 20px);
  margin: 0 0 24px;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 26px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 30, 40, 0.78);
  font-size: 13px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chip.mag::before { background: var(--mag); }
.chip.lime::before { background: var(--sage); }
.chip.amber::before { background: var(--amber); }
.ctas { display: flex; flex-wrap: wrap; gap: 11px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--fg) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 30, 40, 0.88);
  box-shadow: var(--shadow-soft);
  font-weight: 750;
  font-size: 14px;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { color: #16120a !important; background: linear-gradient(135deg, #e6cf91, var(--accent)); border-color: transparent; }

.pipeline-card {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 30, 40, 0.72), rgba(15, 19, 27, 0.72));
  box-shadow: var(--shadow);
}
.pipe-node {
  min-height: 102px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(35, 43, 56, 0.92), rgba(24, 30, 40, 0.92));
}
.pipe-node b { display: block; margin-bottom: 8px; font-size: 16px; letter-spacing: -0.01em; }
.pipe-node span { display: block; color: var(--fg-muted); font-size: 13.5px; }
.pipe-arrow { display: grid; place-items: center; color: var(--accent); font-size: 22px; font-weight: 800; }

.section { padding: 82px 0; position: relative; }
.section.alt {
  border-top: 1px solid rgba(194, 178, 135, 0.14);
  border-bottom: 1px solid rgba(194, 178, 135, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 23, 32, 0.82), rgba(16, 20, 28, 0.72)),
    radial-gradient(620px 260px at 13% 0%, rgba(143, 170, 139, 0.08), transparent 62%);
}
.section-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 12.5px;
}
.section h2 {
  margin: 8px 0 14px;
  max-width: 960px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.lead { max-width: 930px; margin: 0; color: var(--fg-dim); font-size: clamp(16px, 1.55vw, 19px); }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card, .metric-card, .formula-card, .bar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(33, 41, 54, 0.84), rgba(23, 29, 39, 0.9));
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), var(--shadow-soft);
}
.card h3, .metric-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.015em; }
.card p, .metric-card p, .formula-card p { margin: 0; color: var(--fg-dim); font-size: 15px; }
.numbered span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 9px;
  color: #18120a;
  border-radius: 999px;
  background: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 12px;
}
.estimator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formula-title { color: var(--fg-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.formula {
  margin: 12px 0;
  padding: 15px;
  border-radius: 14px;
  background: rgba(8, 11, 17, 0.72);
  color: #ead7a2;
  border: 1px solid var(--line-soft);
  overflow-x: auto;
}

.tier-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(20, 26, 36, 0.72);
  box-shadow: var(--shadow-soft);
}
.tier-row { display: grid; grid-template-columns: 1fr 1.2fr 2.2fr 1.8fr; gap: 0; border-top: 1px solid var(--line-soft); }
.tier-row:first-child { border-top: none; }
.tier-row > div { padding: 15px 16px; color: var(--fg-dim); border-left: 1px solid var(--line-soft); }
.tier-row > div:first-child { border-left: none; color: var(--fg); }
.tier-row.header > div { color: var(--fg); background: rgba(194, 168, 109, 0.11); font-weight: 800; }
.tier-row.easy { border-left: 4px solid var(--sage); }
.tier-row.medium { border-left: 4px solid var(--blue); }
.tier-row.hard { border-left: 4px solid var(--rose); }
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(194, 168, 109, 0.1);
  color: var(--fg);
  font-weight: 750;
}
.tier-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tier-badge.easy::before { background: var(--sage); }
.tier-badge.medium::before { background: var(--blue); }
.tier-badge.hard::before { background: var(--rose); }

.metric-label { color: var(--fg-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.metric-value {
  margin: 8px 0;
  color: transparent;
  background: linear-gradient(90deg, #f0dfad, #91a98d);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 42px;
  font-weight: 750;
  line-height: 1;
}
.bar-card { max-width: 760px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 14px; margin: 12px 0; color: var(--fg-dim); }
.bar-row.highlight { color: var(--fg); font-weight: 800; }
.bar { height: 14px; border-radius: 999px; background: rgba(8, 11, 17, 0.72); overflow: hidden; border: 1px solid var(--line-soft); }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sage-deep), var(--accent)); }
.bar-row.highlight .bar span { background: linear-gradient(90deg, var(--accent), #e7d49b); }

.results-shell {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 34, 46, 0.88), rgba(16, 20, 29, 0.92));
  box-shadow: var(--shadow);
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.stat-tile {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 30, 40, 0.78);
  min-height: 126px;
}
.stat-tile small {
  display: block;
  color: var(--fg-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stat-tile strong {
  display: block;
  margin-top: 12px;
  color: #ecdba7;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-tile span { display: block; margin-top: 9px; color: var(--fg-dim); font-size: 13px; line-height: 1.45; }
.result-tabs, .metric-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.result-tabs {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 17, 0.38);
  margin-bottom: 18px;
}
.result-tabs button, .metric-switch button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--fg-dim);
  background: transparent;
  font: 700 13px "Inter", sans-serif;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.result-tabs button:hover, .metric-switch button:hover { color: var(--fg); background: rgba(255, 255, 255, 0.055); }
.result-tabs button.active, .metric-switch button.active {
  color: #17120a;
  background: linear-gradient(135deg, #e6cf91, var(--accent));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(194, 168, 109, 0.12);
}
.result-panel { display: none; }
.result-panel.active { display: block; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.panel-head h3, .table-card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.panel-head p, .table-card p { margin: 0; color: var(--fg-dim); font-size: 14.5px; }
.table-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(24, 30, 40, 0.74);
  box-shadow: var(--shadow-soft);
}
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.data-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.data-grid.single { grid-template-columns: 1fr; }
.dynamic-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(8, 11, 17, 0.34);
}
.dynamic-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}
.dynamic-table.compact table { min-width: 520px; font-size: 13px; }
.dynamic-table th, .dynamic-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
.dynamic-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #f1e2b5;
  background: rgba(21, 26, 36, 0.96);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .035em;
  white-space: nowrap;
  cursor: pointer;
}
.dynamic-table th.no-sort { cursor: default; }
.dynamic-table tbody tr:last-child td { border-bottom: none; }
.dynamic-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.dynamic-table td.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dynamic-table tr.ours td { background: rgba(194, 168, 109, 0.075); }
.dynamic-table tr.baseline td { color: var(--fg-dim); }
.gain, .loss, .best {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
}
.gain { color: #cfe7c9; background: rgba(143, 170, 139, 0.16); }
.loss { color: #f1b1ad; background: rgba(199, 131, 125, 0.14); }
.best { color: #17120a; background: #e5cf93; }
.muted { color: var(--fg-muted); }
.token-pair { display: inline-grid; gap: 2px; line-height: 1.2; }
.token-pair strong { color: var(--fg); font-size: 13px; }
.token-pair span { color: var(--fg-muted); font-size: 11.5px; }
.bar-board {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(8, 11, 17, 0.32);
}
.bar-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(180px, 1fr) 74px;
  align-items: center;
  gap: 12px;
  color: var(--fg-dim);
}
.bar-item.ours { color: var(--fg); font-weight: 800; }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track {
  height: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage-deep), var(--accent));
  transition: width .65s cubic-bezier(.2, .9, .2, 1);
}
.bar-item.ours .bar-fill { background: linear-gradient(90deg, var(--accent), #f1dfab); }
.bar-value {
  color: var(--fg);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  text-align: right;
  white-space: nowrap;
}
.bar-scale-note { margin-top: 4px; color: var(--fg-muted); font-family: "JetBrains Mono", monospace; font-size: 11px; text-align: right; }

.figures-shell {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 34, 46, 0.88), rgba(16, 20, 29, 0.92));
  box-shadow: var(--shadow);
}
.figure-card { min-height: 560px; }
.dynamic-figure {
  min-height: 420px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 10%, rgba(194, 168, 109, 0.08), transparent 34%),
    rgba(8, 11, 17, 0.32);
  overflow: hidden;
}
.figure-svg { display: block; width: 100%; height: auto; min-height: 420px; }
.fig-grid { stroke: rgba(244, 239, 230, 0.075); stroke-width: 1; }
.fig-axis { stroke: rgba(244, 239, 230, 0.36); stroke-width: 1.3; }
.fig-axis-title, .fig-title, .fig-legend, .fig-tick, .fig-label, .fig-row-label, .fig-value, .fig-mini-label, .fig-heat-value, .fig-region-label {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  fill: var(--fg-dim);
}
.fig-title, .fig-axis-title { fill: #ecdba7; font-weight: 700; font-size: 13px; }
.fig-legend, .fig-tick { fill: var(--fg-muted); font-size: 11px; }
.fig-label { fill: var(--fg); font-size: 11px; font-weight: 700; }
.fig-row-label { fill: var(--fg-dim); font-size: 11px; }
.fig-value { fill: var(--fg); font-size: 11px; font-weight: 700; }
.fig-mini-label { fill: var(--fg); font-size: 9.5px; font-weight: 700; }
.fig-region { fill: rgba(143, 170, 139, 0.08); stroke: rgba(143, 170, 139, 0.18); }
.fig-region-label { fill: var(--sage); font-size: 11px; }
.fig-point circle { stroke: rgba(13, 16, 22, 0.85); stroke-width: 2; }
.fig-point.ours circle, .fig-point.oracle circle { stroke: rgba(244, 239, 230, 0.72); stroke-width: 2.4; }
.fig-bar-bg { fill: rgba(244, 239, 230, 0.055); }
.fig-bar-fill { fill: url(#none); fill: #91a3bd; opacity: 0.72; }
.fig-bar-group.ours .fig-bar-fill { fill: #e5cf93; opacity: 0.92; }
.fig-bar-group.baseline .fig-bar-fill { fill: #c7837d; opacity: 0.62; }
.fig-speed-fill { fill: rgba(143, 170, 139, 0.64); }
.fig-token-bar { opacity: 0.82; }
.fig-token-bar.ours { opacity: 0.96; stroke: rgba(244, 239, 230, 0.34); stroke-width: 1; }
.fig-heat-cell { stroke: rgba(244, 239, 230, 0.10); stroke-width: 1; }
.fig-heat-cell.ours { stroke: rgba(244, 239, 230, 0.58); stroke-width: 1.6; }
.fig-heat-value { fill: #17120a; font-size: 12px; font-weight: 800; }
.figure-notes { display: grid; gap: 10px; }
.figure-notes div {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(8, 11, 17, 0.28);
}
.figure-notes strong { display: block; color: #ecdba7; font-size: 14px; }
.figure-notes span { display: block; margin-top: 4px; color: var(--fg-dim); font-size: 13px; }

.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.code-grid h3 { margin: 0 0 10px; }
.code {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #efe7d7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080b11;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  font-size: 13.5px;
}
.link-card { display: block; color: var(--fg); text-decoration: none; }
.link-card:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-1px); }
.bibtex-wrap { position: relative; }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  color: #17120a;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  cursor: pointer;
}
.site-footer { border-top: 1px solid rgba(194, 178, 135, 0.16); padding: 26px 0; color: var(--fg-muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1050px) {
  .pipeline-card { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); min-height: 10px; }
  .grid.cols-3, .grid.cols-2, .estimator-grid, .code-grid, .data-grid, .data-grid.three, .stat-strip { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; }
  .tier-row { grid-template-columns: 1fr; }
  .tier-row > div { border-left: none; border-top: 1px solid var(--line-soft); }
  .tier-row > div:first-child { border-top: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .container, .site-nav .wrap { padding: 0 18px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 12px 18px 16px;
    background: rgba(13, 16, 22, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open a { border-radius: 12px; }
  .hero { padding-top: 56px; }
  .section { padding: 64px 0; }
  .result-tabs { border-radius: var(--radius); }
  .result-tabs button, .metric-switch button { flex: 1 1 auto; }
  .bar-row, .bar-item { grid-template-columns: 1fr; }
  .bar-value { text-align: left; }
}
