/* =========================================================================
   CashBee marketing site — design system
   Brand #F5A623 (amber) → #FF7A00 (orange) gradient, light theme, Poppins.
   ========================================================================= */
:root {
  --brand: #f5a623;
  --brand-2: #ff7a00;
  --brand-700: #c97e10;
  --ink: #0f1115;
  --ink-2: #3a3f4b;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #fafaf7;
  --bg-dark: #0f1115;
  --line: #ececec;
  --grad: linear-gradient(135deg, #f5a623 0%, #ff7a00 100%);
  --shadow-sm: 0 1px 3px rgba(16, 17, 21, 0.06), 0 1px 2px rgba(16, 17, 21, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(245, 122, 0, 0.35);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 30rem; margin-top: 1.4rem; }
.lead.center { margin-left: auto; margin-right: auto; text-align: center; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; border: 0; cursor: pointer;
  border-radius: 999px; padding: 12px 24px; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; font-size: 1.25rem; box-shadow: var(--shadow-lg);
}
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.92rem; font-weight: 500; }
.nav-links a { color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--brand-700); }
.nav-links .btn { color: #fff; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 60px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.28), transparent 62%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .lead { margin-left: auto; margin-right: auto; } }
.pill {
  display: inline-block; background: rgba(245, 166, 35, 0.14); color: var(--brand-700);
  padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
@media (max-width: 880px) { .hero-cta { justify-content: center; } }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 880px) { .hero-trust { justify-content: center; } }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #fff;
  display: grid; place-items: center; margin-left: -8px; box-shadow: var(--shadow-sm); font-size: 1rem;
}
.avatars span:first-child { margin-left: 0; }

/* Phone mockup */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  width: 270px; height: 540px; background: #14151a; border-radius: 42px; padding: 12px;
  box-shadow: 0 40px 80px -28px rgba(16, 17, 21, 0.5); position: relative;
  animation: float 5s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #14151a; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; background: var(--grad);
  padding: 30px 26px; color: #fff; display: flex; flex-direction: column;
}
.ps-label { font-size: 0.85rem; opacity: 0.85; }
.ps-balance { font-size: 2.6rem; font-weight: 800; margin-top: 4px; }
.ps-sub { font-size: 0.85rem; opacity: 0.9; }
.ps-card { background: rgba(255, 255, 255, 0.18); border-radius: 18px; padding: 15px 16px; margin-top: 16px; backdrop-filter: blur(4px); }
.ps-card p { font-weight: 600; font-size: 0.95rem; }
.ps-card span { font-size: 0.78rem; opacity: 0.85; }
.ps-btn { margin-top: auto; background: #fff; color: var(--brand-700); text-align: center; font-weight: 700; padding: 14px; border-radius: 14px; }
.coin { position: absolute; font-size: 2rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15)); z-index: 2; }
.coin-1 { top: 30px; left: 10px; animation: float 3.5s ease-in-out infinite; }
.coin-2 { bottom: 90px; right: 0; animation: float 4.2s ease-in-out infinite 0.6s; }
.coin-3 { top: 180px; right: 12px; font-size: 1.6rem; animation: float 3s ease-in-out infinite 0.3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Stats ---------- */
.stats { background: var(--bg-dark); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 32px; } }
.stat-value { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; color: var(--brand); }
.stat-label { color: #9aa0ab; margin-top: 6px; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 36rem; margin: 0 auto 56px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* Steps / feature cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-icon {
  width: 64px; height: 64px; border-radius: 18px; background: rgba(245, 166, 35, 0.14);
  display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 18px;
}
.step-no { font-size: 0.78rem; font-weight: 700; color: var(--brand-700); letter-spacing: 0.06em; }
.step h3 { margin: 6px 0 10px; font-size: 1.25rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Referral ---------- */
.referral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .referral-grid { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 24px 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-weight: 500; }
.check-list li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: rgba(245,166,35,.15); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.referral-card {
  background: var(--grad); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.rc-big { font-size: 5rem; font-weight: 800; line-height: 1; }
.rc-mid { font-size: 1.2rem; margin-top: 10px; }
.rc-small { opacity: 0.85; margin-top: 4px; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 46rem; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 24px; box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; font-weight: 600; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--brand); font-size: 1.5rem; font-weight: 400; transition: transform 0.25s ease; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 20px; font-size: 0.95rem; }

/* ---------- Download CTA ---------- */
.download { padding: 80px 0; }
.download-inner {
  background: var(--bg-dark); color: #fff; border-radius: 32px; padding: 64px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.download-inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,166,35,.25), transparent 55%);
}
.download-inner > * { position: relative; }
.download-inner h2 { color: #fff; }
.download-inner p { color: #aeb3bd; margin-top: 14px; }
.store-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink);
  padding: 12px 22px; border-radius: 14px; transition: transform 0.15s ease;
}
.store-btn:hover { transform: translateY(-3px); }
.store-emoji { font-size: 1.6rem; }
.store-btn small { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.store-btn strong { font-size: 1.05rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; padding: 70px 0 40px; text-align: center; overflow: hidden; }
.page-hero h1 { margin-top: 8px; }

/* ---------- Timeline ---------- */
.timeline { max-width: 46rem; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2)); opacity: .35; }
.tl-item { display: flex; gap: 24px; margin-bottom: 36px; position: relative; }
.tl-marker { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: var(--shadow-lg); z-index: 1; }
.tl-body h3 { margin: 4px 0 8px; font-size: 1.35rem; }
.tl-body p { color: var(--muted); }

/* ---------- Referral landing ---------- */
.ref-hero { padding-bottom: 20px; }
.ref-code-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 38px; max-width: 26rem; margin: 36px auto 8px; box-shadow: var(--shadow-lg); }
.ref-code-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.ref-code { font-size: 2.4rem; font-weight: 800; letter-spacing: .1em; color: var(--brand-700); margin: 10px 0 22px; font-family: ui-monospace, monospace; }
.ref-stat { margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { background: #0b0c10; color: #aeb3bd; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 40px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 22rem; font-size: 0.92rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-cols a { display: block; color: #aeb3bd; font-size: 0.9rem; padding: 5px 0; transition: color 0.2s; }
.footer-cols a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid #1b1d23; padding: 22px 24px; display: flex; justify-content: space-between; font-size: 0.85rem; color: #6b7280; flex-wrap: wrap; gap: 8px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .coin { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- FontAwesome icon styling ---------- */
.brand-badge i { color: #fff; font-size: 1.05rem; }
.pill i { margin-right: 4px; }
.step-icon i { color: var(--brand-2); }
.sc-icon i, .tl-marker i { color: #fff; }
.coin i { color: #f5a623; }
.coin-3 i { color: #16a34a; }
.avatars span i { color: var(--brand-2); font-size: .9rem; }
.ps-card p i { margin-right: 4px; }
.store-emoji i { font-size: 1.5rem; }
.faq-plus i { font-size: 1rem; pointer-events: none; }
.error-icon { font-size: 4.5rem; color: var(--brand); margin-bottom: 10px; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { max-width: 800px; margin: 0 auto; color: var(--ink-2); }
.legal h2 { font-size: 1.3rem; margin: 34px 0 12px; color: var(--ink); }
.legal p { margin-bottom: 14px; line-height: 1.75; }
.legal ul { margin: 0 0 16px 1.2rem; display: grid; gap: 8px; }
.legal li { line-height: 1.7; }
.legal a { color: var(--brand-2); font-weight: 600; word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); }
