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

:root {
  --bg: #0a0a12;
  --hero-grad-top: #3a0820;
  --hero-grad-mid: #1a0510;
  --cta-grad-start: #5c0f33;
  --cta-grad-end: #7c1444;
  --accent: #a52055;
  --accent-dark: #7c1444;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --card-bg: #111120;
  --card-border: #1e1e2e;
  --footer-bg: #060610;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Disable all scroll-triggered animations */
  .fade-up,
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Shared button styles used in multiple sections */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: opacity 0.2s;
  font-family: var(--font);
}

.btn:hover { opacity: 0.85; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}

/* Used on dark/transparent backgrounds (e.g. hero) */
.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Used on colored gradient backgrounds (e.g. CTA section) where
   a dark semi-transparent fill prevents the button from blending in */
.btn--outline-white {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn__tag {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.65;
}

/* Shared section heading styles used in multiple sections */
.section-label {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
  text-align: center;
}

/* ── Navbar ─ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.97);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.is-scrolled {
  border-bottom-color: var(--card-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.navbar__logo-img {
  height: 28px;
  width: auto;
}

.navbar__nav {
  display: flex;
  gap: 28px;
  flex: 1;
}

.navbar__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.navbar__link:hover { color: var(--text-primary); }

.navbar__cta { margin-left: auto; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(
    180deg,
    var(--hero-grad-top) 0%,
    var(--hero-grad-mid) 50%,
    var(--bg) 100%
  );
  padding: 80px 24px 64px;
  text-align: center;
}

.hero__inner {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "badge"
    "title"
    "sub"
    "btns"
    "img";
  gap: 20px;
  justify-items: center;
}

.hero__badge { grid-area: badge; }
.hero__title { grid-area: title; }
.hero__sub { grid-area: sub; }
.hero__btns { grid-area: btns; }
.hero__illustration { grid-area: img; }

@media (min-width: 900px) {
  .hero { text-align: left; }
  .hero__inner {
    max-width: var(--max-width);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "badge img"
      "title img"
      "sub   img"
      "btns  img";
    column-gap: 56px;
    justify-items: start;
    align-items: center;
  }
  .hero__illustration { justify-self: center; align-self: center; }
}

.hero__badge {
  display: inline-block;
  background: rgba(165, 32, 85, 0.15);
  border: 1px solid rgba(165, 32, 85, 0.4);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.65;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Store Badges ── */
.store-badge {
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s;
}

.store-badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
  height: 60px;
  width: auto;
}

/* ── Use Cases Strip ── */
.usecases {
  background: #0d0d1a;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 28px 24px;
}

.usecases__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.usecases__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.usecases__pills {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.usecase-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s, transform 0.2s;
}

.usecase-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── One App Section ── */
.oneapp {
  padding: 80px 24px;
  background: var(--bg);
  text-align: center;
}

.oneapp__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.oneapp__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.oneapp__point {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
}

.oneapp__point-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: rgba(165, 32, 85, 0.25);
  margin-bottom: 8px;
  line-height: 1;
}

.oneapp__point-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.oneapp__point-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Features Grid ── */
.features {
  padding: 80px 24px;
  background: #080810;
}

.features__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(165, 32, 85, 0.15);
}

.feature-card:hover .feature-card__icon {
  background: rgba(165, 32, 85, 0.2);
  transform: scale(1.08);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(165, 32, 85, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: background 0.3s, transform 0.3s;
}

.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Download CTA ── */
.cta {
  background: linear-gradient(135deg, var(--cta-grad-start), var(--cta-grad-end));
  padding: 80px 24px;
  text-align: center;
}

.cta__inner { max-width: 600px; margin: 0 auto; }

.cta__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.cta__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

/* ── CTA Email Form ── */
.cta__form { margin-bottom: 32px; }

.cta__input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cta__input {
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 15px;
  font-family: var(--font);
  min-width: 260px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cta__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.cta__input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1); }

.cta__form-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--card-border);
  padding: 56px 24px 0;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer__brand { display: flex; flex-direction: column; gap: 16px; }

.footer__logo {
  text-decoration: none;
  display: inline-flex;
}

.footer__logo-img {
  height: 28px;
  width: auto;
}

.footer__tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

/* ── Footer Socials ── */
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #131320;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.footer__social:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(165, 32, 85, 0.1);
  transform: translateY(-2px);
}

/* ── Footer Columns ── */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer__links--col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer__link:hover { color: var(--text-secondary); }

