/* ============================================================
   BenchEvolver — Project Page (clean / light academic theme)
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f8fa;
  --panel:     #ffffff;
  --border:    #e4e7ec;
  --border-lit:#d3d8e0;
  --text:      #1b2330;
  --muted:     #5a6675;
  --faint:     #8a94a3;

  --accent:    #0c7a5a;   /* evolution green */
  --accent-2:  #0a6b4f;
  --seed:      #3a5a86;   /* seed blue */
  --hot:       #c0392b;

  --maxw: 1000px;
  --radius: 10px;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.01em; }
.nav-logo {
  width: 24px; height: 24px; border-radius: 6px; background: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
}
.nav-links { display: flex; gap: 20px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 760px){ .nav-links { display:none; } }

/* ---------- layout ---------- */
section { padding: 62px 24px; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 820px; margin: 0 auto; }

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}
h2.sec-title {
  font-size: clamp(25px, 3.4vw, 33px); font-weight: 750; letter-spacing: -.02em;
  line-height: 1.2; margin-bottom: 12px; color: var(--text);
}
.sec-sub { color: var(--muted); font-size: 17px; max-width: 720px; margin-bottom: 36px; }
.accent { color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 56px 24px 44px; text-align: center; border-bottom: 1px solid var(--border); }
.hero h1 {
  font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
  margin: 0 auto 8px; max-width: 22ch;
}
.hero h1 .accent { color: var(--accent); }
.hero .tagline {
  font-size: clamp(16px, 2.2vw, 21px); font-weight: 500; color: var(--muted);
  letter-spacing: -.01em; margin-bottom: 24px;
}
.hero .lede { color: var(--muted); font-size: 17px; max-width: 660px; margin: 0 auto 30px; }
.hero .lede b { color: var(--text); }

/* authors */
.authors { max-width: 780px; margin: 0 auto 8px; font-size: 16px; color: var(--text); line-height: 1.95; }
.authors a { color: var(--text); }
.authors a:hover { color: var(--accent); }
.authors .sup { color: var(--accent); font-size: 11px; vertical-align: super; }
.affil { color: var(--muted); font-size: 14.5px; margin: 8px auto 4px; }
.equal { color: var(--faint); font-size: 13px; margin-bottom: 26px; }

/* buttons */
.btn-row { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--border-lit); background: #fff; color: var(--text);
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.btn svg { width: 16px; height: 16px; }

