/* TokenPe home page. Paper stock, RampPay engraving, and one magenta accent.
   Display and mono faces are copied from the RampPay site (assets/fonts/).
   The legal pages keep using css/styles.css. */

@font-face {
  font-family: "Die Grotesk C";
  src: url("../assets/fonts/die-grotesk-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Die Grotesk C";
  src: url("../assets/fonts/die-grotesk-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("../assets/fonts/host-grotesk.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../assets/fonts/fragment-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fefefe;
  --surface: #f6f3ef;
  --surface-2: #ebe6e0;
  --ink: #1e1e1e;
  --ink-2: #3a3532;
  --muted: #6d6762;
  --faint: #c9c2ba;
  --line: #e6e0d8;
  --blue: #d45bb6;
  --blue-deep: #b43a96;
  --blue-soft: #fdeef8;
  --green: #03aa5c;
  --sage: #abbab9;
  --pink: #f386a1;
  --teal: #09aea1;
  --paper: #f7f3ee;
  --radius: 20px;
  --ease: cubic-bezier(0.12, 0.23, 0.5, 1);
  --header-h: 96px;
  --font: "Host Grotesk", "Geist", Inter, "Segoe UI", system-ui, sans-serif;
  --display: "Die Grotesk C", "Host Grotesk", "Geist", sans-serif;
  --mono: "Fragment Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .15 0 0 0 0 .11 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--paper-grain);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: #fff; }
body.modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.container { width: min(1300px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 140px 0; }
#covered, .faq, .usecases { background: var(--paper); }
.settle { background: #fff; }
#integrate { background: #f3f6f5; }

/* ---------- Type ---------- */
.display, .display-md, .hero-title, .brand, .cover-title, .product-card h3, .note-title, .use-item h3, .ramp-out-value, .ramp-field input {
  font-family: var(--display);
}
.display, .display-md {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.display { font-size: clamp(44px, 6.3vw, 90px); line-height: 1; }
.display-md { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }
.lede { margin: 20px 0 0; font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* Headline words fill from grey to ink as they scroll in (js/motion.js). */
[data-reveal-words] .w { color: var(--faint); transition: color 0.45s ease; }
[data-reveal-words] .w.is-lit { color: var(--ink); }

/* ---------- Pills (buttons) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}
.pill:active { transform: scale(0.97); }
.pill:disabled { opacity: 0.6; cursor: default; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #2c2c33; }
.pill-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill-light:hover { background: var(--surface); }
.pill-glass {
  background: rgba(255, 255, 255, 0.78); color: var(--ink);
  -webkit-backdrop-filter: blur(17px); backdrop-filter: blur(17px);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 40, 0.06), 0 6px 20px rgba(20, 20, 60, 0.05);
}
.pill-glass:hover { background: #fff; }
.pill-blue { background: var(--blue); color: #fff; }
.pill-blue:hover { background: var(--blue-deep); }
.pill-lg { height: 62px; padding: 0 32px; font-size: 18px; }
.pill-sm { height: 40px; padding: 0 16px; font-size: 14px; }

.arrow {
  flex: none; display: grid; place-items: center; text-decoration: none;
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: var(--blue); color: #fff;
  transition: transform 0.45s var(--ease), background-color 0.25s ease;
}
.arrow svg { width: 20px; height: 20px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- Header ---------- */
.sticky-wrap { position: fixed; inset: 0 0 auto; z-index: 60; padding-top: 18px; pointer-events: none; }
.nav { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 22px; border-radius: 999px;
  font-size: 22px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; color: var(--ink);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.scrolled .brand {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(17px); backdrop-filter: blur(17px);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 40, 0.06), 0 8px 24px rgba(20, 20, 60, 0.06);
}
.nav-links {
  display: flex; align-items: center; gap: 2px; margin: 0 auto;
  height: 60px; padding: 0 8px; border-radius: 999px;
  background: var(--surface);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.scrolled .nav-links {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(17px); backdrop-filter: blur(17px);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 40, 0.06), 0 8px 24px rgba(20, 20, 60, 0.06);
}
.nav-link, .menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-2); font-size: 16px; font-weight: 500; text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover, .menu-btn:hover, .menu:focus-within .menu-btn { color: var(--ink); background: rgba(20, 20, 40, 0.05); }
.caret { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 5;
  display: grid; gap: 2px; min-width: 300px; padding: 8px;
  background: #fff; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 20, 60, 0.12);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.menu-panel a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; text-decoration: none; transition: background-color 0.2s ease; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--surface); }
.menu-panel strong { font-size: 15px; font-weight: 600; }
.menu-panel span { font-size: 13.5px; color: var(--muted); }
@media (min-width: 981px) {
  .menu:hover .menu-panel, .menu:focus-within .menu-panel {
    opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
  }
  .menu:hover .caret, .menu:focus-within .caret { transform: rotate(180deg); }
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .pill { height: 60px; padding: 0 28px; font-size: 17px; }
.nav-mobile-only { display: none; }
.burger {
  display: none; position: relative; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(17px); backdrop-filter: blur(17px);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 40, 0.08);
}
.burger span:not(.sr-only) {
  position: absolute; left: 16px; right: 16px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.burger span:nth-child(1) { top: 21px; }
.burger span:nth-child(2) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 25px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 25px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: 12px;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(58% 52% at 86% 22%, rgba(212, 91, 182, 0.2), transparent 64%),
    radial-gradient(55% 48% at 8% 88%, rgba(171, 186, 185, 0.55), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(780px, 78vw);
  height: min(780px, 78vw);
  right: -12%;
  top: 6%;
  pointer-events: none;
  opacity: 0.08;
  background: var(--ink);
  -webkit-mask: url("../assets/rampay/guilloche.svg") center / contain no-repeat;
  mask: url("../assets/rampay/guilloche.svg") center / contain no-repeat;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 420px);
  align-items: center;
  gap: 40px 72px;
  min-height: min(640px, calc(100svh - var(--header-h) - 48px));
  padding-top: 12px;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero-copy {
  min-width: 0;
  max-width: 38em;
  text-align: left;
  justify-self: start;
}
.hero-title {
  margin: 0; font-weight: 500; font-size: clamp(44px, 5vw, 76px); line-height: 0.88; letter-spacing: -0.055em;
}
.hero-title-lg {
  font-size: clamp(52px, 6.2vw, 92px);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.08em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; }
.hero-lede { margin: 24px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--muted); max-width: 36ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* One orchestrated entrance: lines rise, then copy and the visual settle in. */
.js .hero-title .line > span { transform: translateY(108%); transition: transform 1.1s var(--ease); }
.js .hero-title .line + .line > span { transition-delay: 0.08s; }
.js .hero-title .line + .line + .line > span { transition-delay: 0.16s; }
.js .hero-title .line + .line + .line + .line > span { transition-delay: 0.24s; }
.js .hero-lede, .js .hero-actions, .js .hero-visual { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease 0.35s, transform 0.9s var(--ease) 0.35s; }
.js .hero-actions { transition-delay: 0.45s; }
.js .hero-visual { transition-delay: 0.55s; }
.js .is-in .hero-title .line > span,
.js .is-in .hero-lede, .js .is-in .hero-actions, .js .is-in .hero-visual { opacity: 1; transform: none; }

.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 400px;
}
.hero-skyline {
  position: relative;
  z-index: 0;
  height: clamp(90px, 13vw, 200px);
  margin-top: calc(clamp(28px, 4vw, 72px) * -1);
  pointer-events: none;
  background: linear-gradient(to top, #c9b7c2, #f4e7ef);
  -webkit-mask: url("../assets/rampay/skyline.webp") center bottom / auto 100% repeat-x;
  mask: url("../assets/rampay/skyline.webp") center bottom / auto 100% repeat-x;
}

/* ---------- Hero checkout widget ---------- */
.ramp {
  position: relative;
  isolation: isolate;
  padding: 28px 8px 8px;
}
.ramp-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ramp-orb {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(30, 20, 40, 0.12);
}
.ramp-orb img { width: 100%; height: 100%; object-fit: cover; }
.orb-btc { width: 56px; height: 56px; left: -18px; top: 86px; }
.orb-eth { width: 48px; height: 48px; left: -8px; bottom: 72px; opacity: 0.92; }
.orb-sol { width: 40px; height: 40px; right: -6px; top: 64px; opacity: 0.78; filter: blur(0.2px); }
.orb-trx { width: 44px; height: 44px; right: -14px; bottom: 108px; }
.orb-sui { width: 32px; height: 32px; left: 18px; top: 28px; opacity: 0.55; filter: blur(0.6px); }
@media (prefers-reduced-motion: no-preference) {
  .ramp-orb { animation: orb-float 7.5s ease-in-out infinite; }
  .orb-eth { animation-duration: 8.6s; animation-delay: -1.4s; }
  .orb-sol { animation-duration: 6.8s; animation-delay: -2.2s; }
  .orb-trx { animation-duration: 9.2s; animation-delay: -0.8s; }
  .orb-sui { animation-duration: 7.1s; animation-delay: -3s; }
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.ramp-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 40, 0.06), 0 10px 28px rgba(20, 20, 50, 0.08);
}
.ramp-tabs button {
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.ramp-tabs button[aria-selected="true"] {
  background: #fff; color: var(--ink);
  box-shadow: 0 4px 12px rgba(20, 20, 40, 0.08);
}

.ramp-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 16px 16px 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 20, 50, 0.12), 0 0 0 1px rgba(20, 20, 40, 0.04);
}
.ramp-field, .ramp-pay-btn {
  position: relative;
  border-radius: 16px;
  background: var(--surface);
}
.ramp-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 10px;
  min-height: 76px;
  padding: 12px 12px 12px 16px;
}
.ramp-field-out { min-height: 92px; padding-bottom: 14px; }
.ramp-field-main { min-width: 0; }
.ramp-kicker, .ramp-field label {
  display: block; margin: 0; font-size: 13px; font-weight: 500; color: var(--muted);
}
.ramp-field input, .ramp-out-value {
  display: block; width: 100%; margin: 2px 0 0; padding: 0; border: 0; background: transparent;
  font-size: 28px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.15; color: var(--ink);
}
.ramp-field input { min-width: 0; }
.ramp-field input:focus { outline: none; }
.ramp-field input::selection { background: var(--blue-soft); color: var(--ink); }
.ramp-chip, .ramp-pay-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 10px 0 8px; border: 0; border-radius: 12px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.ramp-chip { justify-self: end; }
.ramp-chip:hover, .ramp-pay-btn:hover, .ramp-chip[aria-expanded="true"], .ramp-pay-btn[aria-expanded="true"] {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.ramp-chip svg, .ramp-pay-btn svg { width: 12px; height: 12px; color: var(--muted); }
.ramp-ic {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: center / cover no-repeat;
}
.ramp-ic[data-ic="BTC"] { background-image: url("../assets/networks/btc.svg"); }
.ramp-ic[data-ic="ETH"] { background-image: url("../assets/networks/eth.svg"); }
.ramp-ic[data-ic="SOL"] { background-image: url("../assets/networks/sol.svg"); }
.ramp-ic[data-ic="TRX"] { background-image: url("../assets/networks/trx.svg"); }
.ramp-ic[data-ic="SUI"] { background-image: url("../assets/networks/sui.svg"); }
.ramp-ic[data-ic="USDC"] { background: #2775ca; }
.ramp-ic[data-ic="USDT"] { background: #26a17b; }
.ramp-ic[data-ic="USD"] { background: #1e1e1e; }
.ramp-ic[data-ic="EUR"] { background: #003399; }
.ramp-ic[data-ic="GBP"] { background: #c8102e; }
.ramp-ic[data-ic="INR"] { background: #ff9933; }
.ramp-ic[data-ic="USDC"]::after, .ramp-ic[data-ic="USDT"]::after,
.ramp-ic[data-ic="USD"]::after, .ramp-ic[data-ic="EUR"]::after,
.ramp-ic[data-ic="GBP"]::after, .ramp-ic[data-ic="INR"]::after {
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
.ramp-ic[data-ic="USDC"]::after, .ramp-ic[data-ic="USD"]::after { content: "$"; }
.ramp-ic[data-ic="USDT"]::after { content: "₮"; }
.ramp-ic[data-ic="EUR"]::after { content: "€"; }
.ramp-ic[data-ic="GBP"]::after { content: "£"; }
.ramp-ic[data-ic="INR"]::after { content: "₹"; }
.ramp-net {
  grid-column: 2; justify-self: end;
  display: inline-flex; align-items: center; gap: 5px;
  margin: -4px 2px 0 0; font-size: 11.5px; color: var(--muted);
}
.ramp-net img { width: 14px; height: 14px; border-radius: 50%; }

.ramp-pay { display: grid; gap: 8px; padding: 4px 2px 0; }
.ramp-pay-btn { width: 100%; height: 52px; padding: 0 14px; border-radius: 14px; text-align: left; }
.ramp-pay-ic {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d45bb6' d='M4 8h16v2H4zm2 4h12v8H6z'/%3E%3Cpath fill='%23d45bb6' d='M8 6h8l1 2H7z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ramp-pay-copy { display: grid; gap: 1px; flex: 1; min-width: 0; }
.ramp-pay-copy b { font-size: 14.5px; font-weight: 600; }
.ramp-pay-copy em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); }
.ramp[data-mode="offramp"] .ramp-pay-ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d45bb6' d='M4 10h16v8H4zm2-4h12l2 4H4z'/%3E%3C/svg%3E");
}
.ramp[data-mode="convert"] .ramp-pay-ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23d45bb6' stroke-width='1.8' d='M7 8h10M17 8l-2.5-2.5M17 8l-2.5 2.5M17 16H7M7 16l2.5-2.5M7 16l2.5 2.5'/%3E%3C/svg%3E");
}

.ramp-menu {
  position: absolute; z-index: 4; top: calc(100% + 6px); right: 8px;
  display: grid; gap: 2px; min-width: 196px; max-height: 240px; overflow: auto;
  padding: 6px; border-radius: 14px; background: #fff;
  box-shadow: 0 18px 40px rgba(20, 20, 50, 0.16), inset 0 0 0 1px var(--line);
}
.ramp-menu-pay { left: 0; right: 0; min-width: 0; }
.ramp-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; font-size: 14px; font-weight: 600; text-align: left;
}
.ramp-menu button:hover, .ramp-menu button[aria-selected="true"] { background: var(--surface); }
.ramp-menu .ramp-ic { width: 20px; height: 20px; }
.ramp-menu span { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }

.ramp-cta {
  display: grid; place-items: center; width: 100%; height: 52px; margin-top: 4px;
  border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  font-size: 15.5px; font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s var(--ease);
}
.ramp-cta.is-ready { background: var(--ink); color: #fff; }
.ramp-cta.is-ready:hover { background: #2c2c33; }
.ramp-cta:active { transform: scale(0.98); }
.ramp-cta:disabled { cursor: default; }
.ramp-quote { margin: 2px 2px 0; font-size: 12px; color: var(--muted); text-align: center; min-height: 1.2em; }

.ramp-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 4px 6px 2px; color: var(--muted); font-size: 12px;
}
.ramp-foot p { margin: 0; }
.ramp-foot b { font-weight: 600; color: var(--ink-2); }
.ramp-help {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 500;
}
.ramp-help svg { width: 14px; height: 14px; }
.ramp-help:hover { color: var(--ink); }
.ramp-help-panel {
  padding: 10px 12px; border-radius: 12px; background: var(--surface);
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2);
}
.ramp-help-panel a { color: var(--blue-deep); text-underline-offset: 2px; }
.logo-strip { padding: 30px 0; border-top: 1px solid var(--line); }
.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); }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.marquee .word { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #9a9aa6; white-space: nowrap; }
.logo-strip .net-ic { --c: #a9a9b4 !important; width: 32px; height: 32px; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Products ---------- */
.split-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.split-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; justify-self: end; }
.cover-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.cover-card {
  position: relative; grid-column: span 2; overflow: hidden; overflow: clip;
  display: flex; flex-direction: column; text-align: left;
  min-height: 460px; padding: 32px 36px; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cover-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(20, 20, 60, 0.08); }
.cover-card:hover .arrow, .product-card .arrow:hover, .cover-card:focus-visible .arrow { transform: rotate(45deg); }
.cover-ramp, .cover-bank { grid-column: span 3; min-height: 600px; }
.cover-globe { grid-column: 1 / -1; min-height: 320px; }
.cover-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cover-title { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 2.2vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.cover-ramp .cover-title, .cover-bank .cover-title { font-size: clamp(30px, 2.9vw, 42px); }
.cover-body { display: block; margin-top: 16px; max-width: 34ch; font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.cv { position: relative; display: block; margin: auto -36px -32px; padding: 32px 36px; }

.cover-bank {
  color: #fff;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(243, 134, 161, 0.5), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgba(212, 91, 182, 0.42), transparent 60%),
    linear-gradient(160deg, #2c2c2c 0%, #1e1e1e 48%, #141414 100%);
}
.cover-bank .cover-body { color: rgba(255, 255, 255, 0.84); }
.cover-bank .arrow { background: #fff; color: var(--blue); }

/* Crypto payments: stacked settlement rows over a blue swirl. */
.cv-stack { display: flex; flex-direction: column; align-items: center; min-height: 300px; justify-content: flex-end; }
.cv-swirl {
  position: absolute; inset: 0;
  background:
    repeating-radial-gradient(circle at 30% 150%, transparent 0 22px, rgba(255, 255, 255, 0.5) 23px 24px),
    radial-gradient(60% 60% at 25% 110%, rgba(212, 91, 182, 0.9), transparent 70%),
    radial-gradient(55% 55% at 85% 115%, rgba(171, 186, 185, 0.85), transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 90%); mask-image: linear-gradient(to top, #000 35%, transparent 90%);
}
.stk {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  width: 86%; padding: 16px 20px; border-radius: 16px;
  background: #fff; box-shadow: 0 18px 40px rgba(20, 20, 70, 0.12);
  transition: transform 0.6s var(--ease);
}
.stk-2 { width: 78%; margin-top: 8px; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stk-3 { width: 70%; margin-top: 8px; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cover-card:hover .stk-1 { transform: translateY(-6px); }
.cover-card:hover .stk-2 { transform: translateY(-3px); }
.stk-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.stk-t { display: grid; gap: 2px; }
.stk-t b { font-size: 17px; font-weight: 600; white-space: nowrap; }
.stk-t em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--green); }
.stk-v { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* Off-ramp: a flow from balance through TokenPe to bank accounts. */
.cv-flow { min-height: 320px; }
.cv-flow > svg { position: absolute; inset: 32px 36px; width: calc(100% - 72px); height: calc(100% - 64px); overflow: visible; }
.cv-flow > svg path { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.fl-node {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 15px; font-weight: 500; color: #fff; transform: translateX(-50%);
}
.fl-node i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--blue); }
.fl-node i svg { width: 12px; height: 12px; }
.fl-a { left: calc(36px + (100% - 72px) * 0.27); top: 32px; }
.fl-b { left: calc(36px + (100% - 72px) * 0.73); top: 32px; }
.fl-c, .fl-d, .fl-e { bottom: 28px; font-size: 14px; }
.fl-c { left: calc(36px + (100% - 72px) * 0.18); }
.fl-d { left: calc(36px + (100% - 72px) * 0.5); }
.fl-e { left: calc(36px + (100% - 72px) * 0.82); }
.fl-hub {
  position: absolute; left: 50%; top: calc(32px + (100% - 64px) * 0.49); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06), 0 0 50px rgba(255, 255, 255, 0.25);
  color: #fff;
}
.fl-hub { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }

/* 11 networks: two rows of network coins drifting in opposite directions. */
.cv-orbs { display: grid; gap: 12px; padding-top: 24px; }
.orbs-row { display: block; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.orbs-track { display: flex; gap: 12px; width: max-content; animation: orbs 26s linear infinite; }
.orbs-row + .orbs-row .orbs-track { animation-direction: reverse; animation-duration: 30s; }
@keyframes orbs { to { transform: translateX(calc(-100% / 3)); } }
.orb {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; flex: none;
  background: #fff; color: var(--c); font-size: 14px; font-weight: 700;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 22%, #fff), 0 8px 18px rgba(20, 20, 60, 0.06);
}
.cv-checks { display: grid; gap: 8px; }
.cv-institution { min-height: 250px; }
.cv-institution img { position: absolute; right: -6%; bottom: -4%; width: 82%; max-width: 360px; height: auto; transition: transform 0.8s var(--ease); }
.cover-card:hover .cv-institution img { transform: translateY(-6px); }
.cv-institution .cv-checks { position: relative; z-index: 1; width: min(250px, 82%); gap: 6px; }
.cv-institution .ck { padding: 10px 12px; font-size: 14px; background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(20, 20, 70, 0.08); }
.ck { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: #fff; font-size: 15.5px; font-weight: 500; }
.ck i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e4f8ec; color: var(--green); flex: none; }
.ck i svg { width: 13px; height: 13px; }
.cv-soon { display: grid; gap: 8px; }
.soon-pill { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.soon-field { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff; opacity: 0.75; }
.soon-field small { font-size: 14px; color: var(--muted); }
.soon-field b { font-size: 17px; font-weight: 600; }

/* ---------- Settle ---------- */
.settle { padding-top: 96px; padding-bottom: 96px; }
.settle-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px 64px;
  align-items: end;
}
.settle-head .lede { margin: 0; }
.mark-rail {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 12px;
  margin: 48px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mark-rail li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  width: 76px;
}
.mark-rail img { width: 40px; height: 40px; border-radius: 50%; }
.mark-rail span { font-size: 12.5px; line-height: 1.25; text-align: center; color: var(--muted); }
.settle-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin-top: 40px;
}
.settle-cols h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 2vw, 32px);
  letter-spacing: -0.03em;
}
.settle-cols p { margin: 0; max-width: 32ch; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.fine { margin: 28px 0 0; max-width: 68ch; font-size: 13.5px; color: var(--muted); }
.fine.callout {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 36px; padding: 14px 16px; border-radius: 14px;
  background: #fff6e8; color: #6b4a12; border: 1px solid #f0d7a8;
}
.fine.callout svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* ---------- Two products ---------- */
.center-head { text-align: center; max-width: 860px; margin: 0 auto 64px; display: flex; flex-direction: column; align-items: center; }
.center-head .tag { margin-bottom: 22px; }
.center-head .lede { margin-left: auto; margin-right: auto; }
.integrate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 36px; border-radius: var(--radius); background: var(--surface);
}
.product-card header { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; }
.product-card h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(30px, 3vw, 42px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.product-card .sub { margin: 14px 0 22px; font-size: 20px; color: var(--ink-2); }
.checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 16.5px; color: var(--ink-2); }
.checks svg { flex: none; margin-top: 4px; color: var(--blue); }
.product-card > :nth-last-child(2) { margin-bottom: 36px; }
.small-print { margin: 14px 0 0; max-width: 48ch; font-size: 13px; color: var(--muted); }
.product-card::after {
  content: ""; position: absolute; z-index: -1; right: -18%; bottom: -14%; width: 85%; height: 62%;
  background:
    repeating-radial-gradient(circle at 70% 120%, transparent 0 24px, rgba(255, 255, 255, 0.55) 25px 26px),
    radial-gradient(55% 60% at 60% 100%, var(--s1), transparent 70%),
    radial-gradient(45% 50% at 95% 70%, var(--s2), transparent 70%);
}
.tone-blue { --s1: rgba(212, 91, 182, 0.85); --s2: rgba(243, 134, 161, 0.8); }
.tone-orange { --s1: rgba(9, 174, 161, 0.8); --s2: rgba(171, 186, 185, 0.9); }
.widget {
  align-self: stretch; display: grid; gap: 12px; margin-top: auto; padding: 16px;
  border-radius: 22px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(20, 20, 70, 0.10);
  transition: transform 0.6s var(--ease);
}
.widget.is-tilt { transform: translateY(-4px) rotate(-0.6deg); }
.w-field { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(243, 243, 247, 0.85); }
.w-field label { display: block; font-size: 14px; color: var(--muted); }
.w-value { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.03em; }
.w-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.w-chip svg { width: 12px; height: 12px; }
.w-note { margin: 0 4px; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.w-cta { display: grid; place-items: center; height: 54px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; }
button.w-cta:hover { background: #2c2c33; }

/* ---------- Use cases ---------- */
.use-lede {
  margin: -28px 0 48px;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.use-unified {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.use-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 10% 0%, rgba(79, 108, 255, 0.08), transparent 60%), radial-gradient(140% 120% at 100% 100%, rgba(20, 20, 60, 0.04), transparent 70%), #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.use-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(20, 20, 60, 0.1), inset 0 0 0 1px var(--line);
}
.use-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.use-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.use-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.use-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.use-steps {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.use-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.use-steps li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Accept: product grid ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bento-card {
  display: flex; flex-direction: column; overflow: hidden; overflow: clip;
  padding: 34px 36px 0; border-radius: var(--radius); background: var(--surface);
}
.bento-card h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.bento-card > p { margin: 12px 0 0; max-width: 42ch; font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.glass-stage { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; min-height: 300px; margin: 28px -36px 0; padding: 28px 36px 36px; }
.glass-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-radial-gradient(circle at 70% 135%, transparent 0 26px, rgba(255, 255, 255, 0.5) 27px 28px),
    radial-gradient(70% 70% at 85% 105%, var(--s1), transparent 70%),
    radial-gradient(60% 60% at 15% 115%, var(--s2), transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 92%); mask-image: linear-gradient(to top, #000 30%, transparent 92%);
}
.swirl-blue { --s1: rgba(29, 75, 255, 0.85); --s2: rgba(120, 155, 255, 0.75); }
.swirl-violet { --s1: rgba(124, 77, 255, 0.75); --s2: rgba(255, 128, 200, 0.6); }
.swirl-teal { --s1: rgba(16, 196, 166, 0.65); --s2: rgba(29, 75, 255, 0.55); }
.swirl-orange { --s1: rgba(255, 118, 26, 0.8); --s2: rgba(255, 196, 120, 0.75); }
.glass {
  position: relative; width: min(400px, 100%); padding: 16px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(20, 20, 70, 0.10);
}
.saved-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 6px; font-size: 14px; color: var(--muted); }
.saved-head b { font-size: 18px; font-weight: 600; color: var(--ink); }
.saved-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 13px 14px; border-radius: 14px; background: var(--surface); font-size: 15px; font-weight: 500; }
.saved-row.is-on { background: #fff; box-shadow: 0 0 0 1.5px var(--blue); }
.saved-row em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.saved-cta { display: grid; place-items: center; height: 48px; margin-top: 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; }
.stat-float { position: absolute; top: 28px; right: 36px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 14px 30px rgba(20, 20, 70, 0.08); }
.stat-float span { display: block; font-size: 12.5px; color: var(--muted); }
.stat-float b { font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.method { display: grid; place-items: center; min-height: 52px; padding: 6px; border-radius: 14px; background: var(--surface); font-size: 14px; font-weight: 600; text-align: center; transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s var(--ease); }
.method:last-child { font-size: 12px; }
.method.is-hot { background: var(--blue); color: #fff; transform: translateY(-2px); }
.pay-list { display: grid; gap: 8px; }
.pay-list-head { padding: 4px 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pay-list button { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--surface); font-size: 16px; font-weight: 500; text-align: left; transition: background-color 0.3s ease, color 0.3s ease; }
.pay-list button::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--faint); transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; }
.pay-list button.is-on { background: var(--ink); color: #fff; }
.pay-list button.is-on::after { border-color: #fff; background: var(--blue); box-shadow: inset 0 0 0 3px var(--ink); }
.event b { font-size: 13px; font-weight: 600; color: var(--muted); }
.event code { display: block; margin: 6px 0 12px; font-family: var(--mono); font-size: 18px; font-weight: 500; }
.event .note { padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; color: var(--ink-2); }
.mini-form { display: grid; gap: 10px; }
.mini-form label:not(.hp) { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mini-form input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 15px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.mini-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(212, 91, 182, 0.16); }
.mini-form .pill { width: 100%; margin-top: 4px; }
#mini-form-note { min-height: 1.3em; margin: 0; font-size: 13px; color: var(--ink-2); }
.settle .settle-phase { margin: 0 0 8px; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mini-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; transition: background-color 0.35s ease; }
.mini-row span { color: var(--muted); }
.mini-row.is-hot { background: #e4f8ec; }
.mini-row.is-hot b { color: var(--green); }
.settle .pill { margin-top: 6px; }

/* ---------- Developers: pinned story ---------- */
.story { position: relative; background: var(--surface); }
.story-pin { position: relative; overflow: hidden; overflow: clip; }
.story-lines { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.story-lines path { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.story-lines .pulse { stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 6 94; animation: pulse 3.6s linear infinite; }
@keyframes pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.story-inner { position: relative; }
.story-intro { text-align: center; }
.story-intro .display-md { max-width: 16ch; margin: 0 auto; }
.story-intro .lede { margin-left: auto; margin-right: auto; }
.story-badge {
  display: grid; place-items: center; width: 132px; height: 132px; margin: 0 auto 32px; border-radius: 22px;
  background: var(--ink); color: #fff; font-size: 52px; font-weight: 600; letter-spacing: -0.04em;
  text-shadow: 0 0 30px rgba(212, 91, 182, 0.55);
  box-shadow: 0 24px 50px rgba(20, 20, 40, 0.22);
}
.story-chip {
  display: none; place-items: center; align-content: center; gap: 10px; width: 136px; height: 136px; border-radius: 22px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 10px),
    linear-gradient(150deg, #e07bc4, #d45bb6 55%, #8d3a78);
  color: #fff; box-shadow: 0 0 0 6px rgba(212, 91, 182, 0.16), 0 30px 60px rgba(141, 58, 120, 0.32);
}
.story-chip span { font-size: 15px; font-weight: 600; text-align: center; line-height: 1.2; }
.story-steps { display: grid; gap: 20px; margin-top: 56px; }
.story-step { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 400px); justify-content: center; align-items: center; gap: 56px; }
.story-visual { display: grid; place-items: center; }
.story-text h3 { margin: 0 0 12px; font-size: clamp(32px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.story-text p { margin: 0 0 22px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.code-card { width: 100%; border-radius: 20px; overflow: hidden; background: #101018; box-shadow: 0 30px 70px rgba(16, 16, 40, 0.28); text-align: left; }
.code-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.lang button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 13px; font-family: var(--mono); }
.copy { height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; transition: background-color 0.2s ease; }
.copy:hover { background: #e7eaff; }
.code-card pre { margin: 0; padding: 20px 22px 24px; overflow: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; color: #d7ddff; }
.event-card { width: min(460px, 100%); padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 30px 70px rgba(20, 20, 60, 0.12); }
.event-row { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; transition: background-color 0.4s ease; }
.event-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; transition: background-color 0.4s ease, box-shadow 0.4s ease; }
.event-row code { font-family: var(--mono); font-size: 14.5px; }
.event-row span { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.event-row.is-on { background: var(--blue-soft); }
.event-row.is-on i { background: var(--green); box-shadow: 0 0 0 5px rgba(18, 161, 80, 0.15); }
.check-orb { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: #3fe0a0; color: #fff; box-shadow: 0 0 0 14px rgba(63, 224, 160, 0.16), 0 30px 60px rgba(30, 180, 120, 0.3); }
.check-orb svg { width: 60px; height: 60px; }
.story-progress { display: none; }

/* Static layout (phones, tablets, reduced motion): every step is a card. */
.story:not(.is-pinned) .story-pin { padding: 120px 0; }
.story:not(.is-pinned) .story-step { padding: 32px; border-radius: var(--radius); background: #fff; }

/* Pinned layout: the stage sticks while scroll progress picks the step (js/motion.js). */
.story.is-pinned { height: 420vh; }
.story.is-pinned .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.story.is-pinned .story-lines { display: block; }
.story.is-pinned .story-inner { height: 100%; }
.story.is-pinned .story-intro { position: absolute; left: 0; right: 0; top: calc(36.7% - 66px); transition: opacity 0.6s ease, transform 0.8s var(--ease), visibility 0s linear 0s; }
.story.is-pinned .story-chip { display: grid; position: absolute; left: 50%; top: 36.7%; transform: translate(-50%, -50%); transition: opacity 0.6s ease, transform 0.8s var(--ease); }
.story.is-pinned .story-steps { position: absolute; left: 0; right: 0; top: calc(36.7% + 108px); margin: 0; display: block; }
.story.is-pinned .story-step {
  position: absolute; left: 0; right: 0; top: 0;
  opacity: 0; pointer-events: none; transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.8s var(--ease);
}
.story.is-pinned .story-step.is-on { opacity: 1; pointer-events: auto; transform: none; transition-delay: 0.08s; }
.story.is-pinned .check-orb { transform: scale(0.6); transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.story.is-pinned .story-step.is-on .check-orb { transform: none; }
.story.is-pinned:not([data-step="0"]):not([data-step=""]) .story-intro { opacity: 0; visibility: hidden; transform: translateY(-40px); transition: opacity 0.4s ease, transform 0.8s var(--ease), visibility 0s linear 0.4s; }
.story.is-pinned[data-step="0"] .story-chip, .story.is-pinned[data-step=""] .story-chip { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
@media (min-width: 981px) and (max-height: 780px) {
  .story.is-pinned .story-chip { width: 112px; height: 112px; top: 32%; }
  .story.is-pinned .story-intro { top: calc(32% - 56px); }
  .story.is-pinned .story-badge { width: 112px; height: 112px; font-size: 44px; margin-bottom: 24px; }
  .story.is-pinned .story-steps { top: calc(32% + 80px); }
  .story.is-pinned .code-card pre { padding: 14px 18px 16px; font-size: 12.5px; line-height: 1.5; }
}
.story.is-pinned .story-progress { display: flex; gap: 8px; position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); }
.story-progress i { width: 34px; height: 4px; border-radius: 2px; background: rgba(20, 20, 40, 0.12); transition: background-color 0.4s ease; }
.story-progress i.is-on { background: var(--blue); }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq .display { max-width: 12ch; }
.faq-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 28px; }
.faq-pills button { height: 46px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15.5px; font-weight: 500; color: var(--ink-2); transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.faq-pills button:hover { border-color: var(--ink); }
.faq-pills button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 14px; background: #fff; animation: rise 0.45s var(--ease) both; }
.faq-item:nth-child(2) { animation-delay: 0.05s; } .faq-item:nth-child(3) { animation-delay: 0.1s; }
.faq-item .q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%;
  padding: 28px 36px; border: 0; background: none; text-align: left;
  font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.015em; color: var(--ink);
}
.faq-item .pm { display: grid; place-items: center; width: 30px; height: 30px; flex: none; transition: transform 0.4s var(--ease); }
.faq-item .pm svg { width: 24px; height: 24px; }
.faq-item.is-open .pm { transform: rotate(45deg); }
.faq-item .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease), padding 0.45s var(--ease); }
.faq-item.is-open .a { grid-template-rows: 1fr; padding-bottom: 28px; }
.faq-item .a > div { overflow: hidden; padding: 0 36px; max-width: calc(72ch + 72px); font-size: 17px; line-height: 1.6; color: var(--muted); }
.faq-item .a a { color: var(--blue); }

/* ---------- Closing band ---------- */
.cta-band {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate; color: #fff; padding-top: 120px;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(212, 91, 182, 0.42), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(9, 174, 161, 0.28), transparent 60%),
    linear-gradient(120deg, #2a2428 0%, #1e1e1e 50%, #141416 100%);
}
.cta-glow { position: absolute; z-index: -1; inset: auto -10% -40% 30%; height: 80%; background: repeating-radial-gradient(circle at 60% 100%, transparent 0 34px, rgba(255, 255, 255, 0.12) 35px 36px); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 48px; }
.cta-row p { margin: 0; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Engraved note (closing band) ----------
   A port of the RampPay "building blocks" banknote: a guilloche on the right,
   acanthus corners, meander borders, a classical frieze, a vine band and a medallion.
   The ornaments are alpha masks from assets/rampay/. */
.cta-inner { container-type: inline-size; }
.banknote {
  --note-ink: #1e1e1e;
  --note-fill: #d45bb6;
  --note-corner: clamp(52px, 10cqw, 124px);
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(44px, 6.5cqw, 84px) clamp(22px, 7cqw, 96px) clamp(40px, 5.5cqw, 72px);
  color: var(--note-ink);
  background: radial-gradient(ellipse at 50% 42%, #ffffff 0%, #fbf7f4 58%, #f3ebe4 100%);
  border: 1px solid var(--note-ink);
  outline: 1px solid rgba(30, 30, 30, 0.45); outline-offset: -9px;
  box-shadow: 0 40px 80px -30px rgba(5, 10, 80, 0.55);
}
/* Guilloche sits on the right of the plate and turns like a lathe. The plate clips it. */
.note-rosette {
  position: absolute; z-index: 0; top: 52%; right: -20%;
  width: min(720px, 62cqw); aspect-ratio: 1; pointer-events: none;
  translate: calc(var(--nx, 0) * 16px) calc(-50% + var(--ny, 0) * 12px);
  rotate: calc(var(--nx, 0) * 6deg);
  transition: translate 0.7s var(--ease), rotate 0.7s var(--ease);
}
.note-rosette-ring {
  display: block; width: 100%; height: 100%;
  background: var(--note-ink); opacity: 0.18;
  -webkit-mask:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 72%, transparent 96%),
    url("../assets/rampay/guilloche.svg");
  -webkit-mask-composite: source-in;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%, contain;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 72%, transparent 96%),
    url("../assets/rampay/guilloche.svg");
  mask-composite: intersect;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%, contain;
  animation: note-turn 46s linear infinite;
  transition: opacity 0.6s ease;
}
@media (hover: hover) {
  .banknote:hover .note-rosette-ring { opacity: 0.24; }
}
.note-head, .note-title, .note-body, .note-foot { position: relative; z-index: 1; }
.note-corner {
  position: absolute; z-index: 1; width: var(--note-corner); aspect-ratio: 1; pointer-events: none;
  background: var(--note-ink);
  -webkit-mask: url("../assets/rampay/filigree-mask.webp") center / contain no-repeat;
  mask: url("../assets/rampay/filigree-mask.webp") center / contain no-repeat;
}
/* The engraving is a bottom-right corner; the others are its mirrors. */
.note-corner-br { right: 14px; bottom: 14px; }
.note-corner-bl { left: 14px; bottom: 14px; transform: scaleX(-1); }
.note-corner-tr { right: 14px; top: 14px; transform: scaleY(-1); }
.note-corner-tl { left: 14px; top: 14px; transform: scale(-1, -1); }
.note-meander {
  position: absolute; left: calc(14px + var(--note-corner)); right: calc(14px + var(--note-corner)); height: 16px; pointer-events: none;
  background: var(--note-ink);
  -webkit-mask: url("../assets/rampay/meander.svg") left center / 16px 16px round no-repeat;
  mask: url("../assets/rampay/meander.svg") left center / 16px 16px round no-repeat;
}
.note-meander-top { top: 16px; }
.note-meander-bottom { bottom: 16px; }
.note-head, .note-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.note-head > :last-child, .note-foot > :last-child { justify-self: end; }
.note-denom {
  font-size: clamp(34px, 6.4cqw, 80px); font-weight: 700; line-height: 0.8; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.3px var(--note-ink);
}
.note-frieze, .note-vine {
  display: block; background: var(--note-ink);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.note-frieze { width: clamp(170px, 36cqw, 430px); aspect-ratio: 712 / 210; -webkit-mask-image: url("../assets/rampay/frieze-mask.webp"); mask-image: url("../assets/rampay/frieze-mask.webp"); }
.note-vine { width: clamp(160px, 34cqw, 420px); aspect-ratio: 726 / 147; -webkit-mask-image: url("../assets/rampay/vine-mask.webp"); mask-image: url("../assets/rampay/vine-mask.webp"); }
.note-title {
  margin: clamp(18px, 2.6cqw, 32px) 0 clamp(26px, 3.6cqw, 48px); text-align: center;
  font-size: clamp(40px, 7.4cqw, 96px); font-weight: 500; line-height: 0.95; letter-spacing: -0.05em; color: var(--note-ink);
}
.note-title span { display: inline-block; }
.note-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(190px, 25cqw, 290px) minmax(0, 1fr); gap: clamp(20px, 3cqw, 44px); align-items: center; }
.note-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4cqw, 30px); }
.note-blocks li { display: grid; column-gap: 14px; align-items: baseline; }
/* Numerals face the medallion from both sides. */
.note-blocks-left li { grid-template-columns: minmax(0, 1fr) 2.4em; grid-template-areas: "t n" "p n"; text-align: right; }
.note-blocks-right li { grid-template-columns: 2.4em minmax(0, 1fr); grid-template-areas: "n t" "n p"; }
.note-num { grid-area: n; font-size: clamp(20px, 2.4cqw, 30px); font-weight: 500; line-height: 0.9; letter-spacing: 0.02em; color: var(--note-fill); text-align: center; }
.note-blocks h3 { grid-area: t; margin: 0 0 6px; font-size: clamp(22px, 2.5cqw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.note-blocks p { grid-area: p; margin: 0; font-size: clamp(14px, 1.35cqw, 16px); line-height: 1.35; color: var(--ink-2); }
.note-medallion { position: relative; width: 100%; aspect-ratio: 1; }
.note-medallion svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--note-ink); stroke-width: 1.2; animation: note-turn 90s linear infinite; }
.note-medallion text { fill: var(--note-ink); stroke: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; }
.note-face {
  position: absolute; inset: 21%; border-radius: 50%; background: var(--note-ink);
  -webkit-mask: url("../assets/rampay/medusa-mask.webp") center / 122% no-repeat;
  mask: url("../assets/rampay/medusa-mask.webp") center / 122% no-repeat;
}
@keyframes note-turn { to { transform: rotate(360deg); } }
.note-foot { margin-top: clamp(24px, 3.4cqw, 44px); }
.note-serial { font-family: var(--mono); font-size: clamp(10px, 1.1cqw, 13px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--note-fill); white-space: nowrap; }
@container (max-width: 760px) {
  .note-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .note-medallion { grid-column: 1 / -1; order: -1; width: min(220px, 60%); justify-self: center; }
  .note-blocks-left li { grid-template-columns: 2.4em minmax(0, 1fr); grid-template-areas: "n t" "n p"; text-align: left; }
  .note-rosette {
    top: auto; bottom: 4%; right: -16%;
    width: min(380px, 72cqw);
    translate: calc(var(--nx, 0) * 10px) calc(var(--ny, 0) * 8px);
  }
  .note-rosette-ring { opacity: 0.12; }
}
@container (max-width: 540px) {
  .banknote { outline-offset: -6px; }
  .note-body { grid-template-columns: minmax(0, 1fr); }
  .note-head { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .note-denom { display: none; }
  .note-foot { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
  .note-foot > :last-child { justify-self: center; }
  .note-meander { height: 12px; -webkit-mask-size: 12px 12px; mask-size: 12px 12px; }
  .note-meander-top { top: 12px; }
  .note-meander-bottom { bottom: 12px; }
  .note-corner-br { right: 10px; bottom: 10px; }
  .note-corner-bl { left: 10px; bottom: 10px; }
  .note-corner-tr { right: 10px; top: 10px; }
  .note-corner-tl { left: 10px; top: 10px; }
  .note-rosette { width: min(250px, 70cqw); right: -22%; bottom: 2%; }
  .note-rosette-ring { opacity: 0.1; }
}
.marquee-light { margin-top: 110px; padding: 34px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.marquee-light .word { color: rgba(255, 255, 255, 0.85); font-size: 30px; }
.marquee-light .marquee-track { animation-duration: 60s; }

/* ---------- Overlays, toast, cookie banner ---------- */
.backdrop { position: fixed; inset: 0; z-index: 75; display: none; background: rgba(15, 15, 30, 0.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.backdrop.is-on { display: block; animation: fade-in 0.25s ease; }
@keyframes fade-in { from { opacity: 0; } }
.drawer, .modal { position: fixed; z-index: 80; background: #fff; color: var(--ink); }
.drawer {
  top: 12px; right: 12px; bottom: 12px; width: min(480px, calc(100% - 24px)); padding: 28px;
  border-radius: 24px; box-shadow: 0 30px 80px rgba(20, 20, 60, 0.2);
  transform: translateX(calc(100% + 24px)); visibility: hidden; overflow: auto; overscroll-behavior: contain;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.drawer.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.modal {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(540px, calc(100% - 24px)); max-height: min(88vh, 780px); padding: 28px;
  border-radius: 24px; box-shadow: 0 40px 100px rgba(20, 20, 60, 0.3);
  display: none; overflow: auto; overscroll-behavior: contain;
}
.modal.is-on { display: block; animation: modal-in 0.4s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(0.97); } }
.modal h2, .drawer h2 { margin: 0 0 10px; padding-right: 44px; font-size: 30px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.modal p, .drawer p { color: var(--muted); }
.modal a, .drawer p a { color: var(--blue); }
.drawer .pill, .modal .pill { margin-top: 8px; }
.close-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface); font-size: 22px; line-height: 1; transition: background-color 0.2s ease; }
.close-x:hover { background: var(--surface-2); }
.form { display: grid; gap: 10px; margin-top: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form input { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 500; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(212, 91, 182, 0.16); }
.form .err { min-height: 16px; font-size: 12px; font-weight: 600; color: #c4231b; }
.form input.bad { border-color: #c4231b; }
.form .pill { width: 100%; }
.success { padding: 16px; border-radius: 16px; background: #e9f9ef; animation: rise 0.45s var(--ease); }
.docs-side { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.docs-side button { height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; }
.docs-side button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.drawer .code { border-radius: 16px; background: #101018; overflow: auto; }
.drawer .code pre { padding: 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #d7ddff; }
.assets-table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 14px; }
.assets-table th, .assets-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.assets-table th:first-child { text-align: left; }
.assets-table thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.assets-table tbody th { font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; text-align: center;
  box-shadow: 0 16px 40px rgba(20, 20, 40, 0.25);
  opacity: 0; pointer-events: none; transform: translate(-50%, 14px);
  transition: opacity 0.25s ease, transform 0.4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.cookie-open .toast { bottom: 132px; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 22px; border-radius: 22px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(17px); backdrop-filter: blur(17px);
  box-shadow: 0 20px 60px rgba(20, 20, 60, 0.12); color: var(--ink);
}
.cookie p { margin: 0; max-width: 760px; font-size: 14px; color: var(--ink-2); }
.cookie p a { color: var(--blue); }
.cookie .actions { display: flex; gap: 8px; flex: none; }
.cookie-panel { display: none; margin-top: 10px; font-size: 14px; }
.cookie.settings { flex-direction: column; align-items: stretch; }
.cookie.settings .cookie-panel { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link, .menu-btn { padding: 0 12px; font-size: 15px; }
  .nav-actions .pill { padding: 0 20px; font-size: 16px; }
}

@media (max-width: 980px) {
  :root { --header-h: 84px; }
  .section { padding: 100px 0; }
  .sticky-wrap { padding-top: 14px; }
  .brand { height: 52px; padding: 0 16px; background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(17px); backdrop-filter: blur(17px); box-shadow: inset 0 0 0 1px rgba(20, 20, 40, 0.06); }
  .burger { display: block; }
  .nav { gap: 8px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .pill { height: 52px; padding: 0 20px; font-size: 15px; }
  .nav-actions .pill-glass { display: none; }
  .nav-mobile-only { display: inline-flex; }
  .nav-links {
    position: fixed; left: 12px; right: 12px; top: 80px; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; height: auto; max-height: calc(100svh - 96px); overflow: auto;
    padding: 10px; border-radius: 24px; background: #fff !important;
    box-shadow: 0 30px 80px rgba(20, 20, 60, 0.18), inset 0 0 0 1px var(--line) !important;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links > * { flex-shrink: 0; }
  .nav-link, .menu-btn { width: 100%; height: 52px; justify-content: space-between; padding: 0 16px; font-size: 17px; border-radius: 14px; }
  .menu-panel {
    position: static; display: none; min-width: 0; padding: 0 0 8px 8px; border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .menu.open .menu-panel { display: grid; }
  .menu.open .caret { transform: rotate(180deg); }

  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; justify-items: start; }
  .hero-copy { max-width: none; }
  .hero-visual { justify-self: center; max-width: 400px; }
  .hero-title { font-size: clamp(36px, 11.2vw, 76px); }
  .use-grid { grid-template-columns: 1fr; }
  .use-item, .use-item:nth-child(odd), .use-item:nth-child(even) {
    padding: 24px 0; box-shadow: none;
  }
  .use-lede { margin-top: -8px; }
  .settle-head, .settle-cols { grid-template-columns: 1fr; }
  .mark-rail { justify-content: flex-start; gap: 22px 8px; }
  .mark-rail li { width: calc(25% - 8px); }
  .split-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 44px; }
  .split-aside { justify-self: start; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .cover-grid { grid-template-columns: 1fr; }
  .cover-card, .cover-ramp, .cover-bank { grid-column: auto; min-height: 0; }
  .integrate-grid, .bento { grid-template-columns: 1fr; }
  .story-step { grid-template-columns: 1fr; gap: 28px; }
  .story-text { text-align: left; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .mark-rail li { width: calc(33.33% - 8px); }
  .hero-lede { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .pill { flex: 1; }
  .ramp { padding: 20px 0 0; }
  .orb-btc { left: -4px; }
  .orb-trx { right: -4px; }
  .orb-sol { right: 0; }
  .logo-strip { padding: 22px 0; }
  .marquee .word { font-size: 19px; }
  .marquee-group { gap: 40px; padding-right: 40px; }
  .cover-card, .product-card { padding: 26px 22px; }
  .cv { margin: 28px -22px -26px; padding: 26px 22px; }
  .cv-flow svg { inset: 26px 22px; width: calc(100% - 44px); height: calc(100% - 52px); }
  .fl-node { font-size: 12.5px; padding: 8px 10px; }
  .fl-c, .fl-d, .fl-e { font-size: 11.5px; }
  .fl-a { left: calc(22px + (100% - 44px) * 0.27); }
  .fl-b { left: calc(22px + (100% - 44px) * 0.73); }
  .fl-c { left: calc(22px + (100% - 44px) * 0.18); }
  .fl-d { left: calc(22px + (100% - 44px) * 0.5); }
  .fl-e { left: calc(22px + (100% - 44px) * 0.82); }
  .fl-node i { display: none; }
  .stk { width: 96%; padding: 12px 14px; gap: 10px; }
  .stk-2 { width: 88%; } .stk-3 { width: 80%; }
  .stk-ic { width: 34px; height: 34px; font-size: 15px; }
  .stk-t b, .stk-v { font-size: 14.5px; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 0 12px; }
  .net-list { grid-template-columns: 1fr; }
  .bento-card { padding: 26px 22px 0; }
  .glass-stage { margin: 24px -22px 0; padding: 24px 22px 26px; min-height: 260px; }
  .stat-float { display: none; }
  .story:not(.is-pinned) .story-pin { padding: 84px 0; }
  .story:not(.is-pinned) .story-step { padding: 20px; }
  .code-card pre { font-size: 12px; padding: 16px; }
  .faq-pills { margin: 32px 0 20px; }
  .faq-item .q { padding: 22px; gap: 16px; }
  .faq-item .a > div { padding: 0 22px; font-size: 16px; }
  .faq-item.is-open .a { padding-bottom: 22px; }
  .cta-band { padding-top: 72px; }
  .cta-row .pill { width: 100%; }
  .marquee-light { margin-top: 72px; padding: 24px 0; }
  .marquee-light .word { font-size: 22px; }
  .cookie { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookie .actions { flex-wrap: wrap; }
  .cookie .actions .pill { flex: 1; }
  body.cookie-open .toast { bottom: 200px; }
}

.logo-marquee {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #fff 100%);
  overflow: hidden;
}
.logo-marquee-large {
  margin-top: -20px;
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logo-marquee 32s linear infinite;
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
.logo-marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(36px, 8vw, 72px);
  padding: clamp(18px, 3vw, 28px) clamp(24px, 8vw, 72px);
}
.logo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #000;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-item img, .logo-item .logo-svg {
  width: clamp(36px, 4vw, 52px);
  height: clamp(36px, 4vw, 52px);
}
.logo-item img[alt="USDC"], .logo-item img[alt="USDT"] {
  filter: none;
  opacity: 1;
}
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 360px) {
  .nav-actions .pill { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track, .orbs-track { animation: none; }
}

@media (scripting: none) {
  .js .hero-title .line > span, .js .hero-lede, .js .hero-actions, .js .hero-visual { opacity: 1; transform: none; }
}

/* Hide the "Powered by Netlify" badge that Netlify injects on free-tier projects. */
#nl-badge-frame, #nl-hud-frame { display: none !important; }
