/* ============================================================
   SUNPAY — Global Styles
   Sun Jade Nigeria Limited
   ============================================================ */

:root {
  --gold: #F5A623;
  --gold-dim: rgba(245, 166, 35, 0.12);
  --gold-glow: rgba(245, 166, 35, 0.25);
  --black: #080705;
  --dark: #0F0D08;
  --dark-2: #171410;
  --dark-3: #1F1B13;
  --dark-4: #2A2518;
  --text: #F0EDE6;
  --text-2: rgba(240, 237, 230, 0.65);
  --text-3: rgba(240, 237, 230, 0.35);
  --border: rgba(245, 166, 35, 0.15);
  --border-2: rgba(255, 255, 255, 0.07);
  --font: 'Lexend', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.gold { color: var(--gold); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: #000;
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.35);
}
.btn--gold:hover {
  background: #f7b73a;
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 32px; font-size: 15px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(8, 7, 5, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-2);
}
.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.nav__wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--dark-2);
  border-top: 1px solid var(--border-2);
  padding: 16px 24px 24px;
  gap: 16px;
}
.nav__mobile a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  padding: 8px 0;
}
.nav__mobile.open { display: flex; }

/* ── SECTION COMMON ── */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(245, 166, 35, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── FOOTER ── */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-2);
  padding: 60px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; }
.footer__wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
}
.footer__brand p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 4px;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border-2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p {
  font-size: 12px;
  color: var(--text-3);
}

/* ── INNER PAGE HERO ── */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  text-align: center;
}
.page-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.page-hero__sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
}

/* ── PROSE (terms / privacy) ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.prose h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin: 40px 0 12px;
}
.prose h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.prose p, .prose li {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 12px;
}
.prose ul, .prose ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.prose a { color: var(--gold); }
.prose a:hover { text-decoration: underline; }
.prose .last-updated {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 40px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── LIGHT MODE ── */
body.light {
  --black: #F5F3EE;
  --dark: #ECEAE4;
  --dark-2: #E4E1D9;
  --dark-3: #DEDAD0;
  --dark-4: #D5D0C4;
  --text: #0C0C0A;
  --text-2: rgba(12, 12, 10, 0.65);
  --text-3: rgba(12, 12, 10, 0.38);
  --border: rgba(245, 166, 35, 0.25);
  --border-2: rgba(0, 0, 0, 0.08);
  --gold-dim: rgba(245, 166, 35, 0.1);
  --gold-glow: rgba(245, 166, 35, 0.2);
}

body.light .nav.scrolled {
  background: rgba(245, 243, 238, 0.92);
}

body.light .feature-card,
body.light .m-benefit,
body.light .how__step-number,
body.light .store-badge {
  background: #fff;
}

body.light .phone {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.15);
}

