:root {
  --accent: #0b5fc6;
  --accent-deep: #083f7f;
  --accent-soft: #edf7fc;
  --accent-border: #b7d9ec;
  --ink: #061f45;
  --muted: #4c6176;
  --faint: #5b7187;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --line: #d5e3eb;
  --blue: #0b5fc6;
  --blue-soft: #edf7fc;
  --shadow: 0 18px 50px rgba(6, 31, 69, 0.1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.wide-container {
  width: min(1120px, calc(100% - 40px));
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(183, 217, 236, 0.82);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(6, 31, 69, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.nav-home {
  flex-shrink: 0;
  color: var(--accent-deep);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex-shrink: 0;
  padding: 14px 12px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.nav-links a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 66px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 12%, rgba(89, 183, 239, 0.14), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(11, 95, 198, 0.18), transparent 32%),
    linear-gradient(158deg, #ffffff 48%, #edf7fc 100%);
  text-align: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 95, 198, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 95, 198, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.kicker,
.section-label {
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3.4rem, 10vw, 6.1rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--accent);
}

.paper-title {
  max-width: 780px;
  margin: 24px auto 0;
  color: #0c2f54;
  font-size: clamp(1.08rem, 2.5vw, 1.38rem);
  font-weight: 700;
  line-height: 1.5;
}

.hero-summary {
  max-width: 700px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.affiliations {
  margin-top: 20px;
  color: var(--faint);
  font-size: 0.86rem;
  line-height: 1.65;
}

.authors {
  max-width: 780px;
  margin: 10px auto 0;
  color: var(--faint);
  font-size: 0.84rem;
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  box-shadow: 0 8px 22px rgba(6, 31, 69, 0.16);
  text-decoration: none;
  transform: translateY(-2px);
}

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

.button.primary:hover {
  background: var(--accent-deep);
}

.button.secondary {
  border-color: #b7d9ec;
  background: #ffffff;
  color: #17324d;
}

section {
  padding: 72px 0;
  scroll-margin-top: 50px;
}

section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.tldr {
  margin-bottom: 36px;
  padding: 17px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 9px 9px 0;
  background: var(--accent-soft);
  color: #17324d;
}

.tldr strong {
  margin-right: 6px;
  color: var(--accent-deep);
}

.figure-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-figure {
  max-width: 760px;
  aspect-ratio: 1.5;
  margin: 0 auto 62px;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

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

.section-heading.centered {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: 34px;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  display: inline-block;
  margin-top: 7px;
  padding-bottom: 9px;
  border-bottom: 3px solid var(--accent);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.35;
}

.section-heading > p:last-child:not(.section-label) {
  margin-top: 14px;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 42px;
  align-items: start;
}

.prose p,
.feature-copy p {
  color: var(--muted);
}

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

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

.stat-card {
  padding: 19px 10px;
  border: 1px solid #c9dfec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(6, 31, 69, 0.06);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.stat-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.framework-figure,
.evaluation-figure {
  margin-bottom: 30px;
}

.evaluation-figure {
  aspect-ratio: 1.25;
}

.evaluation-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

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

.method-card,
.metric-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(6, 31, 69, 0.06);
}

.method-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
}

.method-card h3,
.metric-grid h3,
.feature-copy h3 {
  font-size: 1.08rem;
  line-height: 1.45;
}

.method-card p,
.metric-grid p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-grid article {
  background: linear-gradient(145deg, #ffffff, #f8fbfd);
}

.metric-grid strong {
  color: var(--accent);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.result-grid .compact-figure {
  display: flex;
  flex-direction: column;
}

.result-grid .compact-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  object-fit: contain;
}

.compact-figure img {
  width: 100%;
}

.compact-figure figcaption {
  margin-top: auto;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.evidence-feature,
.output-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 42px;
  align-items: center;
  margin-top: 62px;
}

.feature-copy h3 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.feature-copy p:not(.section-label) {
  margin-top: 14px;
}

.output-feature {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
}

.report-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
}

pre {
  overflow-x: auto;
  padding: 22px;
  border: 1px solid #c9dce8;
  border-radius: 10px;
  background: #eaf2f7;
  color: #17324d;
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre;
}

.footer {
  padding: 36px 24px;
  background: #061f45;
  color: #a9c7db;
  text-align: center;
}

.footer > * {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.footer p {
  color: #a9c7db;
}

.footer .eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #8fd9ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.footer .btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border: 1.5px solid transparent;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

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

.footer .btn.ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #ffffff;
}

.footer .footer-note {
  margin-top: 18px;
  color: #8eb4cc;
  font-size: 0.84rem;
}

.footer a {
  color: #8fd9ff;
}

@media (max-width: 820px) {
  .nav-inner {
    width: 100%;
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-home {
    padding: 9px 20px 5px;
  }

  .nav-links {
    padding: 0 8px;
  }

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

  .hero {
    padding: 62px 0 52px;
  }

  section {
    padding: 58px 0;
    scroll-margin-top: 96px;
  }

  .intro-grid,
  .evidence-feature,
  .output-feature {
    grid-template-columns: 1fr;
  }

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

  .evidence-feature,
  .output-feature {
    gap: 26px;
    margin-top: 46px;
  }

  .output-feature .feature-copy {
    order: -1;
  }
}

@media (max-width: 620px) {
  .container,
  .wide-container {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 15vw, 4rem);
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .result-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px;
  }

  .stat-card span {
    margin-top: 0;
    font-size: 0.78rem;
  }

  .tldr,
  .method-card,
  .metric-grid article {
    padding: 18px;
  }

}

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

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