/* ==========================================================================
   iBitPay — site styles
   Palette from the logo: rust #B84A12 · peach #FDE8DC · ink #1A0E08 · tan #A0704A
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #FBF8F4;
  --bg-alt: #F5EEE6;
  --surface: #FFFFFF;
  --peach: #FDE8DC;
  --peach-soft: #FEF4EE;
  --peach-strong: #F6D2BE;
  --rust: #B84A12;
  --rust-hover: #9A3C0C;
  --rust-light: #E39A72;
  --ink: #1A0E08;
  --ink-2: #3B2A20;
  --muted: #6D5D53;
  --tan: #A0704A;
  --line: #EBE1D6;
  --line-strong: #DDCCBD;
  --ok: #2F7350;
  --ok-bg: #E4F1E8;
  --warn: #8A5A12;
  --warn-bg: #FBEFD9;
  --err: #B3261E;

  --dark: #1A0E08;
  --dark-2: #24150E;
  --dark-3: #120904;
  --dark-line: #3A2920;
  --dark-text: #F7EFE8;
  --dark-muted: #BCA898;

  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(26, 14, 8, .05), 0 2px 8px rgba(26, 14, 8, .04);
  --shadow: 0 2px 6px rgba(26, 14, 8, .05), 0 14px 36px rgba(26, 14, 8, .08);
  --shadow-lg: 0 1px 2px rgba(26, 14, 8, .06), 0 28px 64px -16px rgba(26, 14, 8, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --section-y: clamp(72px, 9vw, 128px);
}

/* Per-language font stacks — Latin glyphs keep the brand faces */
:root:lang(zh-CN) {
  --font-serif: "Source Serif 4", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Be Vietnam Pro", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
:root:lang(zh-TW) {
  --font-serif: "Source Serif 4", "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --font-sans: "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}
:root:lang(th) {
  --font-serif: "Source Serif 4", "Noto Serif Thai", "Thonburi", Tahoma, serif;
  --font-sans: "Be Vietnam Pro", "Noto Sans Thai", "Thonburi", "Leelawadee UI", Tahoma, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
:lang(th) body { line-height: 1.75; }
:lang(zh-CN) body, :lang(zh-TW) body { line-height: 1.75; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--peach-strong); color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* While a non-English dictionary loads, avoid a flash of English */
.i18n-pending body { visibility: hidden; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--flush-top { padding-top: 0; }

/* ---------- Typography ---------- */
h1, .h1, h2, .h2, h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-optical-sizing: auto;
  color: inherit;
}
h1, .h1 {
  font-size: clamp(2.6rem, 1.6rem + 3.9vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(2rem, 1.45rem + 2.3vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3, .h3 {
  font-size: clamp(1.25rem, 1.15rem + .45vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
:lang(zh-CN) :is(h1, h2, h3, .h1, .h2, .h3),
:lang(zh-TW) :is(h1, h2, h3, .h1, .h2, .h3) { letter-spacing: 0; font-weight: 600; }
:lang(zh-CN) :is(h1, .h1), :lang(zh-TW) :is(h1, .h1) { line-height: 1.18; font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem); }
:lang(zh-CN) :is(h2, .h2), :lang(zh-TW) :is(h2, .h2) { line-height: 1.24; }
:lang(th) :is(h1, h2, h3, .h1, .h2, .h3) { letter-spacing: 0; line-height: 1.32; }
:lang(th) :is(h1, .h1) { font-size: clamp(2.2rem, 1.45rem + 3vw, 3.9rem); }
:lang(vi) :is(h1, h2, .h1, .h2) { letter-spacing: -0.012em; line-height: 1.16; }
:lang(vi) :is(h1, .h1) { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4.2rem); }

.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--tan);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rust); flex: none;
}
:lang(zh-CN) .eyebrow, :lang(zh-TW) .eyebrow, :lang(th) .eyebrow { letter-spacing: .04em; font-size: .875rem; }
.section--dark .eyebrow { color: #E2A882; }
.section--dark .eyebrow::before { background: var(--rust-light); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.text-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--rust); border-color: var(--rust); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 500; line-height: 1;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon--nudge { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --btn-h: 38px; padding: 0 14px; font-size: .875rem; }
.btn-lg { --btn-h: 52px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.btn-primary { background: var(--ink); color: #FFF; }
.btn-primary:hover { background: #3A2519; }
.btn-accent { background: var(--rust); color: #FFF; }
.btn-accent:hover { background: var(--rust-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-2); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #FFF; }
.btn-ghost-light { background: transparent; color: var(--dark-text); border-color: rgba(247, 239, 232, .22); }
.btn-ghost-light:hover { background: rgba(247, 239, 232, .08); border-color: rgba(247, 239, 232, .4); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: rgba(251, 248, 244, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; border-radius: 10px; }
.brand-mark { width: 34px; height: 34px; }
/* 修改人：JP 修改时间：2026-10-01 新 logo：字标和图标同高（字标 svg 上下留白和图标一致），居中就是品牌横版原样比例 */
.brand-word { width: auto; height: 34px; }
.nav { display: none; align-items: center; gap: 2px; margin-left: 20px; }
.nav a {
  padding: 8px 13px; border-radius: 9px;
  font-size: .9375rem; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(26, 14, 8, .045); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-cta { display: none; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  height: 40px; padding: 0 10px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(26, 14, 8, .05); color: var(--ink); }
.lang-btn .icon { width: 18px; height: 18px; }
.lang-btn .icon-chev { width: 14px; height: 14px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .icon-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .18s, transform .18s var(--ease);
}
.lang-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.lang-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 9px; text-align: left;
  font-size: .9375rem; color: var(--ink-2);
}
.lang-option:hover, .lang-option:focus-visible { background: var(--bg-alt); color: var(--ink); outline: none; }
.lang-option .icon { width: 16px; height: 16px; color: var(--rust); opacity: 0; }
.lang-option[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.lang-option[aria-checked="true"] .icon { opacity: 1; }

/* Mobile menu */
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.menu-btn:hover { background: rgba(26, 14, 8, .05); }
.menu-icon { position: relative; width: 20px; height: 12px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.75px; border-radius: 2px;
  background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-icon::before { top: 0; }
.menu-icon::after { top: 10.25px; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 5.1px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 5.1px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0; z-index: 55;
  display: flex; flex-direction: column;
  padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-serif); font-size: 1.625rem; font-weight: 500; letter-spacing: -0.01em;
}
.mobile-menu nav a .icon { width: 20px; height: 20px; color: var(--tan); }
.mobile-menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.mobile-menu-foot .btn { width: 100%; }
.mobile-menu-foot a.mail { justify-self: center; display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9375rem; }
.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; margin-left: 6px; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 56px); align-items: center; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 24px; max-width: 36rem; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .875rem; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note .icon { width: 16px; height: 16px; color: var(--rust); stroke-width: 2.2; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; }
}

.hero-visual { position: relative; display: grid; place-items: center; padding: 28px 0 36px; isolation: isolate; }
.hero-tile {
  position: absolute; z-index: -1; width: min(86%, 470px); aspect-ratio: 1;
  border-radius: 24%; background: var(--peach);
  transform: rotate(-7deg);
}
.hero-tile::after {
  content: ""; position: absolute; inset: -9%; border-radius: 27%;
  border: 1px dashed var(--peach-strong); transform: rotate(4deg);
}

/* Cashier mock */
.cashier {
  position: relative; width: min(372px, 100%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  font-size: .875rem;
}
.cashier-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cashier-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .875rem; }
.cashier-brand img { width: 24px; height: 24px; }
.cashier-secure {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; color: var(--ok); font-weight: 500;
  padding: 4px 8px; border-radius: 999px; background: var(--ok-bg);
}
.cashier-secure .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.cashier-body { margin-top: 16px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cashier-body.is-leaving { opacity: 0; transform: translateY(6px); }
.cashier-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .8125rem; }
.cashier-market {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .6875rem/1 var(--font-sans); letter-spacing: .08em;
  color: var(--rust); background: var(--peach); border-radius: 6px; padding: 5px 7px;
}
.cashier-account { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.cashier-amount { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.cashier-amount strong { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 2.35rem; line-height: 1.1; letter-spacing: -0.02em; }
.cashier-amount span { font-weight: 600; font-size: .8125rem; color: var(--muted); letter-spacing: .04em; }
.cashier-label { margin-top: 14px; margin-bottom: 8px; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.cashier-methods { display: grid; gap: 6px; }
.cashier-method {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line);
  font-weight: 500; font-size: .8125rem;
}
.cashier-method .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; position: relative; }
.cashier-method.is-selected { border-color: var(--rust); background: var(--peach-soft); }
.cashier-method.is-selected .radio { border-color: var(--rust); }
.cashier-method.is-selected .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--rust); }
.cashier-method .tag { margin-left: auto; font-size: .6875rem; font-weight: 600; color: var(--rust); display: inline-flex; align-items: center; gap: 4px; }
.cashier-method .tag .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.cashier-qr {
  margin-top: 12px; display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 14px; background: var(--bg-alt);
}
.cashier-qr svg { width: 92px; height: 92px; flex: none; background: #FFF; border-radius: 8px; padding: 6px; }
.cashier-qr p { font-size: .8125rem; color: var(--ink-2); line-height: 1.45; }
.cashier-qr .timer { margin-top: 6px; display: block; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.cashier-status {
  margin-top: 12px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .8125rem;
  background: var(--bg-alt); color: var(--muted);
  transition: background-color .35s, color .35s;
}
.cashier-status .spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--rust);
  animation: spin .9s linear infinite;
}
.cashier-status .icon { width: 16px; height: 16px; stroke-width: 2.4; display: none; }
.cashier-status.is-paid { background: var(--ok-bg); color: var(--ok); }
.cashier-status.is-paid .spinner { display: none; }
.cashier-status.is-paid .icon { display: block; }
.cashier-status .st-paid, .cashier-status.is-paid .st-wait { display: none; }
.cashier-status.is-paid .st-paid { display: inline; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px 11px 11px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .8125rem; line-height: 1.3; white-space: nowrap;
}
.float-card strong { display: block; font-weight: 600; }
.float-card small { display: block; color: var(--muted); font-size: .75rem; margin-top: 1px; }
.float-card .badge {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none;
}
.float-card .badge .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.float-card--deposit { top: 2%; left: -7%; transition: opacity .4s var(--ease), transform .4s var(--ease); opacity: 0; transform: translateY(8px) scale(.97); }
.float-card--deposit.is-visible { opacity: 1; transform: none; }
.float-card--deposit .badge { background: var(--ok-bg); color: var(--ok); }
.float-card--payout { bottom: 0; right: -7%; animation: float 6s ease-in-out infinite; }
.float-card--payout .badge { background: var(--peach); color: var(--rust); }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) {
  .float-card--deposit { left: 0; top: 2%; }
  .float-card--payout { right: 0; bottom: 0; }
  .float-card { font-size: .75rem; padding: 9px 12px 9px 9px; }
}

/* ---------- Rails marquee ---------- */
.rails { padding-top: 8px; padding-bottom: clamp(48px, 6vw, 72px); }
.rails-label { text-align: center; font-size: .875rem; color: var(--muted); }
.marquee {
  position: relative; margin-top: 20px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee + .marquee { margin-top: 12px; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-group { display: flex; flex: none; }
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.rail-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-right: 12px;
  padding: 9px 16px 9px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .9375rem; font-weight: 500; white-space: nowrap;
}
.rail-pill .cc {
  font: 600 .6875rem/1 var(--font-sans); letter-spacing: .06em;
  color: var(--rust); background: var(--peach); padding: 5px 6px; border-radius: 6px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.stat { background: var(--bg); padding: clamp(22px, 3vw, 34px) clamp(18px, 2.5vw, 30px); }
.stat-num {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 500;
  font-size: clamp(2.4rem, 1.9rem + 2vw, 3.6rem); line-height: 1; letter-spacing: -0.03em;
}
.stat-num em { font-style: normal; color: var(--rust); }
.stat-label { margin-top: 12px; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Client names ---------- */
.clients { padding-bottom: clamp(24px, 4vw, 48px); }
.clients-label { text-align: center; font-size: .875rem; color: var(--muted); }
.client-list {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 720px) { .client-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .client-list li { min-height: 76px; } }
@media (min-width: 1100px) { .client-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.client-list li {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 12px;
  background: var(--bg); text-align: left;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.2;
  color: #9C8A7E;
  transition: color .2s, background-color .2s;
}
.client-list li:hover { color: var(--ink); background: var(--surface); }
.client-icon {
  width: 28px; height: 28px; flex: none; border-radius: 8px; object-fit: contain;
  filter: grayscale(1); opacity: .72;
  transition: filter .25s, opacity .25s;
}
.client-list li:hover .client-icon { filter: none; opacity: 1; }
.client-mono {
  display: grid; place-items: center;
  background: #EFE5DA; color: #9C8A7E; filter: none; opacity: 1;
  font-size: .8125rem; font-weight: 700; letter-spacing: 0;
}

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { max-width: 40rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 64px; }
  .section-head--split .eyebrow { grid-column: 1 / -1; }
}
.section--dark .lead, .section--dark .muted { color: var(--dark-muted); }

/* ---------- Feature cards (why) ---------- */
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .feature-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .feature-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 6px;
  display: grid; place-items: center; background: var(--peach); color: var(--rust);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.3rem; }
.feature p { color: var(--muted); font-size: .96875rem; }

/* ---------- Bento (products) ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .span-6 { grid-column: 1 / -1; } }
@media (min-width: 1140px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-2 { grid-column: span 2; }
  .bento .span-6 { grid-column: span 6; }
}
.tile {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(22px, 2.6vw, 30px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.tile-head { display: grid; gap: 10px; }
.tile-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--rust); letter-spacing: .02em; }
.tile-kicker .icon { width: 18px; height: 18px; }
.tile h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); }
.tile p { color: var(--muted); font-size: .96875rem; max-width: 34rem; }
.tile-visual { margin-top: auto; padding: 14px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--line); }
@media (min-width: 900px) {
  .tile--wide { flex-direction: row; align-items: center; gap: 40px; }
  .tile--wide .tile-head { flex: 1; }
  .tile--wide .tile-visual { flex: 1.1; margin-top: 0; }
}

/* Mini UI kit used inside tiles */
.ui-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font-size: .8125rem;
}
.ui-row + .ui-row { margin-top: 8px; }
.ui-row .amt { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-method {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .75rem;
  padding: 5px 8px; border-radius: 7px; background: var(--peach); color: var(--rust); white-space: nowrap;
}
.status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--ok-bg); color: var(--ok); }
.status--pending { background: var(--warn-bg); color: var(--warn); }
.status--info { background: var(--peach); color: var(--rust); }
.ui-card { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ui-card + .ui-card { margin-top: 8px; }
.ui-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8125rem; }
.ui-card-top strong { font-weight: 600; }
.ui-sub { font-size: .75rem; color: var(--muted); }
.progress { margin-top: 12px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--rust), #D46A33); transition: width 1.6s var(--ease) .2s; }
.is-in .progress > span, .no-motion .progress > span { width: var(--p, 93%); }
.ui-split { margin-top: 10px; display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }

.mini-phone {
  width: 188px; margin-inline: auto; padding: 12px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
}
.mini-phone .langs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.mini-phone .langs span { font-size: .6875rem; padding: 3px 6px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.mini-phone .langs span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mini-phone .qr-box { margin: 12px auto 8px; width: 96px; height: 96px; }
.mini-phone .bar { height: 8px; border-radius: 99px; background: var(--line); margin-top: 6px; }
.mini-phone .bar.short { width: 60%; margin-inline: auto; }
.mini-phone .btn-fake { margin-top: 10px; height: 28px; border-radius: 8px; background: var(--rust); }

.fx { display: grid; gap: 8px; }
.fx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.fx-row .ccy { font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.fx-row .val { font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; letter-spacing: -0.01em; }
.fx-arrow { display: grid; place-items: center; color: var(--rust); }
.fx-arrow .icon { width: 18px; height: 18px; transform: rotate(90deg); }

.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 88px; padding: 4px 2px 0; }
.mini-chart span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--peach-strong); height: 0; transition: height 1.1s var(--ease); }
.mini-chart span:last-child { background: var(--rust); }
.is-in .mini-chart span, .no-motion .mini-chart span { height: var(--h); }
.mini-chart-legend { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mini-chart-legend strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.mini-chart-legend span { font-size: .75rem; color: var(--ok); font-weight: 600; }

.rules { display: grid; gap: 8px; }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; }
.rule b { font-weight: 600; }
.rule small { display: block; color: var(--muted); font-size: .75rem; }
.toggle { width: 34px; height: 20px; border-radius: 99px; background: var(--rust); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.toggle.off { background: var(--line-strong); }
.toggle.off::after { right: auto; left: 2px; }

/* ---------- Markets preview & map ---------- */
.markets-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(16px, 3vw, 40px);
}
.map { position: relative; margin-inline: auto; max-width: 1080px; }
.map > img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.map-pin {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 3px var(--surface);
  transition: opacity .35s, transform .35s var(--ease);
}
.map-pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid var(--rust); opacity: 0; animation: ping 2.6s var(--ease) infinite;
  animation-delay: var(--delay, 0s);
}
.map-pin.is-dim { opacity: .18; transform: scale(.7); }
.map-pin.is-dim::after { animation: none; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.map-label {
  position: absolute; z-index: 1;
  padding: 4px 8px; border-radius: 7px;
  background: var(--ink); color: #FFF;
  font-size: .72rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: opacity .35s;
  pointer-events: none;
}
.map-label.is-dim { opacity: .15; }
.map-label[data-side="left"] { transform: translate(calc(-100% - 12px), -50%); }
.map-label[data-side="right"] { transform: translate(12px, -50%); }
.map-label[data-side="top"] { transform: translate(-50%, calc(-100% - 12px)); }
.map-label[data-side="bottom"] { transform: translate(-50%, 12px); }
@media (max-width: 719px) { .map-label { display: none; } .map-pin { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; box-shadow: 0 0 0 2px var(--surface); } }

.markets-panel { margin-top: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.tabs {
  display: flex; gap: 4px; padding: 4px; width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 9px 14px; border-radius: 10px;
  font-size: .875rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.country-list { display: grid; gap: 0 32px; }
@media (min-width: 720px) { .country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .country-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.country-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.country-row .name { font-weight: 600; font-size: .96875rem; }
.country-row .methods { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.cc-badge {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--peach); color: var(--rust);
  font-family: "Source Serif 4", Georgia, serif; font-size: 1.0625rem; font-weight: 600; letter-spacing: .02em;
}
.markets-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.markets-foot p { font-size: .875rem; color: var(--muted); max-width: 44rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 28px; }
.step { position: relative; padding-left: 62px; }
.step-num {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--peach); color: var(--rust); border: 1px solid var(--peach-strong);
  font-family: "Source Serif 4", Georgia, serif; font-size: 1.125rem; font-weight: 600;
}
.step::before {
  content: ""; position: absolute; left: 21px; top: 50px; bottom: -22px; width: 1px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 5px, transparent 5px 10px);
}
.step:last-child::before { display: none; }
.step h3 { font-size: 1.25rem; padding-top: 7px; }
.step p { margin-top: 8px; color: var(--muted); font-size: .96875rem; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .step { padding-left: 0; padding-top: 64px; }
  .step::before { left: 54px; right: -16px; top: 21px; bottom: auto; width: auto; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 10px); }
  .step h3 { padding-top: 0; }
}

/* ---------- Developer section ---------- */
.dev-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .dev-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.checklist { display: grid; gap: 4px; margin-top: 28px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.checklist .tick {
  width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 1px;
  display: grid; place-items: center; background: rgba(227, 154, 114, .16); color: var(--rust-light);
}
.checklist .tick .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.section:not(.section--dark) .checklist .tick { background: var(--peach); color: var(--rust); }

.code-window {
  background: var(--dark-3); color: #EFE5DC;
  border: 1px solid var(--dark-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(26, 14, 8, .55);
}
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--dark-line); }
.code-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab { flex: none; padding: 7px 12px; border-radius: 8px; font-size: .8125rem; font-weight: 500; color: var(--dark-muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.code-tab:hover { color: #FFF; }
.code-tab[aria-selected="true"], .code-tab.is-active { background: rgba(255, 255, 255, .08); color: #FFF; }
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; font-size: .75rem; color: var(--dark-muted); transition: background-color .2s, color .2s; }
.copy-btn:hover { background: rgba(255, 255, 255, .08); color: #FFF; }
.copy-btn .icon { width: 15px; height: 15px; }
.code {
  margin: 0; padding: 20px 22px 24px; overflow-x: auto;
  font: 400 .8125rem/1.75 var(--font-mono); tab-size: 2; white-space: pre;
  scrollbar-width: thin; scrollbar-color: #4A3428 transparent;
}
.code-note { padding: 12px 22px; border-top: 1px solid var(--dark-line); font-size: .75rem; color: var(--dark-muted); }
.tk-k { color: #F2A37B; }
.tk-s { color: #CFDCA9; }
.tk-n { color: #F5C98A; }
.tk-c { color: #8E7A6C; font-style: italic; }
.tk-p { color: #EBC7AC; }
.tk-f { color: #F7DDBF; }
.tk-m { color: #E39A72; font-weight: 600; }

/* ---------- Security ---------- */
.sec-grid {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 720px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec-item { background: var(--bg); padding: clamp(24px, 2.8vw, 34px); display: grid; gap: 12px; align-content: start; }
.section--alt .sec-item { background: var(--bg-alt); }
.sec-item .icon { width: 26px; height: 26px; color: var(--rust); stroke-width: 1.6; }
.sec-item h3 { font-size: 1.2rem; margin-top: 6px; }
.sec-item p { color: var(--muted); font-size: .96875rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 36px); align-self: start; }
}
.faq-head .lead { margin-top: 18px; }
.faq-head .text-link { margin-top: 26px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem); line-height: 1.35;
}
:lang(zh-CN) .faq-item summary, :lang(zh-TW) .faq-item summary { font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--rust); }
.faq-toggle {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink);
  transition: transform .3s var(--ease), background-color .3s, border-color .3s;
}
.faq-toggle .icon { width: 16px; height: 16px; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--peach); border-color: var(--peach-strong); color: var(--rust); }
.faq-answer { padding: 0 56px 26px 0; color: var(--muted); }
.faq-answer a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 88px); border-radius: var(--radius-xl);
  background: var(--peach);
}
.cta-band h2 { max-width: 15ch; }
:lang(zh-CN) .cta-band h2, :lang(zh-TW) .cta-band h2 { max-width: 13em; }
:lang(th) .cta-band h2, :lang(vi) .cta-band h2 { max-width: 20ch; }
.cta-band .lead { margin-top: 20px; max-width: 34rem; }
.cta-band .hero-ctas { margin-top: 32px; }
.cta-art { position: absolute; z-index: -1; right: -40px; bottom: -70px; width: clamp(240px, 36vw, 440px); opacity: .9; pointer-events: none; }
@media (max-width: 719px) { .cta-art { opacity: .22; right: -60px; bottom: -80px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 80px); padding-bottom: 32px; }
.footer-top { display: grid; gap: 44px; }
@media (min-width: 1024px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 72px; } }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-tagline { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.3; margin-top: 8px; }
.footer-about { color: var(--muted); font-size: .9375rem; max-width: 26rem; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); width: max-content; }
.footer-email .icon { width: 18px; height: 18px; color: var(--rust); }
.footer-email:hover { color: var(--rust); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-col h3 { font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--tan); margin-bottom: 14px; }
:lang(zh-CN) .footer-col h3, :lang(zh-TW) .footer-col h3, :lang(th) .footer-col h3 { letter-spacing: .04em; font-size: .8125rem; }
.footer-col li + li { margin-top: 4px; }
.footer-col a { display: inline-block; padding: 4px 0; color: var(--ink-2); font-size: .9375rem; transition: color .2s; }
.footer-col a:hover { color: var(--rust); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-strong);
  display: grid; gap: 14px; font-size: .8125rem; color: var(--muted);
}
.footer-bottom .legal { max-width: 72ch; }
.footer-lang { display: inline-flex; align-items: center; gap: 8px; }
.footer-lang select {
  appearance: none; -webkit-appearance: none;
  padding: 7px 30px 7px 10px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D5D53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  font-size: .8125rem; color: var(--ink-2); cursor: pointer;
}
@media (min-width: 900px) {
  .footer-bottom { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; }
  .footer-bottom .legal { justify-self: center; text-align: center; }
}

/* ---------- Sub-page hero ---------- */
.page-hero { padding-top: clamp(44px, 7vw, 96px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero h1 { margin-top: 20px; max-width: 17ch; }
:lang(zh-CN) .page-hero h1, :lang(zh-TW) .page-hero h1 { max-width: 14em; }
:lang(th) .page-hero h1, :lang(vi) .page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: 22px; max-width: 42rem; }
.page-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .page-hero-grid h1 { max-width: none; } }

/* ---------- Blacklist ---------- */
/* 修改人：Claude 修改时间：2026-10-28 */
.bl-card { padding: clamp(18px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bl-toolbar { display: grid; gap: 16px; }
@media (min-width: 900px) { .bl-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; } }
.bl-search { position: relative; }
.bl-search .icon { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.bl-search .input { padding-left: 44px; }
.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bl-share-label { margin-right: 2px; font-size: .875rem; color: var(--muted); }
.bl-share-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-2);
  font: 500 .875rem/1 var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.bl-share-btn:hover { background: var(--surface); border-color: var(--ink-2); color: var(--ink); }
.bl-share-btn svg { width: 18px; height: 18px; flex: none; }
.bl-share-btn svg.icon { width: 17px; height: 17px; }
.bl-share-btn[data-share="wechat"] svg { color: #07C160; }
.bl-share-btn[data-share="telegram"] svg { color: #229ED9; }
.bl-share-btn[data-share="whatsapp"] svg { color: #25D366; }
.bl-count { min-height: 1.4em; margin: 20px 0 14px; font-size: .875rem; color: var(--muted); }
.bl-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.bl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
}
.bl-name { min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.bl-remark {
  flex: none; max-width: 60%; padding: 5px 10px; border-radius: 10px;
  font-size: .75rem; font-weight: 600; line-height: 1.35; text-align: right;
  background: var(--peach); color: var(--rust); overflow-wrap: anywhere;
}
.bl-state { padding: 36px 0; text-align: center; color: var(--muted); }
.bl-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.bl-foot:not(:has(.btn:not([hidden]))) { display: none; }
.bl-dialog {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
  width: min(360px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.bl-dialog::backdrop { background: rgba(26, 14, 8, .55); }
.bl-dialog-body { position: relative; display: grid; justify-items: center; gap: 14px; padding: 32px 24px 24px; text-align: center; }
.bl-dialog-body h3 { font-size: 1.2rem; }
.bl-dialog-hint { font-size: .875rem; color: var(--muted); }
.bl-qr { width: 196px; height: 196px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.bl-dialog-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.bl-dialog-close:hover { background: var(--bg-alt); color: var(--ink); }
.bl-dialog-close .icon { transform: rotate(45deg); }

/* ---------- Markets page ---------- */
.filter-bar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 30;
  background: rgba(251, 248, 244, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.filter-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filter-count { flex: none; font-size: .875rem; color: var(--muted); display: none; }
@media (min-width: 900px) { .filter-count { display: block; } }
.country-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.country-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 90px);
}
.country-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.country-card:target { border-color: var(--rust); box-shadow: 0 0 0 3px var(--peach); }
.cc-head { display: flex; align-items: center; gap: 14px; }
.cc-head .cc-badge { width: 50px; height: 50px; border-radius: 14px; font-size: 1.125rem; }
.cc-name { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.2; font-weight: 500; }
:lang(zh-CN) .cc-name, :lang(zh-TW) .cc-name { font-weight: 600; }
.cc-region { font-size: .8125rem; color: var(--muted); }
.cc-currency {
  margin-left: auto; flex: none;
  font: 600 .75rem/1 var(--font-mono); letter-spacing: .04em;
  padding: 7px 9px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2);
}
.cc-note { font-size: .90625rem; color: var(--muted); }
.cc-label {
  font-family: var(--font-sans);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--tan);
}
:lang(zh-CN) .cc-label, :lang(zh-TW) .cc-label, :lang(th) .cc-label { letter-spacing: .04em; font-size: .8125rem; }
.cc-label .icon { width: 15px; height: 15px; color: var(--rust); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 11px; border-radius: 999px;
  font-size: .8125rem; line-height: 1.3; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line);
}
.chip--strong { background: var(--peach-soft); border-color: var(--peach-strong); color: var(--ink); font-weight: 500; }
.cc-divider { height: 1px; background: var(--line); margin-block: -2px; }
.empty-note { padding: 40px; text-align: center; color: var(--muted); }

.split-cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .split-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 14px; align-content: start;
}
.panel--peach { background: var(--peach); border-color: var(--peach-strong); }
.panel--dark { background: var(--dark); border-color: var(--dark); color: var(--dark-text); }
.panel--dark p { color: var(--dark-muted); }
.panel p { color: var(--muted); max-width: 32rem; }
.panel--peach p { color: var(--ink-2); }
.panel .btn, .panel .text-link { justify-self: start; margin-top: 10px; }
.asset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.asset {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--dark-line);
  font-size: .875rem; font-weight: 500;
}
.asset i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .625rem/1 var(--font-sans); font-style: normal; color: var(--dark);
  background: var(--rust-light);
}

/* ---------- Developers page ---------- */
.qs-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .qs-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; } .qs-grid .code-window { position: sticky; top: calc(var(--header-h) + 32px); } }
.qs-steps { display: grid; gap: 4px; }
.qs-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.qs-step:last-child { border-bottom: 0; }
.qs-step .step-num { position: static; }
.qs-step h3 { font-size: 1.2rem; margin-top: 7px; }
.qs-step p { margin-top: 6px; color: var(--muted); font-size: .96875rem; }
.qs-step code, .inline-code {
  font-family: var(--font-mono); font-size: .8125em;
  padding: 2px 6px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2);
}

.events { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.event {
  font-family: var(--font-mono); font-size: .78rem;
  padding: 7px 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}

.flow-wrap { display: grid; gap: 16px; }
.flow {
  display: grid; gap: 18px; align-items: center;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.flow-title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.flow-title .icon { width: 20px; height: 20px; color: var(--rust); }
.flow-track { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.flow-node {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.flow-node::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.flow-node.is-ok { background: var(--ok-bg); border-color: #C6E0CF; color: var(--ok); }
.flow-node.is-ok::before { background: var(--ok); }
.flow-node.is-bad { background: #FBE9E7; border-color: #F1C9C4; color: var(--err); }
.flow-node.is-bad::before { background: var(--err); }
.flow-node.is-warn { background: var(--warn-bg); border-color: #F0D9B0; color: var(--warn); }
.flow-node.is-warn::before { background: #C0842A; }
.flow-node.is-live { background: var(--peach-soft); border-color: var(--peach-strong); color: var(--rust); }
.flow-node.is-live::before { background: var(--rust); }
.flow-arrow { display: grid; place-items: center; color: var(--line-strong); }
.flow-arrow .icon { width: 20px; height: 20px; transform: rotate(90deg); }
.flow-outcomes { display: grid; gap: 8px; }
@media (min-width: 900px) {
  .flow-track { flex-direction: row; align-items: center; }
  .flow-arrow .icon { transform: none; }
  .flow-track > .flow-node { flex: none; }
  .flow-outcomes { margin-left: 4px; }
}

.int-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .int-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.int-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.int-card .tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: var(--peach); color: var(--rust); }
.int-card h3 { font-size: 1.35rem; }
.int-card p { color: var(--muted); font-size: .96875rem; }
.int-card ul { margin-top: auto; padding-top: 8px; display: grid; gap: 8px; }
.int-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .90625rem; color: var(--ink-2); }
.int-card li .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--rust); stroke-width: 2.2; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; } }
.form-card { padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field .label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--rust); margin-left: 2px; }
.field .hint { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; height: 50px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #A8978B; }
.input:hover { border-color: #CDB8A6; }
.input:focus { outline: none; border-color: var(--rust); background: var(--surface); box-shadow: 0 0 0 4px rgba(184, 74, 18, .12); }
textarea.input { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D5D53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
.field.has-error .input { border-color: var(--err); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.field-error { font-size: .8125rem; color: var(--err); display: none; }
.field.has-error .field-error { display: block; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px; cursor: pointer; user-select: none;
  border: 1px solid var(--line-strong); background: var(--bg);
  font-size: .875rem; color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.check-chip span:hover { border-color: var(--ink-2); }
.check-chip input:checked + span { background: var(--ink); color: #FFF; border-color: var(--ink); }
.check-chip input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.form-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot p { font-size: .8125rem; color: var(--muted); max-width: 26rem; }
.form-alert { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #FBE9E7; color: var(--err); font-size: .875rem; }
.form-success { text-align: center; padding: clamp(24px, 5vw, 56px) 8px; display: grid; justify-items: center; gap: 14px; }
.form-success .badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.form-success .badge .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.form-success h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); }
.form-success p { color: var(--muted); max-width: 30rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-side { display: grid; gap: 16px; }
.side-card { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.side-card .icon-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--peach); color: var(--rust); margin-bottom: 6px; }
.side-card .icon-wrap .icon { width: 20px; height: 20px; }
.side-card .icon-wrap--wa { background: #E3F7EA; color: #1C9E4B; }
.wa-glyph { width: 22px; height: 22px; }
.side-card h3 { font-family: var(--font-sans); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tan); }
:lang(zh-CN) .side-card h3, :lang(zh-TW) .side-card h3, :lang(th) .side-card h3 { letter-spacing: .03em; }
.side-card .big { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.3; }
.side-card a.big:hover { color: var(--rust); }
.side-card p { color: var(--muted); font-size: .9375rem; }
.next-list { display: grid; gap: 14px; margin-top: 8px; counter-reset: n; }
.next-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; font-size: .9375rem; color: var(--ink-2); counter-increment: n; }
.next-list li::before {
  content: counter(n); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 600;
  background: var(--bg-alt); border: 1px solid var(--line-strong); color: var(--ink-2);
}

/* ---------- WhatsApp (header icon) ---------- */
.wa-head {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  color: #1C9E4B;
  transition: background-color .2s, color .2s;
}
.wa-head:hover { background: #E3F7EA; color: #168A40; }
.wa-head svg { width: 21px; height: 21px; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.nf .code-big { font-family: var(--font-serif); font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; color: var(--rust); letter-spacing: -0.04em; }
.nf p { margin-top: 16px; color: var(--muted); }
.nf .hero-ctas { justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
[data-static] .reveal { transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 12px; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee--reverse { display: none; }
  .map-pin::after { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .site-footer, .hero-visual, .rails { display: none !important; }
  body { background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Keep short phrases together (used in CJK headlines) */
.nw { display: inline-block; }
