:root {
  --bg: #080809;
  --bg-elevated: #111113;
  --bg-card: #141416;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 162, 39, 0.35);
  --gold: #c9a227;
  --gold-light: #e4c65a;
  --gold-muted: rgba(201, 162, 39, 0.12);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a8841e);
  color: #0a0a0a;
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(201, 162, 39, 0.32); }
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-secondary:hover { border-color: var(--border-gold); background: var(--gold-muted); }
.btn-ghost { color: var(--text-muted); padding: 0.5rem 0.75rem; }
.btn-ghost:hover { color: var(--text); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 9, 0.88);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 32px; width: auto; max-width: 118px; object-fit: contain; display: block; }
.footer-brand-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand__logo { height: 30px; width: auto; max-width: 110px; object-fit: contain; display: block; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin: 0; max-width: 28ch; }
.tx-item .amount.out { color: var(--text-muted); font-weight: 600; }
.nav-desktop { display: flex; align-items: center; gap: 1.5rem; }
.nav-desktop a { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }
.nav-desktop a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle { display: none; color: var(--text); padding: 0.5rem; width: 44px; height: 44px; border-radius: 10px; }
.menu-toggle:active { background: rgba(255,255,255,0.06); }
.mobile-nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 0;
  background: rgba(8, 8, 9, 0.98);
  backdrop-filter: blur(20px);
  padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: 1rem; width: 100%; }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at 30% 20%, rgba(201, 162, 39, 0.08), transparent 55%),
              radial-gradient(ellipse at 80% 0%, rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  font-weight: 800;
}
.hero h1 span { color: var(--gold-light); }
.hero-lead { color: var(--text-muted); font-size: 1.1rem; max-width: 52ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--text-dim); font-size: 0.85rem; }
.hero-trust span { display: flex; align-items: center; gap: 0.4rem; }
.hero-trust svg { color: var(--gold); }

/* Dashboard mockup */
.dashboard {
  background: linear-gradient(180deg, #18181b 0%, #101012 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dashboard-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3f3f46; display: block; }
.dots i:first-child { background: #52525b; }
.dashboard-title { font-size: 0.8rem; color: var(--text-dim); }
.dashboard-body { padding: 1.25rem; }
.stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.stat-card small { color: var(--text-dim); font-size: 0.75rem; display: block; margin-bottom: 0.35rem; }
.stat-card strong { font-size: 1.35rem; letter-spacing: -0.02em; }
.stat-card.gold strong { color: var(--gold-light); }
.tx-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tx-list header {
  padding: 0.75rem 1rem;
  font-size: 0.8rem; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.tx-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.tx-item:last-child { border-bottom: none; }
.tx-item .amount { color: #4ade80; font-weight: 600; }
.badge {
  font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 999px;
  background: rgba(74, 222, 128, 0.12); color: #86efac;
}

/* Cards grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.card-num { color: var(--gold); font-size: 0.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Flow */
.flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 0.25rem;
  margin: 2rem 0;
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.flow-arrow { color: var(--gold); font-size: 0.9rem; padding: 0 0.15rem; }
.info-box {
  background: var(--gold-muted);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.info-box strong { color: var(--text); }

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

/* Payment link demo */
.paylink-demo {
  background: linear-gradient(180deg, #141416, #0f0f11);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 380px;
}
.paylink-demo h4 { margin: 0 0 0.25rem; }
.paylink-demo .price { font-size: 2rem; font-weight: 700; color: var(--gold-light); margin: 0.5rem 0 1.25rem; }
.paylink-demo .order-id {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

/* Virtual card */
.vcard-wrap { perspective: 1000px; }
.vcard {
  width: min(100%, 360px);
  aspect-ratio: 1.586;
  border-radius: 18px;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a1a1d 0%, #0d0d0f 50%, #1f1a0f 100%);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.vcard::after {
  content: "";
  position: absolute; inset: auto -20% -40% auto;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,162,39,0.2), transparent 70%);
}
.vcard-brand { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em; }
.vcard-chip {
  width: 42px; height: 32px; border-radius: 6px;
  background: linear-gradient(135deg, #d4af37, #8a7020);
  margin: 1rem 0;
}
.vcard-num { font-family: ui-monospace, monospace; letter-spacing: 0.12em; font-size: 1.05rem; }
.vcard-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-dim); }
.coming-soon {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

/* Compare */
.compare { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.compare-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div { padding: 1rem 1.25rem; font-size: 0.92rem; }
.compare-row > div:first-child { background: rgba(201,162,39,0.06); border-right: 1px solid var(--border); }
.compare-head { background: var(--bg-elevated); font-weight: 700; }
.compare-row .ok { color: #86efac; }
.compare-row .no { color: var(--text-dim); }

/* Code */
.code-block {
  background: #0c0c0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: #d4d4d8;
  overflow-x: auto;
  line-height: 1.7;
}
.code-block .key { color: #93c5fd; }
.code-block .str { color: #86efac; }
.code-block .num { color: #fbbf24; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  padding: 1.15rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--text); font-weight: 600;
}
.faq-q svg { flex-shrink: 0; transition: transform 0.2s; color: var(--gold); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); font-size: 0.92rem; }
.faq-item.is-open .faq-a { max-height: 300px; padding-bottom: 1.15rem; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(201,162,39,0.06), transparent);
}
.cta-band h2 { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.cta-band p { color: var(--text-muted); margin: 0 0 1.5rem; }
.cta-band .btn { margin: 0 0.35rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { margin: 0 0 1rem; font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 0.25rem 0; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; color: var(--text-dim); font-size: 0.85rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .dashboard { max-width: 520px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .paylink-demo { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 1.5rem, var(--max)); }
  .nav-desktop, .header-actions { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .hero { padding: calc(var(--header-h) + 2rem) 0 3rem; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-ctas .btn { flex: 1 1 100%; max-width: 100%; }
  .hero-trust { justify-content: center; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .section { padding: 3rem 0; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-lead { font-size: 0.98rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .flow-arrow { display: none; }
  .flow-step { text-align: center; padding: 0.75rem 1rem; }
  .cta-band { padding: 2.5rem 1.25rem; }
  .cta-band .btn { display: flex; width: 100%; margin: 0.35rem 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-card strong { font-size: 1.15rem; }
  .vcard { margin: 0 auto; }
  .code-block { font-size: 0.75rem; padding: 1rem; }
  .brand span:not(img) { font-size: 1rem; }
  .brand img { height: 32px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-trust { flex-direction: column; align-items: center; gap: 0.65rem; }
  .stats-row { grid-template-columns: 1fr; }
  .tx-item { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .dashboard-body { padding: 1rem; }
}

/* Sticky mobile CTA */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(8, 8, 9, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.mobile-bar .btn { width: 100%; }
@media (max-width: 768px) {
  .mobile-bar.is-visible { display: block; }
  body.has-mobile-bar { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
