/* ============ Tokens ============ */
:root {
  --bg-0: #0b0405;
  --bg-1: #1a0a07;
  --bg-2: #2a120c;
  --bg-3: #3a1a10;
  --gold-0: #FBE49A;
  --gold-1: #F2CD6B;
  --gold-2: #D9A43B;
  --gold-3: #A4701D;
  --gold-4: #6d4412;
  --ink-0: #FFF7DB;
  --ink-1: #EBD9A7;
  --ink-2: #B89B62;
  --ink-3: #6f5a33;
  --line: rgba(217, 164, 59, .28);
  --line-2: rgba(217, 164, 59, .55);
  --glow: rgba(255, 190, 80, .35);
  --card: linear-gradient(180deg, rgba(60,28,10,.6), rgba(28,12,8,.7));
  --btn-radius: 10px;
  --part-color: rgba(255, 200, 100, .9);
}

/* Theme: deep purple */
html[data-theme="purple"] {
  --bg-0: #05030d;
  --bg-1: #120625;
  --bg-2: #200a3a;
  --bg-3: #2f1150;
  --gold-0: #F7E8FF;
  --gold-1: #E3C6FF;
  --gold-2: #B88BFF;
  --gold-3: #7a46cf;
  --gold-4: #3f1f88;
  --ink-0: #F7EDFF;
  --ink-1: #D9C2FF;
  --ink-2: #9c82c8;
  --ink-3: #5a4680;
  --line: rgba(184, 139, 255, .28);
  --line-2: rgba(184, 139, 255, .55);
  --glow: rgba(184, 130, 255, .35);
  --part-color: rgba(200, 160, 255, .9);
}

