/* ================================================================
   KTCPAY LANDING — style.css
   Design: "Afrique Numérique Vivante"
   Typo: Fraunces (display) + Plus Jakarta Sans (body)
   ================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Palette */
  --navy:          #1A3C6E;
  --navy-dark:     #112850;
  --navy-light:    #234F8C;
  --navy-subtle:   #EEF2F8;
  --emerald:       #00B67A;
  --emerald-dim:   #009663;
  --emerald-pale:  #E6F9F2;
  --gold:          #E8A020;
  --gold-pale:     #FDF3E1;
  --white:         #FFFFFF;
  --off-white:     #F5F7FA;
  --text-main:     #0F172A;
  --text-muted:    #475569;
  --text-faint:    #94A3B8;
  --border:        rgba(26, 60, 110, 0.10);
  --border-light:  rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-card: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   RESET + BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--off-white);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

ul { list-style: none; }

/* ----------------------------------------------------------------
   SKIP LINK
   ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ----------------------------------------------------------------
   CONTAINER
   ---------------------------------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ----------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 60, 110, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Wordmark */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.wordmark-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--emerald-dim) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}
.wordmark-text em {
  font-style: normal;
  color: var(--emerald);
}

/* Nav */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.header-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}
.header-nav .nav-cta {
  background: var(--emerald);
  color: var(--white);
  font-weight: 700;
  padding: 8px 18px;
  margin-left: 8px;
}
.header-nav .nav-cta:hover {
  background: var(--emerald-dim);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}
.lang-sep { opacity: 0.4; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  background: var(--navy-dark);
  border-top: 1px solid var(--border-light);
  padding: 20px 24px 28px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.mobile-menu .mobile-cta {
  background: var(--emerald);
  color: var(--white);
  font-weight: 700;
  margin-top: 12px;
  text-align: center;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s, filter 0.15s, background 0.15s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 182, 122, 0.35);
}
.btn-primary:hover {
  background: var(--emerald-dim);
  box-shadow: 0 8px 32px rgba(0, 182, 122, 0.45);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.btn-mtn {
  background: #FFC107;
  color: #111;
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.35);
}
.btn-mtn:hover {
  background: #e5ac00;
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.45);
  color: #111;
}

.btn-full { width: 100%; }

