:root {
  color-scheme: light;
  --ink: #101418;
  --ink-soft: #26323c;
  --muted: #5d6872;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --surface-soft: #edf4f1;
  --line: #dde3df;
  --teal: #006b62;
  --mint: #a7e9df;
  --red: #a7443d;
  --blue: #245c88;
  --gold: #946f16;
  --dark: #11171d;
  --shadow: 0 18px 45px rgba(18, 24, 30, 0.11);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

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

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

p,
h1,
h2,
h3,
figure,
pre {
  margin: 0;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(221, 227, 223, 0.78);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 840;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 730;
  white-space: nowrap;
}

.nav-links a {
  transition: color 160ms ease;
}

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

.hero {
  padding: 88px 28px 60px;
  background:
    linear-gradient(180deg, rgba(0, 107, 98, 0.08), rgba(0, 107, 98, 0) 38%),
    var(--surface);
}

.section-inner {
  min-width: 0;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

#showcases,
#method,
#results,
#citation {
  scroll-margin-top: 72px;
}

.hero-layout {
  display: grid;
  gap: 30px;
}

.hero-copy {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--ink);
  font-size: 5.05rem;
  line-height: 0.95;
  font-weight: 870;
  letter-spacing: 0;
}

.subtitle {
  margin: 16px auto 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.34rem;
  line-height: 1.42;
  font-weight: 650;
}

.authors {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 760;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.action,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 780;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.action:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.action-primary {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.action-disabled {
  cursor: default;
}

.action-disabled:hover {
  transform: none;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-badges span {
  padding: 7px 10px;
  border: 1px solid rgba(0, 107, 98, 0.16);
  border-radius: 999px;
  background: rgba(0, 107, 98, 0.07);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 720;
}

.hero-stage {
  display: flex;
  gap: 16px;
  width: min(1280px, 100%);
  max-width: 100%;
  margin: 30px auto 0;
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hero-tile,
.showcase-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9eeea;
  box-shadow: 0 12px 32px rgba(16, 20, 24, 0.08);
}

.hero-stage::-webkit-scrollbar {
  height: 10px;
}

.hero-stage::-webkit-scrollbar-track {
  background: rgba(16, 20, 24, 0.08);
  border-radius: 999px;
}

.hero-stage::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 107, 98, 0.42);
}

.image-link {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.image-link:hover img {
  transform: scale(1.015);
}

.hero-tile img,
.showcase-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 180ms ease;
}

.hero-tile {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

.hero-tile .image-link {
  width: auto;
}

.hero-tile img {
  width: auto;
  height: 390px;
  max-width: min(700px, 88vw);
  background: #f6f8f7;
}

.section {
  padding: 76px 28px;
}

.section h2 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 2.28rem;
  line-height: 1.15;
  font-weight: 830;
  letter-spacing: 0;
}

.section h3 {
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.32;
  font-weight: 810;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.showcase-section .section-heading {
  max-width: 100%;
}

.showcase-section .section-heading p:not(.section-kicker) {
  max-width: 100%;
}

.section-heading p:not(.section-kicker) {
  margin-top: 14px;
}

.showcase-section {
  background: var(--surface);
}

figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.showcase-lanes {
  display: grid;
  gap: 42px;
  min-width: 0;
}

.showcase-lane {
  min-width: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.showcase-lane:first-child {
  padding-top: 0;
  border-top: 0;
}

.showcase-lane-heading {
  max-width: 980px;
  margin-bottom: 18px;
}

.showcase-lane-heading h3 {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.18;
}

.showcase-lane-heading p {
  margin-top: 8px;
  font-size: 1rem;
}

.showcase-track {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 22px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hero-stage.showcase-track {
  margin: 30px auto 0;
}

.showcase-track::-webkit-scrollbar {
  height: 10px;
}

.showcase-track::-webkit-scrollbar-track {
  background: rgba(16, 20, 24, 0.08);
  border-radius: 999px;
}

.showcase-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 107, 98, 0.42);
}

.showcase-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  box-shadow: 0 12px 34px rgba(16, 20, 24, 0.08);
}

.showcase-card .image-link {
  width: auto;
}

.showcase-lanes .showcase-card img {
  width: auto;
  height: clamp(380px, 34vw, 430px);
  max-width: min(760px, 88vw);
  background: #f6f8f7;
}

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

.highlight-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(20, 25, 30, 0.06);
}

