/* ==========================================================================
   ApeX Payment — design system
   Inspired by Stripe's clarity: navy ink, electric cobalt, hairlines,
   generous whitespace, tight typographic rhythm.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a2540;
  --slate: #425466;
  --muted: #62788f;
  --bg: #ffffff;
  --tint: #f6f9fc;
  --tint-2: #eef3f9;
  --line: #e3e8ef;
  --line-strong: #d3dbe6;

  --brand: #2e5bff;
  --brand-dark: #1d42c8;
  --brand-soft: #edf2ff;
  --green: #0ea47a;
  --green-soft: #e7f7f1;
  --violet: #7a5af8;
  --violet-soft: #f1edff;
  --cyan: #0aa5c2;
  --cyan-soft: #e5f6fa;
  --amber: #b25e09;
  --amber-soft: #fdf1e2;
  --rose: #d63964;

  --dark: #0a2540;
  --dark-2: #061a31;
  --on-dark-muted: #9fb3c8;
  --on-dark-line: rgba(159, 179, 200, 0.18);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --shadow-s: 0 1px 2px rgba(10, 37, 64, 0.07);
  --shadow-m: 0 2px 6px rgba(10, 37, 64, 0.07), 0 14px 34px rgba(10, 37, 64, 0.07);
  --shadow-l: 0 6px 18px rgba(10, 37, 64, 0.1), 0 28px 68px rgba(10, 37, 64, 0.13);

  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans",
    "Helvetica Neue", Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", "Songti SC", "SimSun", serif;
  --mono:
    ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas,
    "Liberation Mono", monospace;

  --header-h: 64px;
  --container: 1080px;
  --container-wide: 1180px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="zh"] body,
html[lang="ja"] body,
html[lang="ko"] body,
html[lang="th"] body {
  line-height: 1.75;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
::selection {
  background: rgba(46, 91, 255, 0.18);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide {
  max-width: var(--container-wide);
}
.section {
  padding: 96px 0;
}
.section--tint {
  background: var(--tint);
}
.section--dark {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
}
.section--dark .eyebrow {
  color: #8fb0ff;
}
.section--dark .lead,
.section--dark .muted {
  color: var(--on-dark-muted);
}
.hairline-top {
  border-top: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--rev > :first-child {
  order: 2;
}
.stack {
  display: grid;
  gap: 16px;
}
.muted {
  color: var(--slate);
}
.small {
  font-size: 14px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.028em;
}
.lead {
  font-size: 18px;
  color: var(--slate);
  line-height: 1.7;
}
.serif-i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}
.btn svg {
  transition: transform 0.18s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(9, 30, 66, 0.22), var(--shadow-s);
}
.btn--primary:hover {
  background: var(--brand-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.btn--ghost:hover {
  background: var(--brand-soft);
}
.btn--navy {
  background: var(--ink);
  color: #fff;
}
.btn--navy:hover {
  background: #123a5e;
}
.btn--on-dark {
  background: #fff;
  color: var(--ink);
}
.btn--on-dark:hover {
  background: #e9efff;
}
.btn--ghost-dark {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8);
}
.btn--lg {
  padding: 15px 26px;
  font-size: 16px;
  border-radius: 7px;
}
.btn--sm {
  padding: 9px 14px;
  font-size: 13.5px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
}
.link-arrow svg {
  transition: transform 0.18s ease;
}
.link-arrow:hover svg {
  transform: translateX(3px);
}
.section--dark .link-arrow,
.cta-band .link-arrow {
  color: #9db9ff;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: #dbe6ff;
  font-size: 13.5px;
  text-align: center;
  padding: 9px 16px;
}
.announce a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.announce .tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 2px 9px;
  margin-right: 10px;
  vertical-align: 1px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo .logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-s);
}
.logo .logo-mark svg {
  width: 16px;
  height: 16px;
}
.logo em {
  font-style: normal;
  color: var(--brand);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 550;
  font-size: 15px;
  background: transparent;
  border: 0;
  transition: background 0.15s ease;
}
.nav-link:hover {
  background: var(--tint-2);
}
.nav-link .caret {
  transition: transform 0.18s ease;
  color: var(--muted);
}
.nav-item {
  position: relative;
}
.nav-item.is-open .nav-link {
  background: var(--tint-2);
}
.nav-item.is-open .caret {
  transform: rotate(180deg);
}
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-l);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}
.nav-item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  transition: background 0.14s ease;
}
.mega-link:hover {
  background: var(--tint);
}
.mega-link .mega-title {
  font-weight: 600;
  font-size: 14.5px;
  display: block;
}
.mega-link .mega-desc {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}
.mega-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding: 12px 12px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.lang-btn:hover {
  background: var(--tint-2);
}
.lang-wrap {
  position: relative;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 216px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-l);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
  max-height: 420px;
  overflow: auto;
}
.lang-wrap.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
}
.lang-menu button:hover {
  background: var(--tint);
}
.lang-menu button.is-active {
  font-weight: 700;
  color: var(--brand);
}
.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink);
}
.burger:hover {
  background: var(--tint-2);
}
.mobile-menu {
  display: none;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 85% -10%, #eef3ff 0%, rgba(255, 255, 255, 0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0 84px;
  position: relative;
}
.hero-copy h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  letter-spacing: -0.035em;
  margin: 18px 0 22px;
}
.hero-copy .lead {
  max-width: 520px;
  font-size: 18.5px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-note svg {
  color: var(--green);
}

/* angled gradient slab + floating product cards */
.hero-visual {
  position: relative;
  min-height: 480px;
}
.slab {
  position: absolute;
  inset: -22% -34% -26% -12%;
  transform: rotate(-12deg);
  border-radius: 40px;
  background:
    radial-gradient(520px 340px at 78% 18%, rgba(122, 90, 248, 0.85) 0%, rgba(122, 90, 248, 0) 60%),
    radial-gradient(600px 420px at 18% 86%, rgba(14, 164, 122, 0.75) 0%, rgba(14, 164, 122, 0) 55%),
    linear-gradient(126deg, #1d42c8 0%, #2e5bff 48%, #6a4df5 100%);
  box-shadow: var(--shadow-l);
}
.slab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(340px 240px at 70% 78%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 38%);
}
.mock-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-l);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 13px;
  color: var(--ink);
}
.mock-pay {
  top: 12%;
  left: 4%;
  width: 264px;
  padding: 16px;
  animation: floaty 7s ease-in-out infinite;
}
.mock-payout {
  right: 0%;
  bottom: 16%;
  width: 300px;
  padding: 0;
  overflow: hidden;
  animation: floaty 8.5s ease-in-out 0.8s infinite;
}
.mock-usdc {
  right: 14%;
  top: 4%;
  width: 258px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  animation: floaty 6.4s ease-in-out 0.4s infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 10px;
}
.mock-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 8px;
  border-radius: 99px;
}
.mock-amount {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.mock-sub {
  color: var(--muted);
  font-size: 12.5px;
}
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--tint-2);
}
.mock-row:last-child {
  border-bottom: 0;
}
.mock-row .who {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}
.mock-row .who small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.mock-row .amt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
}
.avatar--teal {
  background: var(--cyan);
}
.avatar--green {
  background: var(--green);
}
.avatar--violet {
  background: var(--violet);
}
.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 3px 7px;
}
.mock-progress {
  height: 5px;
  background: var(--tint-2);
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.mock-progress i {
  display: block;
  height: 100%;
  width: 64%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), #35d49a);
}