/* ----------------------------------------------------------------
   SECTION KICKER
   ---------------------------------------------------------------- */
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 14px;
}
.section-kicker-light { color: rgba(255,255,255,0.6); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   REVEAL ANIMATION
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 45%, #1B4E65 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

/* Africa watermark */
.hero-africa-bg {
  position: absolute;
  right: -60px;
  bottom: 60px;
  width: 440px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.hero-africa-bg svg { width: 100%; height: auto; }

/* Grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero content */
.hero-content { max-width: 560px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 182, 122, 0.12);
  border: 1px solid rgba(0, 182, 122, 0.28);
  border-radius: 24px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #7EEDD0;
  margin-bottom: 32px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.h1-line { display: block; }
.accent-emerald { color: var(--emerald); }
.accent-gold    { color: var(--gold); }

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-desc strong { color: rgba(255,255,255,0.92); }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Channels strip */
.channels-strip {}
.channels-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.channels-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}
.chip-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-badge {
  background: var(--emerald);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}
.chip-badge-soon {
  background: rgba(232,160,32,0.85);
  color: #111;
}

/* ===== PHONE MOCKUP ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone-mockup {
  position: relative;
  z-index: 2;
}

.phone-frame {
  width: 280px;
  background: #0D1B2A;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.5),
    0 0 0 1.5px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}

.phone-notch {
  width: 90px;
  height: 26px;
  background: #0D1B2A;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 10px;
  position: relative;
  z-index: 2;
}
.phone-notch::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #1a2a3a;
  border-radius: 50%;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.phone-screen {
  background: var(--off-white);
  border-radius: 32px;
  overflow: hidden;
  padding: 20px 18px 18px;
}

.pay-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.pay-app-logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
}
.pay-app-logo em { font-style: normal; color: var(--emerald); }
.pay-app-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--emerald-pale);
  color: var(--emerald-dim);
  padding: 3px 8px;
  border-radius: 10px;
}

.pay-app-amount {
  text-align: center;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--navy);
  border-radius: var(--r-md);
}
.pay-app-label {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.pay-app-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}
.pay-currency {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  vertical-align: middle;
  margin-right: 4px;
}

.pay-app-merchant {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.merchant-avatar {
  width: 34px;
  height: 34px;
  background: var(--navy-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.merchant-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}
.merchant-ref {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

.pay-methods { margin-bottom: 14px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s;
}
.pay-method:hover { background: var(--navy-subtle); }
.pay-method-active {
  background: var(--emerald-pale);
  color: var(--navy);
}
.pay-method-active:hover { background: var(--emerald-pale); }
.method-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pay-method svg { margin-left: auto; }

.pay-confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s;
}
.pay-confirm-btn:hover { background: var(--navy-light); }
.pay-btn-icon { display: flex; }

.pay-secured {
  font-size: 9.5px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 10px;
}

/* Floating notifications */
.float-notif {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 1px rgba(26,60,110,0.06);
  min-width: 190px;
  z-index: 3;
}
.float-notif-1 {
  left: -60px;
  top: 48px;
  animation: floatA 4s ease-in-out infinite;
}
.float-notif-2 {
  right: -48px;
  bottom: 80px;
  animation: floatB 4.5s ease-in-out infinite 0.8s;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.notif-icon {
  width: 32px;
  height: 32px;
  background: var(--emerald-pale);
  color: var(--emerald);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}
.notif-globe { background: var(--navy-subtle); }
.notif-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}
.notif-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Wave divider */
.wave-divider {
  line-height: 0;
  margin-top: -2px;
}
.wave-divider svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ----------------------------------------------------------------
   SECTION PROBLEM
   ---------------------------------------------------------------- */
.section-problem {
  background: var(--off-white);
  padding: 96px 0 88px;
}

.problem-intro {
  text-align: center;
  margin-bottom: 56px;
}
.problem-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-top: 8px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--navy) 100%);
}
.stat-card:hover {
  box-shadow: 0 12px 40px rgba(26,60,110,0.10);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.stat-source {
  font-size: 11px;
  color: var(--text-faint);
  font-style: italic;
}

/* Problem narrative */
.problem-narrative {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}

.problem-pain,
.problem-solution-preview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px;
}

.problem-pain h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.problem-solution-preview h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald-dim);
  margin-bottom: 20px;
}

