:root {
  color-scheme: dark;
  --bg: #11140f;
  --paper: #f4efe2;
  --ink: #f9f4e6;
  --muted: #b8af9b;
  --line: rgba(244, 239, 226, 0.16);
  --green: #96ff73;
  --gold: #efc36a;
  --blue: #7aa7ff;
  --red: #ff7f78;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  --radius: 28px;
  font-family: "Space Grotesk", "Aptos Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(150, 255, 115, 0.18), transparent 30%),
    radial-gradient(circle at 78% 0%, rgba(239, 195, 106, 0.18), transparent 26%),
    linear-gradient(135deg, #10130f 0%, #1b2018 45%, #0d0f0c 100%);
  color: var(--ink);
  letter-spacing: -0.02em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 226, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 75%);
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 20, 15, 0.78);
  backdrop-filter: blur(18px);
}
.brand, .topbar nav, .hero-actions, .trust-row, .button-row { display: flex; align-items: center; }
.brand { gap: 12px; font-weight: 900; letter-spacing: 0.01em; }
.brand img { filter: drop-shadow(0 8px 24px rgba(150, 255, 115, 0.24)); }
.topbar nav { gap: clamp(14px, 3vw, 34px); color: var(--muted); font-size: 14px; }
.topbar nav a:hover { color: var(--ink); }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(150, 255, 115, 0.35);
  border-radius: 999px;
  background: rgba(150, 255, 115, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

main { padding: clamp(18px, 4vw, 58px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: stretch;
  min-height: calc(100vh - 128px);
}
.hero-copy, .terminal, .checkout-card, .ops-card, .method-card, .code-card, .result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 76px);
  background: linear-gradient(145deg, rgba(244,239,226,0.09), rgba(244,239,226,0.03));
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 950px;
  margin-bottom: 22px;
  font-family: "Bodoni 72", "Didot", "Georgia", serif;
  font-size: clamp(46px, 8vw, 116px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.075em;
}
h2 {
  margin-bottom: 12px;
  font-family: "Bodoni 72", "Didot", "Georgia", serif;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
h3 { margin-bottom: 8px; font-size: 22px; }
.lead, .section-head p, .ops-card p, .method-card p, .result-card p, .muted { color: var(--muted); line-height: 1.75; }
.lead { max-width: 760px; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.primary-action, .secondary-action, .method-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244,239,226,0.08);
  color: var(--ink);
  font-weight: 900;
}
.primary-action { border-color: rgba(150, 255, 115, 0.6); background: linear-gradient(135deg, var(--green), #d5ffc4); color: #14210f; }
.primary-action.inline { display: inline-flex; width: fit-content; }
.secondary-action:hover, .method-card button:hover { border-color: rgba(244,239,226,0.38); background: rgba(244,239,226,0.13); }
.trust-row { gap: 9px; flex-wrap: wrap; }
.trust-row span, .summary-strip span, .ops-list span, .method-type {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(244,239,226,0.055);
  font-size: 12px;
  font-weight: 800;
}

.terminal {
  overflow: hidden;
  min-height: 560px;
  background: linear-gradient(160deg, rgba(244,239,226,0.14), rgba(244,239,226,0.04)), radial-gradient(circle at 50% 38%, rgba(150,255,115,0.18), transparent 36%);
}
.terminal-top { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.terminal-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.terminal-top span:nth-child(2) { background: var(--gold); }
.terminal-top span:nth-child(3) { background: var(--green); }
.terminal-top strong { margin-left: auto; color: var(--muted); font-size: 13px; }
.route-map { position: relative; min-height: 430px; margin: 18px; border: 1px solid rgba(244,239,226,0.12); border-radius: 24px; background: radial-gradient(circle at center, rgba(244,239,226,0.12), transparent 64%); }
.orbit { position: absolute; inset: 52px; border: 1px dashed rgba(244,239,226,0.22); border-radius: 50%; animation: spin 22s linear infinite; }
.orbit-b { inset: 96px 34px; animation-duration: 32s; animation-direction: reverse; }
.core-node, .pay-node { position: absolute; display: grid; place-items: center; border-radius: 999px; font-weight: 950; }
.core-node { left: 50%; top: 50%; width: 112px; height: 112px; transform: translate(-50%, -50%); background: var(--paper); color: #10130f; font-size: 40px; box-shadow: 0 0 0 12px rgba(244,239,226,0.08), 0 22px 60px rgba(0,0,0,0.3); }
.pay-node { min-width: 96px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); background: rgba(17,20,15,0.82); color: var(--paper); font-size: 13px; }
.node-wechat { left: 10%; top: 18%; color: var(--green); }
.node-alipay { right: 9%; top: 24%; color: var(--blue); }
.node-wise { left: 16%; bottom: 18%; color: var(--green); }
.node-payoneer { right: 8%; bottom: 20%; color: #bd98ff; }
.node-paypal { left: 50%; bottom: 7%; transform: translateX(-50%); color: #84bdff; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 18px 18px; }
.metric-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(244,239,226,0.06); }
.metric-grid small { display: block; color: var(--muted); margin-bottom: 8px; }
.metric-grid strong { color: var(--green); font-size: 20px; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 18px; margin: 54px 0; }
.checkout-card, .ops-card, .code-card { padding: clamp(22px, 4vw, 42px); background: rgba(244,239,226,0.075); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 900; }
input, textarea, select { width: 100%; min-height: 50px; border: 1px solid rgba(244,239,226,0.18); border-radius: 18px; background: rgba(0,0,0,0.22); color: var(--ink); padding: 12px 14px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: rgba(150,255,115,0.75); box-shadow: 0 0 0 4px rgba(150,255,115,0.12); }
textarea { min-height: 120px; resize: vertical; }
.wide { grid-column: 1 / -1; width: 100%; }
.summary-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.ops-list { display: grid; gap: 10px; margin-top: 22px; }
.ops-list span { justify-content: flex-start; border-radius: 16px; min-height: 42px; }

.section { margin: 48px 0; }
.section-head { max-width: 820px; margin-bottom: 22px; }
.method-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.method-card { min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 18px; background: linear-gradient(160deg, rgba(244,239,226,0.1), rgba(244,239,226,0.035)); transition: transform 220ms ease, border-color 220ms ease, background 220ms ease; }
.method-card:hover { transform: translateY(-4px); border-color: rgba(150,255,115,0.35); background: rgba(244,239,226,0.09); }
.method-card.disabled { opacity: 0.52; }
.method-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: var(--paper); color: #11140f; font-weight: 950; }
.method-card button:disabled { cursor: not-allowed; opacity: 0.6; }
.payment-result { margin-top: 18px; }
.result-card.active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: 18px; align-items: center; padding: 22px; background: rgba(244,239,226,0.09); }
.result-card code, .code-card pre { display: block; overflow: auto; padding: 14px; border: 1px solid rgba(150,255,115,0.26); border-radius: 16px; background: rgba(0,0,0,0.32); color: var(--green); font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.pay-qr { width: 100%; max-height: 520px; object-fit: contain; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.button-row { gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.integration { margin: 62px 0 20px; }
.code-card { display: grid; gap: 16px; }
.code-card pre { margin: 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }


.contact-section { margin: 54px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.contact-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(244,239,226,0.11), rgba(244,239,226,0.04));
  box-shadow: var(--shadow);
}
.contact-card a {
  display: inline-flex;
  width: fit-content;
  padding: 10px 13px;
  border: 1px solid rgba(150,255,115,0.32);
  border-radius: 999px;
  color: var(--green);
  background: rgba(150,255,115,0.08);
  font-weight: 950;
}
.contact-card p { color: var(--muted); line-height: 1.7; }
.primary-contact { border-color: rgba(150,255,115,0.32); }
.privacy-card { border-color: rgba(239,195,106,0.28); }

@media (max-width: 1180px) { .method-grid, .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 920px) {
  .topbar { grid-template-columns: 1fr; padding: 14px 18px; }
  .topbar nav { justify-content: space-between; }
  .hero, .checkout-grid { grid-template-columns: 1fr; min-height: auto; }
  .terminal { min-height: 520px; }
  .method-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  main { padding: 16px; }
  h1 { font-size: clamp(42px, 15vw, 64px); line-height: 0.9; }
  .field-grid, .method-grid, .contact-grid, .metric-grid, .result-card.active { grid-template-columns: 1fr; }
  .hero-copy, .checkout-card, .ops-card, .code-card { padding: 22px; border-radius: 22px; }
  .pay-node { min-width: 78px; font-size: 11px; }
  .node-wechat { left: 4%; }
  .node-alipay { right: 4%; }
}
