/* ─── reset / tokens ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #08090b;
  --bg-elev:      #101115;
  --bg-elev-2:    #16181d;
  --border:       #22242b;
  --border-dim:   #1a1c22;
  --text:         #ebecef;
  --text-dim:     #a8acb5;
  --text-faint:   #6c7280;
  --primary:      #18c4da;
  --primary-2:    #22d3ee;
  --primary-soft: rgba(24, 196, 218, 0.12);
  --primary-line: rgba(24, 196, 218, 0.35);
  --success:      #10b981;
  --warn:         #f59e0b;
  --danger:       #ef4444;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-pill:  999px;
  --shadow-lg:    0 24px 50px -12px rgba(0,0,0,0.6);
  --font-sans:    "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content:""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(circle at 12% 0%,  rgba(24,196,218,0.10), transparent 40%),
    radial-gradient(circle at 88% 8%,  rgba(34,211,238,0.06), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(24,196,218,0.04), transparent 50%);
}

a { color: var(--primary); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .82; }

code {
  font-family: var(--font-mono); font-size: .87em;
  background: var(--bg-elev); color: var(--primary);
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--border-dim);
}
pre { margin: 0; }
pre code { background: transparent; border: none; padding: 0; color: inherit; font-size: 13px; line-height: 1.65; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--primary); color: #001114;
  padding: 8px 14px; border-radius: 0 0 8px 0;
  font-weight: 600; z-index: 100;
}
.skip-link:focus { top: 0; }

/* ─── nav ────────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px 32px;
  background: rgba(8,9,11,.78); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display:flex; align-items:center; gap:8px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand b { font-weight: 700; }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 12px rgba(24,196,218,.55);
}
.nav-links { display: flex; gap: 22px; list-style: none; margin-left: 12px; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  margin-left: auto;
  background: var(--primary); color: #001114;
  padding: 9px 16px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(24,196,218,.25); opacity: 1; }

@media (max-width: 860px) {
  .topnav { padding: 12px 16px; gap: 14px; }
  .nav-links { display: none; }
}

/* ─── hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 110px 24px 80px;
  text-align: center;
  max-width: 1080px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary) 0%, #7be0ed 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 19px; color: var(--text-dim);
  max-width: 720px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-primary { background: var(--primary); color: #001114; }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(24,196,218,.32); transform: translateY(-1px); opacity: 1; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--primary-line); opacity: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-line);
  margin-bottom: 24px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 6px var(--primary); }

/* ─── feature grid ───────────────────────────────────────────────────────── */
.section { padding: 80px 24px; max-width: 1180px; margin: 0 auto; }
.section h2 { font-size: clamp(28px, 3.8vw, 40px); letter-spacing: -0.01em; margin-bottom: 14px; text-align: center; }
.section p.intro { color: var(--text-dim); max-width: 680px; margin: 0 auto 56px; text-align: center; font-size: 16px; }

.feature-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s, transform .15s;
  position: relative; overflow: hidden;
}
.feature:hover { border-color: var(--primary-line); transform: translateY(-2px); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-line);
  margin-bottom: 16px; font-size: 22px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14.5px; }