/* ---------- Marquee of methods ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 6px 0;
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.pm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 650;
  font-size: 13.5px;
  color: var(--ink);
  box-shadow: var(--shadow-s);
  white-space: nowrap;
}
.pm-chip i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--brand);
  opacity: 0.55;
}
.pm-chip--g i {
  background: var(--green);
}
.pm-chip--v i {
  background: var(--violet);
}
.pm-chip--c i {
  background: var(--cyan);
}
.pm-chip--a i {
  background: #e8a33d;
}

/* ---------- Cards & grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.card h3 {
  font-size: 18.5px;
  margin: 16px 0 8px;
}
.card p {
  color: var(--slate);
  font-size: 15px;
}
.card .link-arrow {
  margin-top: 18px;
  font-size: 14.5px;
}
.icon-chip {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.icon-chip--green {
  background: var(--green-soft);
  color: var(--green);
}
.icon-chip--violet {
  background: var(--violet-soft);
  color: var(--violet);
}
.icon-chip--cyan {
  background: var(--cyan-soft);
  color: var(--cyan);
}
.icon-chip--amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.card--dark {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--on-dark-line);
  color: #fff;
}
.card--dark p {
  color: var(--on-dark-muted);
}
.card--dark:hover {
  border-color: rgba(159, 179, 200, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

/* ---------- Steps ---------- */
.step {
  position: relative;
  padding-top: 18px;
}
.step::before {
  content: attr(data-step);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
}
.step::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--line-strong);
  margin: 12px 0 16px;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step p {
  color: var(--slate);
  font-size: 15px;
}

