:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: #11151d;
  --surface-2: #171c26;
  --line: #293142;
  --ink: #f5f7fb;
  --muted: #98a2b5;
  --blue: #6ba4ff;
  --green: #54d49a;
  --amber: #f6c86b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 15% 0%, #172238 0, var(--bg) 36rem); color: var(--ink); font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; }
a { font: inherit; }
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(9,11,16,.82); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand span { display: grid; width: 54px; height: 34px; place-items: center; border-radius: 10px; background: var(--ink); color: #0c0f15; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.brand strong { font-size: 14px; }
.github { color: var(--muted); font-size: 13px; text-decoration: none; }
.github:hover { color: var(--ink); }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: center; min-height: 560px; padding: 84px 0 68px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 1.04; letter-spacing: -.055em; }
.lead { max-width: 720px; margin: 28px 0 0; color: #bdc5d3; font-size: 18px; line-height: 1.8; }
.actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; background: var(--ink); color: #0b0e13; font-weight: 800; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--muted); }
.disclosure { margin: 16px 0 0; color: #737f94; font-size: 12px; }
.request-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, rgba(31,39,53,.94), rgba(14,18,25,.96)); box-shadow: 0 32px 80px rgba(0,0,0,.32); }
.card-label { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.request-card h2 { margin: 14px 0 24px; font-size: 25px; line-height: 1.35; }
dl { display: grid; gap: 14px; margin: 0; }
dl div { display: grid; grid-template-columns: 54px 1fr; gap: 12px; }
dt { color: #718098; font-size: 12px; }
dd { margin: 0; color: #d9dfeb; font-size: 13px; }
.status { display: flex; align-items: center; gap: 9px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #657086; }
.status.done i { background: var(--green); box-shadow: 0 0 0 6px rgba(84,212,154,.12); }
.evidence { padding: 72px 0 24px; }
.evidence-heading { max-width: 780px; margin-bottom: 34px; }
.evidence-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -.045em; }
.evidence-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.evidence-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 22px; align-items: stretch; }
.video-shell, .evidence-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 32px 90px rgba(0,0,0,.28); }
.video-shell { overflow: hidden; }
.video-shell video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #050608; object-fit: contain; }
.video-meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.video-meta span { padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: #8f9aab; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.evidence-card { padding: 26px; }
.evidence-card h3 { margin: 12px 0 22px; font-size: 25px; line-height: 1.3; }
.metrics { gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.metrics div { grid-template-columns: 104px 1fr; padding: 11px 13px; }
.metrics div + div { border-top: 1px solid var(--line); }
.metrics dd { color: var(--ink); font-weight: 700; }
.truth-note { margin: 18px 0; padding: 14px; border-left: 3px solid var(--amber); border-radius: 8px; background: rgba(246,200,107,.07); color: #aeb7c6; font-size: 11px; line-height: 1.7; }
.download { display: inline-flex; min-height: 40px; align-items: center; color: var(--green); font-size: 12px; font-weight: 800; text-decoration: none; }
.download:hover { color: #8fe9bf; }
.comparison { padding: 80px 0 24px; scroll-margin-top: 90px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.comparison-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.comparison-card-heading { padding: 24px 24px 18px; min-height: 148px; }
.comparison-card-heading .card-label { margin: 0; line-height: 1.5; }
.comparison-card-heading h3 { margin: 12px 0 8px; font-size: clamp(19px, 2vw, 25px); line-height: 1.3; }
.comparison-card-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.board-preview { display: block; position: relative; background: #101820; border-block: 1px solid var(--line); }
.board-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: contain; }
.board-preview span { position: absolute; bottom: 10px; right: 10px; padding: 7px 10px; border-radius: 7px; background: rgba(9,11,16,.9); color: var(--ink); font-size: 11px; }
.board-preview:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.comparison-card-body { padding: 22px 24px 24px; }
.token-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.token-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 20px; font-size: clamp(28px, 3.7vw, 42px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.token-total span { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.token-breakdown { gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.token-breakdown div { grid-template-columns: minmax(0, 1fr) auto; }
.token-breakdown dt { color: var(--muted); }
.token-breakdown dd { font-variant-numeric: tabular-nums; }
.comparison-summary { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 24px; align-items: center; padding: 24px; margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.comparison-summary div { display: grid; gap: 6px; }
.comparison-summary strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.comparison-summary span, .comparison-summary p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.comparison-summary p { margin: 0; overflow-wrap: anywhere; }
.comparison-notes { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 22px 0; }
.comparison-notes strong { color: #d9dfeb; }
.comparison-notes a { color: var(--blue); overflow-wrap: anywhere; }
.comparison-prompt { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.comparison-prompt summary { cursor: pointer; padding: 20px 24px; font-weight: 700; }
.comparison-prompt[open] summary { border-bottom: 1px solid var(--line); }
.prompt-content { padding: 8px 24px 24px; color: #bdc5d3; font-size: 14px; line-height: 1.85; }
.prompt-content li { padding-left: 3px; margin: 0 0 14px; }
@media (max-width: 760px) {
  .comparison-grid, .comparison-summary { grid-template-columns: 1fr; }
  .comparison-card-heading { min-height: 0; }
  .comparison { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
.architecture { display: grid; grid-template-columns: .6fr 1.4fr; gap: 56px; align-items: center; padding: 120px 0; }
.section-copy h2 { margin: 0; font-size: 36px; letter-spacing: -.035em; }
.section-copy > p:last-child { color: var(--muted); line-height: 1.75; }
.architecture-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.architecture-flow div { display: grid; min-height: 132px; align-content: center; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.architecture-flow small { color: #69758b; font-size: 10px; }
.architecture-flow strong { font-size: 14px; }
.architecture-flow span { color: #8e99ab; font-size: 10px; line-height: 1.45; }
.architecture-flow i { color: #556176; font-style: normal; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); color: #69758b; font-size: 11px; }

@media (max-width: 980px) {
  .hero, .architecture { grid-template-columns: 1fr; }
  .hero { gap: 36px; }
  .evidence-layout { grid-template-columns: 1fr; }
  .architecture-flow { grid-template-columns: 1fr; }
  .architecture-flow i { transform: rotate(90deg); text-align: center; }
}

@media (max-width: 640px) {
  .brand strong { display: none; }
  main { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; padding-top: 64px; }
  h1 { font-size: 42px; }
  .actions, footer { flex-direction: column; }
}