body.light .phone__screen {
  background: linear-gradient(180deg, #f0ede6 0%, #e8e5dc 100%);
}

body.light .phone__card {
  background: linear-gradient(135deg, #1a1400, #2a1e00);
}

body.light .hero__grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}

body.light .merchant-form-wrap {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

body.light .form-field input[type="text"],
body.light .form-field input[type="tel"],
body.light .form-field input[type="email"] {
  background: #f5f3ee;
  border-color: rgba(0,0,0,0.1);
}

body.light .chip {
  background: #f0ede6;
  border-color: rgba(0,0,0,0.1);
}

body.light .footer {
  background: #e4e1d9;
}

body.light .prose p,
body.light .prose li {
  color: rgba(12,12,10,0.7);
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--dark-3);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
body.light .theme-toggle .icon-moon { display: block; }
body.light .theme-toggle .icon-sun  { display: none; }

/* ── ADDITIONAL LIGHT MODE FIXES ── */

/* Phone mockup text - screen bg is light in light mode so text needs to be dark */
body.light .phone__greeting { color: rgba(12,12,10,0.4); }
body.light .phone__name { color: #0C0C0A; }
body.light .phone__status-bar { color: rgba(12,12,10,0.4); }
body.light .phone__card-sub { color: rgba(12,12,10,0.45); }
body.light .phone__card-amount { color: #0C0C0A; }
body.light .phone__action--outline {
  border-color: rgba(0,0,0,0.12);
  color: rgba(12,12,10,0.6);
}

/* Store badges in light mode */
body.light .store-badge {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
}
body.light .store-badge__name { color: #0C0C0A; }
body.light .store-badge__sub { color: rgba(12,12,10,0.45); }
body.light .store-badge svg { fill: #0C0C0A; }

/* Coins in light mode */
body.light .coin--1,
body.light .coin--2 {
  background: linear-gradient(135deg, #fff8ee, #fff0d0);
  border-color: rgba(245,166,35,0.35);
  box-shadow: 0 0 40px rgba(245,166,35,0.15);
}

/* How it works line */
body.light .how__steps::before {
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.3), var(--gold), rgba(245,166,35,0.3), transparent);
}

/* Download section */
body.light .download { background: var(--dark); }
body.light .download__title { color: #0C0C0A; }
body.light .download__sub { color: rgba(12,12,10,0.6); }
body.light .download__notice { color: rgba(12,12,10,0.45); }
body.light .download__logo { box-shadow: 0 20px 60px rgba(245,166,35,0.2); }

/* Hero stats */
body.light .hero__stat-label { color: rgba(12,12,10,0.45); }

/* Section tags */
body.light .section-tag {
  background: rgba(245,166,35,0.12);
  border-color: rgba(245,166,35,0.3);
}

/* Nav links in light mode */
body.light .nav__links a { color: rgba(12,12,10,0.6); }
body.light .nav__links a:hover { color: #0C0C0A; }
body.light .nav__wordmark { color: #0C0C0A; }

/* Hero badge dot */
body.light .hero__badge {
  background: rgba(245,166,35,0.1);
  border-color: rgba(245,166,35,0.25);
  color: rgba(12,12,10,0.6);
}

/* Suncoins list */
body.light .suncoins__list li { color: rgba(12,12,10,0.65); }

/* Feature card hover */
body.light .feature-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* How step content */
body.light .how__step-content p { color: rgba(12,12,10,0.6); }

/* Prose headings */
body.light .prose h3 { color: #0C0C0A; }

/* ── ADDITIONAL LIGHT MODE FIXES ── */

/* Phone mockup numbers and text */
body.light .phone__card-amount { color: #fff; }
body.light .phone__card-label  { color: var(--gold); }
body.light .phone__card-sub    { color: rgba(255,255,255,0.5); }
body.light .phone__action--gold { background: var(--gold); color: #000; }

/* Store badge icons and text */
body.light .store-badge {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
}
body.light .store-badge svg { fill: #0C0C0A; }
body.light .store-badge__name { color: #0C0C0A; }
body.light .store-badge__sub  { color: rgba(12,12,10,0.5); }

/* Download section stays dark in light mode for contrast */
body.light .download {
  background: var(--dark-2);
}
body.light .download__title { color: var(--text); }

/* How it works line */
body.light .how__steps::before {
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.3), var(--gold), rgba(245,166,35,0.3), transparent);
}

/* Section titles and headings */
body.light .section-title { color: #0C0C0A; }
body.light .feature-card h3 { color: #0C0C0A; }
body.light .how__step-content h3 { color: #0C0C0A; }
body.light .m-benefit h3 { color: #0C0C0A; }
body.light .hero__title { color: #0C0C0A; }
body.light .hero__sub { color: rgba(12,12,10,0.65); }
body.light .footer__wordmark { color: #0C0C0A; }
body.light .footer__brand p { color: rgba(12,12,10,0.6); }
body.light .footer__col a { color: rgba(12,12,10,0.6); }
body.light .footer__col a:hover { color: #0C0C0A; }
body.light .footer__bottom p { color: rgba(12,12,10,0.4); }
body.light .nav__mobile { background: #e4e1d9; }
body.light .nav__mobile a { color: rgba(12,12,10,0.7); }
body.light .page-hero__title { color: #0C0C0A; }
body.light .page-hero__sub { color: rgba(12,12,10,0.6); }
body.light .prose h2 { color: var(--gold); }
body.light .prose h3 { color: #0C0C0A; }
body.light .prose p,
body.light .prose li { color: rgba(12,12,10,0.7); }
body.light .merchant-form-left > p { color: rgba(12,12,10,0.65); }
body.light .merchant-contact a { color: rgba(12,12,10,0.6); }
body.light .form-note { color: rgba(12,12,10,0.45); }
body.light .suncoins__list li { color: rgba(12,12,10,0.65); }
body.light .suncoins__text > p { color: rgba(12,12,10,0.65); }
body.light .hero__stat-value { color: var(--gold); }
body.light .download__sub { color: rgba(240,237,230,0.65); }
body.light .download__notice { color: rgba(240,237,230,0.5); }