/* ── Footer Bottom ── */
.footer__bottom {
  border-top: 1px solid var(--card-border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__copy {
  font-size: 12px;
  color: #444;
}

.footer__copy--right { font-style: italic; }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
}

/* Staggered delays for grids */
.features__grid .feature-card:nth-child(1) { transition-delay: 0.0s; }
.features__grid .feature-card:nth-child(2) { transition-delay: 0.08s; }
.features__grid .feature-card:nth-child(3) { transition-delay: 0.16s; }
.features__grid .feature-card:nth-child(4) { transition-delay: 0.24s; }
.features__grid .feature-card:nth-child(5) { transition-delay: 0.32s; }
.features__grid .feature-card:nth-child(6) { transition-delay: 0.40s; }

.oneapp__points .oneapp__point:nth-child(1) { transition-delay: 0.0s; }
.oneapp__points .oneapp__point:nth-child(2) { transition-delay: 0.12s; }
.oneapp__points .oneapp__point:nth-child(3) { transition-delay: 0.24s; }

.usecases__pills .usecase-pill:nth-child(1) { transition-delay: 0.0s; }
.usecases__pills .usecase-pill:nth-child(2) { transition-delay: 0.06s; }
.usecases__pills .usecase-pill:nth-child(3) { transition-delay: 0.12s; }
.usecases__pills .usecase-pill:nth-child(4) { transition-delay: 0.18s; }
.usecases__pills .usecase-pill:nth-child(5) { transition-delay: 0.24s; }

.bank-chips .bank-chip:nth-child(1) { transition-delay: 0.0s; }
.bank-chips .bank-chip:nth-child(2) { transition-delay: 0.05s; }
.bank-chips .bank-chip:nth-child(3) { transition-delay: 0.10s; }
.bank-chips .bank-chip:nth-child(4) { transition-delay: 0.15s; }
.bank-chips .bank-chip:nth-child(5) { transition-delay: 0.20s; }
.bank-chips .bank-chip:nth-child(6) { transition-delay: 0.25s; }
.bank-chips .bank-chip:nth-child(7) { transition-delay: 0.30s; }
.bank-chips .bank-chip:nth-child(8) { transition-delay: 0.35s; }
.bank-chips .bank-chip:nth-child(9) { transition-delay: 0.40s; }

/* ── Scroll to Top Button ── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 16px rgba(165, 32, 85, 0.3);
  z-index: 50;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Hero: tighter vertical rhythm on mobile */
  .hero { padding: 48px 20px 56px; }
  .hero__inner { gap: 16px; }
  .hero__illustration { max-width: 340px; }
  .hero__sub { font-size: 16px; }

  /* Navbar: hide desktop nav, show hamburger */
  .navbar__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 18, 0.98);
    padding: 16px 24px;
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    gap: 20px;
    z-index: 99;
  }

  .navbar__nav.is-open { display: flex; }

  .navbar__toggle { display: flex; }

  .navbar__cta { display: none; }

  .oneapp__points { grid-template-columns: 1fr; }

  /* Features: single column */
  .features__grid { grid-template-columns: 1fr; }

  /* Footer: stack vertically */
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer__brand { align-items: center; }
  .footer__tagline { max-width: 100%; }
  .footer__socials { justify-content: center; }

  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Hero buttons: keep side by side, shrink badges */
  .hero__btns .store-badge img { height: 44px; width: 130px; object-fit: contain; }
  .hero__illustration { max-width: 280px; }

  /* CTA buttons: keep side by side, centered */
  .cta__btns {
    justify-content: center;
  }

  .cta__btns .store-badge img { height: 44px; width: 130px; object-fit: contain; }

  /* CTA form: stack on small screens */
  .cta__input-group {
    flex-direction: column;
    align-items: center;
  }

  .cta__input { min-width: 0; width: 100%; max-width: 360px; }

  /* Brand pills: smaller on very small screens */
  .usecases__pills { gap: 10px; }
  .usecase-pill { font-size: 12px; padding: 7px 12px; }

  /* Footer: keep 2 columns on small screens */
  .footer__cols { text-align: center; }
  .footer__links--col { align-items: center; }
}

/* ── Hero Illustration ── */
.hero__illustration {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 24px 48px rgba(165, 32, 85, 0.2));
}

[data-theme="light"] .hero__illustration {
  filter: drop-shadow(0 16px 32px rgba(165, 32, 85, 0.12));
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Light Mode Overrides ── */
/* Applied when data-theme="light" is set on <html>.
   All layout, typography, and spacing stay identical.
   Only colors change. */

[data-theme="light"] {
  --bg: #faf7f5;
  --hero-grad-top: #f5ece8;
  --hero-grad-mid: #fdf5f2;
  --text-primary: #1a0a10;
  --text-secondary: #665544;
  --text-muted: #998877;
  --card-bg: #ffffff;
  --card-border: #f0e0d8;
  --footer-bg: #f0e8e4;
}

/* Navbar backdrop */
[data-theme="light"] .navbar {
  background: rgba(250, 247, 245, 0.97);
}

/* Mobile nav dropdown */
[data-theme="light"] .navbar__nav {
  background: rgba(250, 247, 245, 0.98);
}

/* Use cases strip */
[data-theme="light"] .usecases {
  background: #f5ece8;
  border-top-color: #f0e0d8;
  border-bottom-color: #f0e0d8;
}

/* Features section bg */
[data-theme="light"] .features {
  background: #f5ece8;
}


/* Footer social icons */
[data-theme="light"] .footer__social {
  background: #f5ece8;
}


/* Footer copyright */
[data-theme="light"] .footer__copy {
  color: var(--text-muted);
}

/* Navbar scroll shadow — softer in light mode */
[data-theme="light"] .navbar.is-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

/* ── One App Illustration ── */
.oneapp__illustration {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 32px;
  border-radius: 16px;
}

/* ── Bank Chips ── */
.bank-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 20px;
}

.bank-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .bank-chip {
  box-shadow: 0 2px 12px rgba(165, 32, 85, 0.06);
}

.bank-chip__logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}

.bank-chip--more {
  background: rgba(165, 32, 85, 0.1);
  border-color: rgba(165, 32, 85, 0.25);
  color: var(--accent);
  font-weight: 700;
}

/* ── Africa Note ── */
.oneapp__note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  font-style: italic;
}
