/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:      #2563eb;
  --brand-dark: #1d4ed8;
  --text:       #1a1a2e;
  --muted:      #6b7280;
  --bg:         #ffffff;
  --bg-light:   #f8fafc;
  --border:     #e2e8f0;
  --code-bg:    #0f172a;
  --code-fg:    #e2e8f0;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 720px; }
.container.narrow p { text-align: justify; }

.section { padding: 72px 0; }
.bg-light { background: var(--bg-light); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  color: #fff;
  padding: 96px 0 80px;
  text-align: center;
}

.venue-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 24px;
  color: #bfdbfe;
}

.title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: #bfdbfe;
  margin-bottom: 32px;
  line-height: 1.5;
}

.authors {
  font-size: 15px;
  margin-bottom: 6px;
  color: #e0f2fe;
}
.author { color: #93c5fd; font-weight: 500; }
.author:hover { color: #fff; text-decoration: underline; }
sup { font-size: 10px; vertical-align: super; }

.affiliations {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 40px;
}

/* ─── Org logos ──────────────────────────────────────────────────────────── */
.org-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
}
.org-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  cursor: pointer;
}
.btn-primary {
  background: #fff;
  color: var(--brand-dark);
}
.btn-primary:hover { background: #eff6ff; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: #e0f2fe;
  border: 1px solid rgba(255,255,255,.35);
}
.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ─── Section titles ─────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -.01em;
}
.section-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ─── Teaser / figures ───────────────────────────────────────────────────── */
.teaser, .result-figure {
  text-align: center;
}
.teaser img, .result-figure img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.teaser figcaption, .result-figure figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.result-figure { margin-top: 48px; }

/* ─── Stats grid ─────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ─── Steps ─────────────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 24px; }

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-body p { color: var(--muted); font-size: 15px; }

/* ─── Code blocks ────────────────────────────────────────────────────────── */
.code-group { margin-bottom: 28px; }

.code-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

pre {
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13.5px;
  line-height: 1.65;
}

pre.bibtex { font-size: 13px; }

.code-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.more-link {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ─── Domain cards ───────────────────────────────────────────────────────── */
.domain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.domain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--code-bg);
  color: #94a3b8;
  text-align: center;
  padding: 32px 0;
  font-size: 14px;
}
footer a { color: #93c5fd; }
footer a:hover { color: #fff; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .step { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
