:root {
  --bg: #101114;
  --bg-2: #0b0c0f;
  --card: #181a20;
  --card-2: #20232b;
  --line: #343844;
  --line-soft: rgba(255, 155, 122, 0.18);
  --text: #f4f2ef;
  --muted: rgba(244, 242, 239, 0.68);
  --faint: rgba(244, 242, 239, 0.44);
  --mint: #ff9b7a;
  --white: #fff8f5;
  --chip: #262932;
  --pay: #3a2420;
  --buy: #ff9b7a;
  --buy-text: #1a0e0c;
  --danger: #ff8a8a;
  --ok: #b7d7a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --sans: "Plus Jakarta Sans", sans-serif;
  --serif: "Source Serif 4", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav: 64px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f4f2;
  --bg-2: #efeae6;
  --card: #ffffff;
  --card-2: #fbf8f6;
  --line: #e4ddd8;
  --line-soft: rgba(196, 84, 58, 0.12);
  --text: #1a1614;
  --muted: rgba(26, 22, 20, 0.68);
  --faint: rgba(26, 22, 20, 0.46);
  --mint: #c4543a;
  --white: #1a1614;
  --chip: #efe8e4;
  --pay: #f8e4dc;
  --buy: #1a1614;
  --buy-text: #fff8f5;
  --shadow: 0 20px 50px rgba(40, 28, 12, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 88% -8%, color-mix(in srgb, var(--mint) 16%, transparent), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.banner {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #0c0d10;
  color: rgba(244, 242, 239, 0.82);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.01em;
}
:root[data-theme="light"] .banner {
  background: #1a1614;
  color: rgba(255, 248, 245, 0.88);
}
.banner .dot { color: #ff9b7a; }
.banner em { font-style: normal; color: #ff9b7a; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--nav);
  padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 19px;
}
.brand svg { width: 22px; height: 22px; }
.links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.links a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.links a[aria-current="page"],
.links a:hover { color: var(--text); }
.links a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--text);
}
.nav-spacer { flex: 1; }
.icon-btn, .signin {
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.icon-btn {
  width: 36px;
  display: grid;
  place-items: center;
}
.signin { padding: 0 14px; font-size: 14px; white-space: nowrap; }
.icon-btn:hover, .signin:hover { background: var(--chip); }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0 88px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, 100%);
  text-align: center;
  animation: hero-in 0.6s ease-out;
}
.hero-stage {
  position: relative;
  width: min(480px, 100%);
  margin-top: 48px;
  padding-top: 12px;
  animation: hero-in 0.7s ease-out;
}
.kicker {
  display: flex;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker a:hover { color: var(--mint); }
.hero .kicker {
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  letter-spacing: 0.12em;
}
h1 {
  margin: 0;
  font-weight: 400;
}
h1 .line {
  display: block;
  font-size: clamp(40px, 4.6vw, 62px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--white);
}
h1 .display {
  display: block;
  margin-top: -6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(76px, 10vw, 132px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--mint);
}
.lede {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.hero .lede {
  max-width: 560px;
  margin: 18px auto 0;
}
.hero h1 .line { font-size: clamp(36px, 5vw, 56px); }
.hero h1 .display { font-size: clamp(56px, 8vw, 92px); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 520px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero .stats {
  width: min(640px, 100%);
  max-width: none;
  margin-top: 32px;
  text-align: center;
}
.hero .stats div { padding: 16px 12px; }
.stats div { padding: 16px 16px 16px 0; }
.stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--white);
}
.stats span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.35;
}

