:root {
  --ink: #171b1e;
  --muted: #687177;
  --line: #dfe3e5;
  --paper: #fff;
  --white: #fff;
  --teal: #285e72;
  --teal-dark: #173f50;
  --mint: #edf3f5;
  --coral: #285e72;
}

html, body { background: #fff; }
body { color: var(--ink); font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
::selection { background: #dcebf0; color: var(--ink); }
:focus-visible { outline-color: var(--teal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { background: #fff; border-bottom-color: var(--line); }
.brand { letter-spacing: 0; font-weight: 750; }
.brand-mark { border-color: var(--ink); }
.brand-mark span, .brand-mark span:last-child { background: var(--ink); }
.brand-period { color: var(--teal); }
.nav-links { color: #4c555a; font-weight: 600; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal); }
.nav-paper { color: var(--ink); }
.lang-control { border-color: var(--line); }
.lang-control button[aria-pressed=true] { background: var(--ink); }

.hero, .idea-section, .method-section, .results-section, .demos-section, .closing-section, .site-footer { background: #fff; }
.hero:before, .hero-scene:before { display: none; }
.hero { height: 570px; min-height: 570px; }
.hero-content { padding-top: 67px; }
.eyebrow, .section-index, .result-eyebrow, .demo-app, .detail-label { color: var(--teal); }
.eyebrow-line, .caption-rule { background: var(--teal); }
h1, .section h2, .closing-section h2 { letter-spacing: 0; }
h1 { font-size: 72px; font-weight: 690; }
.title-sub { letter-spacing: 0; color: #4d575c; font-weight: 480; }
.hero-lead { color: #505b61; }
.button.primary { background: var(--ink); }
.button.primary:hover { background: var(--teal-dark); }
.hero-scene { inset: auto 0 0 auto; width: 48%; height: 260px; background: #fff; }
.hero-screen { background: #fff; border: 1px solid #cfd5d8; border-bottom: 0; box-shadow: 0 10px 32px rgba(24, 38, 45, .12); }
.hero-screen-back { width: 72%; right: -3%; }
.hero-screen-front { width: 73%; left: 0; }
.hero-scene-label { background: #fff; border: 1px solid var(--line); color: #3b4b53; backdrop-filter: none; }
.live-dot { background: var(--teal); }
.resource-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 29px; }
.resource-heading { color: var(--muted); font-size: 12px; font-weight: 650; margin-right: 6px; }
.resource-placeholder { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; background: #fff; color: var(--ink); cursor: default; }
.resource-name { font-size: 12px; font-weight: 700; }
.resource-status { padding-left: 9px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 500; }

.signal-band { border-top: 1px solid var(--line); }
.signal-number, .result-summary>strong { color: var(--ink); }
.signal-link { background: #f2f5f6; color: var(--ink); }
.section { border-bottom: 1px solid var(--line); }
.section h2, .closing-section h2 { font-size: 50px; font-weight: 650; }
.transition-diagram { border-color: var(--line); }
.mini-window { border-color: #c8d0d4; box-shadow: 0 6px 16px rgba(22, 35, 41, .07); }
.mini-toolbar { background: #eceff0; }
.mini-toolbar b { background: #b7c0c3; }
.mini-body { background: linear-gradient(90deg, #f4f6f6 0 24%, #fff 24%); }
.mini-target { background: #cddbe0; box-shadow: inset 0 0 0 2px #aabfc8; }
.mini-target.moved { background: #7daab9; box-shadow: inset 0 0 0 2px #5f91a4; }
.mini-line { background: #e1e6e8; }
.connector-line { background: #b7c4c9; }
.diagram-plus { color: var(--teal); }
.method-figure { border-color: var(--line); }
.figure-footer { border-color: var(--line); }
.method-points>div { border-color: var(--line); }
.method-points p, .demo-details p { color: #576168; }
.result-delta span:first-child { color: var(--teal); }
.bar-track { background: #eef1f2; }
.bar-fill.grpo { background: #b5c2c7; }
.bar-fill.otad { background: var(--teal); }
.category-list>div, .ground-metrics>div { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ground-metrics>div { border-top-color: var(--teal); }
.source-note { color: #727b80; }
.demo-tabs { border-color: var(--line); }
.demo-tabs button { color: #646d72; }
.verified-badge { background: #edf3f5; }
.demo-stage { background: #1a2226; border-color: #cbd3d7; }
.stage-toolbar, .step-controls { background: #202a2f; }
.mode-control { background: #354147; }
.mode-control button[aria-pressed=true] { background: #fff; }
.video-view, .steps-view, .video-view video, .steps-view>img { background: #171c1f; }
.step-scrubber input { accent-color: #83b2c2; }
.closing-section { border-bottom: 1px solid var(--line); }
.closing-section p { color: var(--muted); }
.citation-section { background: #fff; scroll-margin-top: 30px; }
.citation-layout { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: 90px; }
.citation-intro p { max-width: 350px; margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.citation-content { min-width: 0; border: 1px solid var(--line); }
.citation-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.copy-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: var(--teal); font-size: 12px; font-weight: 700; }
.copy-button svg { width: 15px; height: 15px; }
.copy-button:hover { color: var(--teal-dark); }
#bibtex { overflow-wrap: anywhere; white-space: pre-wrap; margin: 0; padding: 22px 18px; color: #30393d; background: #fff; font-size: 11px; line-height: 1.65; tab-size: 2; }
.citation-note { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.site-footer { border-top: 0; }

@media (max-width: 1000px) {
  h1 { font-size: 60px; }
  .section h2, .closing-section h2 { font-size: 44px; }
  .nav-links { gap: 13px; }
  .citation-layout { gap: 36px; }
}
@media (max-width: 750px) {
  h1 { font-size: 44px; }
  .section h2, .closing-section h2 { font-size: 36px; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-content { padding-top: 36px; }
  .hero-scene { position: relative; inset: auto; width: 100%; height: 220px; margin-top: 25px; }
  .hero-screen-back { width: 75%; right: -11%; height: 93%; top: 5%; }
  .hero-screen-front { width: 78%; left: -8%; height: 96%; top: 12%; }
  .resource-links { margin-top: 20px; gap: 6px; }
  .resource-heading { width: 100%; }
  .resource-placeholder { padding: 4px 7px; gap: 5px; min-height: 30px; }
  .resource-name { font-size: 11px; }
  .resource-status { padding-left: 5px; font-size: 9px; }
  .citation-layout { grid-template-columns: 1fr; gap: 25px; }
  .citation-intro p { margin-top: 14px; }
  #bibtex { font-size: 10px; }
}
@media (max-width: 420px) {
  h1 { font-size: 40px; }
  .section h2, .closing-section h2 { font-size: 32px; }
}
