:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --text: #1c2633;
  --muted: #5f6f83;
  --line: #dfe7ef;
  --primary: #1f77b4;
  --primary-dark: #155d8d;
  --primary-soft: #eaf4fb;
  --accent: #0d9488;
  --shadow: 0 18px 48px rgba(22, 43, 69, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

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

.wide-container {
  width: min(1280px, calc(100% - 36px));
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 34px;
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 119, 180, 0.18), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(13, 148, 136, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 86%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -32% -12%;
  height: 320px;
  background: linear-gradient(90deg, rgba(31, 119, 180, 0.08), rgba(13, 148, 136, 0.08));
  filter: blur(80px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  max-width: 980px;
  margin: 0 auto;
  font-family: Lora, Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4.15vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-family: Lora, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.08rem;
  font-weight: 800;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 22px;
  margin: 28px auto 14px;
  max-width: 980px;
  color: #25364a;
  font-size: 1.05rem;
  font-weight: 600;
}

.author {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}

.author-name {
  display: inline-block;
}

.author sup {
  position: relative;
  top: -0.35em;
  font-size: 0.68em;
  line-height: 0;
  letter-spacing: 0.01em;
}

.affiliations {
  max-width: 880px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.affiliations p {
  margin: 4px 0;
}

.notes {
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 119, 180, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button svg,
.button .ai {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.button .ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 14px 28px rgba(31, 119, 180, 0.32);
}

.button.muted {
  background: #eef4f9;
  color: #334155;
  box-shadow: none;
  cursor: default;
}

.button.muted:hover {
  transform: none;
  background: #eef4f9;
}

.button span {
  margin-left: 6px;
  color: #738296;
  font-size: 0.74rem;
  font-weight: 700;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.teaser {
  overflow: hidden;
  margin: 0 auto;
  padding: 16px 16px 12px;
  text-align: left;
}

.teaser img {
  width: 100%;
  border-radius: 12px;
  background: #f7f8fa;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.section {
  padding: 74px 0;
}

.section.compact {
  padding: 52px 0 42px;
}

.section.alt {
  background: var(--bg-soft);
}

.section p {
  color: #314154;
}

.tldr {
  margin: 18px 0 0;
  padding: 24px 28px;
  border-left: 5px solid var(--primary);
  border-radius: 0 16px 16px 0;
  background: var(--primary-soft);
  color: #163247;
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
  font-weight: 700;
  line-height: 1.55;
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}

.stat-card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.paper-figure {
  overflow: hidden;
  margin: 28px 0 0;
  padding: 16px 16px 12px;
}

.paper-figure img {
  width: 100%;
  border-radius: 12px;
  background: #f7f8fa;
}

.paper-figure h3 {
  margin: 4px 4px 14px;
  text-align: center;
}

.table-figure {
  padding: 18px 10px 14px;
}

.table-figure img {
  width: 94%;
  margin: 0 auto;
  border-radius: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 43, 69, 0.08);
}

.feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.table-card {
  margin-top: 24px;
  padding: 22px;
}

.table-card h3 {
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.35;
}

.compact-table table {
  min-width: 600px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
  font-weight: 700;
}

th {
  color: #223248;
  background: #f4f8fb;
  font-weight: 800;
}

tr.ours td {
  background: var(--primary-soft);
  color: #102d44;
  font-weight: 800;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.result-grid .paper-figure {
  margin-top: 0;
}

.bibtex {
  overflow-x: auto;
  margin: 22px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101827;
  color: #e6edf6;
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 42px;
  }

  .stats-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .teaser,
  .paper-figure {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

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

  .hero-actions {
    gap: 9px;
  }

  .button {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .stats-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .teaser,
  .paper-figure,
  .table-card {
    border-radius: 14px;
    padding: 10px;
  }

  .teaser img,
  .paper-figure img {
    border-radius: 10px;
  }

  figcaption {
    font-size: 0.86rem;
  }
}
