/* WePay — dark, glassy shell in WeChat green (light theme available via data-theme="light"). */
:root {
  --bg: #0b0d0c; --bg-2: #101312; --card: #141817; --card-2: #1a1f1d; --hover: #1d2321;
  --border: rgba(255, 255, 255, .07); --border-2: rgba(255, 255, 255, .12);
  --text: #f2f5f3; --text-2: #9aa5a0; --text-3: #5f6a65;
  --accent: #07c160; --accent-2: #1ad46f; --accent-soft: rgba(7, 193, 96, .14); --accent-ring: rgba(7, 193, 96, .35); --accent-glow: 0 0 0 1px rgba(7,193,96,.35), 0 18px 50px -18px rgba(7,193,96,.7);
  --gold: #f5b342; --red: #ff5a5f; --blue: #4aa3ff;
  --radius: 20px; --radius-sm: 12px; --rail: 260px; --rail-min: 76px; --max: 1240px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f6f5; --bg-2: #ffffff; --card: #ffffff; --card-2: #f7f9f8; --hover: #eef2f0;
  --border: rgba(15, 20, 25, .08); --border-2: rgba(15, 20, 25, .14);
  --text: #0f1419; --text-2: #536471; --text-3: #8b98a5;
  --accent-soft: rgba(7, 193, 96, .12); --shadow: 0 30px 80px -50px rgba(15, 20, 25, .4);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 500px at 70% -10%, rgba(7, 193, 96, .16), transparent 60%), radial-gradient(700px 400px at 10% 110%, rgba(7, 193, 96, .08), transparent 60%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
.mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.green { color: var(--accent-2); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell: a floating dock on the left ---------- */
.shell { display: flex; min-height: 100svh; }
.rail-wrap { position: sticky; top: 0; height: 100svh; z-index: 30; padding: 12px 0 12px 12px; flex: 0 0 auto; }
.rail { position: relative; height: calc(100svh - 24px); width: var(--rail); border-radius: 22px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--card), var(--bg-2)); padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; overflow: hidden auto; transition: width .22s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.rail .brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 14px; white-space: nowrap; }
.rail .brand .mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; background: var(--accent); overflow: hidden; display: grid; place-items: center; box-shadow: var(--accent-glow); }
.rail .brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.rail .brand .name { font-family: 'Sora', var(--sans); font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1.1; }
.rail .brand .sub { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; }
.rail .nav-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .14em; padding: 12px 10px 6px; white-space: nowrap; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.rail nav a .ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--border); transition: background .15s, border-color .15s, color .15s; }
.rail nav a .ic svg { width: 17px; height: 17px; }
.rail nav a:hover { color: var(--text); background: var(--hover); }
.rail nav a.active { color: var(--text); background: var(--accent-soft); }
.rail nav a.active .ic { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(7,193,96,.9); }
.rail nav a.active::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.rail .launch-card { margin-top: auto; display: block; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #0ad06a, #05924a); color: #fff; text-decoration: none; white-space: nowrap; box-shadow: 0 14px 34px -16px rgba(7,193,96,.9); transition: transform .15s; }
.rail .launch-card:hover { transform: translateY(-2px); }
.rail .launch-card .t { font-family: 'Sora', var(--sans); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.rail .launch-card .t svg { width: 18px; height: 18px; }
.rail .launch-card .s { font-size: 12px; opacity: .85; margin-top: 3px; }
.rail .status { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 4px 0; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.rail .status b { display: block; color: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.rail .status .live { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.rail .status .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 2s infinite; }
.rail-wrap .collapse { position: absolute; right: -14px; top: 38px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--card); color: var(--text-2); display: grid; place-items: center; cursor: pointer; z-index: 5; }
.rail-wrap .collapse:hover { color: var(--text); }
body.rail-collapsed .rail { width: var(--rail-min); padding: 14px 10px; }
body.rail-collapsed .rail .brand > div, body.rail-collapsed .rail .nav-label, body.rail-collapsed .rail nav a span, body.rail-collapsed .rail .launch-card .s, body.rail-collapsed .rail .launch-card .t span, body.rail-collapsed .rail .status { display: none; }
body.rail-collapsed .rail nav a { padding: 8px; justify-content: center; }
body.rail-collapsed .rail .launch-card { padding: 12px; text-align: center; }
body.rail-collapsed .rail .launch-card .t { justify-content: center; }
body.rail-collapsed .rail-wrap .collapse svg { transform: rotate(180deg); }
.content { flex: 1; min-width: 0; max-width: 100%; }
.topbar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar .title { font-weight: 800; font-size: 19px; white-space: nowrap; }
.topbar .actions { display: flex; gap: 8px; align-items: center; }
.topbar .burger { display: none; }
.search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.search input[type=text] { width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--card); outline: none; transition: border-color .15s, box-shadow .15s; }
.search input[type=text]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.search .results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--border-2); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); max-height: 420px; overflow: auto; display: none; }
.search .results.open { display: block; }
.search .results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.search .results a:hover { background: var(--hover); }
.search .results .h { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px 4px; }
.page { max-width: var(--max); margin: 0 auto; padding: 24px 22px 90px; }
.footer { border-top: 1px solid var(--border); padding: 36px 22px; color: var(--text-2); font-size: 14px; }
.footer .inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer h4 { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.footer .col a { display: block; padding: 3px 0; }
.footer .col a:hover { color: var(--text); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; background: var(--text); color: var(--bg); font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(7, 193, 96, .9); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { padding: 6px 14px; font-size: 14px; }
.btn.lg { padding: 14px 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--hover); }
.icon-btn svg { width: 18px; height: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.field .help { display: block; font-size: 13px; color: var(--text-3); text-transform: none; letter-spacing: 0; font-weight: 400; }
input[type=text], input[type=number], input[type=password], input[type=url], textarea, select { width: 100%; padding: 11px 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--card-2); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
textarea { min-height: 96px; resize: vertical; }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; padding: 3px; gap: 2px; background: var(--card-2); }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; color: var(--text-2); cursor: pointer; font-weight: 600; font-size: 13px; transition: background .15s, color .15s; }
.seg button.on { background: var(--text); color: var(--bg); }
.chips { display: inline-flex; gap: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--card-2); color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip-btn.on { background: var(--text); color: var(--bg); border-color: transparent; }
.chip-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--card); font-size: 13px; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); } 50% { box-shadow: 0 0 0 7px rgba(7, 193, 96, .05); } }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--hover); color: var(--text-2); font-size: 12px; font-weight: 600; }
.tag.green { background: var(--accent-soft); color: var(--accent-2); }
.tag.gold { background: rgba(245, 179, 66, .15); color: var(--gold); }
.tag.red { background: rgba(255, 90, 95, .15); color: var(--red); }
.venue { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border-2); font-size: .8em; font-weight: 700; vertical-align: middle; }
.venue i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: inline-grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; }

