:root {
  --bg: #f7f8fb;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #596579;
  --line: #e4e8f0;
  --blue: #3d72f2;
  --blue-dark: #2249a6;
  --green: #0a9b65;
  --green-soft: #eaf8f1;
  --orange: #ed8b2f;
  --shadow: 0 22px 60px rgba(25, 35, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 251, 0.86);
  border-bottom: 1px solid rgba(228, 232, 240, 0.8);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  padding: 76px 0 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(61, 114, 242, 0.14), transparent 32%),
    radial-gradient(circle at 83% 18%, rgba(10, 155, 101, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.hero-inner {
  text-align: center;
}

.venue,
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  width: min(980px, 100%);
  margin: 0 auto;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.subtitle {
  width: min(820px, 100%);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.authors {
  width: min(940px, 100%);
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 14px;
  font-weight: 600;
  color: #273247;
}

.authors sup {
  color: var(--blue);
}

.authors a {
  color: inherit;
  text-decoration: none;
}

.authors a:hover,
.authors a:focus {
  color: var(--blue);
}

.affiliations {
  width: min(980px, 100%);
  margin: 13px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.affiliations sup {
  color: var(--blue);
  font-weight: 800;
}

.equal-note {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 999px;
  background: #111827;
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(61, 114, 242, 0.24);
}

.hf-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.card,
.image-frame,
.stat-card,
.domain-grid article,
.method-grid article,
.insight-grid article,
.results-table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-figure {
  margin: 42px auto 0;
  padding: 18px;
  text-align: left;
}

.hero-figure img {
  width: 100%;
  border-radius: 12px;
}

.hero-figure p {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: #ffffff;
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:not(.eyebrow),
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.lead {
  margin-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.stat-card {
  padding: 22px 18px;
  text-align: center;
  box-shadow: none;
}

.stat-card strong {
  display: block;
  color: var(--blue);
  font-size: 2.1rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.image-frame {
  padding: 18px;
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  border-radius: 10px;
}

.image-frame.compact {
  margin-top: 32px;
}

.figure-note {
  width: min(960px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.domain-grid,
.method-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.domain-grid article,
.method-grid article,
.insight-grid article {
  padding: 24px;
  box-shadow: none;
}

.domain-grid p,
.method-grid p,
.insight-grid p {
  margin: 0;
  color: var(--muted);
}

.benchmark-detail {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.benchmark-card {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.benchmark-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.benchmark-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 34px;
  align-items: center;
}

.check-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 11px 0;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.metric-notes {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.metric-notes article {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.metric-notes strong,
.metric-notes span {
  display: block;
}

.metric-notes strong {
  color: var(--ink);
  font-size: 1rem;
}

.metric-notes span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.93rem;
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.results-table-wrap {
  overflow-x: auto;
  box-shadow: none;
}

.table-title {
  margin: 34px 0 12px;
  font-size: 1.08rem;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
  font-size: 0.88rem;
}

.medium-table .results-table {
  min-width: 720px;
}

.results-table th,
.results-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.results-table .merge-cell {
  text-align: center;
  vertical-align: middle;
  font-weight: 800;
  color: var(--blue-dark);
  background: #f5f8ff;
  border-right: 1px solid var(--line);
}

.results-table th {
  background: #f2f5fb;
  color: #334158;
  font-weight: 800;
}

.results-table tr:last-child td {
  border-bottom: 0;
}

.gain {
  color: var(--green);
  font-weight: 800;
}

.loss {
  color: #c23b3b;
  font-weight: 800;
}

.group-row td {
  background: #eef4ff;
  color: var(--blue-dark);
  font-weight: 800;
}

.avg-row td {
  background: #f7fafc;
  font-weight: 700;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.result-summary article {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
}

.result-summary strong {
  color: var(--ink);
}

.bibtex {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border-radius: 14px;
  background: #111827;
  color: #e5edf9;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 18px;
    background: rgba(247, 248, 251, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
  }

  .hero {
    padding-top: 52px;
  }

  .stats-grid,
  .domain-grid,
  .method-grid,
  .insight-grid,
  .split,
  .benchmark-card,
  .result-summary {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .container,
  .narrow,
  .nav {
    width: min(100% - 28px, 1120px);
  }
}