/* Theme: midnight */
html[data-theme="midnight"] {
  --bg-0: #020610;
  --bg-1: #061226;
  --bg-2: #0a2148;
  --bg-3: #0f3366;
  --gold-0: #E0F2FF;
  --gold-1: #AEDBFF;
  --gold-2: #5BA8F5;
  --gold-3: #2d6ebd;
  --gold-4: #163e6e;
  --ink-0: #EAF5FF;
  --ink-1: #C1DCFA;
  --ink-2: #7693b8;
  --ink-3: #3a5475;
  --line: rgba(91, 168, 245, .28);
  --line-2: rgba(91, 168, 245, .55);
  --glow: rgba(91, 168, 245, .35);
  --part-color: rgba(150, 200, 255, .9);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--ink-1);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============ Background ============ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-3) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 50%, var(--bg-2) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
}
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, transparent 45%, rgba(0,0,0,.55) 100%);
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
}
.bg-glow-a {
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
.bg-glow-b {
  bottom: -300px;
  right: -100px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  0% { transform: translate(0,0); }
  100% { transform: translate(80px, 60px); }
}

/* ============ Nav ============ */
.nav {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 32px; height: 32px; filter: drop-shadow(0 2px 6px rgba(255,180,80,.35)); }
.brand-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 26px;
  background: linear-gradient(180deg, var(--gold-0), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .5px;
}
.nav-actions { display: flex; gap: 10px; }

/* ============ Buttons ============ */
.btn {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-ghost {
  background: #000;
  color: var(--ink-0);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-ghost:hover { background: #1a0f08; border-color: var(--line-2); }
.btn-outline {
  background: linear-gradient(180deg, rgba(60,28,10,.8), rgba(20,8,4,.8));
  color: var(--gold-0);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,220,150,.15);
}
.btn-outline:hover {
  border-color: var(--gold-1);
  box-shadow: inset 0 1px 0 rgba(255,220,150,.3), 0 4px 16px var(--glow);
  transform: translateY(-1px);
}

/* Gold gradient button variant (for CTA) */
html[data-btn="gradient"] .btn-outline {
  background: linear-gradient(180deg, var(--gold-0), var(--gold-3));
  color: #2a1508;
  border-color: var(--gold-2);
}
html[data-btn="flat"] .btn-outline {
  background: var(--gold-3);
  color: #fff;
  border: none;
  box-shadow: none;
}
html[data-btn="outline"] .btn-outline {
  background: transparent;
  color: var(--gold-0);
  border: 1.5px solid var(--gold-2);
}

/* ============ Main + sections ============ */
main {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 40px;
}

.gold-grad {
  background: linear-gradient(180deg, var(--gold-0) 0%, var(--gold-1) 40%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 60px;
  position: relative;
  min-height: 560px;
}
html[data-hero="top"] .hero { grid-template-columns: 1fr; }
html[data-hero="top"] .hero-art { order: -1; height: 420px; }
html[data-hero="center"] .hero { grid-template-columns: 1fr; text-align: center; }
html[data-hero="center"] .hero-text { max-width: 720px; margin: 0 auto; }
html[data-hero="center"] .hero-art { position: absolute; inset: 0; opacity: .22; pointer-events: none; z-index: -1; }
html[data-hero="center"] .dl-card { margin-left: auto; margin-right: auto; }

.display {
  font-family: 'Cinzel', serif;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: .5px;
  text-shadow: 0 2px 20px rgba(255,180,80,.15);
}
.subdisplay {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: .3px;
}
.lede {
  color: var(--ink-1);
  font-size: 15px;
  margin: 0 0 28px;
  max-width: 440px;
  opacity: .92;
}
html[data-hero="center"] .lede { margin-left: auto; margin-right: auto; }

.dl-card {
  background: linear-gradient(180deg, rgba(28,14,8,.72), rgba(15,8,5,.85));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,200,120,.08);
  backdrop-filter: blur(6px);
  max-width: 520px;
}
.dl-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-0);
  margin-bottom: 12px;
}
.dl-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: all .25s ease;
  min-width: 0;
}
.store-btn:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,180,80,.15);
}
.store-btn.lg { padding: 11px 18px; }
.store-btn .store-icon { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn .store-icon:not(.store-icon-color) { color: #fff; }
.store-btn-label {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.store-btn-label small {
  font-size: 9px;
  opacity: .75;
  letter-spacing: .3px;
  font-weight: 400;
}
.store-btn-label strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
}
.store-btn .more { color: #fff; opacity: .6; margin-left: 4px; font-size: 14px; letter-spacing: 2px; }

/* ============ Hero art ============ */
.hero-art {
  position: relative;
  height: 560px;
  perspective: 1200px;
}

/* Phone */
.phone {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: 240px;
  height: 490px;
  z-index: 3;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.65)) drop-shadow(0 0 30px rgba(255,180,80,.2));
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateX(-50%) rotate(-6deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-6deg) translateY(-10px); }
}
.phone-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a1a1e, #0a0a0c);
  border-radius: 34px;
  padding: 8px;
  border: 1px solid #2a2a2e;
  box-shadow: inset 0 0 0 1.5px #000, inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #000;
  border-radius: 10px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0d0a08, #15100b);
  border-radius: 26px;
  padding: 22px 14px 14px;
  overflow: hidden;
  color: var(--ink-0);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 10px;
  position: relative;
}
.app-status {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--ink-1);
  padding: 0 4px;
}
.status-icons { display: inline-flex; gap: 3px; align-items: center; fill: var(--ink-1); }
.status-icons svg { width: auto; height: 8px; }
.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}
.app-brand { display: inline-flex; align-items: center; gap: 5px; font-family: 'Cinzel', serif; font-weight: 700; font-size: 12px; color: var(--gold-0); }
.app-logo { width: 14px; height: 14px; }
.app-icons { display: inline-flex; gap: 4px; }
.app-icons .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); opacity: .7; }
.app-ticker-label {
  font-size: 8px;
  color: var(--ink-2);
  letter-spacing: .5px;
}
.app-price {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 2px 0;
  font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.app-price.flash-up { color: #33e39c; }
.app-price.flash-down { color: #ff6b6b; }
.app-ticker-row { display: flex; gap: 6px; align-items: center; font-size: 9px; }
.pill {
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 9px;
}
.pill.up { background: rgba(51,227,156,.15); color: #33e39c; }
.pill.down { background: rgba(255,107,107,.15); color: #ff6b6b; }
.muted { color: var(--ink-3); }

.app-chart {
  flex: 1;
  background: rgba(255,255,255,.02);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
}
#chart { width: 100%; flex: 1; }
.app-chart-labels {
  display: flex;
  justify-content: space-around;
  font-size: 8px;
  color: var(--ink-3);
  padding: 2px 0;
}
.app-chart-labels .sel { color: var(--gold-1); font-weight: 700; }

.app-actions { display: flex; gap: 6px; }
.app-actions button {
  flex: 1;
  padding: 7px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  border: none;
  cursor: pointer;
}
.buy { background: linear-gradient(180deg, #33e39c, #1a9d6a); color: #051a12; }
.sell { background: linear-gradient(180deg, #ff7373, #c33b3b); color: #1a0606; }

.app-orderbook { font-size: 9px; display: flex; flex-direction: column; gap: 4px; }
.ob-row { display: flex; justify-content: space-between; }
.ob-row .g { color: #33e39c; }
.ob-row .r { color: #ff6b6b; }
.app-slider { padding: 4px 2px 0; }
.app-slider-track {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
}
.app-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-1));
  border-radius: 3px;
}
.app-slider-thumb {
  position: absolute;
  left: 40%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--gold-0);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,180,80,.6);
}

/* Coins & bills in hero */
.coin {
  position: absolute;
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.7)) drop-shadow(0 0 12px rgba(255,180,80,.25));
  animation: coinFloat 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  z-index: 2;
}
.coin svg { width: 100%; height: 100%; }
@keyframes coinFloat {
  0%, 100% { transform: translate(var(--dx,0), var(--dy,0)) rotate(-4deg); }
  50% { transform: translate(calc(var(--dx,0) + 4px), calc(var(--dy,0) - 12px)) rotate(4deg); }
}
.coin-eth { top: 34%; left: 8%; width: 110px; height: 110px; }
.coin-btc { top: 12%; right: 10%; width: 85px; height: 85px; z-index: 4; }
.coin-eth2 { top: 34%; right: 6%; width: 100px; height: 100px; z-index: 4; }
.coin-stack { bottom: 5%; right: 6%; width: 180px; height: 130px; z-index: 4; }

.bills {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 220px;
  opacity: .95;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.5));
}
.bills svg { width: 100%; height: 100%; }

/* ============ Bonus ============ */
.bonus {
  margin: 80px 0 60px;
  position: relative;
}
.bonus-card {
  position: relative;
  padding: 48px 40px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(220,160,60,.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(45,22,10,.5), rgba(22,10,6,.6));
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,200,120,.1);
}
.bonus-card::before, .bonus-card::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: .5;
}
.bonus-card::before { top: 40%; }
.bonus-card::after { bottom: 30%; }

