:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text: #122033;
  --muted: #596579;
  --line: #d8e1eb;
  --accent: #377E39;
  --accent-dark: #1d4ed8;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(calc(100% - 2rem), var(--maxw));
  margin: 0 auto;
}

.project-button {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.project-button:hover {
  background-color: #377E39;
  color: white;
  transform: translateY(-2px);
}

.hero {
  background:
  radial-gradient(circle at top left, rgba(10, 122, 47, 0.12), transparent 35%),
  radial-gradient(circle at top right, rgba(31, 157, 85, 0.10), transparent 28%),
  linear-gradient(180deg, #ffffff 0%, #f3f8f5 100%);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.hero-content {
  padding: 4rem 0 4.5rem;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .96rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .75rem;
}

h1, h2, h3 {
  margin: 0 0 .75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 920px;
  margin-inline: auto;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.subtitle {
  max-width: 820px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.authors, .affiliations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
}

.authors {
  margin-top: 1.6rem;
  font-weight: 600;
}

.affiliations {
  margin-top: .7rem;
  color: var(--muted);
}

.buttons {
  display: flex;
  gap: .85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.button:hover { transform: translateY(-1px); }
.button.primary:hover { background: var(--accent-dark); }

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(238,243,248,.75) 0%, rgba(246,248,251,.9) 100%);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.section-heading p:last-child,
.muted {
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.spotlight {
  padding: 1rem;
}

.full-image,
.inline-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
}

.caption {
  margin-top: .9rem;
  color: var(--muted);
  font-size: .97rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.qualitative-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.right-column {
  display: grid;
  gap: 24px;
}

.umap-image {
  width: 100%;
  display: block;
  object-fit: contain;
}

.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.top-gap { margin-top: 1.25rem; }
.top-gap-sm { margin-top: .7rem; }

.tldr ul,
.check-list {
  margin: .7rem 0 0;
  padding-left: 1.1rem;
}

.feature-card p,
.small {
  font-size: .95rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.stat-label {
  color: var(--muted);
  font-size: .95rem;
}

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

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .6rem;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: .9rem .85rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.table-wrap th {
  font-size: .92rem;
  color: var(--muted);
}

.code-card pre {
  margin: 0;
  overflow-x: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  background: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.align-right { text-align: right; }

@media (max-width: 960px) {
  .two-cols,
  .three-cols,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .align-right { text-align: left; }
  .hero-content { text-align: left; }
  .authors, .affiliations, .buttons { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero-content { padding: 3rem 0 3.4rem; }
  .card { padding: 1rem; }
}
