:root {
  color-scheme: dark;
  --bg: #050816;
  --surface: #0b1124;
  --surface-2: #10182f;
  --text: #f5f7ff;
  --body: #d9e0ef;
  --muted: #a4afc7;
  --faint: #6d7895;
  --line: rgba(255, 255, 255, .11);
  --cyan: #53c7ec;
  --violet: #8b5cf6;
  --green: #55d6a5;
  --amber: #f4c86b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.85 Manrope, "Noto Sans SC", sans-serif; }
a { color: inherit; text-decoration: none; }
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(5, 8, 22, .9); backdrop-filter: blur(16px); }
.nav { width: min(1180px, calc(100% - 48px)); height: 72px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.nav-links { display: flex; gap: 24px; margin-left: auto; color: var(--muted); font-size: 14px; }
.nav-links a:hover, .nav-links .active { color: var(--text); }
.nav-cta { padding: 9px 15px; border: 1px solid rgba(83, 199, 236, .45); border-radius: 6px; color: var(--text); font-size: 13px; font-weight: 700; }
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(110deg, rgba(139, 92, 246, .12), transparent 38%), linear-gradient(290deg, rgba(83, 199, 236, .1), transparent 42%); }
.hero-inner, .content, .footer-inner { width: min(1180px, calc(100% - 48px)); margin: auto; }
.hero-inner { padding: 80px 0 70px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 24px; color: var(--faint); font-size: 12px; }
.eyebrow { color: var(--cyan); font: 600 12px/1.3 "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 920px; margin: 18px 0 18px; color: var(--text); font-size: clamp(38px, 6vw, 68px); line-height: 1.1; letter-spacing: 0; }
.lede { max-width: 780px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--faint); font-size: 13px; }
.layout { display: grid; grid-template-columns: minmax(0, 820px) 240px; gap: 72px; padding: 64px 0 100px; }
.main h2 { margin: 54px 0 16px; color: var(--text); font-size: 30px; line-height: 1.3; letter-spacing: 0; }
.main h3 { margin: 30px 0 10px; color: var(--text); font-size: 21px; line-height: 1.4; }
.main p { margin: 0 0 20px; }
.main ul, .main ol { margin: 10px 0 24px; padding-left: 24px; }
.main li { margin: 8px 0; }
.main strong { color: var(--text); }
.main a { color: #8bdcff; text-decoration: underline; text-decoration-color: rgba(139, 220, 255, .35); text-underline-offset: 4px; }
.direct-answer, .note { margin: 28px 0; padding: 22px 24px; border-left: 3px solid var(--cyan); background: rgba(83, 199, 236, .08); }
.direct-answer h2, .note h3 { margin-top: 0; }
.feature-image { margin: 34px 0 44px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.feature-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-image figcaption { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 36px; }
.link-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none !important; }
.link-card:hover { border-color: rgba(83, 199, 236, .55); background: var(--surface-2); }
.link-card small { display: block; margin-bottom: 8px; color: var(--cyan); font: 600 11px "DM Mono", monospace; letter-spacing: .1em; }
.link-card strong { display: block; margin-bottom: 7px; font-size: 19px; line-height: 1.35; }
.link-card span { display: block; color: var(--muted); font-size: 14px; line-height: 1.65; }
.facts { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts th { width: 30%; color: var(--text); background: rgba(139, 92, 246, .08); }
.steps { counter-reset: step; display: grid; gap: 12px; margin: 24px 0 36px; }
.step { position: relative; padding: 20px 20px 20px 68px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 20px; color: var(--green); font: 600 12px "DM Mono", monospace; }
.step strong { display: block; margin-bottom: 4px; }
.term-list { display: grid; gap: 1px; margin: 24px 0 36px; background: var(--line); border: 1px solid var(--line); }
.term { padding: 22px; background: var(--bg); }
.term h2, .term h3 { margin: 0 0 8px; font-size: 21px; }
.term p:last-child { margin-bottom: 0; }
.case-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; padding: 26px 0; border-top: 1px solid var(--line); }
.case-row:last-child { border-bottom: 1px solid var(--line); }
.case-label { color: var(--green); font: 600 12px "DM Mono", monospace; letter-spacing: .1em; }
.case-row h2 { margin: 0 0 10px; font-size: 24px; }
.toc { position: sticky; top: 102px; align-self: start; }
.toc-title { color: var(--cyan); font: 600 11px "DM Mono", monospace; letter-spacing: .12em; }
.toc-links { display: grid; gap: 12px; margin-top: 16px; }
.toc-links a { color: var(--muted); font-size: 13px; line-height: 1.45; }
.toc-links a:hover { color: var(--text); }
.checklist { display: grid; gap: 10px; margin: 28px 0; }
.check-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 17px 18px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.check-item input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); }
.check-item strong { display: block; }
.check-item span { color: var(--muted); font-size: 14px; }
.progress { position: sticky; top: 72px; z-index: 10; padding: 14px 0; background: rgba(5, 8, 22, .94); border-bottom: 1px solid var(--line); }
.progress-inner { width: min(1180px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; gap: 18px; }
.progress-track { flex: 1; height: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: var(--green); transition: width .2s ease; }
.progress-text { min-width: 110px; color: var(--muted); font-size: 13px; text-align: right; }
.reset-button { border: 1px solid var(--line); background: transparent; color: var(--text); width: 36px; height: 36px; cursor: pointer; font-size: 18px; }
.reset-button:hover { border-color: var(--cyan); }
.source-list { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--faint); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 860px) {
  .nav, .hero-inner, .content, .footer-inner, .progress-inner { width: calc(100% - 34px); }
  .nav-links, .nav-cta { display: none; }
  .hero-inner { padding: 58px 0 52px; }
  .layout { display: block; padding-top: 42px; }
  .toc { display: none; }
  .link-grid { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { flex-direction: column; }
  .progress-text { min-width: 92px; }
}
