:root {
  --accent: #5b5ce2;
  --accent-2: #269172;
  --ink: #1d1d1f;
  --muted: #647084;
  --line: #edf0f5;
  --soft: #fbfbfd;
  --paper: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav a {
  padding: 7px 15px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: #f3f4f8;
  color: var(--ink);
}

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

.container.narrow {
  width: min(920px, calc(100% - 40px));
}

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  font-size: clamp(54px, 10vw, 96px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(110deg, #22252f 18%, var(--accent) 58%, var(--accent-2) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 img {
  width: clamp(64px, 10vw, 116px);
  height: auto;
  flex: 0 0 auto;
}

.subtitle {
  max-width: 820px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 500;
  line-height: 1.35;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 34px;
  color: #373c48;
  font-size: 19px;
  font-weight: 600;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
}

.note {
  margin: 8px 0 0;
  color: #98a2b3;
  font-size: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 52px;
  padding: 0 22px;
  background: #ffffff;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  color: #242933;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  border-color: #c8d0dc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #9b5cf0);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(91, 92, 226, 0.25);
}

.section {
  padding: 72px 0;
}

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

h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 42px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
}

h2::before {
  content: "";
  width: 5px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  flex: 0 0 auto;
}

.text-block {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
  color: #334155;
  font-size: 19px;
  text-align: justify;
}

.text-block p {
  margin: 0;
}

.image-card {
  margin: 34px 0 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.image-card figcaption {
  padding: 18px 22px;
  background: #fafafa;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

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

.stats article {
  min-height: 142px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.stats strong {
  display: block;
  color: var(--accent);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.citation-intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  background: #101828;
  border-radius: 14px;
  color: #e6edf6;
  font-size: 14px;
  line-height: 1.55;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px max(20px, calc((100vw - 1040px) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 720px) {
  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    flex-direction: column;
    gap: 12px;
  }

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

  .text-block {
    text-align: left;
  }
}
