/* ── VARIABLES ── */
:root {
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", ui-monospace, monospace;
  --font-sans: var(--font-mono);

  --bg:        #0a0a0a;
  --surface:   #111111;
  --surface-2: #161616;
  --border:    rgba(255,255,255,0.08);
  --border-md: rgba(255,255,255,0.14);

  --text:      #e8e8e8;
  --muted:     #666666;
  --accent:    #c8ff00;
  --accent-dim:#96c200;
  --warn:      #ff9f0a;
  --danger:    #ff453a;
  --green:     #32d74b;

  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;

  --container: 960px;
  --gap:       24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-mono); cursor: pointer; }
input { font-family: var(--font-mono); }
table { border-collapse: collapse; width: 100%; }
pre, code { font-family: var(--font-mono); }

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── SECTION RULE ── */
.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── TYPOGRAPHY ── */
.muted-text { color: var(--muted); }
.fig-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}
.bullet {
  color: var(--accent);
  font-size: 12px;
  margin-right: 6px;
  flex-shrink: 0;
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: #fff; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-md);
  background: transparent;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
}
.btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.btn:active { background: rgba(255,255,255,0.1); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
}
.btn-primary:hover { background: #d4ff1a; border-color: #d4ff1a; color: #000; }
.btn-primary:active { background: var(--accent-dim); border-color: var(--accent-dim); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-md);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }

.btn-lg { padding: 10px 22px; font-size: 13px; border-radius: var(--r-md); }

.btn-step {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 16px;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
}

.logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo-bracket { color: var(--muted); }
.logo:hover .logo-bracket { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav-link {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.net-label {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 28px; }
.section-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.section-sub { font-size: 12px; color: var(--muted); }
.section-eyebrow {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── HERO ── */
.hero-section { padding: 72px 0 56px; }
.hero-heading {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 36px;
}

/* ── CMD BLOCK ── */
.cmd-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 680px;
}
.cmd-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.cmd-tab {
  padding: 5px 12px 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  bottom: -1px;
  transition: color 0.15s, background 0.15s;
}
.cmd-tab:hover { color: var(--text); }
.cmd-tab.is-active {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  border-bottom-color: var(--surface);
}
.cmd-tab-static {
  font-size: 11px;
  color: var(--muted);
  padding: 5px 12px 7px;
  display: inline-block;
}
.cmd-body {
  position: relative;
  padding: 16px;
}
.cmd-pre {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  tab-size: 2;
}
.cmd-pre.is-hidden { display: none; }
.cmd-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cmd-copy:hover { color: var(--text); border-color: var(--border-md); }

/* ── MINT SECTION ── */
.mint-section { padding: 60px 0; }

.mint-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 28px;
  max-width: 600px;
}

.card-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.mint-stat-row {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
}
.stat-block { flex: 1; }
.stat-number {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat-unit { font-size: 13px; color: var(--muted); font-weight: 400; }
.stat-caption { font-size: 11px; color: var(--muted); }
.countdown-num { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Progress */
.progress-wrap { margin-bottom: 4px; }
.progress-track {
  height: 3px;
  background: var(--surface-2);
  border-radius: 2px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}

/* Stepper */
.stepper-row { display: flex; flex-direction: column; gap: 10px; }
.field-label { font-size: 11px; color: var(--muted); }
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  background: var(--surface-2);
}
.qty-input {
  width: 48px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.cost-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cost-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* Actions */
.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Status */
.status-msg {
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
  margin-top: -4px;
  word-break: break-all;
}
.status-msg:not(:empty) {
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-top: 0;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-value {
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}

/* ── ABOUT ── */
.about-section { padding: 60px 0; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.7;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.feature-list li:hover { border-color: var(--border-md); }
.feature-list strong { color: var(--text); }

/* ── STATS ── */
.stats-section { padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  padding: 20px;
}
.big-number {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Tax table */
.tax-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.table-label {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tax-table th, .tax-table td {
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.tax-table tr:last-child td { border-bottom: none; }
.tax-table th {
  color: var(--muted);
  font-weight: 500;
  background: var(--surface-2);
  font-size: 11px;
}
.tax-table td { background: var(--surface); }
.tax-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ── ADDRESSES ── */
.addr-section { padding: 60px 0; }
.addr-cmd-block { max-width: 100%; }
.addr-body { padding: 0; }
.addr-list { display: flex; flex-direction: column; }
.addr-note { font-size: 12px; margin-top: 12px; }

/* JS-injected addr rows */
.addr-list .addr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.addr-list .addr-row:last-child { border-bottom: none; }
.addr-list .addr-key { color: var(--muted); min-width: 120px; flex-shrink: 0; }
.addr-list .addr-val { color: var(--accent); word-break: break-all; flex: 1; }

/* ── FAQ ── */
.faq-section { padding: 60px 0; }
.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { background: var(--surface); }
.faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: "[+]";
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
  font-weight: 700;
}
.faq-item[open] .faq-q::before { content: "[−]"; }
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-a {
  padding: 0 18px 16px 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-a p { margin-bottom: 8px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ── DISCLAIMER ── */
.disclaimer-section { padding: 48px 0; }
.disclaimer-box {
  border: 1px solid rgba(255,159,10,0.3);
  border-radius: var(--r-lg);
  background: rgba(255,159,10,0.04);
  padding: 20px 24px;
}
.disclaimer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--warn);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.disclaimer-body p {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 8px;
}
.disclaimer-body p:last-child { margin-bottom: 0; }
.disclaimer-body strong { color: var(--text); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.footer-right { font-size: 11px; text-align: right; }

/* ── BREAKPOINTS ── */
@media (max-width: 980px) {
  :root { --container: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 0; }
  .nav-link { padding: 4px 7px; font-size: 11px; }
}

@media (max-width: 760px) {
  .hero-section { padding: 48px 0 40px; }
  .hero-heading { font-size: 28px; }
  .hero-sub { font-size: 12px; }

  .header-inner { gap: 12px; }
  .site-nav { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .mint-stat-row { gap: 16px; }
  .stat-number { font-size: 18px; }
  .big-number { font-size: 16px; }

  .action-row { flex-direction: column; }
  .action-row .btn-lg { width: 100%; justify-content: center; }

  .mint-card { padding: 18px; }

  .tax-table th:last-child,
  .tax-table td:last-child { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-right { text-align: left; }

  .cmd-block { max-width: 100%; }
  .cmd-pre { font-size: 11px; }

  .disclaimer-box { padding: 16px; }
}

/* ── 参与步骤 ── */
.steps-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.steps-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.steps-list strong { color: var(--text); font-weight: 600; }

/* ── 提示词面板 ── */
.prompt-pre {
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0;
}

/* ── 地址查询 ── */
.lookup-section { padding: 60px 0; }
.lookup-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.lookup-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.lookup-input::placeholder { color: var(--muted); }
.lookup-input:focus { border-color: var(--accent); }

@media (max-width: 760px) {
  .lookup-row { flex-direction: column; }
  .steps-list li { padding: 12px 14px; font-size: 13px; }
  .prompt-pre { max-height: 280px; font-size: 12px; }
}

/* hidden 属性必须压过 .btn 的 display，否则退款按钮在窗口未开放时也会显示 */
[hidden] { display: none !important; }