.bonus-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.bonus-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
}
.bonus-amount {
  font-size: 1.25em;
  color: var(--gold-0) !important;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(180deg, #fff6c2, var(--gold-1) 50%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255,220,130,.3);
}
.bonus-sub {
  color: var(--ink-1);
  font-size: 15px;
  margin: 0 auto 26px;
  max-width: 480px;
}
.bonus-sub strong { color: var(--gold-0); font-weight: 600; }
.gift-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #1f8558;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 3px;
}
.gift-chip svg { width: 13px; height: 13px; }

/* CTA big button */
.cta-big {
  display: inline-block;
  position: relative;
  padding: 16px 42px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px;
  color: #3a1f06;
  background: linear-gradient(180deg, #FFF0B8 0%, #F2CD6B 40%, #B8861F 100%);
  border: 1px solid #8a5a16;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: .4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -2px 0 rgba(0,0,0,.2),
    0 10px 30px rgba(255,180,80,.3),
    0 0 60px rgba(255,180,80,.15);
  transition: all .25s ease;
  transform: translateY(0);
}
.cta-big:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -2px 0 rgba(0,0,0,.2),
    0 16px 40px rgba(255,180,80,.45),
    0 0 80px rgba(255,180,80,.25);
}
.cta-big:active { transform: translateY(0); }
html[data-btn="outline"] .cta-big {
  background: transparent;
  color: var(--gold-0);
  border: 2px solid var(--gold-2);
  box-shadow: 0 0 30px rgba(255,180,80,.2);
}
html[data-btn="flat"] .cta-big {
  background: var(--gold-3);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

/* tether coins around bonus */
.tether {
  position: absolute;
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.6)) drop-shadow(0 0 10px rgba(255,180,80,.2));
  animation: coinFloat 6s ease-in-out infinite;
  z-index: 1;
}
.tether svg { width: 100%; height: 100%; }
.tether-l1 { top: 15%; left: 3%; --dx: 0; --dy: 0; --d: 0s; }
.tether-l2 { top: 42%; left: 8%; width: 55px; height: 55px; --dx: 0; --dy: 0; --d: 1s; }
.tether-l3 { bottom: 18%; left: 4%; width: 60px; height: 60px; --dx: 0; --dy: 0; --d: 2s; }
.tether-r1 { top: 18%; right: 6%; --dx: 0; --dy: 0; --d: .5s; }
.tether-r2 { top: 48%; right: 3%; width: 55px; height: 55px; --dx: 0; --dy: 0; --d: 1.5s; }
.tether-r3 { bottom: 20%; right: 7%; width: 60px; height: 60px; --dx: 0; --dy: 0; --d: 2.5s; }

