/* ============================================================
   CHUMA WALLET — Stylesheet
   Colors: teal #0B3A3E · cream #F6F2EA · gold #C9A03F
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --teal:        #0B3A3E;
  --teal-deep:   #0A2E32;
  --cream:       #F6F2EA;
  --gold:        #C9A03F;
  --gold-hover:  #D4AF37;
  --light:       #F6F2EA;
  --muted-dark:  #B8B0A6;
  --border-cream:#E5E0D5;
  --radius:      12px;
  --radius-sm:   8px;
  --font-display:'Sora', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-mono:   'IBM Plex Mono', monospace;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--teal);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 8vw; } }
.container-narrow { max-width: 720px; }
.center { text-align: center; }

.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-teal { background: var(--teal); }
.section-cream { background: var(--cream); color: var(--teal); }

.section-head { text-align: center; margin-bottom: 64px; }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15; margin-bottom: 16px;
}
.section-sub { font-size: clamp(16px, 2vw, 20px); max-width: 560px; margin: 0 auto; }

.grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-narrow { max-width: 960px; margin: 0 auto; }

/* ---------- 4. Typography utilities ---------- */
.mono-label {
  display: block; font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.text-teal { color: var(--teal); }
.text-muted-dark { color: var(--muted-dark); }
.text-light-70 { color: rgba(246,242,234,.7); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-sm);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-gold { background: var(--gold); color: var(--teal); }
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,160,63,.3);
}
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--teal); transform: translateY(-2px); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(11,58,62,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1280px; margin: 0 auto;
}
@media (min-width: 1024px) { .nav-inner { padding: 16px 8vw; } }
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; }

.nav-links { display: none; gap: 32px; }
.nav-links button { font-size: 14px; color: rgba(246,242,234,.8); transition: color .2s; }
.nav-links button:hover { color: var(--gold); }
.nav-cta { display: none; }
@media (min-width: 768px) { .nav-links, .nav-cta { display: flex; } .nav-toggle { display: none; } }

.nav-toggle { color: var(--light); padding: 4px; }
.nav-toggle .icon-close { display: none; }
.nav.open .icon-menu { display: none; }
.nav.open .icon-close { display: block; }

.nav-mobile {
  display: none; flex-direction: column; gap: 16px;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(246,242,234,.1);
  background: rgba(11,58,62,.98);
}
.nav-mobile button:not(.btn) { text-align: left; color: rgba(246,242,234,.8); }
.nav-mobile .btn { align-self: flex-start; }
.nav.open .nav-mobile { display: flex; }

/* ---------- 7. Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--teal); padding: 120px 0 64px;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.1; margin-bottom: 24px;
}
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: rgba(246,242,234,.8); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge-free {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201,160,63,.15);
  border: 1px solid rgba(201,160,63,.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.hero-image { order: -1; }
@media (min-width: 1024px) { .hero-image { order: 0; } }

.image-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); aspect-ratio: 4 / 5;
}
@media (min-width: 1024px) { .image-frame { aspect-ratio: 3 / 4; } }
.image-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(.92); }
.image-tint { position: absolute; inset: 0; background: var(--teal); opacity: .2; mix-blend-mode: overlay; pointer-events: none; }
.image-tint-light { opacity: .15; }

/* ---------- 8. Cards ---------- */
.pay-icon { font-size: 40px; margin-bottom: 20px; }
.card { padding: 32px; border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 15px; line-height: 1.65; }

.card-light { background: #fff; border: 1px solid var(--border-cream); color: var(--teal); }
.card-light p { color: var(--muted-dark); }
.card-light:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); }

.card-dark { background: transparent; border: 1px solid rgba(201,160,63,.3); }
.card-dark:hover { border-color: rgba(201,160,63,.6); }
.card-dark h3 { color: var(--light); margin-bottom: 24px; }

.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 16px;
  font-size: 14px; color: rgba(246,242,234,.8);
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; background: var(--gold);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* ---------- 9. Steps ---------- */
.steps { position: relative; display: grid; gap: 48px; max-width: 960px; margin: 0 auto; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps-line {
  display: none; position: absolute; top: 24px; left: 20%; right: 20%;
  border-top: 2px dashed rgba(201,160,63,.3);
}
@media (min-width: 768px) { .steps-line { display: block; } }
.step { text-align: center; position: relative; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--teal);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.step h3 { font-family: var(--font-display); font-size: 20px; color: var(--teal); margin-bottom: 12px; }
.step p { color: var(--muted-dark); font-size: 15px; max-width: 300px; margin: 0 auto; }

/* ---------- 10. Split sections ---------- */
.split { display: grid; gap: 48px; align-items: center; max-width: 1100px; margin: 0 auto; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-reverse .split-visual { order: -1; }
}
.split-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px); line-height: 1.2; margin-bottom: 16px;
}
.split-sub { font-size: 18px; margin-bottom: 32px; }