/* ---------- cards, lists ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.card.tight { padding: 14px 16px; }
.card.glow:hover { border-color: rgba(7, 193, 96, .35); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2, .card-h h3 { font-size: 17px; font-weight: 800; }
.card-h a.more { color: var(--text-2); font-size: 14px; font-weight: 600; }
.card-h a.more:hover { color: var(--text); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .k { font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 13px; color: var(--text-3); }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r { text-align: right; white-space: nowrap; }
.row .r .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.row .r .s { font-size: 12px; color: var(--text-3); }
.row.link { border-radius: var(--radius-sm); transition: background .15s; }
.row.link:hover { background: var(--hover); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); overflow: hidden; flex: 0 0 40px; display: grid; place-items: center; font-weight: 800; color: var(--text-2); border: 1px solid var(--border); }
.avatar.sq { border-radius: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; flex-basis: 64px; font-size: 22px; }
.avatar.we { background: var(--accent-soft); color: var(--accent-2); }
.empty { padding: 28px 16px; text-align: center; color: var(--text-2); font-size: 14px; border: 1px dashed var(--border-2); border-radius: var(--radius-sm); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.progress { height: 6px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width .8s ease; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; background: rgba(245, 179, 66, .12); border: 1px solid rgba(245, 179, 66, .3); color: #f3c774; }
.notice.bad { background: rgba(255, 90, 95, .12); border-color: rgba(255, 90, 95, .3); color: #ff8a8e; }
.notice.good { background: var(--accent-soft); border-color: rgba(7, 193, 96, .35); color: var(--accent-2); }
.notice.info { background: rgba(74, 163, 255, .12); border-color: rgba(74, 163, 255, .3); color: #8cc4ff; }
:root[data-theme="light"] .notice { color: #6b4b00; } :root[data-theme="light"] .notice.bad { color: #8a0d17; } :root[data-theme="light"] .notice.good { color: #0b6b39; } :root[data-theme="light"] .notice.info { color: #0b4a80; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: 64px; font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 18px auto 16px; max-width: 760px; }
.hero h1 .we { color: var(--accent-2); }
.hero .lede { font-size: 19px; color: var(--text-2); max-width: 640px; margin: 0 auto; line-height: 1.55; }
.hero .lede b { color: var(--text); font-weight: 600; }
.hero .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- token tiles (image cards with a creator badge) ---------- */
.tile { position: relative; border-radius: 18px; overflow: hidden; background: var(--card-2); border: 1px solid var(--border); aspect-ratio: 1; display: block; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); border-color: rgba(7, 193, 96, .45); box-shadow: 0 24px 50px -30px rgba(7, 193, 96, .7); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--text-3); background: linear-gradient(160deg, var(--card-2), var(--hover)); }
.tile .age { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; backdrop-filter: blur(6px); }
.tile .badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); max-width: calc(100% - 20px); }
.tile .badge i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-style: normal; font-size: 11px; flex: 0 0 20px; }
.tile .badge span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard { display: flex; flex-direction: column; gap: 10px; }
.tcard .n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 2px; }
.tcard .n small { color: var(--text-3); font-weight: 600; margin-left: 6px; font-size: 12px; }
.tcard .m { font-size: 14px; display: flex; gap: 12px; }
.tcard .m b { font-size: 15px; }
.tcard .m span { color: var(--text-3); font-size: 12px; margin-left: 4px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles.small { grid-template-columns: repeat(6, 1fr); gap: 10px; }

/* ---------- home panels ---------- */
.panel { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); height: 460px; }
.panel .foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: linear-gradient(180deg, transparent, var(--card) 45%); font-weight: 700; }
.panel .foot a { color: var(--text-2); font-size: 14px; }
.panel .foot a:hover { color: var(--text); }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; }
.wall .col { display: flex; flex-direction: column; gap: 10px; animation: drift 30s linear infinite; }
.wall .col:nth-child(2) { animation-duration: 38s; animation-direction: reverse; }
.wall .col:nth-child(3) { animation-duration: 34s; }
.wall .col:nth-child(4) { animation-duration: 42s; animation-direction: reverse; }
.panel:hover .wall .col { animation-play-state: paused; }
@keyframes drift { to { transform: translateY(-50%); } }
.wall .tile { aspect-ratio: .9; }
.payfeed { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--border); animation: rise .5s ease both; }
.pay .amt { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pay .to { font-size: 13px; color: var(--text-2); }
.pay .to b { color: var(--text); }
.pay .who { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pay .who .arrow { color: var(--text-3); }
.pay .when { font-size: 12px; color: var(--text-3); min-width: 26px; text-align: right; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.marquee { overflow: hidden; margin: 18px -22px 8px; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; gap: 10px; width: max-content; animation: scroll 70s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--card); font-size: 13px; white-space: nowrap; }
.chip .avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: 11px; }
.chip b { font-weight: 700; }
.chip .mc { color: var(--text-2); }
.chip .sent { color: var(--accent-2); font-weight: 700; }
.odometer { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 46px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.odometer .cur { font-size: .6em; color: var(--text-2); margin-right: 4px; font-weight: 700; }
.odometer .digit { display: inline-block; height: 1em; overflow: hidden; }
.odometer .digit i { display: block; font-style: normal; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.odometer .digit i span { display: block; height: 1em; line-height: 1; }
.term { font-family: var(--mono); font-size: 12px; color: var(--text-2); line-height: 1.7; }
.term .k { color: var(--text-3); display: inline-block; width: 34px; }
.term .h { color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; margin-top: 10px; }
.term b { color: var(--text); font-weight: 600; }
.route { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--card-2); }
.route input { border: 0; background: transparent; padding: 6px 0; box-shadow: none !important; }
.route .go { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.sec { margin-top: 36px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-h h2 { font-size: 22px; font-weight: 800; }
.sec-h .right { display: flex; align-items: center; gap: 10px; }
.sec-h a { color: var(--text-2); font-weight: 600; font-size: 14px; }
.sec-h a:hover { color: var(--text); }
.pager { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.pager button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-2); background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.pager button:hover { color: var(--text); background: var(--hover); }
.pager button:disabled { opacity: .35; cursor: default; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; overflow-x: auto; }
.tabs button { background: transparent; border: 0; padding: 10px 14px; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.profile-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--card-2); display: block; transition: transform .25s, border-color .25s; }
.profile-card:hover { transform: translateY(-3px); border-color: rgba(7, 193, 96, .45); }
.profile-card .banner { height: 96px; background: linear-gradient(135deg, #0d3d25, #07c160 70%, #b7f5d2); position: relative; }
.profile-card .banner::after { content: ''; position: absolute; inset: 0; background: radial-gradient(240px 120px at 80% 0%, rgba(255, 255, 255, .35), transparent 60%); }
.profile-card .banner.b2 { background: linear-gradient(135deg, #061b10, #0a8a47 60%, #07c160); }
.profile-card .banner.b3 { background: linear-gradient(135deg, #10241a, #1f6b46 55%, #2fe08a); }
.profile-card .body { padding: 0 16px 16px; }
.profile-card .avatar { width: 56px; height: 56px; flex-basis: 56px; margin-top: -28px; border: 3px solid var(--card-2); font-size: 18px; }
.profile-card .nm { font-weight: 800; margin-top: 8px; font-size: 16px; }
.profile-card .hd { color: var(--text-2); font-size: 13px; }
.profile-card .st { display: flex; gap: 14px; margin-top: 12px; font-size: 14px; }
.profile-card .st b { font-size: 15px; }
.profile-card .st span { color: var(--text-3); font-size: 12px; margin-left: 4px; }
.payrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.payrow:hover { border-color: var(--border-2); transform: translateY(-1px); }
.payrow .amt { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.payrow .to { font-size: 13px; color: var(--text-2); }
.payrow .to b { color: var(--text); }
.payrow .who { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.payrow .who .arrow { color: var(--text-3); font-size: 12px; }
.payrow .when { color: var(--text-3); font-size: 12px; min-width: 28px; text-align: right; }
.payrow .ref { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; background: var(--hover); }
.split .a { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.split .b { background: var(--text-3); }
.split-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.split-l b { color: var(--text); }
.phone { border: 1px solid var(--border); border-radius: 24px; padding: 16px; background: var(--card); box-shadow: var(--shadow); }
.phone .bubble { background: var(--accent); color: #fff; border-radius: 18px 18px 18px 4px; padding: 14px 16px; font-size: 14px; box-shadow: 0 16px 40px -18px rgba(7, 193, 96, .9); }
.phone .bubble b { font-size: 24px; display: block; margin-bottom: 4px; letter-spacing: -.02em; }
.phone .bubble small { opacity: .85; }
.phone .meta { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.phone .chat { display: flex; gap: 10px; align-items: flex-end; }
.phone .chat .avatar { flex-basis: 36px; width: 36px; height: 36px; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow .step { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--card); }
.flow .step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-bottom: 10px; }
.flow .step h4 { font-size: 14px; margin-bottom: 4px; }
.flow .step p { font-size: 13px; color: var(--text-2); }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; scroll-margin-top: 80px; }
.prose h2 .num { color: var(--accent-2); margin-right: 8px; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; }
.prose p, .prose li { color: var(--text-2); margin: 8px 0; }
.prose b { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--hover); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.prose pre { background: #060807; border: 1px solid var(--border); color: #d8e2dc; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; font-family: var(--mono); font-size: 13px; }
.prose .toc { columns: 2; font-size: 14px; padding-left: 20px; }
.prose .toc li { margin: 3px 0; }
.prose .toc a { color: var(--text-2); }
.prose .toc a:hover { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.prose td, .prose th { border-top: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { color: var(--text-2); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-top: 0; }
.launch-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.launch-grid .sticky { position: sticky; top: 80px; }
.drop { border: 1px dashed var(--border-2); border-radius: var(--radius-sm); padding: 18px; text-align: center; color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 96px; background: var(--card-2); }
.drop:hover { background: var(--hover); }
.drop img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.log { font-family: var(--mono); font-size: 12px; background: #060807; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; max-height: 240px; overflow: auto; white-space: pre-wrap; color: var(--text-2); }
.log .ok { color: var(--accent-2); }
.log .bad { color: var(--red); }
.steps { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.steps .st { display: flex; gap: 10px; align-items: center; color: var(--text-3); }
.steps .st i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); display: inline-block; flex: 0 0 18px; }
.steps .st.doing { color: var(--text); }
.steps .st.doing i { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps .st.done { color: var(--text); }
.steps .st.done i { background: var(--accent); border-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-width: 90vw; animation: rise .3s ease; }
.skel { background: linear-gradient(90deg, var(--card-2), var(--hover), var(--card-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .marquee .track, .wall .col, .pill .dot { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tiles.small { grid-template-columns: repeat(4, 1fr); } .wall { grid-template-columns: repeat(3, 1fr); } .wall .col:nth-child(4) { display: none; } }
@media (max-width: 900px) {
  :root { --rail: 76px; }
  .rail { width: var(--rail-min); padding: 14px 10px; }
  .rail .brand > div, .rail .nav-label, .rail nav a span, .rail .launch-card .s, .rail .launch-card .t span, .rail .status { display: none; }
  .rail nav a { padding: 8px; justify-content: center; }
  .rail .launch-card { padding: 12px; }
  .rail-wrap .collapse { display: none; }
  .hero h1 { font-size: 44px; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .launch-grid { grid-template-columns: 1fr; }
  .launch-grid .sticky { position: static; }
  .prose .toc { columns: 1; }
  .search { display: none; }
}
@media (max-width: 640px) {
  .rail-wrap { position: fixed; left: 0; top: 0; padding: 0; transform: translateX(-100%); transition: transform .2s; z-index: 40; }
  body.nav-open .rail-wrap { transform: none; }
  .rail { width: 260px; height: 100svh; border-radius: 0 22px 22px 0; padding: 14px 12px; box-shadow: 0 0 0 100vw rgba(0,0,0,.5); }
  .rail .brand > div, .rail .nav-label, .rail nav a span, .rail .launch-card .s, .rail .launch-card .t span, .rail .status { display: initial; }
  .rail nav a { padding: 8px 10px; justify-content: flex-start; }
  .rail .status { display: grid; }
  .topbar .burger { display: inline-flex; }
  .topbar { padding: 0 12px; }
  .topbar .actions .btn.sm:not(.ghost) { display: none; }
  .topbar .actions #connectBtn { padding: 6px 10px; }
  .topbar .title { font-size: 17px; }
  .page { padding: 16px 16px 64px; }
  .marquee { margin: 12px -16px 8px; }
  .hero { padding: 32px 0 16px; } .hero h1 { font-size: 36px; }
  .grid.two, .grid.three, .grid.four, .tiles, .wall { grid-template-columns: 1fr 1fr; }
  .tiles.small { grid-template-columns: repeat(3, 1fr); }
  .wall .col:nth-child(3) { display: none; }
  .flow { grid-template-columns: 1fr; }
  .form .cols { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .odometer { font-size: 34px; }
  .footer .inner { flex-direction: column; gap: 20px; }
}

/* ---------- WePay's own accents (not a 1:1 of the reference) ---------- */
h1, h2, h3, .hero h1, .topbar .title, .rail .logo, .odometer, .stat .v, .pay .amt, .payrow .amt { font-family: 'Sora', var(--sans); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(800px 500px at 60% 0%, #000, transparent 75%); }
.card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(7, 193, 96, .5), transparent 40%, transparent 60%, rgba(7, 193, 96, .25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.sec-h h2::before { content: attr(data-n); font-family: var(--mono); font-size: 12px; color: var(--accent-2); margin-right: 10px; vertical-align: middle; letter-spacing: .1em; }
/* hero: split, with a WeChat-style conversation on the right */
.hero.duo { text-align: left; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 40px 0 20px; }
.hero.duo h1 { margin: 16px 0 14px; max-width: none; font-size: 58px; }
.hero.duo .lede { margin: 0; }
.hero.duo .ctas { justify-content: flex-start; }
.wx { border-radius: 28px; border: 1px solid var(--border-2); background: linear-gradient(180deg, var(--card-2), var(--card)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06); padding: 14px 14px 18px; position: relative; overflow: hidden; }
.wx::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 90% -10%, rgba(7, 193, 96, .25), transparent 70%); pointer-events: none; }
.wx .bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 12px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.wx .bar b { color: var(--text); font-family: 'Sora', var(--sans); }
.wx .msgs { display: flex; flex-direction: column; gap: 10px; padding: 14px 4px 4px; }
.wx .msg { display: flex; gap: 10px; align-items: flex-end; opacity: 0; animation: rise .5s ease forwards; }
.wx .msg.me { flex-direction: row-reverse; }
.wx .msg .avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 8px; font-size: 12px; }
.wx .bub { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: var(--hover); font-size: 14px; line-height: 1.4; border: 1px solid var(--border); }
.wx .msg.me .bub { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 12px 30px -14px rgba(7, 193, 96, .9); }
.wx .transfer { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #f7a532, #f28d1c); color: #fff; min-width: 240px; box-shadow: 0 12px 30px -14px rgba(242, 141, 28, .8); }
.wx .transfer.green { background: linear-gradient(135deg, #12d16a, #07a852); box-shadow: 0 12px 30px -14px rgba(7, 193, 96, .9); }
.wx .transfer .ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-weight: 800; font-family: 'Sora', var(--sans); }
.wx .transfer .a { font-family: 'Sora', var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.wx .transfer .l { font-size: 12px; opacity: .9; }
.wx .stamp { font-size: 11px; color: var(--text-3); text-align: center; padding-top: 6px; }
.wx .tok { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); min-width: 240px; }
.wx .tok .avatar { border-radius: 8px; }
.wx .tok b { display: block; font-size: 13px; }
.wx .tok span { font-size: 12px; color: var(--text-2); }
/* horizontal drifting rows instead of vertical columns */
.wall.rows { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.wall.rows .col { flex-direction: row; width: max-content; animation: driftx 55s linear infinite; }
.wall.rows .col:nth-child(2) { animation-duration: 70s; animation-direction: reverse; }
.wall.rows .col:nth-child(3) { animation-duration: 62s; }
.wall.rows .tile { width: 132px; aspect-ratio: 1; flex: 0 0 auto; }
@keyframes driftx { to { transform: translateX(-50%); } }
.panel.rows-panel { height: auto; }
.panel .foot.bare { position: static; background: none; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .hero.duo { grid-template-columns: 1fr; } .hero.duo h1 { font-size: 40px; } }
.flapmark { display: inline-block; height: 1em; width: auto; vertical-align: -.12em; margin: 0 .1em; }
