/* ReceiptCash AI — marketing landing page. Same brand system as the app:
   coral/sage/lavender, aurora glassmorphism, friendly robot mascot. Vanilla
   CSS/JS, zero build step, fast on Cloudflare Pages. */

:root {
  --coral: #ff6b6b;
  --sage: #51cf66;
  --lavender: #b197fc;
  --ink: #14101f;
  --ink-soft: #6b6580;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Nunito', 'Quicksand', sans-serif;
  --shadow: 0 10px 30px rgba(20, 16, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 16, 31, 0.14);
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #0a0a1f;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 31, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background .3s ease;
}
.nav.scrolled { background: rgba(10, 10, 31, 0.85); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 19px; color: #fff; letter-spacing: -0.3px; }
.logo em { font-style: normal; color: var(--coral); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 700; color: #cfc9e6; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* ── BUTTONS ── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 14.5px; border-radius: 999px; cursor: pointer;
  padding: 11px 20px; border: none; transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #ff7a8a, #ff6b6b);
  color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 107, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 107, 107, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 16px; }

/* ── AURORA background ── */
.aurora {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 10% 4%, rgba(37, 99, 235, 0.5) 0%, transparent 46%),
    radial-gradient(900px 660px at 88% 12%, rgba(217, 70, 239, 0.45) 0%, transparent 50%),
    radial-gradient(1000px 720px at 93% 56%, rgba(239, 68, 68, 0.4) 0%, transparent 48%),
    radial-gradient(1050px 820px at 44% 55%, rgba(168, 85, 247, 0.4) 0%, transparent 55%),
    radial-gradient(820px 640px at 14% 92%, rgba(91, 33, 182, 0.45) 0%, transparent 52%),
    linear-gradient(135deg, #0a0a1f 0%, #160a2e 45%, #240a22 100%);
  animation: auroraShift 18s ease-in-out infinite alternate;
}
@keyframes auroraShift { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(18deg); } }