.globe {
  position: absolute;
  left: 50%;
  top: -120px;
  width: min(760px, 150%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.9;
  overflow: visible;
  z-index: 0;
}
.hero h1 .display {
  background: linear-gradient(105deg, #e06a48 0%, #ff9b7a 32%, #fff1ea 48%, #ff9b7a 64%, #e06a48 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 4.8s ease-in-out infinite;
}
.globe .spin,
.globe .spin-back {
  transform-box: fill-box;
  transform-origin: center;
}
.globe .spin { animation: globe-spin 22s linear infinite; }
.globe .spin-back { animation: globe-spin 14s linear infinite reverse; opacity: 0.7; }
.globe .glow-pulse { animation: glow-breathe 3.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero .live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #ff9b7a;
  box-shadow: 0 0 0 0 rgba(255, 155, 122, 0.7);
  animation: ping 1.6s ease-out infinite;
  vertical-align: 1px;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes globe-spin { to { transform: rotate(360deg); } }
@keyframes sheen {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 155, 122, 0.65); }
  100% { box-shadow: 0 0 0 8px rgba(255, 155, 122, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-stage,
  .hero h1 .display,
  .globe .spin,
  .globe .spin-back,
  .globe .glow-pulse,
  .hero .live::before { animation: none; }
  .hero h1 .display { color: var(--mint); background: none; }
}
.fig {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.hero .card { position: relative; z-index: 1; text-align: left; }

.card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.card-head, .payline, .wallet-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.live {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field-label {
  display: block;
  margin: 16px 0 8px;
  color: var(--faint);
  font-size: 13px;
}
.amount {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.amount span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 22px;
}
.amount input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
}
.price-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-head .field-label { margin-bottom: 0; }
.price-reset {
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-reset:hover { color: var(--text); }
.price-readout {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 14px;
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--mint);
}
.price-readout span { color: var(--faint); font-size: 22px; }
.price-readout input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.price-slider { margin-bottom: 4px; }
.price-slider input[type="range"] {
  --pct: 4%;
  width: 100%;
  height: 8px;
  margin: 8px 0 0;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mint) var(--pct), var(--line) var(--pct));
  outline: none;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: grab;
}
.price-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  background: var(--bg);
  cursor: grab;
}
.price-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chips button, .seg button {
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 13px;
}
.chips button[aria-pressed="true"], .seg button[aria-pressed="true"] {
  background: var(--mint);
  color: var(--buy-text);
  border-color: transparent;
}
.payline {
  margin-top: 14px;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--pay);
  color: var(--text);
}
.payline strong { font-family: var(--mono); font-weight: 500; }
.buy {
  width: 100%;
  margin-top: 10px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--buy);
  color: var(--buy-text);
  font-weight: 600;
}
.buy:disabled { opacity: 0.45; cursor: not-allowed; }
.fine {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}
.wallet-label {
  margin-top: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.logo-row button, .wallet-list button {
  border: 1px solid var(--line);
  background: var(--bg);
}
.logo-row button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
}
.logo-row button:hover, .wallet-list button:hover { outline: 1px solid var(--mint); }
.logo-row svg, .logo-row img { width: 32px; height: 32px; border-radius: 8px; }
.wallet-list svg, .wallet-list img { width: 28px; height: 28px; flex: none; border-radius: 6px; }
#purchase-status:empty { display: none; }
#purchase-status { color: var(--mint); }

.band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-head, .section-kicker {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 28px 0 48px;
}
.guarantees article { padding-top: 18px; border-top: 1px solid var(--line); }
.guarantees .num, .eyebrow {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.guarantees h3, .block h2, .cta h2 {
  margin: 8px 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.guarantees h3 { font-size: 18px; letter-spacing: -0.02em; }
.guarantees p, .block .sub { color: var(--muted); margin: 0; }
em.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mint);
}

.block { padding: 72px 0; }
.block h2 em.accent { font-size: 1.12em; }
.sub { max-width: 560px; margin-top: 8px; }

.demo-grid, .dash, .integrate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.prompt {
  min-height: 92px;
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.prompt-row, .tabs, .table-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ghost {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
}
.ghost[aria-pressed="true"] { color: var(--text); border-color: var(--mint); }
.replay {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.prices div {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.prices span { color: var(--faint); font-size: 12px; }
.prices strong {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
}
.prices .now strong { color: var(--mint); }

.search {
  flex: 1;
  min-width: 180px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0 12px;
}
.table-wrap { margin-top: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}
td small { display: block; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.cut { color: var(--mint); font-family: var(--mono); }

.meter {
  height: 120px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 14px;
}
.meter i {
  display: block;
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--mint), color-mix(in srgb, var(--mint) 28%, transparent));
}
.model-list { list-style: none; margin: 8px 0 0; padding: 0; }
.model-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.model-list .row { display: flex; justify-content: space-between; gap: 12px; }
.model-list small { color: var(--faint); }
.bar { height: 4px; margin-top: 8px; border-radius: 99px; background: var(--chip); }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--mint); }

.urlbox, pre {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  overflow: auto;
}
pre { line-height: 1.6; }
.minus { color: var(--danger); }
.plus { color: var(--ok); }
.tabs { margin-top: 8px; }
.tabs button[aria-selected="true"] {
  background: var(--chip);
  color: var(--text);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(420px 180px at 90% 120%, color-mix(in srgb, var(--mint) 24%, transparent), transparent 60%),
    var(--card);
}
.cta p { color: var(--muted); margin: 0; max-width: 460px; }
.cta-actions { display: flex; gap: 10px; }

