/* ==========================================================================
   pay-castle.com — design system
   Dark, high-trust fintech aesthetic. One accent (violet/indigo), generous
   spacing, rounded surfaces, subtle gradients. Mobile-first & accessible.
   ========================================================================== */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #0a0b12;
  --bg-2: #0c0e18;
  --surface: #12141f;
  --surface-2: #171a28;
  --surface-3: #1d2133;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Brand accent */
  --accent: #6d5efc;
  --accent-hover: #7d70ff;
  --accent-press: #5b4ce0;
  --accent-soft: rgba(109, 94, 252, 0.14);
  --accent-ring: rgba(109, 94, 252, 0.45);
  --grad-accent: linear-gradient(135deg, #8b7bff 0%, #6d5efc 55%, #4f46e5 100%);

  /* Status */
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --warning: #fbbf24;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.13);
  --info: #60a5fa;

  /* Text */
  --text: #eef0f7;
  --text-2: #b3b9cc;
  --text-3: #8a90a6;
  --text-on-accent: #ffffff;

  /* Typography */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 16px 40px -14px rgba(109, 94, 252, 0.55);

  /* Layout */
  --maxw: 1140px;
  --nav-h: 68px;
}

/* ----- Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: var(--accent-soft);
}

/* ----- Background ambience --------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(109, 94, 252, 0.22), transparent 60%),
    radial-gradient(700px 600px at 8% 4%, rgba(79, 70, 229, 0.14), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 700px at 50% -5%, #000 35%, transparent 80%);
  pointer-events: none;
}

/* ----- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.section {
  padding-block: clamp(56px, 9vw, 110px);
}
.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}
.center {
  text-align: center;
}
.muted {
  color: var(--text-2);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(109, 94, 252, 0.25);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.section-head {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 44px;
}
.section-head.center {
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-top: 16px;
}
.section-head p {
  color: var(--text-2);
  font-size: 1.06rem;
  margin-top: 14px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 200;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 11, 18, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.brand .brand-pay {
  color: var(--text);
}
.brand .brand-castle {
  color: #9d92ff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}
.nav-cta {
  margin-left: 6px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  --_pad: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--_pad);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: var(--grad-accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 20px 46px -12px rgba(109, 94, 252, 0.7);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-3);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--line);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-lg {
  --_pad: 15px 26px;
  font-size: 1.02rem;
  border-radius: var(--r-md);
}
.btn-block {
  width: 100%;
}

/* ----- Hero ------------------------------------------------------------- */
.hero {
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #fff 10%, #b9b1ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 540px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: var(--r-pill);
}
.trust-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

/* ----- Buy panel (centerpiece) ----------------------------------------- */
.buy-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.buy-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-accent);
  opacity: 0.9;
}
.buy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.buy-head h2 {
  font-size: 1.18rem;
}
.buy-head .secured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
}
.field {
  margin-bottom: 14px;
}
.field > label,
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.amount-box {
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.amount-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.amount-box .cur {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-3);
  margin-right: 4px;
}
.amount-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 2rem;
  font-weight: 700;
  width: 100%;
  outline: none;
  letter-spacing: -0.02em;
}
.amount-box input::-webkit-outer-spin-button,
.amount-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.amount-box input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.amount-box .unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-3);
}
.amount-presets {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.14s ease;
}
.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #cbc4ff;
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.select,
.input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 13px 14px;
  font-size: 0.96rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a90a6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
  cursor: pointer;
}
.select:focus,
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.input::placeholder {
  color: var(--text-3);
  font-weight: 500;
}
.input.is-valid {
  border-color: var(--success);
}
.input.is-invalid {
  border-color: var(--danger);
}
.input-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

