:root {
  --page: #f5f7f6;
  --page-warm: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #edf3f2;
  --surface-blue: #eef4f8;
  --ink: #171c22;
  --muted: #53606a;
  --line: #d8e0de;
  --line-strong: #bac8c3;
  --accent: #177157;
  --accent-strong: #0d553f;
  --accent-blue: #315f91;
  --accent-warm: #b9652f;
  --accent-red: #9a4d4a;
  --shadow: 0 18px 42px rgba(28, 39, 42, 0.12);
  --shadow-soft: 0 10px 26px rgba(28, 39, 42, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0, rgba(245, 247, 246, 0.92) 420px, rgba(251, 250, 247, 0.88) 100%),
    repeating-linear-gradient(90deg, rgba(23, 113, 87, 0.035) 0 1px, transparent 1px 96px);
}

a {
  color: inherit;
}

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

::selection {
  background: rgba(23, 113, 87, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(216, 224, 222, 0.86);
  box-shadow: 0 8px 24px rgba(28, 39, 42, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 34ch;
  font-weight: 800;
  text-decoration: none;
}

.brand::before {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(13, 85, 63, 0.36);
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 9px 0 0 var(--accent-blue), 18px 0 0 var(--accent-warm);
  content: "";
}

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

.nav-links a {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}

.nav-links a:hover,
.brand:hover {
  color: var(--accent-strong);
}

.nav-links a:hover {
  border-color: rgba(23, 113, 87, 0.18);
  background: rgba(255, 255, 255, 0.68);
}

.hero {
  position: relative;
  overflow: visible;
  isolation: isolate;
  padding-bottom: 58px;
  background: var(--page-warm);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 24px;
}

.hero-figure {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  overflow: visible;
  padding: 10px 10px 0;
  border: 1px solid rgba(186, 200, 195, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-figure figcaption {
  padding: 13px 12px 15px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: 3.7rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  margin: 0;
  font-size: 2.65rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  line-height: 1.68;
}

.authors {
  max-width: 780px;
  margin: 22px 0 8px;
  color: #24312d;
  font-size: 1.12rem;
  font-weight: 680;
}

.affiliations {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.hero-summary {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(49, 95, 145, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #2d536e;
  font-size: 0.9rem;
  font-weight: 720;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(23, 33, 29, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(28, 39, 42, 0.06);
  font-weight: 780;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: rgba(23, 113, 87, 0.45);
  color: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(28, 39, 42, 0.1);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 34px;
}

.section-header .eyebrow {
  padding-top: 9px;
  border-top: 2px solid var(--accent);
}

.intro-grid,
.split-text,
.method-grid,
.results-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.section-note {
  max-width: 820px;
  margin: -8px 0 30px;
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-grid p,
.split-text p,
.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.metric-strip div,
.release-grid article,
.method-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-strip div {
  position: relative;
  overflow: hidden;
  padding: 23px;
  box-shadow: var(--shadow-soft);
}

.metric-strip div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  content: "";
}

.metric-strip div:nth-child(2)::before {
  background: var(--accent-blue);
}

.metric-strip div:nth-child(3)::before {
  background: var(--accent-warm);
}

.metric-strip div:nth-child(4)::before {
  background: var(--accent-red);
}

.metric-strip strong {
  display: block;
  color: var(--accent-strong);
  font-size: 2.35rem;
  line-height: 1;
}

.metric-strip span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 660;
}

.method-section,
.release-section {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1160px) / 2));
  padding-left: max(24px, calc((100vw - 1160px) / 2));
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.figure-panel,
.table-wrap,
.data-scale,
.dataset-sample,
.case-card,
.result-card,
.result-highlights article {
  border: 1px solid rgba(186, 200, 195, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.figure-panel {
  overflow: visible;
  padding: 12px;
}

.figure-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.dataset-section .split-text {
  margin-top: 28px;
}

.dataset-gallery {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.dataset-sample {
  overflow: visible;
  margin: 0;
  padding: 8px 8px 0;
}

.dataset-sample img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

figcaption {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.dataset-sample figcaption {
  padding: 13px 10px 15px;
  color: var(--ink);
  font-weight: 760;
  text-align: center;
}

.method-grid {
  margin-top: 28px;
}

.method-grid article {
  position: relative;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.method-grid article::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 88px;
  height: 4px;
  background: var(--accent-blue);
  content: "";
}

.method-grid article:nth-child(2)::after {
  background: var(--accent-warm);
}

.method-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-blue);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.method-grid article:nth-child(2) .method-label {
  color: var(--accent-warm);
}

.method-grid h3 {
  margin-bottom: 10px;
  color: var(--accent-strong);
}

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

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
  text-transform: uppercase;
}

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

tbody tr:hover td {
  background: rgba(49, 95, 145, 0.055);
}

.group-row th {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--surface-blue);
  color: var(--accent-blue);
  text-align: left;
}

.main-results-wrap {
  margin-top: 28px;
}

.detailed-results {
  min-width: 1120px;
  font-size: 0.88rem;
}

.detailed-results th,
.detailed-results td {
  padding: 12px 12px;
  vertical-align: middle;
}

.detailed-results td:not(:first-child) {
  text-align: center;
}

.detailed-results td:first-child {
  min-width: 190px;
  font-weight: 720;
}

.metric-main {
  display: block;
  color: var(--ink);
  font-weight: 780;
}

.metric-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 560;
}

.highlight-row td {
  background: rgba(185, 101, 47, 0.1);
}

.best-row td {
  background: rgba(23, 113, 87, 0.11);
  color: var(--accent-strong);
  font-weight: 780;
}

.data-scale {
  overflow: visible;
  margin: 0;
  padding-top: 14px;
}

.data-scale img {
  width: 100%;
  height: auto;
  padding: 8px 18px 12px;
  object-fit: contain;
}

.results-support {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 20px;
}

.result-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-highlights article {
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.result-highlights span {
  display: block;
  color: var(--accent-strong);
  font-size: 2rem;
  font-weight: 820;
  line-height: 1;
}

.result-highlights p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.results-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  min-width: 0;
}

.result-card {
  min-width: 0;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.result-card:first-child {
  grid-column: 1 / -1;
}

.result-card h3 {
  color: var(--accent-strong);
}

.result-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.mini-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-results-table {
  min-width: 780px;
  font-size: 0.88rem;
}

.mini-results-table.compact {
  min-width: 520px;
}

.mini-results-table th,
.mini-results-table td {
  padding: 12px 11px;
}

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

.case-card {
  overflow: visible;
  margin: 0;
  padding: 12px 12px 0;
}

.case-card img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: contain;
  background: #ffffff;
}

.case-card figcaption {
  padding: 14px 16px 16px;
  color: var(--ink);
  font-weight: 780;
  text-align: center;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.release-grid article {
  position: relative;
  overflow: hidden;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.release-grid article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  content: "";
}

.release-grid article:nth-child(2)::before {
  background: var(--accent-blue);
}

.release-grid article:nth-child(3)::before {
  background: var(--accent-warm);
}

.release-grid article:nth-child(4)::before {
  background: var(--accent-red);
}

.release-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.release-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.release-grid a {
  text-decoration: none;
}

.release-grid a:hover {
  color: var(--accent-strong);
}

.citation-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 32, 26, 0.92);
  border-radius: 8px;
  background: #111d19;
  box-shadow: var(--shadow);
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 760;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

pre {
  margin: 0;
  padding: 58px 24px 24px;
  overflow-x: auto;
  color: #e7f2ed;
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer {
  padding: 30px 24px 42px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .results-support,
  .results-extra-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 84px;
    padding: 14px 24px;
  }

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

  .hero {
    padding-bottom: 50px;
  }

  .hero-content,
  .hero-figure,
  .section {
    width: min(100% - 36px, 1160px);
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-header .eyebrow {
    width: fit-content;
  }

  .intro-grid,
  .split-text,
  .method-grid,
  .metric-strip,
  .result-highlights,
  .release-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand {
    max-width: none;
  }

  .nav-links {
    gap: 4px;
    font-size: 0.9rem;
  }

  .nav-links a {
    padding: 8px 9px;
  }

  .hero-content {
    padding-top: 52px;
    padding-bottom: 24px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .section,
  .method-section,
  .release-section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .figure-panel,
  .table-wrap,
  .data-scale,
  .dataset-sample,
  .result-card,
  .case-card,
  .citation-box {
    border-radius: 8px;
  }

  pre {
    font-size: 0.82rem;
  }
}