footer {
  padding: 48px 0 28px;
  color: var(--faint);
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}
footer h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; }
footer a:hover { color: var(--text); }
.legal { margin-top: 28px; font-size: 12px; max-width: 720px; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 10, 0.72);
}
.overlay[hidden] { display: none; }
.sheet {
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.sheet header { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.wallet-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.wallet-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
}
.wallet-list button[aria-pressed="true"] { border-color: var(--mint); background: var(--chip); }
.sheet .note { color: var(--muted); font-size: 13px; min-height: 1.3em; }
.palette { width: min(480px, 100%); }
.palette input {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0 12px;
}
.hits { list-style: none; margin: 10px 0 0; padding: 0; }
.hits button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
}
.hits button:hover { background: var(--chip); }

.docs-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
}
.docs-side {
  position: sticky;
  top: var(--nav);
  max-height: calc(100vh - var(--nav));
  overflow: auto;
  padding: 28px 18px 48px 28px;
  border-right: 1px solid var(--line);
}
.docs-side h2 {
  margin: 22px 0 8px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.docs-side input {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0 12px;
}
.docs-side button,
.docs-side a.side-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 10px;
}
.docs-side button[aria-current="true"],
.docs-side a[aria-current="page"] {
  background: var(--chip);
  color: var(--text);
}
.docs-main { padding: 42px 48px 80px; max-width: 980px; }
.docs-main h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.docs-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.docs-jump button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 0;
}
.docs-jump button[aria-current="true"] { color: var(--text); }
.doc-panel[hidden] { display: none; }
.codebox {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}
.codebox header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}
.codebox pre { margin: 0; border: 0; border-radius: 0; }
.sdk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.token-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 48px 0 20px;
}
.torus { width: min(460px, 100%); justify-self: end; }
.statement {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.reward-grid, .reason-list, .chain-grid {
  display: grid;
  gap: 16px;
}
.reward-grid { grid-template-columns: 1fr 1fr 1.15fr; }
.reason-list { gap: 12px; }
.reason {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.reason b {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 42px;
  color: var(--mint);
}
.glance { width: 100%; border-collapse: collapse; }
.glance th, .glance td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.glance td:last-child, .glance th:last-child { text-align: right; }
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.sim-grid label { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }
.sim-grid input {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0 12px;
}
.sim-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.sim-table th, .sim-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sim-table td { text-align: right; }
.chain-grid { grid-template-columns: 0.8fr 1.2fr; align-items: center; }
.addr { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
}
.marquee div {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.marquee em { font-family: var(--serif); font-style: italic; color: var(--mint); font-weight: 400; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.desk { padding: 42px 0 80px; }
.stat-grid, .topup-grid { display: grid; gap: 12px; margin-top: 16px; }
.stat-grid { grid-template-columns: repeat(4, 1fr); }
.topup-grid { grid-template-columns: 1.05fr 0.95fr; gap: 22px; align-items: start; }
.stat-grid strong, .youpay {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
}
.receipt { width: 100%; border-collapse: collapse; }
.receipt td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.receipt td:last-child { text-align: right; font-family: var(--mono); }
.receipt tr:last-child td { border-bottom: 0; }
.save-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--pay);
}
.save-line strong { color: var(--mint); font-family: var(--mono); font-weight: 500; }
.key-live { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.key-value {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 14px;
  word-break: break-all;
}
.key-actions, .row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.account-table { width: 100%; border-collapse: collapse; }
.account-table th, .account-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.account-table th { color: var(--faint); font-weight: 500; width: 140px; }
#spend-chart { height: 120px; }

@media (max-width: 900px) {
  .banner { flex-wrap: wrap; text-align: center; font-size: 12px; }
  .nav { padding: 0 16px; gap: 10px; }
  .links { display: none; }
  .wrap { width: min(1180px, calc(100% - 32px)); }
  .demo-grid, .dash, .integrate, .guarantees, .foot, .cta,
  .docs-shell, .docs-layout, .sdk-grid, .token-hero, .reward-grid, .chain-grid, .sim-grid, .reason,
  .stat-grid, .topup-grid, .key-live {
    grid-template-columns: 1fr;
    display: grid;
  }
  .docs-side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-main { padding: 28px 0 64px; }
  .torus { justify-self: start; }
  .cta { display: grid; }
  .globe { top: -70px; width: min(520px, 160%); opacity: 0.55; }
  .hero { padding: 48px 0 64px; }
  .stats strong { font-size: 24px; }
  .wallet-list { grid-template-columns: 1fr; }
  h1 .display { font-size: 72px; }
}

