:root {
  --bg: #05070e;
  --surface: rgba(13, 18, 30, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f8fafc;
  --muted: #b7c0cc;
  --accent: #f43f5e;
  --cyan: #22d3ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }

#bg-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
}
.bg-fallback {
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(circle at 20% 15%, rgba(244,63,94,0.12), transparent 42%),
              radial-gradient(circle at 80% 85%, rgba(34,211,238,0.12), transparent 45%),
              var(--bg);
}

.surface {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.nav-wrap { position: sticky; top: 14px; z-index: 40; width: min(1160px, 92%); margin: 14px auto 0; }
.nav {
  padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 17px; font-weight: 700; }
.brand b { color: var(--cyan); font-weight: 800; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.25);
  display: inline-flex; align-items: center; justify-content: center; color: var(--cyan);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.btn-google {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff; color: #0f172a; border: none; border-radius: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .15s;
}
.btn-google:hover { transform: translateY(-1px); }

.nav-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.avatar-lg { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.nav-email { font-size: 12.5px; color: #cbd5e1; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-ghost-sm {
  background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}

.container { width: min(1160px, 92%); margin: 0 auto; }

.hero { text-align: center; padding: 64px 0 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: #cbd5e1; font-size: 12px; font-weight: 500; margin-bottom: 20px;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 auto 18px; max-width: 780px; }
.hero h1 span { color: var(--cyan); }
.hero-sub { color: var(--muted); max-width: 610px; margin: 0 auto 28px; font-size: 16px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform .15s;
}
.btn-primary { background: var(--accent); color: #fff; border: none; box-shadow: 0 10px 26px rgba(244, 63, 94, 0.3); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }
.full { width: 100%; }

/* Interactive Preview */
.preview-frame { width: 100%; max-width: 880px; margin: 0 auto; overflow: hidden; text-align: left; }
.preview-header {
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: rgba(5, 7, 14, 0.55);
}
.win-dots { display: flex; gap: 6px; flex-shrink: 0; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); display: block; }
.preview-address {
  display: inline-flex; align-items: center; gap: 7px; font-family: Consolas, monospace; font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,0.04); padding: 5px 12px; border-radius: 7px;
  max-width: 100%; min-width: 0; overflow: hidden;
}
.preview-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #34d399; font-weight: 600; }

.preview-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; padding: 20px; }
.preview-controls { display: flex; flex-direction: column; gap: 12px; }
.meta-label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; font-weight: 700; }
.ctrl-group { display: flex; flex-direction: column; gap: 5px; }
.ctrl-group label { font-size: 12px; color: #cbd5e1; font-weight: 500; }
.s-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.s-row b { color: var(--cyan); }
.demo-select {
  width: 100%; background: rgba(5, 7, 14, 0.8); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; outline: none;
}
.demo-range { width: 100%; accent-color: var(--cyan); cursor: pointer; }

.preview-stage {
  border-radius: 12px; min-height: 240px; overflow: hidden;
  background-image: linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
                    linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
                    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
}
.stage-label { position: absolute; top: 10px; left: 12px; font-size: 10px; color: var(--muted); letter-spacing: 0.06em; z-index: 2; }
.demo-gift-img { width: 128px; height: 128px; object-fit: contain; transition: transform .15s ease, opacity .12s ease; }
.stage-caption { position: absolute; bottom: 10px; font-size: 12px; font-weight: 600; color: #e2e8f0; background: rgba(5,7,14,0.7); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }

/* Account Portal */
.hidden { display: none !important; }
.dashboard { padding: 24px; margin: 28px 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.dash-user { display: flex; align-items: center; gap: 12px; }
.dash-user h2 { margin: 0 0 2px; font-size: 18px; }
.dash-user p { margin: 0; font-size: 13px; }
.dash-top-actions { display: flex; align-items: center; gap: 10px; }
.status-badge {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(251,191,36,0.14); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3);
}
.status-badge.active { background: rgba(52,211,153,0.14); color: #34d399; border-color: rgba(52,211,153,0.3); }
.btn-secondary-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.dash-card { background: rgba(5, 7, 14, 0.55); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 6px; }
.field-row code { font-family: Consolas, monospace; font-size: 12.5px; color: var(--cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-group { display: flex; gap: 6px; flex-shrink: 0; }
.btn-icon {
  background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 7px; cursor: pointer; display: inline-flex; align-items: center;
}
.btn-sm {
  background: rgba(34,211,238,0.14); color: var(--cyan); border: 1px solid rgba(34,211,238,0.28);
  padding: 5px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.muted { color: var(--muted); font-size: 14px; }

/* Sections & Pricing */
.section { padding: 56px 0 12px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin: 0; font-size: 15.5px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feat-card, .step-card { padding: 24px; transition: transform .18s, border-color .18s; }
.feat-card:hover, .step-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.ico-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.22);
  color: var(--cyan); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feat-card h3, .step-card h4 { margin: 0 0 8px; font-size: 17px; }
.feat-card p, .step-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.step-num { font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: 0.08em; display: block; margin-bottom: 10px; }

.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 12px; margin-top: 18px;
  background: rgba(13, 18, 30, 0.85); border: 1px solid var(--border);
}
.bill-btn {
  background: transparent; color: var(--muted); border: none; border-radius: 9px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.bill-btn.active { background: rgba(34, 211, 238, 0.14); color: var(--cyan); }
.disc-pill { background: rgba(52,211,153,0.18); color: #34d399; font-size: 11px; padding: 2px 6px; border-radius: 999px; }

.pricing-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.price-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.price-card.featured { border-color: rgba(34, 211, 238, 0.42); }
.price-head h3 { margin: 0 0 4px; font-size: 19px; }
.price-head p { margin: 0; }
.plan-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(34,211,238,0.14); color: var(--cyan); border: 1px solid rgba(34,211,238,0.28);
  margin-bottom: 8px;
}
.price { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; color: #dbe3ee; font-size: 14.5px; flex: 1; }
.price-card ul li::before { content: "\2713"; color: var(--cyan); font-weight: 700; margin-right: 7px; }

/* Trust, FAQ & Footer */
.trust-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  max-width: 880px; margin: 22px auto 0;
}
.trust-item { padding: 16px; text-align: center; }
.trust-item b { display: block; font-size: 22px; color: var(--cyan); margin-bottom: 4px; }
.trust-item span { font-size: 14px; color: var(--muted); }

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 16px 20px; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 18px; }
.faq-item[open] summary::after { content: "-"; }
.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.demo-toast {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(13, 18, 30, 0.9); border: 1px solid rgba(34, 211, 238, 0.45);
  color: #f8fafc; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease;
}
.demo-toast.show { opacity: 1; transform: translateY(0); }

/* Crypto Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box { width: min(440px, 100%); padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { margin: 0 0 4px; font-size: 18px; }
.modal-head p { margin: 0; }
.crypto-body { display: flex; flex-direction: column; gap: 14px; }
.wallet-box { background: rgba(5, 7, 14, 0.7); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }

.footer {
  text-align: center; padding: 52px 16px 32px; color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px;
}
.footer a { color: #dbe3ee; text-decoration: none; }
.footer a:hover { color: var(--cyan); }

@media (max-width: 960px) {
  .preview-grid { grid-template-columns: 1fr; }
  .pricing-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .nav-links, .nav-email { display: none; }
  .hero { padding: 40px 0 24px; }
  .preview-grid { padding: 14px; gap: 14px; }
  .trust-strip, .pricing-grid-4 { grid-template-columns: 1fr; }
}