/* ============ Why ============ */
.why { margin: 70px 0 60px; text-align: center; }
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  margin: 0 0 34px;
  line-height: 1.2;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: linear-gradient(180deg, rgba(60,28,10,.55), rgba(28,12,8,.6));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 40px var(--glow);
}
.feature:hover::before { opacity: .3; }
.feature-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.5));
}
.feature-badge svg { width: 100%; height: 100%; }
.feature h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold-0);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}
.feature p {
  color: var(--ink-1);
  font-size: 13px;
  margin: 0;
  opacity: .88;
}
.emoji-g { filter: hue-rotate(0deg); }

/* ============ Final CTA ============ */
.final { margin: 70px 0 40px; text-align: center; position: relative; }
.final-stage {
  position: relative;
  padding: 30px 0 20px;
}
.final-arc {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 180%;
  max-width: 900px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(220,160,60,.22) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.final-dl { position: relative; z-index: 1; display: inline-block; }
.final-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.final-row-2 { margin-top: 4px; }
.final .store-btn {
  background: #000;
  border: 1.5px solid rgba(220,160,60,.25);
}

/* ============ Footer ============ */
.foot {
  text-align: center;
  color: var(--ink-3);
  font-size: 11px;
  padding: 30px 0 10px;
  letter-spacing: .3px;
}

/* ============ Modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: linear-gradient(180deg, #2a160c, #120806);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 36px 32px 30px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 80px var(--glow);
  animation: modalCardIn .4s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modalCardIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255,255,255,.06);
  color: var(--ink-1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.modal-close:hover { background: rgba(255,255,255,.12); }
.modal-eyebrow {
  color: var(--gold-2);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  margin: 0 0 6px;
  font-weight: 700;
}
.modal-sub { color: var(--ink-1); font-size: 14px; margin: 0 0 22px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: 12px;
  color: var(--ink-1);
  font-weight: 500;
}
.field > span em { color: var(--ink-3); font-style: normal; }
.field input {
  background: #000;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--ink-0);
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  transition: border-color .2s;
}
.field input:focus {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(255,180,80,.15);
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--ink-1);
  cursor: pointer;
}
.check input { accent-color: var(--gold-2); margin-top: 2px; }
.modal-submit { margin-top: 4px; padding: 13px; font-size: 15px; width: 100%; }
.modal-tiny {
  text-align: center;
  color: var(--ink-3);
  font-size: 11px;
  margin-top: 6px;
}

/* ============ Tweaks panel ============ */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 300px;
  background: linear-gradient(180deg, #1f1009, #0d0604);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  color: var(--ink-1);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 50px var(--glow);
  overflow: hidden;
}
.tw-head {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(220,160,60,.1), transparent);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--gold-0);
  font-size: 14px;
  letter-spacing: .5px;
}
.tw-x {
  background: transparent;
  border: none;
  color: var(--ink-1);
  font-size: 18px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
.tw-x:hover { background: rgba(255,255,255,.1); }
.tw-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.tw-row label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tw-row label em { font-style: normal; color: var(--gold-2); font-weight: 700; }
.tw-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.tw-seg button {
  padding: 7px 4px;
  font-size: 11px;
  background: transparent;
  color: var(--ink-1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: all .2s;
}
.tw-seg button:hover { color: var(--gold-0); }
.tw-seg button.sel {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-4));
  color: #2a1508;
  font-weight: 700;
}
.tw-row input[type="range"] {
  width: 100%;
  accent-color: var(--gold-2);
}

