/* xD Pay — shared styles for landing subpages */
:root {
  --bg: #000000;
  --surface: #0e0e0e;
  --surface-2: #161616;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.logo img { display: block; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

.nav-links .nav-anchor { display: none; }
@media (min-width: 640px) {
  .nav-links .nav-anchor { display: inline; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn-primary { background: #ffffff; color: #000000; }
.btn-primary:hover { background: #d4d4d4; }

.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- Page (article-style) layout ---------- */
.page {
  padding: 72px 0 96px;
}

.page-header {
  max-width: 760px;
  margin: 0 auto;
}

.page-header .eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.page-header h1 {
  margin-top: 14px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-header .lede {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
}

.page-header .updated {
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose section { padding: 44px 0 0; }

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-top: 8px;
}

.prose h3 {
  margin-top: 26px;
  font-size: 16.5px;
  font-weight: 700;
}

.prose p { margin-top: 12px; font-size: 15.5px; color: var(--muted); }

.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }

.prose ul, .prose ol {
  margin-top: 12px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15.5px;
}

.prose li { margin-top: 8px; }

.prose li::marker { color: var(--faint); }

.prose a.inline { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.prose a.inline:hover { text-decoration-color: var(--text); }

.prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--text);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0 0;
}

/* Callout card */
.callout {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px 24px;
}

.callout h3 { margin-top: 0; font-size: 15px; font-weight: 700; }
.callout p { margin-top: 8px; font-size: 14.5px; }

/* Definition-style cards grid */
.card-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
}

.card h3 { margin-top: 0; font-size: 15.5px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 14px; }

/* Flow diagram (how-it-works) */
.flow {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  position: relative;
  padding: 0 0 28px 46px;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.flow-step:last-child::before { display: none; }

.flow-step .dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step h3 { margin-top: 0; font-size: 16.5px; font-weight: 700; }
.flow-step p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* Simple table */
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}

table.data th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

table.data td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

table.data tr:last-child td { border-bottom: none; }

table.data td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Table of contents */
.toc {
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 20px 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.toc p {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.toc ol {
  margin-top: 10px;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--muted);
  columns: 1;
}

@media (min-width: 640px) {
  .toc ol { columns: 2; column-gap: 40px; }
}

.toc li { margin-top: 6px; break-inside: avoid; }
.toc a:hover { color: var(--text); }

/* CTA band */
.page-cta {
  margin-top: 72px;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.page-cta h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-cta p { margin-top: 10px; color: var(--muted); }

.page-cta .actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover { color: var(--text); }

.footer-links .x-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-links .x-icon svg { width: 15px; height: 15px; fill: currentColor; }

footer .disclaimer {
  margin-top: 26px;
  font-size: 12px;
  color: var(--faint);
  max-width: 640px;
}
