:root {
  --ink: #172033;
  --muted: #5e6879;
  --line: #dde3eb;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --orange: #e97a18;
  --orange-soft: #fff1e3;
  --purple: #7357d6;
  --shadow: 0 20px 55px rgba(25, 39, 69, 0.09);
  --radius: 20px;
  --shell: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 227, 235, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue) 0 49%, var(--orange) 51% 100%);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

.hero {
  position: relative;
  padding: 92px 0 62px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px 0 auto;
  height: 410px;
  background:
    radial-gradient(circle at 23% 38%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 78% 38%, rgba(233, 122, 24, 0.11), transparent 32%);
  filter: blur(8px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.subtitle {
  margin: 24px auto 30px;
  max-width: 900px;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  line-height: 1.3;
  color: #374151;
}

.authors {
  display: grid;
  gap: 8px;
  max-width: 1080px;
  margin-inline: auto;
  font-size: 1.06rem;
  font-weight: 650;
}

.author-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

sup {
  font-size: 0.66em;
  vertical-align: super;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 24px;
  margin: 10px auto 0;
  max-width: 940px;
  color: var(--muted);
  font-size: 0.93rem;
}

.author-note {
  margin: 7px auto 24px;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.resource-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.resource-button {
  min-width: 126px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 7px 22px rgba(30, 45, 75, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.resource-button img {
  width: 21px;
  height: 21px;
}

.resource-button:hover,
.resource-button:focus-visible {
  transform: translateY(-2px);
  border-color: #bec9da;
  box-shadow: 0 11px 28px rgba(30, 45, 75, 0.12);
}

.tldr {
  max-width: 820px;
  margin: 30px auto 0;
  padding: 16px 20px;
  border: 1px solid #dbe6fa;
  border-radius: 14px;
  background: rgba(241, 246, 255, 0.82);
  color: #3e4b61;
}

.demo {
  padding-bottom: 82px;
}

.compact-heading {
  margin-bottom: 22px;
  text-align: center;
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #06080c;
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #06080c;
}

.media-caption,
figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.media-caption {
  max-width: 860px;
  margin: 14px auto 0;
  text-align: center;
}

.section {
  padding: 94px 0;
}

.section-tint {
  background: var(--soft);
  border-block: 1px solid #edf0f5;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

.abstract-card,
.figure-card,
.feature-card,
.bibtex-card,
.tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 35px rgba(30, 45, 75, 0.055);
}

.abstract-card {
  padding: 30px;
}

.abstract-card h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.abstract-card p {
  margin: 0;
  color: #4f5b6e;
}

.abstract-card p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.figure-card {
  overflow: hidden;
  margin: 0;
}

.figure-card img {
  width: 100%;
  background: #fff;
}

.figure-card figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid #edf0f4;
}

.teaser-card {
  display: flex;
  flex-direction: column;
}

.teaser-card img {
  flex: 1;
  object-fit: contain;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.pffa-card::after {
  background: var(--purple);
}

.outdoor-card::after {
  background: var(--orange);
}

.feature-index {
  color: #97a2b3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 12px 0 8px;
  font-size: 1.04rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.wide-figure {
  max-width: 1160px;
  margin-inline: auto;
}

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

.benchmark-group {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f8faff);
  box-shadow: 0 12px 35px rgba(30, 45, 75, 0.045);
}

.benchmark-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.benchmark-header h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.15;
}

.scene-tag,
.benchmark-input,
.result-setting,
.shared-model-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-tag {
  color: var(--blue);
}

.outdoor-tag {
  color: var(--orange);
}

.benchmark-input {
  flex: 0 0 auto;
  color: var(--muted);
}

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

.result-card {
  position: relative;
  padding: 20px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.result-card > span,
.result-card > strong {
  display: block;
}

.result-setting {
  min-height: 1.1em;
  color: #667085;
}

.shared-model-label {
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.62rem;
}

.label-spacer {
  visibility: hidden;
}

.result-card > strong {
  margin-top: 12px;
  color: var(--blue);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.primary-metric {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.secondary-metric {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #edf0f5;
  color: var(--muted);
  font-size: 0.84rem;
}

.secondary-metric b {
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}

.cross-scene-card {
  border-color: rgba(37, 99, 235, 0.4);
  background: linear-gradient(180deg, #f7faff, #edf4ff);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.055);
}

.comparison-gap {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.comparison-gap b {
  color: var(--blue);
}

.result-figure img {
  padding: 10px;
}

.tabs {
  overflow: hidden;
}

.tab-list {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.tab-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #596579;
  background: transparent;
  font: inherit;
  font-weight: 730;
  cursor: pointer;
}

.tab-button:hover {
  background: #f2f5fa;
}

.tab-button.is-active {
  color: #fff;
  background: var(--blue);
}

.tab-panel {
  padding: 14px;
  background: #fff;
}

.tab-panel img {
  display: block;
  width: 100%;
}

.tab-caption {
  max-width: 1080px;
  margin: 14px auto 2px;
  padding: 14px 6px 0;
  border-top: 1px solid #edf0f4;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
  text-align: justify;
}

.tab-caption strong {
  color: var(--ink);
}

.efficiency-section {
  padding-bottom: 110px;
}

.efficiency-figure {
  max-width: 940px;
  margin-inline: auto;
  padding: 18px;
}

.citation-section {
  padding: 84px 0;
  color: #eef3ff;
  background: #111827;
}

.citation-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
  align-items: center;
}

.citation-heading {
  margin: 0;
  text-align: left;
}

.citation-heading h2,
.citation-heading > p:last-child {
  color: inherit;
}

.citation-heading > p:last-child {
  opacity: 0.72;
}

.bibtex-card {
  position: relative;
  overflow: auto;
  border-color: rgba(255, 255, 255, 0.12);
  background: #0a1020;
  box-shadow: none;
}

.bibtex-card pre {
  margin: 0;
  padding: 28px;
  color: #d7e2ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  color: #e7edff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 720;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.footer {
  padding: 28px 0;
  color: #7a8595;
  background: #0a0f1b;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.82rem;
}

.footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.36);
  outline-offset: 3px;
}

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

  .hero {
    padding-top: 70px;
  }

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

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

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

  .citation-heading {
    text-align: center;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(100% - 24px, 1160px);
    --radius: 16px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 18vw, 5rem);
  }

  .subtitle {
    margin-top: 18px;
    font-size: 1.28rem;
  }

  .authors {
    gap: 6px;
    font-size: 0.94rem;
  }

  .author-row {
    gap: 6px 16px;
  }

  .affiliations {
    display: block;
    font-size: 0.82rem;
  }

  .affiliations span {
    display: block;
  }

  .resource-button {
    min-width: 118px;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .abstract-card {
    padding: 22px;
  }

  .benchmark-group {
    padding: 16px;
  }

  .benchmark-header {
    align-items: flex-start;
  }

  .benchmark-header h3 {
    font-size: 1.22rem;
  }

  .result-pair {
    gap: 9px;
  }

  .result-card {
    padding: 17px 8px 14px;
  }

  .tab-list {
    overflow-x: auto;
  }

  .tab-button {
    white-space: nowrap;
  }

  .citation-shell {
    gap: 28px;
  }

  .bibtex-card pre {
    padding: 58px 18px 20px;
    font-size: 0.74rem;
  }

  .footer-inner {
    display: block;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