/* ============ Language switcher ============ */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 90;
  font-family: 'Manrope', sans-serif;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: linear-gradient(180deg, rgba(40,24,12,.85), rgba(20,12,6,.85));
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--gold-0);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s;
}
.lang-toggle:hover { border-color: var(--gold-1); transform: translateY(-1px); }
.lang-toggle svg { opacity: .8; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  max-height: 360px;
  overflow-y: auto;
  background: linear-gradient(180deg, #1a0f07, #0c0804);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px var(--glow);
}
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #d9c8a0;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-menu button:hover { background: rgba(255,180,80,.08); color: var(--gold-0); }
.lang-menu button.active {
  background: linear-gradient(180deg, rgba(255,200,120,.15), rgba(255,160,60,.05));
  color: var(--gold-0);
}
[dir="rtl"] .lang-menu { right: auto; left: 0; text-align: right; }
[dir="rtl"] .lang-menu button { text-align: right; }
[dir="rtl"] body { text-align: right; }

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translate(-50%, 20px);
  background: linear-gradient(180deg, #2a160c, #120806);
  border: 1px solid var(--line-2);
  color: var(--gold-0);
  padding: 12px 22px;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 40px var(--glow);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Download-card pulse when CTA routes to it */
@keyframes dlPulse {
  0% { box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,200,120,.08), 0 0 0 0 var(--glow); }
  40% { box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,200,120,.08), 0 0 0 12px rgba(255,180,80,0); }
  100% { box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,200,120,.08), 0 0 0 0 rgba(255,180,80,0); }
}
.dl-card.pulse {
  animation: dlPulse 1.4s ease-out;
  border-color: var(--line-2);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0 40px;
  }
  .hero-art {
    height: 440px;
    order: -1;
  }
  .phone { width: 200px; height: 420px; }
  .coin-eth { left: 2%; width: 90px; height: 90px; }
  .coin-btc { right: 2%; width: 70px; height: 70px; }
  .coin-eth2 { right: 2%; top: 40%; width: 80px; height: 80px; }
  .coin-stack { right: 2%; width: 140px; }
  .bills { width: 320px; height: 180px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .bonus-card { padding: 40px 22px 36px; }
  .tether { width: 50px !important; height: 50px !important; }
  .tether-l1 { left: -2%; top: 6%; }
  .tether-r1 { right: -2%; top: 8%; }
  .tether-l2, .tether-l3, .tether-r2, .tether-r3 { display: none; }
  .cta-big { padding: 14px 26px; font-size: 15px; }

  .tweaks { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-width: 300px; }
}

@media (max-width: 560px) {
  .nav { padding: 16px 18px; }
  main { padding: 0 18px 30px; }
  .display { font-size: 34px; }
  .subdisplay { font-size: 20px; }
  .dl-row { flex-direction: column; }
  .store-btn { width: 100%; justify-content: flex-start; }
  .hero-art { height: 380px; }
  .phone { width: 180px; height: 380px; }
  .coin-eth, .coin-eth2 { width: 70px; height: 70px; }
  .coin-btc { width: 60px; height: 60px; }
  .coin-stack { width: 110px; bottom: 0; }
  .bills { width: 260px; height: 150px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .final-row { flex-direction: column; }
  .final .store-btn { width: 100%; justify-content: flex-start; }
  .bonus-title { font-size: 24px; }
}