/* ---------- stat band ---------- */
.statband { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 0; }
.stat-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .num { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--accent); }
.stat .num.hot { color: var(--hot); }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 9px; line-height: 1.4; }
@media (max-width: 760px){ .stat-grid { grid-template-columns: repeat(2,1fr); } .stat:nth-child(2){border-right:none;} .stat:nth-child(1),.stat:nth-child(2){border-bottom:1px solid var(--border);} }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (max-width: 820px){ .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .ico { font-size: 22px; margin-bottom: 10px; }

/* ---------- callout (problem) ---------- */
.callout {
  border: 1px solid var(--border); border-left: 4px solid var(--hot); border-radius: var(--radius);
  padding: 24px 26px; background: var(--bg-soft);
}
.callout .big { font-size: clamp(20px,2.8vw,26px); font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.callout .big b { color: var(--hot); }
.callout p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.callout p b { color: var(--text); }

/* ---------- transform showcase ---------- */
.domain-label {
  font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -.01em;
}
.domain-label span {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: #d8f0e7; padding: 2px 9px; border-radius: 5px; letter-spacing: .03em;
}
.transform {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.tcol { padding: 22px 24px; }
.tcol.seed { background: #f5f8fc; }
.tcol.evo  { background: #f1faf6; }
.tcol .tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  text-transform: uppercase; font-weight: 600; padding: 3px 10px; border-radius: 5px; margin-bottom: 12px;
}
.tcol.seed .tag { color: var(--seed); background: #e4ecf7; }
.tcol.evo  .tag { color: var(--accent); background: #d8f0e7; }
.tcol h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.tcol p { font-size: 14px; color: var(--muted); margin-bottom: 11px; }
.codeblk {
  font-family: var(--mono); font-size: 12.5px; background: #0f141d; color: #d6e0ee;
  border-radius: 7px; padding: 11px 13px; display: block; line-height: 1.55; overflow-x:auto;
  white-space: pre;
}
.codeblk .op { color: #6ee2b6; } .codeblk .cm { color: #8a94a3; }
.tarrow {
  display: grid; place-items: center; padding: 0 14px; background: var(--bg-soft);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.tarrow .ico {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 700;
}
.tarrow .lbl { font-family: var(--mono); font-size: 9.5px; color: var(--muted); margin-top: 8px; writing-mode: vertical-rl; letter-spacing: .08em; }
@media (max-width: 820px){
  .transform { grid-template-columns: 1fr; }
  .tarrow { padding: 12px; border: none; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
  .tarrow .lbl { writing-mode: horizontal-tb; margin: 8px 0 0; }
}
.lift-note {
  margin-top: 14px; font-size: 14px; color: var(--muted); padding: 12px 16px;
  border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 7px 7px 0;
}
.lift-note b { color: var(--accent); }

/* ---------- figure ---------- */
figure.fig { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
figcaption { color: var(--muted); font-size: 13.5px; margin-top: 12px; text-align: center; line-height: 1.5; }
figcaption b { color: var(--text); }

/* ---------- leaderboard ---------- */
.lb { display: flex; flex-direction: column; gap: 9px; }
.lb-row { display: grid; grid-template-columns: 200px 1fr 60px; align-items: center; gap: 14px; }
.lb-name { font-weight: 600; font-size: 14.5px; }
.lb-name .prov { color: var(--faint); font-size: 11.5px; font-family: var(--mono); display:block; }
.lb-bar-track { background: #eef0f3; border: 1px solid var(--border); border-radius: 5px; height: 22px; overflow: hidden; }
.lb-bar { height: 100%; border-radius: 5px 0 0 5px; background: var(--accent); }
.lb-val { text-align: right; font-family: var(--mono); font-weight: 700; font-size: 15px; }
@media (max-width: 620px){ .lb-row { grid-template-columns: 120px 1fr 48px; gap:9px;} .lb-name{font-size:13px} }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.data th, table.data td { padding: 11px 16px; text-align: center; border-bottom: 1px solid var(--border); }
table.data th { background: var(--bg-soft); font-weight: 600; color: var(--muted); font-size: 13px; }
table.data td:first-child, table.data th:first-child { text-align: left; font-weight: 600; }
table.data tr:last-child td { border-bottom: none; }
table.data .drop { color: var(--hot); font-family: var(--mono); font-weight: 600; }
table.data .seedv { color: var(--muted); }
table.data .evov { color: var(--accent); font-weight: 600; }

/* stat-mini cards (human eval) */
.mini-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
@media (max-width:820px){ .mini-grid{grid-template-columns:1fr;} }
.mini { text-align:center; border:1px solid var(--border); border-radius:var(--radius); padding:22px; }
.mini .v { font-size: 30px; font-weight: 800; letter-spacing:-.02em; }
.mini .v .ar { color: var(--faint); font-weight: 600; }
.mini .v .hi { color: var(--accent); }
.mini p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* quote */
.quote {
  border-left: 4px solid var(--accent); padding: 6px 0 6px 22px; font-size: 19px;
  font-weight: 500; letter-spacing: -.01em; color: var(--text); line-height: 1.5;
}
.quote .accent { font-weight: 700; }

/* bibtex */
.bibtex {
  background: #0f141d; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; font-family: var(--mono); font-size: 12.5px; color: #d6e0ee;
  white-space: pre; overflow-x: auto; line-height: 1.6; position: relative;
}
.copy-btn {
  position: absolute; top: 12px; right: 12px; padding: 5px 11px; font-size: 12px;
  border: 1px solid #2b3647; background: #1a2230; color: #b8c2d2;
  border-radius: 6px; cursor: pointer; font-family: var(--sans);
}
.copy-btn:hover { color: #fff; border-color: var(--accent); }

/* footer */
footer { border-top: 1px solid var(--border); padding: 38px 24px; text-align: center; color: var(--faint); font-size: 14px; }
footer a { color: var(--muted); }
footer .ft-links { display:flex; gap: 18px; justify-content:center; margin-bottom: 14px; flex-wrap: wrap; }

.mt-l { margin-top: 44px; } .mt-m { margin-top: 28px; }