/* ---------- Check list ---------- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--slate);
  font-size: 15.5px;
}
.check-list li strong {
  color: var(--ink);
  font-weight: 650;
}
.check-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}

/* ---------- Code window ---------- */
.code-window {
  background: var(--dark);
  border-radius: 14px;
  box-shadow: var(--shadow-l);
  overflow: hidden;
  border: 1px solid rgba(159, 179, 200, 0.16);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--on-dark-line);
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(159, 179, 200, 0.25);
}
.code-file {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--on-dark-muted);
}
.code-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.code-tab {
  background: transparent;
  border: 0;
  color: var(--on-dark-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
}
.code-tab:hover {
  color: #fff;
}
.code-tab.is-active {
  background: rgba(159, 179, 200, 0.16);
  color: #fff;
}
.copy-btn {
  background: transparent;
  border: 0;
  color: var(--on-dark-muted);
  padding: 5px 8px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
}
.copy-btn:hover {
  color: #fff;
  background: rgba(159, 179, 200, 0.14);
}
.code-window pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #dbe6ff;
}
.code-window pre code {
  font-family: inherit;
}
.tk-c {
  color: #5b7a99;
}
.tk-k {
  color: #8fb0ff;
}
.tk-s {
  color: #7ce2a9;
}
.tk-p {
  color: #ffc66d;
}
.tk-f {
  color: #c4b5fd;
}

/* ---------- Stats ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat b {
  display: block;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--muted);
  font-size: 14.5px;
}
.section--dark .stat span {
  color: var(--on-dark-muted);
}

/* ---------- Tables ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #fff;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--tint);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--slate);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover td {
  background: var(--tint);
}
.table td b {
  color: var(--ink);
  font-weight: 650;
}
.pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 99px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
}
.pill--licensed {
  background: var(--green-soft);
  color: var(--green);
}
.pill--live {
  background: var(--brand-soft);
  color: var(--brand);
}
.pill--soon {
  background: var(--amber-soft);
  color: var(--amber);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .faq-x {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--tint-2);
  color: var(--slate);
  transition: transform 0.2s ease;
}
.faq details[open] .faq-x {
  transform: rotate(45deg);
  background: var(--brand-soft);
  color: var(--brand);
}
.faq .faq-a {
  padding: 0 4px 22px;
  color: var(--slate);
  max-width: 760px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
  background:
    radial-gradient(600px 300px at 88% -20%, rgba(122, 90, 248, 0.7) 0%, rgba(122, 90, 248, 0) 60%),
    radial-gradient(520px 300px at -8% 120%, rgba(14, 164, 122, 0.55) 0%, rgba(14, 164, 122, 0) 55%),
    linear-gradient(120deg, #123a8f 0%, #2e5bff 100%);
  box-shadow: var(--shadow-l);
}
.cta-band h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  max-width: 640px;
}
.cta-band p {
  color: #cdd9ff;
  max-width: 560px;
  margin-top: 12px;
}
.cta-band .hero-ctas {
  margin-top: 28px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 340px at 88% -30%, #eef3ff 0%, rgba(255, 255, 255, 0) 60%),
    var(--bg);
}
.page-hero .container {
  padding-top: 72px;
  padding-bottom: 64px;
  max-width: 860px;
}
.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.033em;
  margin-bottom: 18px;
}
.page-hero .lead {
  max-width: 640px;
}
.page-hero .hero-ctas {
  margin-top: 28px;
}

/* ---------- Feature rows with mini visuals ---------- */
.mini-visual {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px;
  display: grid;
  gap: 12px;
}
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  box-shadow: var(--shadow-s);
}
.mini-row b {
  font-weight: 650;
}
.mini-row small {
  color: var(--muted);
  display: block;
  font-size: 12.5px;
}

