:root {
  --bg: #f7fbff;
  --ink: #0d1b2a;
  --muted: #506075;
  --line: #d9e5ef;
  --accent: #1f9aa5;
  --accent-2: #2563eb;
  --card: rgba(255,255,255,.86);
  --shadow: 0 20px 55px rgba(13, 27, 42, .12);
  --radius: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 32rem),
    radial-gradient(circle at top right, rgba(31, 154, 165, .18), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem clamp(1rem, 3vw, 3rem);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(217,229,239,.85);
  backdrop-filter: blur(18px);
}
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  text-decoration: none;
  font-size: .92rem;
  color: var(--muted);
  padding: .45rem .65rem;
  border-radius: 999px;
}
nav a:hover { color: var(--ink); background: #eef6fb; }
main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.hero { padding: clamp(4rem, 9vw, 7rem) 0 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow, .section-kicker {
  margin: 0 0 .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  font-weight: 800;
  font-size: .78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.08em;
  margin-bottom: .8rem;
}
.subtitle {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  color: var(--muted);
  font-weight: 650;
  letter-spacing: -.04em;
  margin-bottom: 1rem;
}
.authors { color: #314154; max-width: 770px; font-size: 1.02rem; }
.venue { color: var(--muted); max-width: 660px; margin-top: 1.2rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.button {
  display: inline-flex;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: .78rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(13, 27, 42, .06);
  cursor: pointer;
}
.button.primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.hero-card, .image-panel, .step-card, .metrics-grid article, .interactive-tabs, figure {
  background: var(--card);
  border: 1px solid rgba(217,229,239,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card img { width: 100%; height: 430px; object-fit: cover; object-position: 50% 45%; }
.caption, figcaption, .image-panel p, .tab-panel p { color: var(--muted); font-size: .94rem; padding: .85rem 1rem 1rem; margin: 0; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.hero h1 {
  line-height: 1.05;
}
.stat-strip div {
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
}
.stat-strip strong { display: block; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.05em; }
.stat-strip span { color: var(--muted); font-size: .92rem; }
.section { padding: clamp(4rem, 7vw, 6rem) 0; border-top: 1px solid rgba(217,229,239,.75); }
.section h2 { font-size: clamp(2.1rem, 4.5vw, 4.6rem); line-height: 1; letter-spacing: -.07em; max-width: 920px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 860px; }
.pipeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.step-card { padding: 1.2rem; }
.step-card span { color: var(--accent-2); font-weight: 800; font-size: .82rem; }
.step-card h3 { margin: .35rem 0 .4rem; }
.step-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.image-panel { padding: .8rem; }
.image-panel img { border-radius: 18px; width: 100%; background: white; }
.image-panel.wide img { max-height: 520px; object-fit: contain; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: start; }
.two-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.two-images.stacked { grid-template-columns: 1fr; }
figure { margin: 0; padding: .75rem; }
figure img { border-radius: 18px; width: 100%; background: white; }
.interactive-tabs { padding: 1rem; margin-top: 2rem; }
.tab-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.tab-buttons button {
  border: 1px solid var(--line);
  background: white;
  padding: .65rem .9rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}
.tab-buttons button.active { background: var(--ink); color: white; border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel img { width: 100%; max-height: 720px; object-fit: contain; border-radius: 20px; background: white; }
.result-grid { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; gap: 1rem; margin-top: 2rem; }
.clean-list { color: var(--muted); padding-left: 1.2rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.metrics-grid article { padding: 1.35rem; }
.metrics-grid span { display:block; color: var(--accent); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.metrics-grid strong { display:block; font-size: 2.3rem; line-height: 1; letter-spacing: -.05em; margin: .7rem 0; }
.metrics-grid p { color: var(--muted); margin: 0; }
canvas { width: 100%; max-width: 980px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.small-note { color: var(--muted); font-size: .9rem; margin-top: .8rem; }
pre {
  background: #07101e;
  color: #e7f3ff;
  border-radius: 22px;
  overflow-x: auto;
  padding: 1.3rem;
  border: 1px solid #142239;
}
footer { text-align: center; color: var(--muted); padding: 3rem 1rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .pipeline-grid, .metrics-grid, .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .result-grid, .two-images { grid-template-columns: 1fr; }
  .hero-card img { height: auto; }
}
@media (max-width: 560px) {
  nav { display: none; }
  .pipeline-grid, .metrics-grid, .stat-strip { grid-template-columns: 1fr; }
  h1 { font-size: 3rem; }
}


.chart-card {
  width: 100%;
  max-width: 980px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 2rem);
}
.chart-card h3 {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 600;
}
.accuracy-svg {
  width: 100%;
  height: auto;
  display: block;
}
.accuracy-svg .grid line {
  stroke: #d9e5ef;
  stroke-width: 1.5;
}
.accuracy-svg .bars rect {
  fill: url(#barGradient);
}
.accuracy-svg text {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  fill: var(--muted);
}
.accuracy-svg .axis-labels text {
  font-size: 14px;
}
.accuracy-svg .values text {
  font-size: 15px;
  text-anchor: middle;
  fill: var(--ink);
}
.accuracy-svg .x-labels text {
  font-size: 15px;
  text-anchor: middle;
}
