:root {
  --bg: #f7fbfb;
  --surface: #ffffff;
  --surface-soft: #eef8f6;
  --text: #123135;
  --muted: #5b7478;
  --primary: #31b7a6;
  --primary-dark: #16877a;
  --accent: #8ed7ff;
  --line: rgba(18, 49, 53, 0.12);
  --shadow: 0 24px 80px rgba(32, 112, 117, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(142, 215, 255, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(49, 183, 166, 0.16), transparent 30rem),
    var(--bg);
  line-height: 1.6;
}

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

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

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

.section-pad {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 251, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--primary), #74c7ff);
  box-shadow: 0 12px 30px rgba(49, 183, 166, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.intro {
  max-width: 900px;
  text-align: center;
  padding-top: 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(4rem, 12vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: -0.1em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.26rem;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
}

.subtitle {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.24rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.quick-links a {
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(32, 112, 117, 0.08);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(2, minmax(160px, 0.5fr));
  gap: 16px;
  margin-top: 54px;
}

.overview-card,
.stat-card,
.figure-card,
.leaderboard-wrap,
.case-card,
.citation-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.overview-card {
  grid-row: span 2;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.stat-card {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-radius: var(--radius-md);
}

.stat-card strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.08em;
}

.stat-card span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.figure-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.figure-card.compact {
  max-width: 980px;
  margin-top: 34px;
}

.figure-card img {
  width: 100%;
  border-radius: 20px;
  background: white;
}

.soft-section {
  background: linear-gradient(180deg, rgba(238, 248, 246, 0.7), rgba(247, 251, 251, 0.92));
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
  text-align: center;
}

.leaderboard-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.leaderboard th,
.leaderboard td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.leaderboard th {
  color: var(--muted);
  background: #f1fbf9;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leaderboard tr:last-child td {
  border-bottom: 0;
}

.leaderboard td:nth-child(2) {
  font-weight: 900;
}

.leaderboard .highlight td {
  background: #eefbf8;
  color: var(--primary-dark);
  font-weight: 900;
}

.leaderboard .human td {
  background: #f1f8ff;
  color: #236c9c;
  font-weight: 900;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.case-tag {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #167467;
  background: #e8faf6;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-tag.green {
  color: #2d7d48;
  background: #edf9ef;
}

.case-tag.blue {
  color: #236c9c;
  background: #edf7ff;
}

.case-tag.purple {
  color: #7151a6;
  background: #f4efff;
}

dl {
  margin: 24px 0 0;
}

dl div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--text);
  font-weight: 900;
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.citation-card {
  padding: 42px;
  border-radius: var(--radius-lg);
}

pre {
  overflow-x: auto;
  margin: 24px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: #174144;
  background: #eef8f6;
  border: 1px solid var(--line);
}

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

.footer {
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .overview-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-pad {
    padding: 72px 0;
  }

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

  .leaderboard {
    min-width: 760px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
