:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #1b1a17;
  --ink-2: #4a4740;
  --ink-3: #858078;
  --line: #e5e1d8;
  --line-2: #efebe3;
  --accent: #9b4a3a;
  --accent-soft: #f3e7e3;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 30px 0 26px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; }
.mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 10px;
  font-size: 18px; font-weight: 600; letter-spacing: 0;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.3; }
.brand-txt strong { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.brand-txt small { color: var(--ink-3); font-size: 11px; letter-spacing: .08em; }
.top-right { display: flex; align-items: center; gap: 12px; }

.pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; letter-spacing: .02em; white-space: nowrap;
}
.pill.live { background: #e8f0e7; color: #3f6b40; }

.btn {
  font: inherit; font-size: 13px; cursor: pointer;
  border-radius: 9px; padding: 9px 18px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none; display: inline-block; border: 1px solid transparent;
}
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: var(--accent); }
.btn.solid:disabled { background: var(--line-2); color: var(--ink-3); cursor: not-allowed; }
.btn.text { background: none; color: var(--ink-2); padding-left: 4px; }
.btn.text:hover { color: var(--accent); }
.btn.full { width: 100%; margin-top: 22px; }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 72px; align-items: center;
  padding: 88px 0 84px;
}
.eyebrow {
  margin: 0 0 22px; font-size: 12px; letter-spacing: .22em;
  color: var(--accent); text-transform: uppercase;
}
h1 {
  margin: 0 0 28px; font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.16; font-weight: 600; letter-spacing: -.025em;
}
.lede { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.95; max-width: 500px; }
.lede.small { font-size: 14px; max-width: 760px; margin-bottom: 30px; }
.lede b { font-weight: 600; color: var(--ink); }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 38px; }

.hero-art { margin: 0; }
.hero-art img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; box-shadow: 0 18px 44px rgba(60, 50, 38, .07);
}
.hero-art figcaption {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 14px; font-size: 12px; color: var(--ink-3); letter-spacing: .03em;
}
.hero-art figcaption span { color: var(--ink-3); }

/* ----------------------------------------------------------------- stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 30px 26px; border-right: 1px solid var(--line-2); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-size: clamp(19px, 2.1vw, 26px); font-weight: 600;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }

/* ----------------------------------------------------------------- block */
.block { padding: 96px 0 0; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 32px;
}
.block-head h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.tag { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.note {
  margin: 22px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.9;
}
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em; background: #efebe3; padding: 1px 5px; border-radius: 4px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- status */
.progress {
  height: 4px; background: var(--line-2);
  border-radius: 99px; overflow: hidden; margin-bottom: 34px;
}
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .5s ease; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 20px;
}
.cell span { display: block; font-size: 12px; color: var(--ink-3); }
.cell b {
  display: block; margin-top: 12px; font-size: 21px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.cell small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ mint */
.mint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.card-no {
  margin: 0 0 18px; font-size: 11px; letter-spacing: .16em;
  color: var(--accent); text-transform: uppercase;
}
.card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.card-desc { margin: 0 0 26px; font-size: 13px; color: var(--ink-3); line-height: 1.8; min-height: 46px; }
.kv {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 11px 0; border-top: 1px solid var(--line-2);
  font-size: 13px;
}
.kv span { color: var(--ink-3); }
.kv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.slider-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.slider-row label { font-size: 13px; color: var(--ink-3); flex: none; }
.slider-row input { flex: 1; accent-color: var(--accent); }
.slider-row output {
  min-width: 34px; text-align: right; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- curve */
.curve-chart {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 18px;
}
.curve-chart svg { display: block; width: 100%; height: auto; }
.curve-chart .grid { stroke: var(--line-2); stroke-width: 1; }
.curve-chart .grid-v { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 5; }
.curve-chart .axis { fill: var(--ink-3); font-size: 12px; font-family: inherit; }
.curve-chart .line-gift {
  fill: none; stroke: var(--accent); stroke-width: 2.5;
  stroke-linejoin: round; stroke-linecap: round;
}
.curve-chart .line-burn {
  fill: none; stroke: var(--ink-3); stroke-width: 2;
  stroke-dasharray: 6 6; stroke-linejoin: round;
}
.curve-chart .dot-gift { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.curve-chart .dot-burn { fill: var(--ink-3); stroke: var(--surface); stroke-width: 2; }
.curve-chart .mark { fill: var(--ink-2); font-size: 12px; font-family: inherit; }
.curve-legend {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 16px; font-size: 12px; color: var(--ink-3);
}
.curve-legend span { display: inline-flex; align-items: center; gap: 9px; }
.curve-legend .ln { width: 26px; height: 0; border-top: 2px solid var(--accent); }
.curve-legend .ln.dash { border-top: 2px dashed var(--ink-3); }

/* ----------------------------------------------------------------- rules */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.rule {
  display: flex; gap: 18px; padding: 24px 0;
  border-top: 1px solid var(--line);
}
.rule > b { font-size: 12px; color: var(--accent); font-weight: 500; padding-top: 3px; }
.rule h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.rule p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.85; }

/* ---------------------------------------------------------------- footer */
footer {
  margin-top: 104px; padding: 34px 0 52px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 40px;
  font-size: 12px; color: var(--ink-3);
}
.foot-left { display: flex; flex-direction: column; gap: 5px; }
.foot-left strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.foot-right { max-width: 540px; text-align: right; line-height: 1.9; }

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 9px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s ease;
  z-index: 20; max-width: min(90vw, 520px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 56px 0 60px; }
  .hero-art { max-width: 420px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; border-bottom: 1px solid var(--line-2); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat:first-child { padding-left: 16px; }
  .status-grid, .mint-grid, .rules { grid-template-columns: 1fr; }
  .block { padding-top: 68px; }
  .card { padding: 26px; }
  footer { flex-direction: column; gap: 16px; margin-top: 72px; }
  .foot-right { text-align: left; }
  .curve-chart { padding: 18px 10px 12px; }
}
