/* 盘面 — Hanken Grotesk, black and crimson. One radius, one margin. */

:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --ink: #efefef;
  --muted: #8c8c8c;
  --accent: #b11226;
  --accent-ink: #ffffff;
  --field-1: #efefef;
  --field-1-ink: #0a0a0a;
  --bar: #2c2c2c;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --sans: "Hanken Grotesk", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 4px;
  --margin: 24px;
}

@media (min-width: 900px) {
  :root { --margin: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.005em;
  font-synthesis: none;
}

p, h1, h2, h3, figure { margin: 0; }

button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute;
  left: var(--margin);
  top: 0;
  transform: translateY(-120%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: var(--radius);
  z-index: 5;
}
.skip:focus { transform: none; }

.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;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-bottom: 48px;
}

.top-link {
  position: absolute;
  top: 56px;
  right: var(--margin);
  color: var(--muted);
  font-size: var(--step-small);
  text-decoration: none;
}
.top-link:hover { color: var(--ink); }

.mark {
  position: absolute;
  top: 56px;
  left: 27%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.05em;
}

.hero-col {
  margin-left: 27%;
  padding-top: 112px;
  width: min(380px, 42vw);
}

.hero h1 {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin-top: 16px;
  max-width: 36em;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  font-size: var(--step-body);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.btn:hover { background: #8e0e1e; }
.btn:active { transform: translateY(1px); }

.arrow-link {
  color: var(--ink);
  text-decoration: none;
}
.arrow-link:hover { color: var(--accent); }

.hero-stage {
  margin: 28px var(--margin) 0 27%;
}

@media (min-width: 1080px) {
  .hero {
    display: grid;
    grid-template-columns: 27% minmax(280px, 380px) minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
    min-height: 100svh;
    padding: 56px var(--margin) 36px 0;
  }

  .mark {
    position: static;
    grid-column: 2;
    grid-row: 1;
  }

  .hero-col {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding-top: 28px;
    width: auto;
  }

  .hero-stage {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0;
    min-height: calc(100svh - 92px);
    display: flex;
  }

  .panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .chart-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
  }

  .panel .chart-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* ---------- position panel (data-ui) ---------- */

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  container-type: inline-size;
}

@container (max-width: 520px) {
  .readouts { grid-template-columns: 1fr 1fr; }
  .readouts p:first-child { grid-column: 1 / -1; }
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg button {
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid #333;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.readouts {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px 16px;
  margin-top: 18px;
}

.readouts .k {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.readouts .v {
  display: block;
  margin-top: 4px;
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.readouts .s {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.panel-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.chart-wrap { margin-top: 8px; }

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}

.chart-svg text {
  font-family: var(--sans);
  font-size: 13px;
  fill: var(--muted);
}

.hoverline {
  min-height: 1.4em;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.track {
  position: relative;
  height: 8px;
  margin-top: 14px;
  background: #2a2a2a;
  border-radius: var(--radius);
}

.track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--ink);
  border-radius: var(--radius) 0 0 var(--radius);
}

.track-mark {
  position: absolute;
  top: -4px;
  left: 0;
  width: 2px;
  height: 16px;
  background: var(--accent);
}

.track-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ---------- intro ---------- */

.intro {
  padding: 22vh var(--margin);
}

.statement {
  width: min(66%, 40rem);
  margin: 0 auto;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.25;
  text-wrap: balance;
}

.keep { white-space: nowrap; }

.frame {
  display: inline-block;
  height: 0.85em;
  width: 1.15em;
  margin: 0 0.12em;
  vertical-align: -0.12em;
  border-radius: 0.14em;
  overflow: hidden;
  background: var(--surface);
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-ui {
  width: 1.35em;
  background: var(--field-1);
  color: var(--field-1-ink);
  font-size: 0.38em;
  line-height: 0.85em;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: left;
  padding: 0.12em 0.08em 0;
}

/* ---------- strategy bars ---------- */

.stats {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  padding-top: 48px;
}

.stats-head { padding-left: var(--margin); padding-right: var(--margin); }

.figure {
  font-size: var(--step-head);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.claim {
  margin-top: 8px;
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.stats-spacer { flex: 1; min-height: 72px; }

.bars {
  display: grid;
  grid-template-columns: repeat(var(--n, 13), minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 58vh;
  padding: 0;
}

.bar {
  position: relative;
  height: max(14px, calc(var(--h) * 58vh));
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bar);
  transform-origin: bottom center;
}

.bar.is-accent .bar-fill { background: var(--accent); }
.bar:hover .bar-fill,
.bar:focus-visible .bar-fill { background: var(--ink); }
.bar.is-accent:hover .bar-fill,
.bar.is-accent:focus-visible .bar-fill { background: #d01830; }

.bar-val,
.bar-pop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.bar-val {
  bottom: calc(100% + var(--lift, 8px));
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
}

.bar.is-accent .bar-val { color: var(--accent); }

.bar-pop {
  bottom: calc(100% + var(--lift, 8px));
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: var(--step-small);
  line-height: 1.35;
  text-align: center;
  opacity: 0;
}

.bar:hover .bar-pop,
.bar:focus-visible .bar-pop { opacity: 1; }
.bar:hover .bar-val,
.bar:focus-visible .bar-val { opacity: 0; }

.bar.pop-start .bar-pop { left: 0; transform: none; }
.bar.pop-end .bar-pop { left: auto; right: 0; transform: none; }

.bar-pop .pop-n { display: block; font-weight: 500; }

.claim-sub {
  margin-top: 10px;
  max-width: 40rem;
  color: var(--muted);
  font-size: var(--step-small);
  font-variant-numeric: tabular-nums;
}

.stats.has-equity .stats-spacer { flex: 0; min-height: 20px; }
.stats.has-equity .bars { height: 32vh; }
.stats.has-equity .bar { height: max(14px, calc(var(--h) * 32vh)); }

.fine {
  padding: 28px var(--margin) 8px;
  max-width: 46rem;
  color: var(--muted);
}

.equity {
  margin: 8px var(--margin) 0;
  padding: 16px 16px 14px;
  background: var(--surface);
  border-radius: var(--radius);
}

.equity-cap {
  color: var(--muted);
  font-size: var(--step-small);
}

.equity-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.equity-svg text {
  font-family: var(--sans);
  font-size: 13px;
  fill: var(--muted);
}

.equity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.equity-legend button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--step-body);
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
}

.equity-legend button[aria-pressed="true"] { color: var(--ink); }
.equity-legend button:hover { color: var(--ink); }

.equity-legend .swatch {
  width: 18px;
  height: 2px;
  background: var(--swatch, var(--muted));
}

/* ---------- showcase ---------- */

.showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  padding: 10vh var(--margin) 0;
  align-items: start;
}

.names {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding-top: 72px;
}

.name-btn {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--step-head);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-align: left;
  border-radius: var(--radius);
}
.name-btn[aria-pressed="true"] { color: var(--ink); }
.name-btn:hover { color: var(--ink); }

.stage {
  grid-column: 7 / 13;
  position: relative;
  min-height: 88svh;
  background: var(--surface);
  overflow: visible;
}

.sheet {
  width: min(560px, calc(100% - 80px));
  margin: 72px 0 0 48px;
  min-height: calc(88svh - 24px);
  padding: 32px 32px 160px;
  background: var(--field-1);
  color: var(--field-1-ink);
  border-radius: var(--radius);
}

.sheet.is-out { opacity: 0; }

.sheet-kicker {
  color: #5c5c5c;
  font-size: 13px;
}

.sheet-title {
  margin-top: 10px;
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.sheet-rule {
  margin-top: 4px;
  font-size: 15px;
}

.sheet-meta {
  margin-top: 12px;
  color: #5c5c5c;
  font-size: 13px;
}

.sheet-rows { margin-top: 22px; }

.sheet-rows p {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 0;
  font-size: 15px;
}

.sheet-rows span:last-child { font-variant-numeric: tabular-nums; }

.sheet-cagr span:last-child {
  color: var(--accent);
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.sheet-note {
  margin-top: 22px;
  font-size: 15px;
}

.sheet-rules { margin-top: 18px; }
.sheet-rules p { margin-top: 10px; font-size: 15px; }
.sheet-rules .approx,
.rule-cap { color: #5c5c5c; font-size: 13px; }
.rule-cap { margin-top: 14px; }

.rule-table {
  width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
  font-size: 13px;
}

.rule-table th,
.rule-table td {
  text-align: left;
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid #dedede;
  font-weight: 400;
  vertical-align: top;
}

.rule-table th { color: #5c5c5c; font-weight: 500; }

.sheet-disc {
  margin-top: 18px;
  color: #5c5c5c;
  font-size: 13px;
  max-width: 36em;
}

/* ---------- proof ---------- */

.proof { padding: 140px var(--margin); }

.proof-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.proof-lead { color: var(--ink); }

.proof-names {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 24px;
  margin-left: 8vw;
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

/* ---------- faq ---------- */

.faq { padding: 4vh var(--margin) 12vh; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 18px;
}

.faq-lead {
  grid-column: 1 / 6;
  grid-row: 1;
  color: var(--muted);
  font-size: var(--step-body);
}

.q {
  grid-column: 1 / 6;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--step-body);
  text-align: left;
  border-radius: var(--radius);
}

.q::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.q[aria-current="true"] { color: var(--ink); }
.q[aria-current="true"]::before { background: var(--accent); }

.ans {
  grid-column: 7 / 13;
  grid-row: 2 / span 6;
  align-self: start;
  position: sticky;
  top: 120px;
  max-width: 30ch;
  font-size: var(--step-lead);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
  opacity: 0;
  pointer-events: none;
}

.ans.is-on { opacity: 1; z-index: 1; }

/* ---------- atmosphere ---------- */

.atmos { margin: 0; }

.atmos-frame {
  position: relative;
  height: 80svh;
  background: var(--surface);
}

.atmos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.atmos img.is-on { opacity: 1; }

.credit {
  padding: 16px var(--margin) 0;
  color: var(--muted);
  font-size: var(--step-small);
}

.ground { height: 30svh; }

/* ---------- footer ---------- */

.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 0 var(--margin) 30px;
  font-size: var(--step-small);
}

.foot-left { color: var(--muted); justify-self: start; }

.foot-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.foot-links a,
.foot-right a {
  color: var(--ink);
  text-decoration: none;
}
.foot-links a:hover,
.foot-right a:hover { color: var(--accent); }

.foot-right {
  justify-self: end;
  color: var(--muted);
  display: flex;
  gap: 24px;
}

/* ---------- motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes grow {
  from { transform: scaleY(0.04); }
  to { transform: none; }
}

.hero-col { animation: rise 0.9s ease both; }
.hero-stage { animation: rise 0.9s ease 0.12s both; }
.intro, .stats-head, .showcase, .faq { animation: rise 0.9s ease both; }
.bar-fill { animation: grow 0.55s ease both; }
.sheet { transition: opacity 200ms linear; }
.atmos img { transition: opacity 1.6s linear; }
.ans { transition: opacity 150ms linear; }
.seg button,
.bar-fill,
.name-btn,
.btn,
.q { transition: background-color 150ms linear, color 150ms linear, border-color 150ms linear; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .atmos img:not(.is-on) { display: none; }
}

/* ---------- phone ---------- */

@media (max-width: 800px) {
  .mark { left: var(--margin); top: 32px; }
  .top-link { top: 40px; }

  .hero-col {
    margin-left: var(--margin);
    margin-right: var(--margin);
    padding-top: 96px;
    width: auto;
  }

  .hero-stage { margin-left: var(--margin); margin-right: var(--margin); }

  .readouts { grid-template-columns: 1fr 1fr; }
  .readouts p:first-child { grid-column: 1 / -1; }

  .intro { padding: 96px var(--margin); }
  .statement {
    width: auto;
    margin: 0;
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.15;
  }

  .stats { min-height: 0; }
  .figure { font-size: clamp(4rem, 22vw, 7.5rem); }
  .claim { font-size: 22px; }

  .bars {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 6px;
    padding: 0;
    align-items: stretch;
  }

  .bar {
    height: 28px;
    width: 100%;
  }

  .bar-fill {
    width: max(12px, calc(var(--h) * 100%));
    height: 28px;
    transform-origin: left center;
  }

  .bar-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 10px;
    color: var(--ink);
    font-size: var(--step-body);
    font-weight: 500;
    letter-spacing: -0.005em;
    pointer-events: none;
  }

  .bar-label .nm {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bar.is-accent:not(.is-short) .bar-label .nm { color: var(--accent-ink); }
  .bar.is-accent.is-full .bar-label { color: var(--accent-ink); }
  .bar:hover .bar-label,
  .bar:focus-visible .bar-label,
  .bar.is-accent:hover .bar-label,
  .bar.is-accent:focus-visible .bar-label { color: var(--bg); }

  .bar-val, .bar-pop { display: none; }

  .stats.has-equity .bars { height: auto; }
  .stats.has-equity .bar { height: 28px; width: 100%; }
  .stats.has-equity .bar-fill { width: max(12px, calc(var(--h) * 100%)); height: 28px; }

  .equity { margin-top: 22px; }
  .equity-legend { gap: 12px 16px; }

  .showcase { display: block; padding-top: 64px; }

  .names {
    flex-direction: row;
    gap: 20px;
    padding-top: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 18px;
  }

  .name-btn {
    flex: none;
    scroll-snap-align: start;
    font-size: var(--step-lead);
  }

  .stage {
    min-height: 0;
    overflow: visible;
  }

  .sheet {
    width: auto;
    margin: 16px;
    min-height: 0;
    padding: 24px 20px 32px;
  }

  .proof { padding: 96px var(--margin); }
  .proof-row { display: block; }
  .proof-lead { margin-bottom: 28px; }
  .proof-names {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 16px;
    margin-left: 0;
    justify-items: start;
    font-size: 26px;
  }

  .faq { padding-top: 48px; }
  .faq-grid { display: flex; flex-direction: column; gap: 0; }
  .faq-lead { margin-bottom: 8px; }
  .q { min-height: 48px; }
  .ans {
    position: static;
    max-width: none;
    font-size: var(--step-body);
    line-height: 1.45;
    padding: 0 0 12px 20px;
    display: none;
    opacity: 1;
  }
  .ans.is-on { display: block; }

  .ground { height: 20svh; }

  .foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 24px;
  }
  .foot-links { flex-wrap: wrap; gap: 24px; }
  .foot-right { justify-self: start; }
}

@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .bar-fill { animation-name: grow-x; }
}

@keyframes grow-x {
  from { transform: scaleX(0.04); }
  to { transform: none; }
}
