:root {
  color-scheme: light;
  --ink: #20252b;
  --muted: #65717d;
  --line: #e3e8eb;
  --wash: #f5f7f8;
  --accent: #297768;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 17px/1.7 Inter, "Segoe UI", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 48px, 1120px); margin-inline: auto; }
.narrow { max-width: 820px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 84px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(41, 119, 104, .12), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(116, 92, 153, .10), transparent 31%),
    linear-gradient(150deg, #eef5f3 0%, #f8f9f8 65%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-content { max-width: 1000px; }
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .17em;
}
h1 {
  max-width: 920px;
  margin: 0 auto 28px;
  line-height: 1;
  letter-spacing: -.055em;
}
.title-brand {
  display: block;
  color: var(--ink);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 850;
  letter-spacing: -.08em;
}
.title-subtitle {
  display: block;
  max-width: 900px;
  margin: 18px auto 0;
  color: #3c474e;
  font-size: clamp(1.55rem, 3.4vw, 2.7rem);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.045em;
}
.authors { margin: 0; font-size: 1.1rem; line-height: 1.55; }
.author-line { display: block; white-space: nowrap; }
.author-line + .author-line { margin-top: 2px; }
.authors a { margin: 0 3px; }
sup { color: var(--muted); font-size: .72em; }
.affiliations, .venue { margin: 8px 0 0; color: var(--muted); }
.affiliation { display: inline-block; white-space: nowrap; margin: 0 0.55em; }
.venue { color: var(--ink); font-weight: 650; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 52px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 178px;
  height: 52px;
  padding: 8px 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-size: 19px;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { color: #fff; background: var(--accent); border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.button-icon { width: 28px; height: 28px; flex: 0 0 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.github-icon { fill: currentColor; stroke: none; }

.teaser-section { padding-top: 52px; padding-bottom: 25px; text-align: center; }
.teaser-image {
  display: block;
  width: 100%;
  max-width: 1120px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.teaser-after-abstract { margin-top: 44px; }
.teaser-after-abstract .teaser-image { border: 1px solid var(--line); border-radius: 10px; }
.caption { margin: 11px auto 0; color: var(--muted); font-size: .9rem; text-align: center; }

.section { padding: 78px 0; }
.section-muted { background: var(--wash); }
.overview { max-width: 980px; }
.overview .section-kicker { margin-bottom: 14px; }
.overview-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.75rem;
  align-items: first baseline;
}
.overview-grid h2 { margin: 0; white-space: nowrap; }
h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.2; letter-spacing: -.035em; }
.copy { max-width: 760px; font-size: 0.95rem; }
.overview-grid .copy { max-width: none; }
.copy p:first-child { margin-top: 0; }
.section-heading { max-width: 790px; margin-bottom: 30px; }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); }

.paper-figure { margin: 0; text-align: center; }
.paper-image {
  display: block;
  width: 100%;
  height: 390px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}
.wide-figure { max-width: 1120px; }
.wide-figure .paper-image { height: auto; min-height: 300px; }
.image-pipeline { padding: 0; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.result-grid .paper-image { height: 360px; }
.full-figure { width: 100%; max-width: 1120px; margin-top: 34px; }
.full-figure .paper-image { height: auto; padding: 0; object-fit: contain; }
.paper-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }

.detail-explorer {
  margin: 26px auto 58px;
  padding: 26px;
  border: 1px solid rgba(41, 119, 104, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(238, 245, 243, .88), rgba(255, 255, 255, .96));
  box-shadow: 0 18px 45px rgba(32, 37, 43, .06);
}
.explorer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.explorer-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.explorer-heading h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.explorer-heading p:not(.explorer-kicker) { max-width: 620px; margin: 6px 0 0; color: var(--muted); font-size: .93rem; }
.explorer-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(41, 119, 104, .25);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, .7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.explorer-groups {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}
.explorer-group-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.explorer-group-tab:hover { color: var(--ink); }
.explorer-group-tab.is-active {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 12px rgba(32, 37, 43, .1);
}
.group-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.group-count {
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(32, 37, 43, .06);
  font-size: .68rem;
  font-weight: 750;
}
.explorer-group-tab.is-active .group-count { color: #fff; background: var(--ink); }
.explorer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.explorer-pill {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .85);
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.explorer-pill:hover {
  border-color: var(--group-color, var(--accent));
  color: var(--group-color, var(--accent));
  transform: translateY(-1px);
}
.explorer-pill.is-active {
  border-color: var(--group-color, var(--accent));
  color: #fff;
  background: var(--group-color, var(--accent));
}
.explorer-viewer { margin: 20px 0 0; text-align: center; }
.explorer-viewer img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  animation: viewer-fade .32s ease;
}
@keyframes viewer-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.explorer-viewer figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }

pre { overflow-x: auto; margin: 24px 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #20252b; color: #f2f4f5; font-size: 13px; line-height: 1.6; }
.copy-status { margin-left: 10px; color: var(--accent); font-size: .9rem; }
footer { color: var(--muted); font-size: .85rem; text-align: center; }
.collab {
  padding: 46px 24px 40px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.collab-label {
  margin: 0 0 26px;
  color: #8d8478;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.collab-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.collab-logos li { display: flex; align-items: center; justify-content: center; }
.collab-logos img {
  display: block;
  height: 58px;
  width: auto;
  object-fit: contain;
}
.collab-stepfun { gap: 10px; }
.collab-logos .collab-mark { height: 44px; }
.collab-logos .collab-wordmark { height: 22px; }
.footer-note { padding: 22px 0; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, 1120px); }
  .hero { padding: 70px 0 58px; }
  .title-brand { font-size: clamp(3rem, 14vw, 4.5rem); }
  .title-subtitle { font-size: clamp(1.35rem, 6vw, 2rem); }
  .actions { gap: 18px; }
  .button { width: 158px; height: 50px; font-size: 17px; }
  .button-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .section { padding: 52px 0; }
  .author-line { white-space: normal; }
  .overview-grid { grid-template-columns: 1fr; row-gap: 8px; align-items: start; }
  .result-grid { grid-template-columns: 1fr; }
  .paper-image { height: 320px; }
  .full-figure .paper-image { height: auto; }
  .wide-figure .paper-image { min-height: 0; height: auto; }
  .detail-explorer { margin-bottom: 42px; padding: 20px; }
  .explorer-heading { display: block; }
  .explorer-count { display: inline-block; margin-top: 14px; }
  .explorer-groups { display: flex; border-radius: 14px; }
  .explorer-group-tab { flex: 1 1 auto; justify-content: center; padding: 7px 10px; font-size: .76rem; }
  .explorer-pills { gap: 7px; }
  .explorer-pill { padding: 6px 12px; font-size: .76rem; }
  .explorer-viewer img { padding: 8px; }
  .collab { padding: 34px 16px 28px; }
  .collab-logos { gap: 22px 28px; }
  .collab-logos img { height: 44px; }
  .collab-stepfun { gap: 8px; }
  .collab-logos .collab-mark { height: 34px; }
  .collab-logos .collab-wordmark { height: 18px; }
}