/* ─── side-by-side info blocks ───────────────────────────────────────────── */
.info-row {
  display: grid; gap: 28px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
.info-row.flip { grid-template-columns: 1fr 1.1fr; }
.info-row.flip .info-text { order: 2; }
@media (max-width: 880px) { .info-row, .info-row.flip { grid-template-columns: 1fr; } .info-row.flip .info-text { order: unset; } }
.info-text h2 { text-align: left; }
.info-text p { color: var(--text-dim); margin-bottom: 14px; font-size: 15.5px; }
.info-text ul { padding-left: 18px; color: var(--text-dim); }
.info-text ul li { margin-bottom: 8px; }
.info-illu {
  border-radius: var(--radius); padding: 32px;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  color: var(--text-dim); white-space: pre-wrap;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.info-illu::before {
  content:""; position:absolute; inset:-1px;
  background: linear-gradient(135deg, transparent, var(--primary-line), transparent);
  border-radius: inherit; opacity: .35; pointer-events: none;
}
.info-illu .k { color: var(--primary); }
.info-illu .s { color: #b6eaf2; }
.info-illu .n { color: #f7c08a; }

/* ─── faq ────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px;
}
.faq details[open] { border-color: var(--primary-line); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-dim); margin-top: 14px; font-size: 14.5px; }

/* ─── form (payment-link page) ───────────────────────────────────────────── */
.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  max-width: 640px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.card h2 { text-align: left; margin-bottom: 8px; }
.card .sub { color: var(--text-dim); margin-bottom: 26px; font-size: 14.5px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 12px 14px;
  background: var(--bg-elev-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--primary-line);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.result {
  margin-top: 24px; padding: 18px;
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-mono);
  font-size: 13px; word-break: break-all;
  display: none;
}
.result.show { display: block; }
.result.error { border-color: rgba(239,68,68,.45); color: #f7a4a4; }

/* ─── api docs panel ─────────────────────────────────────────────────────── */
.docs-grid { display: grid; gap: 32px; }
.endpoint {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.endpoint-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border-dim);
}
.method {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-sm); color: #001114;
  letter-spacing: .04em;
}
.method.get { background: var(--success); }
.method.post { background: var(--primary); }
.endpoint-path { color: var(--text); font-family: var(--font-mono); font-size: 13.5px; }
.endpoint p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 10px; }
.endpoint pre {
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  overflow-x: auto;
}

/* ─── pay page ───────────────────────────────────────────────────────────── */
.pay-shell {
  min-height: calc(100vh - 80px);
  display: grid; place-items: center;
  padding: 60px 24px;
}
.pay-card {
  width: 100%; max-width: 560px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pay-card .head {
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
  border-bottom: 1px solid var(--border);
}
.pay-card .head .label { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.pay-card .head .amount { font-size: 38px; font-weight: 700; margin-top: 4px; }
.pay-card .head .ref { color: var(--text-faint); font-size: 12px; margin-top: 6px; font-family: var(--font-mono); }
.pay-card .body { padding: 24px 28px; }
.pay-card .body h3 { font-size: 14px; color: var(--text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }

.method-list { display: grid; gap: 10px; }
.method-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.method-row:hover { border-color: var(--primary-line); background: var(--bg-elev); }
.method-row .name { font-weight: 500; }
.method-row .fee { font-size: 12px; color: var(--text-faint); }
.method-row .arrow { color: var(--text-faint); }

.pay-detail {
  margin-top: 14px; padding: 18px;
  background: var(--bg-elev-2); border: 1px solid var(--primary-line);
  border-radius: var(--radius-sm);
}
.pay-detail .crypto-amount {
  font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--primary);
}
.pay-detail .address {
  margin-top: 12px; padding: 10px 12px;
  background: var(--bg); border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  font-family: var(--font-mono); font-size: 13px; word-break: break-all;
}
.pay-detail .copy-btn {
  margin-top: 8px; padding: 8px 14px;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-line); border-radius: var(--radius-pill);
  cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 500;
}
.pay-detail .copy-btn:hover { background: var(--primary); color: #001114; }

.pay-status {
  margin-top: 18px; padding: 12px 14px;
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13.5px;
  display: flex; align-items: center; gap: 10px;
}
.pay-status .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--warn); box-shadow: 0 0 8px var(--warn);
  animation: pulse 1.6s infinite;
}
.pay-status.paid .dot { background: var(--success); box-shadow: 0 0 8px var(--success); animation: none; }
.pay-status.paid { color: #c8f5e3; border-color: rgba(16,185,129,.35); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ─── success page ───────────────────────────────────────────────────────── */
.success {
  max-width: 560px; margin: 0 auto; padding: 80px 24px;
  text-align: center;
}
.success .icon-success {
  width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16,185,129,.15); color: var(--success);
  border: 1px solid rgba(16,185,129,.35);
  margin: 0 auto 24px; font-size: 38px;
}
.success h1 { font-size: 32px; margin-bottom: 12px; }
.success p { color: var(--text-dim); margin-bottom: 28px; }

/* ─── footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
  background: var(--bg-elev);
  margin-top: 80px;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  max-width: 1180px; margin: 0 auto;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 13px; color: var(--text); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--text); opacity: 1; }
.footer-tag { color: var(--text-dim); font-size: 14px; margin-top: 10px; max-width: 320px; }

.payment-rail {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 1180px; margin: 40px auto 28px;
  justify-content: center;
}
.payment-rail span {
  font-size: 11.5px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 5px 12px; background: var(--bg-elev-2);
}

.legal { max-width: 1180px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border-dim); }
.legal p { color: var(--text-faint); font-size: 12px; line-height: 1.7; }
.legal .disclaimer { margin-top: 14px; }

/* ─── tables (for min-amount tables on landing) ──────────────────────────── */
table.simple {
  width: 100%; border-collapse: collapse;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
table.simple th, table.simple td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border-dim);
  font-size: 14px;
}
table.simple th { background: var(--bg-elev-2); font-weight: 600; color: var(--text-dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
table.simple tr:last-child td { border-bottom: none; }

.note {
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  color: var(--text); font-size: 14px;
}
.note.warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); }