/* Segmented control (payment method) */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 5px;
}
.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 8px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.14s ease;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.segmented button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Provider toggle (Coinbase | MoonPay) */
.provider-field {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}
.provider-field > .field-label {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.provider-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.provider-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}
.provider-btn:hover:not(:disabled):not([aria-pressed="true"]) {
  color: var(--text);
  background: var(--surface-2);
}
.provider-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Coinbase selected */
.provider-btn[data-provider="coinbase"][aria-pressed="true"] {
  color: #ffffff;
  background: linear-gradient(135deg, #0052ff 0%, #0a3fd9 100%);
  border-color: rgba(125, 170, 255, 0.35);
  box-shadow:
    0 8px 22px -10px rgba(0, 82, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* MoonPay selected */
.provider-btn[data-provider="moonpay"][aria-pressed="true"] {
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow:
    0 8px 22px -10px rgba(124, 58, 237, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.provider-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.provider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.55;
}
.provider-btn[aria-pressed="true"] .provider-dot {
  opacity: 1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.provider-name {
  color: inherit;
}
.provider-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.28);
}
.provider-btn[data-provider="moonpay"][aria-pressed="true"] .provider-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #f5f3ff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Quote display */
.quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.quote .q-label {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 600;
}
.quote .q-amount {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.quote .q-amount small {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 600;
}
.quote.is-loading .q-amount {
  color: var(--text-3);
}

/* Validation / hint text */
.hint {
  font-size: 0.8rem;
  margin-top: 7px;
  color: var(--text-3);
  min-height: 1.1em;
}
.hint.error {
  color: var(--danger);
}
.hint.ok {
  color: var(--success);
}

/* Legal acceptance */
.legal-accept {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
  margin: 4px 0 14px;
}
.legal-accept input[type="checkbox"] {
  appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: all 0.14s ease;
}
.legal-accept input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.legal-accept input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.legal-accept label {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}
.legal-accept a {
  color: #a99dff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-accept a:hover {
  color: #c4bcff;
}

/* Buy panel footer note */
.buy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* Status banner inside panel */
.panel-status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 0.86rem;
  margin-bottom: 14px;
}
.panel-status.show {
  display: flex;
}
.panel-status.success {
  background: var(--success-soft);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #b6f3da;
}
.panel-status.error {
  background: var(--danger-soft);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #ffc9c9;
}
.panel-status.info {
  background: var(--accent-soft);
  border: 1px solid rgba(109, 94, 252, 0.3);
  color: #cdc6ff;
}

/* spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----- Cards / feature grids ------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.card h3 {
  font-size: 1.16rem;
  margin-bottom: 9px;
}
.card p {
  color: var(--text-2);
  font-size: 0.96rem;
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(109, 94, 252, 0.25);
  margin-bottom: 16px;
  color: #b6abff;
}
.card-icon svg {
  width: 22px;
  height: 22px;
}

/* Step cards (How it works) */
.step {
  position: relative;
  padding-top: 8px;
}
.step .step-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 {
  margin: 10px 0 8px;
  font-size: 1.18rem;
}
.step p {
  color: var(--text-2);
}

/* badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.badge.soon {
  color: var(--warning);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}
.badge.live {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.3);
  background: var(--success-soft);
}

/* logo strip */
.network-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-2);
}
.network-pill .swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

/* ----- FAQ accordion ---------------------------------------------------- */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 20px 20px;
  color: var(--text-2);
  font-size: 0.96rem;
}
.faq-item .faq-body a {
  color: #a99dff;
  text-decoration: underline;
}

/* ----- CTA band --------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, rgba(109, 94, 252, 0.16), rgba(79, 70, 229, 0.06));
  border: 1px solid rgba(109, 94, 252, 0.28);
  border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}
.cta-band p {
  color: var(--text-2);
  margin: 12px auto 24px;
  max-width: 520px;
}

/* ----- Legal / long-form prose ------------------------------------------ */
.prose {
  max-width: 800px;
  margin-inline: auto;
}
.prose h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.prose .updated {
  color: var(--text-3);
  font-size: 0.9rem;
  margin-top: 10px;
  margin-bottom: 8px;
}
.prose h2 {
  font-size: 1.3rem;
  margin-top: 38px;
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.prose h3 {
  font-size: 1.05rem;
  margin-top: 22px;
  margin-bottom: 8px;
}
.prose p,
.prose li {
  color: var(--text-2);
  font-size: 0.99rem;
  margin-bottom: 12px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 12px;
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: #a99dff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose strong {
  color: var(--text);
}
.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(109, 94, 252, 0.25);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 20px 0;
}
.callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* ----- Contact / forms -------------------------------------------------- */
.form-card {
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 36px);
}
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
textarea.input {
  resize: vertical;
  min-height: 130px;
  font-family: var(--font);
}

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 54px 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand p {
  color: var(--text-3);
  font-size: 0.9rem;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: color 0.14s ease;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  color: var(--text-3);
  font-size: 0.84rem;
}
.powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
.powered .cb-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0052ff;
  display: inline-grid;
  place-items: center;
}
.powered .cb-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #fff;
}
.disclaimer {
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 880px;
}

/* ----- Success page ----------------------------------------------------- */
.success-wrap {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(40px, 8vw, 90px);
}
.success-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--success-soft);
  border: 1px solid rgba(52, 211, 153, 0.4);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  color: var(--success);
}

/* ----- Utilities -------------------------------------------------------- */
.hide {
  display: none !important;
}
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 24px; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.wrap { flex-wrap: wrap; }
.text-sm { font-size: 0.9rem; }
.stack-gap > * + * { margin-top: 14px; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    order: 1;
  }
  .hero-buy {
    order: 2;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(12, 14, 24, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 13px;
    font-size: 1rem;
  }
  .nav-cta {
    margin: 6px 0 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
}
@media (max-width: 560px) {
  .grid-3,
  .grid-4,
  .grid-2,
  .row-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .amount-box input {
    font-size: 1.7rem;
  }
}

/* ----- Motion preferences ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