/* ── HERO ── */
.hero { position: relative; padding: 150px 24px 90px; overflow: hidden; }
.hero-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .6px; color: #ffb3b3;
  border: 1px solid rgba(255, 107, 107, .5); border-radius: 999px; padding: 7px 14px;
}
.hero-copy h1 { font-size: 54px; font-weight: 900; line-height: 1.06; letter-spacing: -1.5px; color: #fff; margin-top: 18px; }
.hero-copy .accent { color: #ff8a8a; text-shadow: 0 0 30px rgba(255, 107, 107, .5); }
.hero-sub { font-size: 18px; line-height: 1.6; color: #c9c4e6; max-width: 480px; margin-top: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.trust-row {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 13px; font-weight: 700; color: #a79fce;
}
.trust-row .dot { opacity: .4; }

.hero-robot { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-robot svg { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.float-card {
  position: absolute; background: rgba(255, 255, 255, 0.95); color: #14101f;
  font-weight: 800; font-size: 13px; padding: 10px 16px; border-radius: 14px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.card-1 { top: 6%; right: 2%; animation: floaty 4s ease-in-out infinite; }
.card-2 { bottom: 10%; left: -4%; animation: floaty 4.6s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* mascot animations (ported from the app) */
@keyframes rc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes rc-wave { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(22deg); } }
@keyframes rc-blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes rc-point { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes rc-glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes rc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.rc-robot { animation: rc-float 3.2s ease-in-out infinite; transform-origin: center; }
.rc-robot .eye { animation: rc-blink 4s infinite; transform-origin: center; transform-box: fill-box; }
.rc-robot .arm-r { animation: rc-wave 1.3s ease-in-out infinite; transform-origin: 70% 30%; transform-box: fill-box; }
.rc-robot .arm-l { animation: rc-point 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.rc-robot .core { animation: rc-glow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rc-robot .antenna { animation: rc-bob 2.8s ease-in-out infinite; transform-origin: 50% 100%; transform-box: fill-box; }

/* ── STAT STRIP ── */
.stat-strip {
  max-width: 1180px; margin: 0 auto; padding: 0 24px 70px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px; padding: 22px; text-align: center; backdrop-filter: blur(8px);
}
.stat-num { display: block; font-size: 34px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.stat-label { font-size: 12.5px; font-weight: 700; color: #a79fce; margin-top: 4px; display: block; }

/* ── SECTIONS ── */
.section { max-width: 1180px; margin: 0 auto; padding: 90px 24px; position: relative; }
.section.alt { background: rgba(255, 255, 255, 0.02); border-radius: 40px; max-width: 1230px; }
.section-title { font-size: 38px; font-weight: 900; letter-spacing: -1px; color: #fff; text-align: center; }
.section-sub { font-size: 16px; color: #a79fce; text-align: center; margin-top: 10px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.step {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 28px 22px; text-align: center; backdrop-filter: blur(8px);
  transition: transform .25s ease;
}
.step:hover { transform: translateY(-6px); }
.step-emoji { font-size: 40px; margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 800; color: #fff; }
.step p { font-size: 13.5px; color: #b8b2d6; line-height: 1.5; margin-top: 8px; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; padding: 0 40px 40px; }
.feature-card {
  background: rgba(255, 255, 255, 0.96); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.f-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 800; color: var(--ink); }
.feature-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin-top: 8px; }

/* ── MARQUEE ── */
.marquee { overflow: hidden; margin-top: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scrollLeft 32s linear infinite; }
.marquee-track span {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2ddff; font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 999px; white-space: nowrap;
}
@keyframes scrollLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-note { text-align: center; margin-top: 22px; font-size: 13px; color: #a79fce; }

/* ── PROMISE ── */
.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 46px; padding: 0 20px; }
.promise-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(81, 207, 102, 0.1); border: 1px solid rgba(81, 207, 102, 0.25);
  border-radius: 16px; padding: 18px 20px;
}
.p-check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; }
.promise-card p { font-size: 14.5px; color: #e2ddff; line-height: 1.5; }
.promise-card b { color: #fff; }

.fee-callout { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 54px; flex-wrap: wrap; }
.fee-box {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px; padding: 24px 34px; text-align: center; min-width: 160px;
}
.fee-box.highlight { background: rgba(81, 207, 102, 0.15); border-color: rgba(81, 207, 102, 0.4); }
.fee-num { display: block; font-size: 36px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.fee-label { font-size: 12px; color: #a79fce; font-weight: 700; margin-top: 6px; display: block; line-height: 1.4; }
.fee-arrow { font-size: 26px; color: #a79fce; }

/* ── FINAL CTA ── */
.final-cta { position: relative; padding: 110px 24px; text-align: center; overflow: hidden; }
.aurora-2 { animation-direction: alternate-reverse; }
.final-inner { max-width: 560px; margin: 0 auto; }
.final-inner h2 { font-size: 40px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.final-inner p { font-size: 16px; color: #c9c4e6; margin-top: 14px; }
.final-inner .btn-primary { margin-top: 30px; }
.final-note { font-size: 12.5px; color: #8a84ad; margin-top: 18px; }

/* ── FOOTER ── */
.footer { background: #060515; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 60px 24px 30px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: #8a84ad; font-size: 13px; margin-top: 10px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.footer-links a { display: block; color: #a79fce; font-size: 13.5px; margin-bottom: 9px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1180px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 12px; color: #6b6580; text-align: center; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-pop { opacity: 0; transform: scale(.8); transition: opacity .5s ease .3s, transform .5s cubic-bezier(.2, 1.4, .4, 1) .3s; }
.reveal-pop.in { opacity: 1; transform: scale(1); }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-robot { order: 0; margin-bottom: 10px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .trust-row { justify-content: center; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px 20px; }
  .promise-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #0a0a1f; padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav.open .nav-cta { display: flex; flex-direction: column; position: absolute; top: calc(100% + 190px); left: 0; right: 0; background: #0a0a1f; padding: 0 24px 20px; }
  .hero { padding: 120px 20px 60px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-sub { font-size: 15.5px; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 28px; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .fee-callout { flex-direction: column; }
  .float-card { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   INTERACTIVE CONVERSION SECTIONS (psychology hooks)
   ═══════════════════════════════════════════════════════════ */

/* ── REFUND ESTIMATOR ── */
.est-card {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px; padding: 44px; backdrop-filter: blur(10px);
}
.accent-coral { color: #ff8a8a; }
.est-copy h2 { font-size: 40px; font-weight: 900; letter-spacing: -1px; color: #fff; margin-top: 16px; }
.est-lead { font-size: 16px; color: #c9c4e6; line-height: 1.6; margin-top: 14px; max-width: 460px; }
.est-lead b { color: #ff8a8a; }
.est-label { display: block; margin-top: 28px; font-size: 14px; font-weight: 700; color: #cfc9e6; }
.est-label b { color: #fff; font-size: 16px; }
.est-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #ff6b6b var(--fill, 25%), rgba(255,255,255,0.14) var(--fill, 25%));
  margin-top: 14px; cursor: pointer;
}
.est-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 4px solid #ff6b6b; box-shadow: 0 4px 14px rgba(255, 107, 107, 0.5); cursor: pointer;
}
.est-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #ff6b6b; cursor: pointer; }
.est-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #8a84ad; }
.est-btn { margin-top: 26px; }
.est-result { text-align: center; }
.est-ring {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 230px; height: 230px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(81, 207, 102, 0.22), rgba(81, 207, 102, 0.04));
  border: 2px solid rgba(81, 207, 102, 0.4);
  box-shadow: 0 0 50px rgba(81, 207, 102, 0.25), inset 0 0 40px rgba(81, 207, 102, 0.12);
  animation: estPulse 3s ease-in-out infinite;
}
@keyframes estPulse { 0%, 100% { box-shadow: 0 0 50px rgba(81,207,102,.25), inset 0 0 40px rgba(81,207,102,.12); } 50% { box-shadow: 0 0 70px rgba(81,207,102,.4), inset 0 0 40px rgba(81,207,102,.12); } }
.est-num { font-size: 52px; font-weight: 900; color: #63e6be; letter-spacing: -2px; text-shadow: 0 0 24px rgba(81, 207, 102, 0.5); }
.est-sub { font-size: 13px; font-weight: 700; color: #9ce0c0; margin-top: 2px; }
.est-fine { font-size: 11.5px; color: #8a84ad; line-height: 1.5; margin-top: 18px; max-width: 260px; margin-left: auto; margin-right: auto; }
.est-fine b { color: #63e6be; }

/* ── LIVE SCAN DEMO ── */
.demo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; margin-top: 46px; max-width: 860px; margin-left: auto; margin-right: auto; }
.demo-receipt {
  position: relative; background: #fbfbff; color: #2b2b33; border-radius: 16px; padding: 22px 22px 26px;
  box-shadow: var(--shadow-lg); overflow: hidden; font-variant-numeric: tabular-nums;
}
.dr-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px dashed #d7dcea; padding-bottom: 12px; margin-bottom: 8px; }
.dr-head b { font-size: 15px; letter-spacing: 1px; }
.dr-head span { font-size: 12px; color: #8a8a99; }
.dr-line { display: flex; justify-content: space-between; padding: 11px 10px; font-size: 14px; border-radius: 8px; transition: background .3s ease, transform .3s ease; position: relative; }
.dr-line.hit { background: rgba(81, 207, 102, 0.16); transform: scale(1.02); }
.dr-line.hit::after {
  content: attr(data-refund); position: absolute; right: 8px; top: -10px;
  background: #51cf66; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(81, 207, 102, 0.4); animation: badgePop .4s cubic-bezier(.2,1.5,.4,1);
}
@keyframes badgePop { from { transform: scale(0) translateY(6px); } to { transform: scale(1) translateY(0); } }
.dr-scan { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: linear-gradient(90deg, transparent, #b197fc, transparent); box-shadow: 0 0 18px 4px rgba(177, 151, 252, 0.7); opacity: 0; }
.dr-scan.run { animation: scanSweep 1.6s ease-in-out; }
@keyframes scanSweep { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.demo-found { text-align: center; }
.df-badge { font-size: 40px; }
.df-num { font-size: 56px; font-weight: 900; color: #63e6be; letter-spacing: -2px; text-shadow: 0 0 26px rgba(81, 207, 102, 0.5); }
.df-label { font-size: 13px; font-weight: 700; color: #9ce0c0; }
.df-items { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.df-items li { list-style: none; font-size: 13px; color: #e2ddff; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 7px 16px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.df-items li.show { opacity: 1; transform: translateY(0); }
.df-cta-note { display: block; margin-top: 18px; font-size: 13px; font-weight: 700; color: #ffb3b3; }

/* ── REWARDS / BADGES ── */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.badge-chip {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px;
  padding: 24px 16px; text-align: center; transition: transform .25s ease, box-shadow .25s ease;
}
.badge-chip:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25); }
.badge-chip span { font-size: 40px; display: block; }
.badge-chip b { display: block; color: #fff; font-size: 15px; font-weight: 800; margin-top: 10px; }
.badge-chip em { display: block; color: #a79fce; font-size: 12px; font-style: normal; margin-top: 3px; }

/* ── TRUST BAR ── */
.trust-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.tb-item { background: rgba(81, 207, 102, 0.08); border: 1px solid rgba(81, 207, 102, 0.22); border-radius: 16px; padding: 20px; }
.tb-item b { display: block; color: #fff; font-size: 15px; }
.tb-item span { display: block; color: #b8b2d6; font-size: 13px; line-height: 1.5; margin-top: 6px; }

@media (max-width: 980px) {
  .est-card { grid-template-columns: 1fr; gap: 30px; text-align: center; padding: 32px 24px; }
  .est-lead { margin-left: auto; margin-right: auto; }
  .est-label { text-align: left; }
  .demo-wrap { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .est-copy h2 { font-size: 30px; }
  .est-num { font-size: 42px; }
  .df-num { font-size: 46px; }
}

/* ═══════════════════════════════════════════════════════════
   "ALIVE" LAYER — motion, parallax, micro-interactions
   ═══════════════════════════════════════════════════════════ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, #ff6b6b, #b197fc, #51cf66);
  box-shadow: 0 0 12px rgba(177, 151, 252, 0.7); transition: width .1s linear;
}

/* Floating background particles (coins / sparkles drifting up) */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particles i {
  position: absolute; bottom: -40px; font-size: 20px; opacity: 0; will-change: transform, opacity;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: .5; }
  90% { opacity: .5; }
  100% { transform: translateY(-108vh) rotate(220deg); opacity: 0; }
}

/* Animated gradient headline */
.grad-text {
  background: linear-gradient(100deg, #ff8a8a, #ffb3b3, #b197fc, #ff8a8a);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; animation: gradShift 6s ease infinite;
}
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Rotating eyebrow word */
.rot { display: inline-block; color: #fff; min-width: 128px; text-align: left; }
.rot span { display: inline-block; animation: rotWordIn .5s cubic-bezier(.2,1.3,.4,1); }
@keyframes rotWordIn { from { opacity: 0; transform: translateY(8px) rotateX(40deg); } to { opacity: 1; transform: none; } }

/* Magnetic + glowing primary CTA */
.magnetic { transition: transform .18s cubic-bezier(.2,1,.3,1), box-shadow .2s ease; will-change: transform; }
.btn-primary.glow { position: relative; }
.btn-primary.glow::before {
  content: ''; position: absolute; inset: -3px; border-radius: inherit; z-index: -1;
  background: linear-gradient(120deg, #ff6b6b, #b197fc, #51cf66, #ff6b6b);
  background-size: 300% 300%; filter: blur(9px); opacity: .55; animation: gradShift 5s ease infinite;
}

/* 3D tilt cards */
.tilt { transform-style: preserve-3d; transition: transform .18s ease; will-change: transform; }
.tilt > * { transform: translateZ(20px); }

/* Third floating proof card */
.card-3 { top: 46%; right: -4%; animation: floaty 5.2s ease-in-out infinite; }
.float-card { transition: transform .1s ease-out; }

/* Store badges row (Play Store slot) */
.store-badges { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.play-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #101019; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px;
  padding: 9px 16px; transition: transform .2s ease, border-color .2s ease, opacity .2s ease;
}
.play-badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }
.play-badge[data-live="0"] { opacity: .78; }
.play-badge .pb-icon {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 12px;
  background: conic-gradient(from -30deg, #00d3ff, #00f076, #ffd400, #ff3b6b, #00d3ff);
}
.play-badge.lg .pb-icon { width: 30px; height: 30px; font-size: 14px; }
.play-badge .pb-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-badge .pb-text em { font-style: normal; font-size: 9px; letter-spacing: .5px; color: #b8b2d6; text-transform: uppercase; }
.play-badge.lg .pb-text em { font-size: 10px; }
.play-badge .pb-text b { font-size: 14px; color: #fff; font-weight: 800; }
.play-badge.lg .pb-text b { font-size: 16px; }
.or-web { font-size: 13px; font-weight: 700; color: #a79fce; }
.nav-cta .play-badge { padding: 6px 12px; }
.nav-cta .play-badge .pb-icon { width: 22px; height: 22px; font-size: 11px; }
.nav-cta .play-badge .pb-text b { font-size: 12px; }
.nav-cta .play-badge .pb-text em { font-size: 8px; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .particles, .grad-text, .btn-primary.glow::before, .aurora { animation: none !important; }
  .reveal, .reveal-pop { transition: none; opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .nav-cta .play-badge { display: none; }
  .card-3 { display: none; }
  .store-badges { justify-content: center; }
  .rot { min-width: 0; }
}

/* ── 3D gradient icons (feature cards + steps) ── */
.icon3d { width: 56px; height: 56px; display: block; filter: drop-shadow(0 9px 14px rgba(0, 0, 0, 0.28)); transition: transform .3s cubic-bezier(.2, 1, .3, 1); }
.f-ic { margin-bottom: 14px; }
.step-ic { display: inline-block; margin-bottom: 14px; }
.feature-card:hover .icon3d { transform: translateY(-4px) scale(1.07) rotate(-4deg); }
.step:hover .icon3d { transform: translateY(-4px) scale(1.08) rotate(4deg); }
.step-ic .icon3d { margin: 0 auto; width: 60px; height: 60px; }
