:root {
  color-scheme: dark;
  --bg: #050a12;
  --surface: #0a1320;
  --surface-2: #101b2a;
  --line: #223044;
  --line-soft: #172536;
  --text: #f4f7f9;
  --muted: #9eabb9;
  --cyan: #29e0c0;
  --cyan-soft: rgba(41, 224, 192, 0.12);
  --gold: #ffca43;
  --gold-soft: rgba(255, 202, 67, 0.12);
  --danger: #ff6b6b;
  --radius: 18px;
  --max: 1240px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 74%);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 74px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 10, 18, .88);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-logo { width: 40px; height: 40px; display: block; border-radius: 11px; object-fit: cover; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--cyan); color: #04120f; font-size: 15px; font-weight: 900; letter-spacing: -.04em; box-shadow: inset -5px -5px 0 rgba(0,0,0,.12); }
.brand strong { display: block; font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1; }
.site-header nav { display: flex; align-items: center; gap: 30px; color: #bec8d2; font-size: 14px; }
.site-header nav a:hover { color: var(--cyan); }

.ghost-btn, .secondary-btn, .icon-btn, .primary-btn { border: 0; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.ghost-btn { background: transparent; border: 1px solid var(--line); border-radius: 12px; }
.ghost-btn.compact { padding: 10px 16px; font-size: 14px; }
.ghost-btn:hover, .secondary-btn:hover, .icon-btn:hover { border-color: var(--cyan); }
.primary-btn:hover { transform: translateY(-1px); background: #64ecd4; }

main { position: relative; z-index: 1; }
.workspace { max-width: var(--max); margin: 0 auto; padding: 52px 24px 72px; display: grid; grid-template-columns: minmax(0, .84fr) minmax(540px, 1.16fr); align-items: start; gap: 58px; }
.intro-column { position: sticky; top: 118px; }
.eyebrow { margin: 0 0 18px; color: var(--cyan); font-size: 13px; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(46px, 4.5vw, 64px); line-height: 1.03; letter-spacing: -.06em; }
h1 span { color: var(--cyan); }
.lede { max-width: 610px; color: #bbc5cf; font-size: 18px; line-height: 1.8; }

.campaign-card { margin-top: 28px; padding: 20px; scroll-margin-top: 96px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16,27,42,.94), rgba(8,16,27,.94)); }
.campaign-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.campaign-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid rgba(255,202,67,.35); border-radius: 99px; color: var(--gold); background: var(--gold-soft); font-size: 12px; font-weight: 800; }
.campaign-status[data-status="open"] { border-color: rgba(41,224,192,.35); color: var(--cyan); background: var(--cyan-soft); }
.campaign-status[data-status="closed"] { color: var(--muted); background: rgba(158,171,185,.08); }
.campaign-id { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.campaign-card h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.035em; }
.campaign-card > p { margin-bottom: 16px; color: #b9c3cd; font-size: 14px; }
.campaign-facts { display: grid; grid-template-columns: 1.15fr 1fr 1fr; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.campaign-facts > div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); }
.campaign-facts > div:last-child { border-right: 0; }
.campaign-facts dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.campaign-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.campaign-task { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.pool-disclosure { margin: 0 0 14px; padding: 12px 13px; border: 1px solid rgba(41,224,192,.2); border-radius: 11px; background: rgba(41,224,192,.045); }
.pool-disclosure > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pool-disclosure span { color: var(--muted); font-size: 12px; }
.pool-disclosure a { max-width: 64%; overflow: hidden; color: var(--cyan); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pool-disclosure a:not([href]) { color: var(--muted); cursor: default; }
.pool-disclosure small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.campaign-actions:empty { display: none; }
.campaign-actions a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--cyan); font-size: 12px; font-weight: 700; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 38px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(10, 19, 32, .7); }
.stat-strip div { min-width: 0; padding: 18px 16px; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.stat-strip strong { display: block; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.notice-row { display: flex; gap: 12px; margin-top: 20px; padding: 16px 17px; border-left: 2px solid var(--gold); background: var(--gold-soft); }
.notice-row p { margin: 0; color: #cdd4db; font-size: 14px; }
.notice-icon { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 12px; font-weight: 800; }

.application-shell { border: 1px solid var(--line); border-radius: 24px; background: rgba(8, 16, 27, .94); box-shadow: 12px 12px 0 var(--cyan-soft), 0 24px 80px rgba(0,0,0,.34); overflow: hidden; }
.panel-tabs { display: flex; padding: 12px; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.tab { flex: 1; padding: 12px 16px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.tab.is-active { border-color: var(--line); background: var(--surface-2); color: var(--text); }
.tab-panel { padding: 26px; }
.tab-panel.is-hidden { display: none; }
.reward-factor-note { display: flex; align-items: center; gap: 12px; margin: -2px 0 17px; padding: 11px 14px; border: 1px solid rgba(240,190,52,.24); border-radius: 11px; background: rgba(240,190,52,.07); }
.reward-factor-note span { flex: 0 0 auto; color: var(--yellow); font-size: 12px; font-weight: 900; }
.reward-factor-note p { margin: 0; color: #d8dde0; font-size: 13px; line-height: 1.6; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.step-label { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.panel-heading h2 { margin: 5px 0 0; font-size: 28px; line-height: 1.25; letter-spacing: -.04em; }
.reward-pill { padding: 8px 12px; border: 1px solid rgba(255,202,67,.4); border-radius: 999px; color: var(--gold); background: var(--gold-soft); font-size: 13px; font-weight: 800; white-space: nowrap; }
.campaign-gate { margin: -4px 0 18px; padding: 12px 14px; border: 1px solid rgba(255,202,67,.28); border-radius: 10px; color: #d8c68b; background: var(--gold-soft); font-size: 13px; }
.campaign-gate.is-open { border-color: rgba(41,224,192,.3); color: #b7e9e0; background: var(--cyan-soft); }

.field-grid.two-cols { display: grid; grid-template-columns: .7fr 1.3fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span, .field-title { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field textarea, .input-prefix { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #060d16; color: var(--text); transition: border-color .18s ease, box-shadow .18s ease; }
.field input { min-height: 48px; padding: 0 14px; }
.field textarea { padding: 13px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .input-prefix:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.field small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.input-prefix { display: flex; align-items: center; overflow: hidden; }
.input-prefix b { padding-left: 14px; color: var(--muted); }
.input-prefix input { border: 0; background: transparent; box-shadow: none !important; }

.form-stage { display: flex; align-items: center; gap: 11px; margin: 5px 0 14px; padding: 11px 13px; border-left: 2px solid var(--cyan); background: rgba(41,224,192,.035); }
.form-stage > span { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--cyan); color: #04100f; font-family: var(--mono); font-size: 12px; font-weight: 900; }
.form-stage > div { min-width: 0; }
.form-stage strong, .form-stage small { display: block; }
.form-stage strong { margin-bottom: 2px; font-size: 14px; }
.form-stage small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.stage-link { margin-left: auto; flex: 0 0 auto; color: var(--cyan); font-size: 12px; font-weight: 800; }
.stage-link.is-disabled { opacity: .45; pointer-events: none; }

.proof-box { margin-bottom: 14px; padding: 14px; border: 1px solid rgba(41,224,192,.24); border-radius: 13px; background: var(--cyan-soft); }
.proof-box > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.proof-box p { margin: 0 0 12px; color: #b9c9cd; font-size: 13px; }
.proof-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.proof-code-row code { min-height: 43px; display: flex; align-items: center; padding: 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #050b12; color: var(--cyan); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.secondary-btn, .icon-btn { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-size: 13px; font-weight: 700; }

.check-row { display: flex; align-items: flex-start; gap: 11px; margin: 6px 0 22px; color: #b9c3cd; font-size: 13px; cursor: pointer; }
.check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cyan); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.form-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.primary-btn { min-height: 48px; padding: 0 20px; border-radius: 11px; background: var(--cyan); color: #03110e; font-weight: 900; white-space: nowrap; }
.primary-btn:disabled, .secondary-btn:disabled, .icon-btn:disabled, input:disabled, textarea:disabled { cursor: not-allowed; opacity: .48; }
.primary-btn span { margin-left: 8px; }
.inline-link { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(41,224,192,.35); text-underline-offset: 3px; }
.form-message { display: none; margin-top: 16px; padding: 13px 14px; border-radius: 10px; font-size: 14px; }
.form-message.is-visible { display: block; }
.form-message.error { border: 1px solid rgba(255,107,107,.35); color: #ffaaaa; background: rgba(255,107,107,.08); }
.form-message.success { border: 1px solid rgba(41,224,192,.35); color: var(--cyan); background: var(--cyan-soft); }

.status-form { display: grid; gap: 16px; }
.status-form .field { margin: 0; }
.status-result { margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.status-result.is-hidden { display: none; }

.mechanism-section, .transparency-section, .rules-section { max-width: var(--max); margin: 0 auto; padding: 92px 24px; border-top: 1px solid var(--line-soft); }
.section-title { max-width: 650px; margin-bottom: 42px; }
.section-title h2 { margin-bottom: 14px; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -.055em; }
.section-title > p:last-child { color: var(--muted); font-size: 17px; }
.flow-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow-list li { min-height: 230px; padding: 24px; border-right: 1px solid var(--line); background: var(--surface); }
.flow-list li:last-child { border-right: 0; }
.flow-list li > span { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 46px; border: 1px solid var(--cyan); border-radius: 50%; color: var(--cyan); font-size: 12px; font-weight: 800; }
.flow-list h3 { margin-bottom: 8px; font-size: 18px; }
.flow-list p { margin: 0; color: var(--muted); font-size: 14px; }

.economy-card { display: grid; grid-template-columns: .55fr .55fr 1.45fr 1.45fr; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.economy-card > div { padding: 22px; border-right: 1px solid var(--line); }
.economy-card > div:last-child { border-right: 0; }
.economy-card span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.tax-cell strong { color: var(--gold); font-size: 30px; }
.split-cell strong { font-size: 18px; }
.split-cell p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.split-cell.reward { background: var(--cyan-soft); }
.split-cell.reward strong { color: var(--cyan); }

.reward-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.reward-record { display: grid; grid-template-columns: 1.2fr .7fr 1fr; align-items: center; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.reward-record:last-child { border-bottom: 0; }
.reward-record > div:first-child { display: grid; gap: 3px; }
.reward-record span { color: var(--muted); font-size: 12px; }
.reward-amount { color: var(--gold); font-size: 18px; font-weight: 800; }
.reward-links { display: flex; justify-content: flex-end; gap: 12px; }
.reward-links a { color: var(--cyan); font-size: 13px; font-weight: 700; }
.empty-public-state { display: grid; min-height: 130px; place-content: center; padding: 30px; color: var(--muted); text-align: center; }
.empty-public-state.is-error { color: #ffaaaa; }

.compact-title { margin-bottom: 32px; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule-card { min-height: 280px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rule-card > span { display: inline-flex; margin-bottom: 34px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.rule-card h3 { margin-bottom: 16px; font-size: 21px; }
.rule-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.rule-card li { margin-bottom: 8px; }
.rule-card.allowed > span { background: var(--cyan-soft); color: var(--cyan); }
.rule-card.denied > span { background: rgba(255,107,107,.1); color: #ff9a9a; }
.rule-card.neutral > span { background: var(--gold-soft); color: var(--gold); }

footer { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 34px 24px 52px; display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: center; gap: 30px; border-top: 1px solid var(--line-soft); color: var(--muted); }
footer p { margin: 0; font-size: 13px; text-align: center; }
footer > a { font-size: 13px; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand .brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.footer-links { display: flex; gap: 14px; font-size: 13px; }
.footer-links a:hover { color: var(--cyan); }

.toast { position: fixed; z-index: 40; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: #111d2c; box-shadow: 0 16px 48px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.legal-page { position: relative; z-index: 1; width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 96px; }
.legal-page h1 { max-width: 760px; }
.legal-lede { margin-bottom: 48px; color: #bbc5cf; font-size: 19px; line-height: 1.8; }
.legal-page section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-page h2 { margin-bottom: 15px; font-size: 24px; }
.legal-page section p, .legal-page li { color: #b9c3cd; }
.legal-page ul { margin: 0; padding-left: 22px; }
.legal-page li { margin-bottom: 10px; }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .workspace { grid-template-columns: 1fr; gap: 38px; padding-top: 48px; }
  .intro-column { position: static; }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .flow-list li:nth-child(2) { border-right: 0; }
  .flow-list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .economy-card { grid-template-columns: repeat(2, 1fr); }
  .economy-card > div:nth-child(2) { border-right: 0; }
  .economy-card > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rules-grid { grid-template-columns: 1fr; }
  .reward-record { grid-template-columns: 1fr auto; }
  .reward-links { grid-column: 1 / -1; justify-content: flex-start; }
  .rule-card { min-height: auto; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 640px) {
  .site-header { height: 66px; padding: 0 16px; }
  .site-header .ghost-btn { display: none; }
  .brand small { display: none; }
  .workspace { gap: 26px; padding: 30px 16px 54px; }
  h1 { margin-bottom: 18px; font-size: clamp(40px, 12vw, 50px); line-height: 1.02; }
  .lede { font-size: 16px; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
  .stat-strip div { padding: 12px 8px; text-align: center; }
  .stat-strip span { min-height: 34px; font-size: 11px; }
  .stat-strip strong { font-size: 13px; }
  .notice-row { margin-top: 14px; padding: 12px; }
  .notice-row p { font-size: 12px; line-height: 1.55; }
  .application-shell { border-radius: 18px; box-shadow: 7px 7px 0 var(--cyan-soft); }
  .tab-panel { padding: 22px 18px; }
  .panel-heading { display: block; }
  .reward-pill { display: inline-flex; margin-top: 12px; }
  .field-grid.two-cols { grid-template-columns: 1fr; gap: 0; }
  .reward-factor-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .form-stage { align-items: flex-start; flex-wrap: wrap; }
  .stage-link { width: 100%; margin: 2px 0 0 42px; }
  .proof-box > div:first-child { display: block; }
  .proof-code-row { grid-template-columns: 1fr 1fr; }
  .proof-code-row code { grid-column: 1 / -1; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .primary-btn { width: 100%; }
  .campaign-card { margin-top: 22px; padding: 16px; }
  .campaign-facts { grid-template-columns: 1fr; }
  .campaign-facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .campaign-facts > div:last-child { border-bottom: 0; }
  .mechanism-section, .transparency-section, .rules-section { padding: 68px 16px; }
  .flow-list, .economy-card { grid-template-columns: 1fr; }
  .flow-list li { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-list li:last-child { border-bottom: 0; }
  .flow-list li > span { margin-bottom: 28px; }
  .economy-card > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .economy-card > div:last-child { border-bottom: 0; }
  .reward-record { grid-template-columns: 1fr; gap: 9px; }
  .reward-links { grid-column: auto; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .legal-page { padding: 48px 0 72px; }
  .legal-page h1 { font-size: 42px; }
  .legal-lede { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
