:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --text: #202124;
  --muted: #666b75;
  --line: #e5e7eb;
  --accent: #6c5ce7;
  --accent-dark: #5142c9;
  --visual: #4078c0;
  --proprio: #d65a5a;
  --soft-accent: #f0edff;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--accent-dark); }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.container.narrow { max-width: 860px; }
.hero {
  padding: 78px 0 58px;
  background: radial-gradient(circle at 50% -20%, #f0edff 0%, #fff 52%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { text-align: center; max-width: 980px; }
.venue-pill {
  display: inline-flex;
  padding: 7px 13px;
  border: 1px solid #d9d4fb;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255,255,255,.9);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
}
h1 { font-size: clamp(2.45rem, 5.3vw, 4.55rem); line-height: 1.05; margin: 24px auto 18px; letter-spacing: -0.045em; max-width: 1000px; }
.pulse-word { color: var(--accent-dark); }
.subtitle { max-width: 780px; margin: 0 auto; color: var(--muted); font-size: 1.2rem; }
.authors { margin-top: 22px; font-size: 1.05rem; font-weight: 600; }
.button-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.paper-button {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  background: #2d2f36;
  color: #fff;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.paper-button:hover { transform: translateY(-1px); background: #16171b; }
.paper-button.disabled { opacity: .45; pointer-events: none; }
.availability-note { color: #8b8f99; font-size: .85rem; margin: 10px 0 0; }
.section { padding: 70px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { margin: 0 0 20px; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -0.035em; }
h3 { margin: 0 0 8px; line-height: 1.25; }
p { margin: 0 0 1em; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: -7px; margin-bottom: 28px; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; color: var(--accent-dark); }
.teaser-section { padding-top: 42px; }
.teaser-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 38px; align-items: center; padding: 34px; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 40px rgba(33, 35, 40, .06); }
.teaser-copy h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin-top: 8px; }
.architecture { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; background: #fbfbfd; border-radius: 16px; border: 1px solid var(--line); }
.arch-col { text-align: center; }
.arch-input, .arch-box, .arch-score, .fusion-box, .fusion-input, .fusion-output { padding: 10px 12px; border-radius: 10px; font-size: .88rem; font-weight: 650; }
.arch-input.visual { background: #e9f2ff; color: #285d9b; }
.arch-input.proprio { background: #fff0f0; color: #9d3c3c; }
.arch-box { background: #fff; border: 1px solid var(--line); }
.arch-score { background: var(--soft-accent); color: var(--accent-dark); }
.arrow { color: #a2a7b0; padding: 2px 0; }
.fusion-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr auto 1fr auto .8fr; gap: 8px; align-items: center; margin-top: 4px; }
.fusion-input { background: #fff; border: 1px solid var(--line); }
.fusion-box { background: #ebe8ff; color: var(--accent-dark); }
.fusion-output { background: #2d2f36; color: white; }
.method-grid, .ablation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.method-card, .ablation-card, .comparison-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 24px; }
.method-index { font-size: .74rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 10px; }
.method-card p, .ablation-card p, .comparison-card p { color: var(--muted); margin-bottom: 0; }
code { background: #f1f2f5; border-radius: 5px; padding: 2px 5px; font-size: .92em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.results-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.results-table th, .results-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid #eef0f2; }
.results-table th:first-child, .results-table td:first-child { text-align: left; }
.results-table thead th { background: #fafafa; font-size: .88rem; letter-spacing: .02em; }
.results-table .group-start td { border-top: 2px solid #dfe2e7; }
.results-table tr.ours { background: #f2efff; }
.tag { display: inline-block; font-size: .67rem; padding: 2px 6px; margin-left: 5px; border-radius: 999px; vertical-align: middle; font-weight: 700; }
.tag.online { background: #eaf7ef; color: #247344; }
.tag.offline { background: #f1f2f4; color: #60646d; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.stat-card { padding: 18px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 13px; color: var(--muted); font-size: .84rem; }
.stat { color: var(--text); font-size: 1.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 7px; }
.note { margin-top: 22px; padding: 16px 18px; border-left: 4px solid var(--accent); background: #faf9ff; color: #575b64; border-radius: 0 10px 10px 0; }
.qual-figure { margin: 24px 0 0; }
.qual-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: white; }
figcaption { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.visual-card { border-top: 4px solid var(--visual); }
.proprio-card { border-top: 4px solid var(--proprio); }
.small { font-size: .9rem; }
.bibtex-box { position: relative; background: #1e1f23; border-radius: 14px; overflow: hidden; }
.bibtex-box pre { margin: 0; padding: 22px; overflow-x: auto; color: #eef0f5; font-size: .88rem; line-height: 1.55; }
.bibtex-box code { background: transparent; padding: 0; }
#copy-bibtex { position: absolute; right: 12px; top: 12px; border: 0; border-radius: 7px; padding: 7px 10px; font-weight: 700; cursor: pointer; background: #fff; color: #2d2f36; }
footer { padding: 30px 0; border-top: 1px solid var(--line); background: #fbfbfc; color: var(--muted); font-size: .86rem; }
.footer-inner p { margin: 0 0 4px; }
.license { font-size: .78rem; color: #8b8f99; }
@media (max-width: 850px) {
  .teaser-card { grid-template-columns: 1fr; }
  .method-grid, .ablation-grid, .comparison-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, var(--max)); }
  .hero { padding-top: 55px; }
  .section { padding: 52px 0; }
  .teaser-card { padding: 20px; }
  .architecture { padding: 14px; gap: 10px; }
  .fusion-row { grid-template-columns: 1fr; }
  .horizontal { transform: rotate(90deg); }
  .stat-grid { grid-template-columns: 1fr; }
}

/* Paper architecture figure */
.architecture-paper { margin: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.architecture-paper img { display: block; width: 100%; height: auto; object-fit: contain; }
.architecture-paper figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.45; color: var(--muted); text-align: center; }