.icon-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px; font-size: 14px; color: rgba(246,242,234,.8);
}
.icon-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.icon-list-light li { color: var(--teal); }

/* CSV window */
.csv-window { background: var(--teal-deep); border: 1px solid rgba(201,160,63,.2); border-radius: var(--radius); padding: 24px; }
.csv-titlebar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; } .dot-yellow { background: #eab308; } .dot-green { background: #22c55e; }
.csv-filename { font-family: var(--font-mono); font-size: 12px; color: rgba(246,242,234,.5); margin-left: 8px; }
.csv-code { font-family: var(--font-mono); font-size: 14px; color: rgba(246,242,234,.8); overflow-x: auto; }
.csv-head { color: var(--gold); }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; text-align: center; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--gold); }
.stat-label { font-size: 12px; color: rgba(246,242,234,.5); }

/* Vendor SMS card */
.vendor-image-wrap { position: relative; }
.sms-card {
  position: absolute; bottom: -16px; right: -16px;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 16px; max-width: 220px;
}
.sms-from { font-size: 11px; color: var(--muted-dark); }
.sms-text { font-size: 13px; font-weight: 500; color: var(--teal); }

.bank-tags { margin-top: 32px; }
.bank-tags-label { font-size: 12px; color: var(--muted-dark); margin-bottom: 12px; }
.tag {
  display: inline-block; padding: 4px 12px; margin: 0 8px 8px 0;
  background: rgba(11,58,62,.06); border-radius: 999px;
  font-size: 12px; color: var(--teal);
}
.tag-lg { padding: 8px 16px; font-size: 14px; font-weight: 500; }
.tag-muted { color: var(--muted-dark); }

/* ---------- 11. Trust badges ---------- */
.card-badge { background: transparent; border: 1px solid rgba(201,160,63,.4); text-align: center; }
.card-badge:hover { border-color: rgba(201,160,63,.7); }
.card-badge h3 { color: var(--light); font-size: 18px; }
.card-badge p { color: rgba(246,242,234,.6); font-size: 14px; }

/* ---------- 12. Cross-border ---------- */
.country-tags { margin: 32px 0 40px; }

/* ---------- 13. Footer ---------- */
.footer { background: var(--teal); padding: 80px 0 40px; }
.footer-cta { text-align: center; max-width: 560px; margin: 0 auto 64px; }
.footer-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.5vw, 48px); margin-bottom: 16px; }
.footer-cta p { margin-bottom: 32px; }

.waitlist-form { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .waitlist-form { flex-direction: row; } }
.input-wrap { position: relative; flex: 1; }
.input-wrap input {
  width: 100%; padding: 14px 16px;
  background: var(--teal-deep); border: 1px solid rgba(201,160,63,.3);
  border-radius: var(--radius-sm); color: var(--light); font-size: 15px;
  transition: border-color .2s;
}
.input-wrap input::placeholder { color: rgba(246,242,234,.4); }
.input-wrap input:focus { outline: none; border-color: var(--gold); }
.form-success { color: var(--gold); font-size: 14px; margin-top: 16px; }

.footer-bar {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding-top: 40px; border-top: 1px solid rgba(246,242,234,.1);
}
@media (min-width: 768px) { .footer-bar { flex-direction: row; justify-content: space-between; } }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: rgba(246,242,234,.6); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }

.footer-legal { text-align: center; margin-top: 40px; font-size: 14px; color: rgba(246,242,234,.4); }
.footer-legal p + p { margin-top: 8px; }
.footer-legal a { color: var(--gold); }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- 14. Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.grid .reveal:nth-child(2) { transition-delay: .12s; }
.grid .reveal:nth-child(3) { transition-delay: .24s; }
.steps .reveal:nth-child(2) { transition-delay: .12s; }
.steps .reveal:nth-child(3) { transition-delay: .24s; }

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}