:root {
  color-scheme: light;
  --ink: #1a1f2e;
  --ink-soft: #2a3142;
  --muted: #5b6878;
  --muted-light: #8794a3;
  --bg: #fbfcfd;
  --bg-alt: #f3f6f9;
  --panel: #ffffff;
  --line: #e3e8ee;
  --line-strong: #c9d2dc;
  --navy: #0b2235;
  --navy-deep: #061625;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --green: #117a52;
  --green-soft: #e6f4ee;
  --red: #c0392b;
  --amber: #c87a16;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-xs: 0 1px 2px rgba(11, 34, 53, 0.05);
  --shadow-sm: 0 2px 6px rgba(11, 34, 53, 0.06);
  --shadow: 0 8px 24px rgba(11, 34, 53, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero :focus-visible {
  outline-color: #b9e0f8;
}

section[id],
header[id] {
  scroll-margin-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(56, 132, 196, 0.28), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(20, 60, 96, 0.55), transparent 65%),
    linear-gradient(180deg, #06192a 0%, #0a2440 55%, #0b2c4e 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  opacity: 0.5;
}

.nav {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(11, 34, 53, 0.18);
}

.nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, #5fb1e6, #b9e0f8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero-content {
  position: relative;
  width: min(960px, calc(100% - 32px));
  margin: auto;
  padding: 40px 0 88px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  display: inline-block;
  padding: 6px 14px;
  color: #cde6f8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  backdrop-filter: blur(4px);
}

h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c8e2f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  width: min(780px, 100%);
  margin: 0 auto 32px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

/* Authors as inline list with comma separators */
.authors,
.affiliations {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

.authors {
  width: min(880px, 100%);
  gap: 4px 0;
  font-size: 1.02rem;
  margin-bottom: 14px;
}

.authors li {
  padding: 0 4px;
  white-space: nowrap;
}

.authors a {
  color: inherit;
}

.authors a:hover {
  color: #fff;
}

.authors li:not(:last-child)::after {
  content: ",";
  margin-left: 1px;
  color: rgba(255, 255, 255, 0.55);
}

.authors sup,
.affiliations sup {
  color: #fbc97a;
  font-weight: 700;
  margin-left: 1px;
}

.affiliations {
  gap: 6px 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.contribution-note {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  font-style: italic;
}

.contribution-note sup {
  color: #fbc97a;
  font-style: normal;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 32, 50, 0.55);
  backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: rgba(30, 60, 90, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transform: translateY(-1px);
}

.button .icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.button-accent {
  background: linear-gradient(135deg, #f5b342 0%, #e89623 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #1a1208;
}

.button-accent:hover {
  background: linear-gradient(135deg, #f8c266 0%, #efa531 100%);
  color: #1a1208;
  border-color: rgba(255, 255, 255, 0.55);
}

/* ---------- Layout ---------- */
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.section h2 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  position: relative;
  padding-bottom: 12px;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #5fb1e6);
  border-radius: 2px;
}

.section h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.005em;
}

.section-lead {
  width: min(820px, 100%);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ---------- News ---------- */
.news-band {
  padding: 42px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.news-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.news-list time {
  color: var(--blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.news-list span {
  color: var(--ink-soft);
}

/* ---------- Abstract + Metrics ---------- */
.dataset-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: start;
}

.abstract-section .container {
  display: flex;
  flex-direction: column;
}

.abstract-body {
  width: min(880px, 100%);
  margin: 0 auto 36px;
  text-align: justify;
  hyphens: auto;
}

.abstract-section h2 {
  text-align: center;
  align-self: center;
  padding-bottom: 14px;
}

.abstract-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.abstract-body p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.78;
}

.abstract-body p + p {
  margin-top: 14px;
}

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

.metric {
  min-height: 132px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), #5fb1e6);
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.metric strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.metric span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ---------- Visual / Method ---------- */
.visual-section {
  background: #fff;
}

.wide-figure,
.side-figure {
  margin: 28px 0 0;
}

.wide-figure img,
.side-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  text-align: center;
}

figcaption strong {
  color: var(--navy);
  font-weight: 700;
  margin-right: 4px;
}

.feature-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.feature-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.feature-grid article:nth-child(1)::before {
  background: linear-gradient(90deg, #2f7fb7, #5fb1e6);
}

.feature-grid article:nth-child(2)::before {
  background: linear-gradient(90deg, #117a52, #2d9a68);
}

.feature-grid article:nth-child(3)::before {
  background: linear-gradient(90deg, #c87a16, #e8a13a);
}

.feature-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.feature-grid article p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Tables ---------- */
.tables {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.table-block {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}

table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}

thead tr {
  border-bottom: 2px solid var(--navy);
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr {
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: var(--bg-alt);
}

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

th.num,
td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tbody td.num:last-child {
  font-weight: 700;
  color: var(--navy);
}

.best-row {
  background: var(--green-soft) !important;
  border-top: 2px solid var(--green);
}

.best-row td {
  color: #0c5d3f;
  font-weight: 700;
}

.best-row td.num:last-child {
  color: var(--green);
}

.wide-figure.narrow {
  width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Dataset ---------- */
.dataset-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dataset-section p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.side-figure {
  margin-top: 0;
}

.side-figure img {
  max-height: 620px;
  object-fit: contain;
}

/* ---------- Resources ---------- */
.resource-band {
  background: #fff;
  border-top: 1px solid var(--line);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.resource-grid a {
  padding: 20px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.resource-grid a:hover {
  text-decoration: none;
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.resource-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
}

.resource-icon img,
.resource-icon svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.resource-grid a:hover .resource-icon {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.resource-text {
  min-width: 0;
  flex: 1;
}

.resource-text strong,
.resource-text span {
  display: block;
}

.resource-text strong {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}

.resource-text span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ---------- Citation ---------- */
.citation-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.citation-block {
  border: 1px solid #1a3854;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0e2336 0%, #0a1c2c 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.citation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.citation-label {
  color: #b8d3e6;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #e6f1f8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.copy-button .copy-icon,
.copy-button .check-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.copy-button .check-icon {
  display: none;
  color: #6fe1a8;
}

.copy-button.is-copied {
  color: #c9f4dc;
  border-color: rgba(111, 225, 168, 0.4);
  background: rgba(46, 156, 102, 0.18);
}

.copy-button.is-copied .copy-icon {
  display: none;
}

.copy-button.is-copied .check-icon {
  display: inline-block;
}

.citation-block pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #d8e9f5;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  box-shadow: none;
}

.citation-block pre code {
  font-family: inherit;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
  color: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 38px 0;
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy-deep);
  border-top: 1px solid #0a2238;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.footer p {
  margin: 0;
  line-height: 1.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .metric-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .dataset-grid,
  .tables,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding: 28px 0 64px;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 16px;
  }

  .brand {
    gap: 10px;
    padding: 5px 10px;
  }

  .brand-logo {
    height: 26px;
  }

  .authors,
  .affiliations {
    gap: 4px 6px;
    font-size: 0.95rem;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .metric-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .abstract-body {
    text-align: left;
  }

  .section {
    padding: 56px 0;
  }

  .button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}