.pain-list, .solution-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pain-list li, .solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pain-icon {
  width: 20px;
  height: 20px;
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.solution-icon {
  width: 20px;
  height: 20px;
  background: var(--emerald-pale);
  color: var(--emerald-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.problem-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

/* ----------------------------------------------------------------
   SECTION MODULES
   ---------------------------------------------------------------- */
.section-modules {
  background: var(--navy-dark);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.section-modules::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(0,182,122,0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(232,160,32,0.06) 0%, transparent 45%);
  pointer-events: none;
}

.section-modules .section-header h2 { color: var(--white); }
.section-modules .section-sub { color: rgba(255,255,255,0.55); }

/* Modules grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

/* PayCore spans 2 rows on left */
.module-card-large {
  grid-row: span 2;
}

.module-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.module-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}

.module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-icon-navy    { background: rgba(26, 60, 110, 0.6); color: #7BAEE0; }
.module-icon-emerald { background: rgba(0, 182, 122, 0.15); color: var(--emerald); }
.module-icon-gold    { background: rgba(232, 160, 32, 0.12); color: var(--gold); }

.module-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
}
.module-badge-primary { background: rgba(26,60,110,0.5); color: #7BAEE0; }
.module-badge-emerald { background: rgba(0,182,122,0.15); color: var(--emerald); }

.module-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.module-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}
.module-card p strong { color: rgba(255,255,255,0.78); }

/* Code snippet */
.module-code-snippet {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
  font-size: 12.5px;
}
.code-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.code-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.code-bar span:nth-child(1) { background: #FF5F57; }
.code-bar span:nth-child(2) { background: #FEBC2E; }
.code-bar span:nth-child(3) { background: #28C840; }
.module-code-snippet pre {
  padding: 16px;
  overflow-x: auto;
  line-height: 1.7;
}
.module-code-snippet code { font-family: 'Courier New', 'Menlo', monospace; }

.code-comment { color: rgba(255,255,255,0.3); }
.code-keyword { color: #79C0FF; font-weight: 700; }
.code-string  { color: #A5D6FF; }
.code-number  { color: #F78166; }

/* Module tags */
.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mtag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: rgba(255,255,255,0.45);
}

/* NjangiSmart visual */
.module-visual-njangi { margin-bottom: 0; }
.njangi-members {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.njangi-member {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
}
.njangi-paid {
  background: rgba(0,182,122,0.15);
  border-color: rgba(0,182,122,0.4);
  color: var(--emerald);
}
.njangi-current {
  background: rgba(232,160,32,0.15);
  border-color: rgba(232,160,32,0.5);
  color: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.njangi-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.njangi-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--gold) 100%);
  border-radius: 6px;
}
.njangi-progress-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* PayLink demo */
.paylink-demo {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 16px;
}
.paylink-url {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex: 1;
}
.paylink-url strong { color: var(--emerald); }
.paylink-qr {
  flex-shrink: 0;
  background: white;
  padding: 8px;
  border-radius: var(--r-sm);
}

/* FX rates */
.fx-rates {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fx-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.fx-pair { color: rgba(255,255,255,0.5); flex: 1; font-weight: 600; }
.fx-value { color: var(--white); font-weight: 700; font-family: 'Courier New', monospace; }
.fx-trend { font-size: 11px; font-weight: 700; }
.fx-up    { color: var(--emerald); }
.fx-stable{ color: rgba(255,255,255,0.35); }

/* PayScore gauge */
.payscore-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.gauge-ring {
  position: relative;
  display: inline-block;
}
.gauge-arc {
  transition: stroke-dashoffset 1.5s var(--ease-out);
}
.gauge-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.1;
}
.gauge-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
}
.gauge-max {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.gauge-rating {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald);
}

/* ----------------------------------------------------------------
   SECTION MTN MOMO
   ---------------------------------------------------------------- */
.section-mtn {
  background: linear-gradient(135deg, #1A2A0A 0%, #2A3A1A 40%, #1A3A28 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.section-mtn::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(255,193,7,0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,182,122,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.mtn-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.mtn-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.mtn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mtn-eyebrow span:nth-child(2) {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.mtn-live-badge {
  background: rgba(255,193,7,0.15);
  border: 1px solid rgba(255,193,7,0.3);
  color: #FFC107;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 12px;
  border-radius: 20px;
}

.mtn-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.mtn-content > p {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin-bottom: 28px;
}

.mtn-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.mtn-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

/* API Window */
.api-window {
  background: #0D1B2A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.api-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.api-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.api-window-bar span:nth-child(1) { background: #FF5F57; }
.api-window-bar span:nth-child(2) { background: #FEBC2E; }
.api-window-bar span:nth-child(3) { background: #28C840; }
.api-window-title {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  flex: 1;
  text-align: center;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}
.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.api-endpoint:last-of-type { border-bottom-color: rgba(255,255,255,0.08); }
.api-method {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.api-method.post { background: rgba(0,182,122,0.15); color: var(--emerald); }
.api-method.get  { background: rgba(121,192,255,0.12); color: #79C0FF; }
.api-path {
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,0.6);
  flex: 1;
  font-size: 12.5px;
}
.api-status-ok {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(0,182,122,0.1);
  padding: 3px 8px;
  border-radius: 8px;
}
.api-response {
  padding: 16px 20px 20px;
}
.api-response-label {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.api-response pre {
  font-size: 12px;
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   SECTION ROADMAP
   ---------------------------------------------------------------- */
.section-roadmap {
  background: var(--off-white);
  padding: 96px 0;
}

.roadmap-track {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical line */
.roadmap-track::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--emerald) 0%, var(--border) 100%);
  z-index: 0;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding-bottom: 40px;
  position: relative;
}
.roadmap-item:last-child { padding-bottom: 0; }

.roadmap-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.roadmap-done .roadmap-marker {
  background: var(--emerald);
  border-color: var(--off-white);
}
.roadmap-marker-active {
  background: var(--navy) !important;
  border-color: var(--off-white) !important;
}
.roadmap-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}
.roadmap-marker-future {
  background: rgba(26,60,110,0.12) !important;
  border: 3px solid var(--off-white) !important;
}

.roadmap-content { padding-top: 2px; }
.roadmap-period {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 6px;
}
.roadmap-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.roadmap-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.roadmap-badge-live {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
}

.roadmap-item.roadmap-done .roadmap-content h3 { color: var(--emerald-dim); }

/* ----------------------------------------------------------------
   SECTION TRUST
   ---------------------------------------------------------------- */
.section-trust {
  background: var(--white);
  padding: 96px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.trust-card:hover {
  box-shadow: 0 12px 40px rgba(26,60,110,0.09);
  transform: translateY(-4px);
}

.trust-icon {
  width: 60px;
  height: 60px;
  background: var(--navy-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.trust-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   SECTION CTA
   ---------------------------------------------------------------- */
.section-cta {
  background: var(--off-white);
  padding: 96px 0;
}

.cta-card {
  background: var(--navy);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  box-shadow: 0 24px 80px rgba(26,60,110,0.2);
}

.cta-content {
  padding: 56px 52px;
  position: relative;
  overflow: hidden;
}
.cta-content::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,182,122,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.cta-content > p {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin-bottom: 28px;
}

.cta-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

.cta-form-area {
  background: var(--white);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form */
.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  background: var(--off-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.10);
  background: var(--white);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
  border-color: #DC2626;
}
.form-group textarea { resize: vertical; min-height: 80px; }

.form-disclaimer {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.55;
  text-align: center;
}

.form-alt {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.form-alt > p {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(26,60,110,0.25);
}
.contact-link:hover { color: var(--emerald-dim); }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding-top: 60px;
  padding-bottom: 48px;
  align-items: start;
}

.footer-brand .wordmark { margin-bottom: 14px; }
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
  line-height: 1.55;
}
.footer-company {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-nav-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-nav-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-copy .sep { margin: 0 8px; opacity: 0.4; }
.footer-made {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding: 72px 24px 64px;
  }
  .hero-africa-bg { display: none; }
  .channels-row { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { justify-content: center; }
  .float-notif-1 { left: -20px; }
  .float-notif-2 { right: -20px; }

  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .problem-narrative {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .problem-arrow { display: none; }

  .modules-grid {
    grid-template-columns: 1fr 1fr;
  }
  .module-card-large { grid-row: auto; grid-column: span 2; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-card {
    grid-template-columns: 1fr;
  }
  .cta-content { padding: 44px 36px; }
  .cta-form-area { padding: 36px; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }

  .mtn-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Mobile */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .nav-burger  { display: flex; }

  .hero-inner { padding: 60px 20px 52px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  .float-notif { display: none; }

  .stats-row { grid-template-columns: 1fr; gap: 16px; }

  .modules-grid {
    grid-template-columns: 1fr;
  }
  .module-card-large { grid-column: auto; }

  .section-problem,
  .section-modules,
  .section-mtn,
  .section-roadmap,
  .section-trust,
  .section-cta { padding: 64px 0; }

  .trust-grid { grid-template-columns: 1fr; gap: 16px; }

  .cta-card { border-radius: 20px; }
  .cta-content { padding: 32px 28px; }
  .cta-form-area { padding: 28px; }

  .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* Small mobile */
@media (max-width: 400px) {
  .phone-frame { width: 240px; }
  .lang-toggle { display: none; }
}

/* ================================================================
   PRINT / REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
