:root {
  --ink: #172129;
  --muted: #64717a;
  --line: #dfe7e9;
  --paper: #f7faf8;
  --white: #ffffff;
  --blue: #1769ff;
  --purple: #8d54ee;
  --orange: #ff8b37;
  --green: #1eaa72;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.62;
}
a { color: inherit; text-decoration: none; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 80px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 1.15rem; font-weight: 800; letter-spacing: -.04em; }
.wordmark span { color: var(--blue); }
nav { display: flex; gap: 24px; font-size: .84rem; font-weight: 700; color: var(--muted); }
nav a:hover { color: var(--blue); }

.section { width: min(1080px, calc(100% - 48px)); margin: auto; }
.hero { text-align: center; padding: 94px 0 46px; }
.eyebrow {
  margin: 0 0 14px; color: var(--blue); font: 500 .76rem/1 "DM Mono", monospace;
  letter-spacing: .13em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.05em; }
h1 { max-width: 980px; margin: auto; font-size: clamp(2.65rem, 6vw, 5.6rem); font-weight: 800; }
.hero-subtitle { max-width: 770px; margin: 20px auto 18px; color: #40505b; font-size: clamp(1.06rem, 2vw, 1.45rem); }
.authors { margin: 0; font-weight: 600; font-size: .96rem; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.button {
  display: inline-flex; gap: 10px; align-items: center; padding: 10px 17px; border: 1px solid #bdc9ce;
  border-radius: 999px; background: var(--white); font-size: .88rem; font-weight: 700; transition: .2s ease;
}
.button:hover { border-color: var(--ink); transform: translateY(-2px); }
.button-primary { background: var(--ink); border-color: var(--ink); color: white; }

.video-section { padding: 20px 0 108px; }
.video-frame {
  overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #10171c;
  box-shadow: 0 22px 70px rgba(26, 52, 62, .16);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; padding: 104px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(2rem, 3.4vw, 3.35rem); font-weight: 800; }
.body-copy { max-width: 550px; font-size: 1.04rem; color: #40505b; }
.body-copy p:first-child { margin-top: 0; }

.method-section, .architecture-section, .results-section, .citation-section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.figure-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 18px 50px rgba(26, 52, 62, .08); }
.figure-card img { display: block; width: 100%; height: auto; background: white; }
.figure-card figcaption { padding: 17px 21px 19px; color: var(--muted); font-size: .88rem; }
.figure-card figcaption strong { color: var(--ink); }
.pipeline { display: flex; align-items: stretch; gap: 10px; }
.pipeline-card {
  flex: 1; min-height: 237px; padding: 24px; border: 1px solid var(--line); border-top: 5px solid var(--blue);
  border-radius: 12px; background: var(--white);
}
.pipeline-card h3 { margin: 40px 0 13px; font-size: 1.27rem; font-weight: 800; }
.pipeline-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.step { color: var(--muted); font: .75rem "DM Mono", monospace; }
.accent-purple { border-top-color: var(--purple); }
.accent-orange { border-top-color: var(--orange); }
.accent-green { border-top-color: var(--green); }
.arrow { align-self: center; color: #9ba9ae; font-size: 1.5rem; }
.method-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.method-notes p { margin: 0; padding-left: 15px; border-left: 2px solid #cbd9df; color: var(--muted); font-size: .9rem; }
.method-notes strong { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 28px; }
.stats article { padding: 29px; border-radius: 12px; background: #e8f2ff; }
.stats article:nth-child(2) { background: #eee7ff; }
.stats article:nth-child(3) { background: #e3f7ed; }
.stat-value { display: block; font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.unit { margin-left: 3px; font-size: .5em; letter-spacing: 0; }
.stat-label { display: block; margin-top: 12px; font-size: .84rem; font-weight: 700; color: #4d5d66; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
table { width: 100%; min-width: 480px; border-collapse: collapse; text-align: left; }
th, td { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { background: #f2f6f7; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.highlight { background: #eaf3ff; font-weight: 800; }

pre { overflow-x: auto; margin: 0; padding: 26px; border-radius: 12px; background: #15232c; color: #dce9ef; font: .78rem/1.75 "DM Mono", monospace; }
footer {
  display: flex; justify-content: space-between; width: min(1180px, calc(100% - 48px)); margin: auto;
  padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem;
}
footer span:first-child { color: var(--ink); font-weight: 800; }

@media (max-width: 820px) {
  .site-header { height: 70px; }
  nav { gap: 14px; font-size: .72rem; }
  .hero { padding-top: 70px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .pipeline { display: grid; grid-template-columns: 1fr 1fr; }
  .arrow { display: none; }
  .pipeline-card { min-height: 200px; }
  .method-notes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section, .site-header, footer { width: min(100% - 32px, 1080px); }
  nav a:nth-child(n+3) { display: none; }
  .video-section, .method-section, .architecture-section, .results-section, .citation-section { padding: 70px 0; }
  .split { padding: 70px 0; }
  .pipeline, .stats { grid-template-columns: 1fr; }
  footer { gap: 12px; flex-direction: column; }
}
