:root {
  --ink: #17202a;
  --muted: #66717f;
  --paper: #fbfbfd;
  --surface: #ffffff;
  --line: #dfe4ee;
  --blue: #2c7df0;
  --blue-dark: #10295f;
  --mint: #14bfc2;
  --coral: #0c8ea3;
  --amber: #f6c45f;
  --lavender: #cfc7ff;
  --pink: #f3c3dd;
  --shadow: 0 22px 70px rgba(60, 70, 135, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(24, 38, 83, 0.1);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--blue-dark);
  background: rgba(71, 107, 215, 0.1);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.86fr);
  gap: clamp(46px, 5.2vw, 88px);
  align-items: center;
  width: 100%;
  min-height: 590px;
  margin: 0;
  padding: 66px max(42px, calc((100vw - 1340px) / 2)) 64px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.66), transparent 26%),
    radial-gradient(circle at 17% 74%, rgba(0, 202, 210, 0.28), transparent 33%),
    linear-gradient(115deg, #b7f5ef 0%, #d4fbff 36%, #cce4ff 70%, #aebfff 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
}

.eyebrow {
  margin: 0 0 12px;
  color: #087c93;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 7.2vw, 104px);
  font-style: italic;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.subtitle {
  max-width: 700px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.12;
}

.authors,
.affiliations,
.author-notes {
  color: var(--muted);
  line-height: 1.6;
}

.authors {
  max-width: 980px;
  margin-right: auto;
  margin-bottom: 10px;
  margin-left: auto;
  font-size: 15px;
  line-height: 1.75;
}

.authors sup {
  margin-left: 1px;
  font-size: 0.62em;
  line-height: 0;
  vertical-align: super;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.affiliations span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.affiliations sup,
.author-notes sup {
  margin-right: 1px;
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
}

.aff-logo {
  width: auto;
  max-width: 2.1em;
  height: 1.42em;
  object-fit: contain;
  vertical-align: middle;
}

.paper-meta {
  display: grid;
  justify-items: center;
  padding-top: 34px;
  padding-bottom: 20px;
  text-align: center;
}

.author-notes {
  margin-bottom: 0;
  font-size: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(24, 38, 83, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.06);
}

.button.primary {
  border-color: #1b83e9;
  background: linear-gradient(135deg, #11b9c7, #2d73ee);
  color: #fff;
}

.button.disabled {
  color: #6f7c8f;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.hero-logo {
  width: min(470px, 100%);
  margin: 0;
  justify-self: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 76px rgba(28, 93, 156, 0.24);
}

.hero-logo img {
  width: 100%;
  border-radius: 16px;
}

.hero-visual,
.figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px;
}

.hero-visual img {
  border-radius: 6px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 34px;
}

.teaser {
  width: min(1320px, calc(100% - 48px));
  padding-top: 38px;
  padding-bottom: 34px;
}

.metric {
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

.highlight-grid,
.results-grid,
.process,
.task-layout,
.scoreboard {
  display: grid;
  gap: 16px;
}

.highlight-grid {
  grid-template-columns: repeat(3, 1fr);
}

.highlight,
.task-panel,
.process-step,
.result,
.scoreboard > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.highlight,
.process-step,
.result {
  padding: 24px;
}

.highlight span,
.process-step span,
.scoreboard span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.highlight p,
.task-panel li,
.process-step p,
.result p,
.scoreboard p,
figcaption {
  color: var(--muted);
  line-height: 1.65;
}

.highlight p,
.process-step p,
.result p,
.scoreboard p {
  margin-bottom: 0;
}

.task-layout {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 22px;
}

.task-panel {
  padding: 26px;
  border-top: 5px solid var(--blue);
}

.task-panel.accent {
  border-top-color: var(--mint);
}

.task-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-panel li {
  position: relative;
  padding-left: 18px;
}

.task-panel li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.figure {
  margin: 22px 0 0;
}

.figure img {
  width: 100%;
}

figcaption {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fbfcfa;
  font-size: 14px;
}

.process {
  grid-template-columns: repeat(3, 1fr);
}

.results-grid {
  grid-template-columns: repeat(3, 1fr);
}

.scoreboard {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.scoreboard > div {
  padding: 20px;
}

.scoreboard strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--blue-dark);
  font-size: 42px;
  line-height: 1;
}

.bibtex-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow);
  overflow: hidden;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #edf7f4;
  font-size: 14px;
  line-height: 1.7;
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--blue-dark);
  font-weight: 800;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .subtitle {
    max-width: 720px;
  }

  .metrics,
  .highlight-grid,
  .process,
  .results-grid,
  .scoreboard {
    grid-template-columns: 1fr 1fr;
  }

  .task-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 28px, 1180px);
    padding: 52px 0;
  }

  .hero {
    width: 100%;
    margin: 0;
    padding-top: 42px;
    padding-right: 20px;
    padding-left: 20px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 68px);
    white-space: normal;
  }

  .subtitle {
    font-size: 24px;
  }

  .metrics,
  .highlight-grid,
  .process,
  .results-grid,
  .scoreboard {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .copy-button {
    position: static;
    margin: 0 14px 14px;
  }

  pre {
    padding: 18px;
    font-size: 12px;
  }

  .footer {
    flex-direction: column;
  }
}
