:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #182033;
  --muted: #5d667c;
  --line: #e4e7ef;
  --brand: #4f6df5;
  --brand-dark: #2c45b8;
  --soft: #edf1ff;
  --shadow: 0 18px 55px rgba(24, 32, 51, 0.09);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  padding: 84px 0 58px;
  background:
    radial-gradient(circle at top left, rgba(79, 109, 245, 0.25), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #eef2ff 50%, #f8fbff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { text-align: center; }
.venue {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--text);
  color: white;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  font-weight: 750;
}
h1 {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}
.subtitle {
  max-width: 820px;
  margin: 24px auto 22px;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  color: var(--muted);
}
.authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 24px;
  font-size: 1.05rem;
  font-weight: 650;
}
.affiliation { color: var(--muted); margin: 6px 0 0; }
.actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 110px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--text);
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(24, 32, 51, 0.07);
}
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.button:hover { transform: translateY(-1px); text-decoration: none; }
main section { padding: 58px 0; }
.teaser-section { text-align: center; }
.teaser {
  width: min(1480px, 100%);
  border-radius: 22px;
  background: white;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.caption, figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 820px;
  margin: 18px auto 0;
}
h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}
h3 { margin: 0 0 12px; font-size: 1.15rem; }
p { margin: 0 0 15px; }
.grid { display: grid; gap: 26px; align-items: start; }
.two-col { grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 38px rgba(24, 32, 51, 0.06);
}
.takeaway { background: linear-gradient(180deg, #ffffff, var(--soft)); }
.equation {
  overflow-x: auto;
  padding: 12px 0;
  font-size: 1.02rem;
}
.code-card pre, .bibtex {
  margin: 0;
  white-space: pre-wrap;
  overflow-x: auto;
  background: #111827;
  color: #e9eefc;
  border-radius: 16px;
  padding: 18px;
  line-height: 1.5;
  font-size: 0.9rem;
}
.section-lead { max-width: 860px; color: var(--muted); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 28px;
}
.stat { min-height: 172px; display: flex; flex-direction: column; justify-content: center; }
.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.06em;
  color: var(--brand-dark);
}
.stat-label { display: block; margin-top: 12px; color: var(--muted); font-weight: 650; }
.figure-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
figure { margin: 0; }
.figure-row figure, .figure-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 38px rgba(24, 32, 51, 0.06);
}
figure img { width: 100%; display: block; border-radius: 14px; }
.resource-list { display: flex; flex-wrap: wrap; gap: 14px; }
.resource-list a {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 750;
}
.footer {
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: white;
}
.footer p { margin: 0 0 8px; }
.small { font-size: 0.9rem; }
@media (max-width: 850px) {
  .two-col, .three-col, .results-grid, .figure-row { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  main section { padding: 42px 0; }
  .teaser { padding: 14px; }
}

.presentation-section {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 72px;
}

.presentation-section h2 {
  margin-bottom: 28px;
}

.presentation-video {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.presentation-video iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.qualitative-section {
  grid-template-columns: minmax(260px, 0.8fr) minmax(560px, 1.4fr);
  align-items: center;
  gap: 48px;
}

.qualitative-figure {
  width: 100%;
}

.qualitative-figure img {
  width: 100%;
  max-width: none;
  display: block;
}

@media (max-width: 900px) {
  .qualitative-section {
    grid-template-columns: 1fr;
  }
}