:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --ink: #121826;
  --muted: #5f6b7a;
  --line: #dde3ee;
  --primary: #3249b7;
  --primary-dark: #23358e;
  --accent: #7a4fd1;
  --shadow: 0 18px 50px rgba(29, 45, 95, 0.10);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.hero {
  background:
    radial-gradient(circle at 10% 0%, rgba(122,79,209,.24), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(50,73,183,.30), transparent 35%),
    linear-gradient(145deg, #0e1630 0%, #172554 47%, #1f2e72 100%);
  color: #fff;
  padding-bottom: 84px;
  overflow: hidden;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.brand { font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: #fff; }
.hero-inner { text-align: center; padding-top: 70px; }
.venue-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  font-size: .92rem; font-weight: 700; letter-spacing: .01em;
}
h1 { max-width: 1000px; margin: 28px auto 24px; font-size: clamp(2.5rem, 6vw, 5.1rem); line-height: 1.02; letter-spacing: -.045em; }
h1 span { color: #dce6ff; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 1.05rem; font-weight: 600; }
.authors span:not(:last-child)::after { content: "·"; margin-left: 22px; color: rgba(255,255,255,.4); }
.affiliations { margin-top: 14px; color: rgba(255,255,255,.70); font-size: .92rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 19px; border: 1px solid rgba(255,255,255,.32); border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; background: rgba(255,255,255,.08); }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.13); }
.btn-primary { background: #fff; color: #16235a; border-color: #fff; }
.btn-primary:hover { background: #edf2ff; }
.hero-thesis { max-width: 850px; margin: 34px auto 0; font-size: 1.12rem; color: rgba(255,255,255,.82); }

.stats-strip { margin-top: -38px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 22px 14px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.35rem; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 3px; color: var(--muted); font-size: .83rem; }

.section { padding: 92px 0; }
.section-alt { background: #eef2f9; }
.section-heading { margin-bottom: 32px; max-width: 840px; }
.section-heading.compact { margin-bottom: 0; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 850; color: var(--primary); }
h2 { margin: 7px 0 10px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); font-size: 1.06rem; }
.prose-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 5vw, 48px); box-shadow: 0 10px 30px rgba(29,45,95,.05); font-size: 1.07rem; }
.prose-card p:first-child { margin-top: 0; }
.prose-card p:last-child { margin-bottom: 0; }

.figure-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(29,45,95,.06); }
.figure-card img { width: 100%; height: auto; background: #fff; }
.figure-card figcaption { padding: 18px 20px 20px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.figure-wide { margin-top: 20px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.step-card span { color: var(--primary); font-weight: 900; font-size: .82rem; }
.step-card h3 { margin: 7px 0 8px; font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.finding-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.finding-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 8px 24px rgba(29,45,95,.05); }
.finding-number { color: var(--primary); font-weight: 900; font-size: .8rem; letter-spacing: .08em; }
.finding-card h3 { margin: 7px 0 10px; font-size: 1.22rem; line-height: 1.3; }
.finding-card p { margin: 0; color: var(--muted); }
.results-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; align-items: start; }
.gallery-span-2 { grid-column: span 2; }

.implication-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.implication-card { background: linear-gradient(145deg, #172554, #22377e); color: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.implication-card p { color: rgba(255,255,255,.82); margin: 12px 0 0; }
.implication-card .lead { margin-top: 0; color: #fff; font-size: 1.18rem; font-weight: 650; }
.limitations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.mini-card h3 { margin: 0 0 8px; font-size: 1rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.bibtex-card { position: relative; background: #10182f; color: #e7ecff; border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
.bibtex-card pre { margin: 0; padding: 30px; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; }
.copy-btn { position: absolute; right: 14px; top: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.14); }
.citation-note { color: var(--muted); font-size: .88rem; margin-top: 12px; }

footer { background: #0c1329; color: #fff; padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner p { margin: 3px 0 0; color: rgba(255,255,255,.58); font-size: .9rem; }
.footer-inner a { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { padding-top: 48px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .steps-grid, .limitations-grid { grid-template-columns: repeat(2, 1fr); }
  .implication-wrap { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .hero { padding-bottom: 66px; }
  h1 { font-size: 2.55rem; }
  .authors { display: block; }
  .authors span { display: block; margin: 5px 0; }
  .authors span:not(:last-child)::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding: 68px 0; }
  .finding-grid, .results-gallery, .steps-grid, .limitations-grid { grid-template-columns: 1fr; }
  .gallery-span-2 { grid-column: span 1; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
