:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;
  --card:#f8fafc;
  --brand:#2563eb;
  --brand2:#0ea5e9;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:
    radial-gradient(900px 600px at 10% 0%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 5%, rgba(14,165,233,.10), transparent 50%),
    var(--bg);
  color:var(--text);
  line-height:1.75;
}

.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.muted{color:var(--muted)}
.small{font-size:13px}

/* top bar */
.topbar{
  position:sticky;top:0;z-index:10;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}
.brand{color:var(--text);text-decoration:none;font-weight:900;letter-spacing:.2px}
.nav a{
  color:var(--muted);text-decoration:none;margin-left:16px;font-size:14px
}
.nav a:hover{color:var(--brand)}

/* hero */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  padding:28px 0 8px;
  align-items:start;
}

h1{margin:0;font-size:40px;letter-spacing:-.6px}
.headline{margin:8px 0 10px;color:var(--muted);font-size:15px}
.intro{margin:0 0 14px;max-width: 62ch}

/* link buttons */
.linkbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 8px;
}
.linkbtn{
  color: var(--text);
  text-decoration:none;
  border:1px solid var(--line);
  background: #fff;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  box-shadow: 0 1px 0 rgba(2,6,23,.03);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.linkbtn:hover{
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.06);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(2, 6, 23, .08);
}
.linkbtn.primary{
  border-color: rgba(14,165,233,.35);
  background: rgba(14,165,233,.10);
}
.linkbtn.primary:hover{
  background: rgba(14,165,233,.14);
  color: var(--brand2);
}

/* meta pills */
.meta{margin-top:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pill{
  border:1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.78);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
}
.sep{color:#94a3b8}

/* right figure card */
.figure-card{
  margin:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.figure-card img{
  width:100%;
  height:320px;
  display:block;
  object-fit: contain; /* show full image */
  background:#fff;
}
.figure-card figcaption{
  padding:10px 12px;
  font-size:13px;
  color:var(--muted);
  border-top:1px solid var(--line);
}

/* sections */
.section{
  padding:18px 0 22px;
  border-top:1px solid var(--line);
}
h2{margin:0 0 10px;font-size:22px}
h3{margin:0 0 8px;font-size:16px}

/* cards */
.card{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:14px;
}
.card p{margin:0}

/* grid helpers */
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top: 10px;
}
.grid3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:14px;
  margin-top: 10px;
}

/* callout */
.callout{
  margin-top:14px;
  border:1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.06);
  border-radius:16px;
  padding:14px;
}
.callout-title{
  font-weight:900;
  margin-bottom:8px;
}
.bullets{margin:0;padding-left:18px}
.bullets li{margin:6px 0}

/* stats */
.stat{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:14px;
  text-align:center;
}
.stat-k{font-size:22px;font-weight:900}
.stat-v{color:var(--muted);margin-top:2px}

/* table */
.table{
  margin-top:10px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}
.trow{
  display:grid;
  grid-template-columns: 1.2fr .9fr .7fr .7fr .8fr;
  gap:10px;
  padding:10px 12px;
  border-top:1px solid var(--line);
  background:#fff;
  font-size:13px;
}
.trow:first-child{border-top:none}
.thead{
  background: var(--card);
  font-weight:900;
  color: rgba(15,23,42,.85);
}

/* download cards */
.download{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
}
.dl{
  display:block;
  text-decoration:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:12px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  color: var(--text);
}
.dl:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2,6,23,.10);
  border-color: rgba(37,99,235,.28);
}
.dl-title{font-weight:900}
.dl-meta{color:var(--muted);font-size:13px;margin-top:4px}

/* bib */
.bib{
  margin-top:10px;
  border:1px solid var(--line);
  background: #0b1220;
  color: #e2e8f0;
  border-radius:16px;
  padding:12px;
  overflow:auto;
  font-size: 12.5px;
  line-height: 1.55;
}
.bib code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}

/* mini links */
.mini-links{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.mini-links a{
  color: var(--brand);
  text-decoration:none;
  font-weight:600;
}
.mini-links a:hover{text-decoration:underline}
.dot{color:#94a3b8}

/* footer */
.footer{
  padding:26px 0 40px;
  text-align:center;
  color: var(--muted);
  font-size: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* responsive */
@media (max-width: 980px){
  .hero{grid-template-columns: 1fr}
  .figure-card img{height: 280px}
  .grid3{grid-template-columns: 1fr}
  .download{grid-template-columns: 1fr}
  .trow{grid-template-columns: 1.2fr .9fr .7fr .7fr .8fr}
}

@media (max-width: 640px){
  .nav{display:none}
  h1{font-size:34px}
  .figure-card img{height: 240px}
  .trow{grid-template-columns: 1.2fr .9fr .7fr .7fr .8fr}
}