.highlight-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(0, 107, 98, 0.12);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
}

.highlight-card:nth-child(2) span {
  background: rgba(148, 111, 22, 0.14);
  color: var(--gold);
}

.highlight-card:nth-child(3) span {
  background: rgba(36, 92, 136, 0.14);
  color: var(--blue);
}

.highlight-card p {
  margin-top: 10px;
  font-size: 0.98rem;
}

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

.method-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 30px 38px;
  align-items: start;
}

.method-layout > * {
  min-width: 0;
}

.method-copy > p:not(.section-kicker) {
  margin-top: 14px;
  font-size: 1.02rem;
}

.method-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.method-points article {
  min-height: 154px;
  padding: 20px;
  border: 1px solid rgba(0, 107, 98, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.method-points p {
  margin-top: 6px;
  font-size: 0.94rem;
}

.method-visuals {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.method-figure {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  background: #fff;
}

.method-figure img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #fff;
}

.method-figure-primary img {
  padding: 22px 40px 8px;
}

.method-figure-primary figcaption {
  padding: 0 18px 18px;
}

.results-section {
  background: var(--dark);
}

.results-section .section-kicker {
  color: var(--mint);
}

.results-section h2,
.results-section h3 {
  color: #fff;
}

.results-section .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

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

.benchmark-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.benchmark-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.benchmark-score {
  display: block;
  min-width: 88px;
  color: var(--mint);
  font-size: 2.26rem;
  line-height: 1;
  font-weight: 870;
}

.benchmark-card-head p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.score-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 680;
}

.score-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-row strong {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 780;
}

.score-row i {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.score-row i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), rgba(36, 92, 136, 0.92));
}

.score-row.is-lead {
  color: #fff;
}

.score-row.is-lead strong {
  color: var(--mint);
}

.citation-section {
  background: var(--surface);
}

.citation-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 52px;
  align-items: start;
}

.citation-grid > * {
  min-width: 0;
}

.bibtex-panel {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow);
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 8px 12px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.86rem;
}

pre {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 72px 20px 20px;
  color: #eef8f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre;
}

.site-footer {
  padding: 26px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner span {
  color: var(--ink);
  font-weight: 800;
}

.footer-inner a {
  color: var(--teal);
  font-weight: 760;
}

@media (max-width: 1020px) {
  .hero h1 {
    font-size: 4.25rem;
  }

  .subtitle {
    font-size: 1.18rem;
  }

  .citation-grid,
  .method-layout {
    grid-template-columns: 1fr;
  }

  .highlight-grid,
  .benchmark-grid,
  .method-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .showcase-section .section-heading p:not(.section-kicker) {
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 14px 18px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
    white-space: normal;
    font-size: 0.88rem;
  }

  .hero {
    padding: 104px 18px 48px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.04rem;
  }

  .hero-tile img {
    height: 260px;
    max-width: 84vw;
  }

  .section {
    padding: 56px 18px;
  }

  .section h2 {
    font-size: 1.74rem;
  }

  .showcase-lane-heading h3 {
    font-size: 1.32rem;
  }

  .showcase-lanes .showcase-card img {
    height: 250px;
    max-width: 84vw;
  }

  .highlight-grid,
  .benchmark-grid,
  .method-points {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    min-height: auto;
  }

  .benchmark-card-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .benchmark-score {
    min-width: 0;
    font-size: 2rem;
  }

  .action {
    width: 100%;
  }

  .copy-button {
    position: static;
    width: calc(100% - 28px);
    margin: 14px 14px 0;
  }

  pre {
    padding-top: 18px;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow-x: hidden;
  }

  .site-footer {
    padding: 22px 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