/* ---------- Pricing ---------- */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card .price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0 2px;
}
.price-card .price small {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.price-card .per {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}
.price-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--slate);
}
.price-card ul li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.price-card ul svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}
.price-card .btn {
  margin-top: auto;
}
.price-card--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-m);
}
.price-flag {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 4px 12px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 13px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  width: 100%;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.16);
}
.form-status {
  display: none;
  background: var(--green-soft);
  border: 1px solid rgba(14, 164, 122, 0.35);
  color: #08674d;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14.5px;
  margin-top: 18px;
}
.form-status.is-visible {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}
.footer-brand p {
  max-width: 300px;
  margin-top: 14px;
  font-size: 13.5px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: var(--on-dark-muted);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid var(--on-dark-line);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.social-row {
  display: flex;
  gap: 8px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--on-dark-muted);
  background: rgba(159, 179, 200, 0.1);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.social-row a:hover {
  background: rgba(159, 179, 200, 0.22);
  color: #fff;
}
.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--on-dark-muted);
  border: 1px solid var(--on-dark-line);
  border-radius: 6px;
  padding: 4px 9px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track,
  .mock-card {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 404 ---------- */
.error-hero {
  text-align: center;
  padding: 130px 24px 150px;
}
.error-hero h1 {
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--brand), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 56px 0 72px;
  }
  .hero-visual {
    min-height: 420px;
  }
  .split,
  .split--rev {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split--rev > :first-child {
    order: 0;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .stat-band {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .header-actions .btn--ghost,
  .header-actions .btn--navy {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .mobile-menu {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 99;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-l);
    padding: 10px 24px 22px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease,
      visibility 0.2s;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }
  .mobile-menu.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .mobile-menu a,
  .mobile-menu .mobile-menu-head {
    display: block;
    padding: 13px 2px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--tint-2);
    font-size: 16px;
  }
  .mobile-menu .mobile-menu-ctas {
    display: flex;
    gap: 12px;
    margin-top: 18px;
  }
  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 72px 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }
  .stat-band {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .mock-pay {
    left: 0;
  }
  .mock-usdc {
    right: 0;
  }
}

/* ---------- Addendum: components used across inner pages ---------- */
[id] {
  scroll-margin-top: 88px;
}
.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #dbe6ff;
  border: 1px solid var(--on-dark-line);
  background: rgba(159, 179, 200, 0.08);
  border-radius: 99px;
  padding: 6px 13px;
}
.chain-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, #7ce2a9, #35d49a);
}
.footer-disclaimer {
  max-width: 820px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(159, 179, 200, 0.66);
  padding-bottom: 26px;
}
.footer-rights {
  color: rgba(159, 179, 200, 0.75);
}
.site-footer .logo {
  color: #fff;
}
.site-footer .logo em {
  color: #9db9ff;
}
.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: 28px;
  display: grid;
  gap: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--violet));
  border-radius: 2px;
  opacity: 0.35;
}
.tl-item {
  position: relative;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 99px;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: var(--shadow-s);
}
.tl-year {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.06em;
}
.tl-item h3 {
  font-size: 17px;
  margin: 4px 0 6px;
}
.tl-item p {
  color: var(--slate);
  font-size: 15px;
  max-width: 560px;
}
.legal-note {
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--slate);
  max-width: 820px;
}
.legal-body {
  max-width: 800px;
}
.legal-body h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
}
.legal-body h3 {
  font-size: 16.5px;
  margin: 26px 0 8px;
}
.legal-body p,
.legal-body li {
  color: var(--slate);
  font-size: 15px;
}
.legal-body ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}
.legal-body .lead {
  margin-top: 8px;
}
.aside-card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px;
  display: grid;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 96px;
}
.aside-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.aside-value {
  font-weight: 650;
  color: var(--ink);
  font-size: 15px;
}
@media (max-width: 860px) {
  .aside-card {
    position: static;
  }
}

/* ---------- Contact page layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
