/* =====================================================
   REE — WhatsApp AI for East African SMBs
   ===================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #070d09;
  --bg-card: #0d1a11;
  --bg-card-hover: #122016;
  --green: #25D366;
  --green-dim: #1a7a3f;
  --green-glow: rgba(37, 211, 102, 0.15);
  --amber: #f5c518;
  --amber-dim: #b8920f;
  --text-primary: #f0f7f0;
  --text-secondary: #8aaa8a;
  --text-muted: #5a7a5a;
  --border: rgba(37, 211, 102, 0.12);
  --border-hover: rgba(37, 211, 102, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(37, 211, 102, 0.08);
  --radius: 12px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }

/* --- Layout helpers --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(7, 13, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 16px var(--green-glow);
}

.nav-cta {
  background: var(--green);
  color: #021a0a;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: #2de370;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(37, 211, 102, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-badges .flag { font-size: 1.1rem; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--green);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  opacity: 0.5;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
}

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

.btn-primary {
  background: var(--green);
  color: #021a0a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #2de370;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--green-dim);
  color: var(--text-primary);
}

.hero-pricing-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.hero-pricing-note span {
  color: var(--amber);
  font-weight: 600;
}

.hero-whatsapp-icon {
  position: absolute;
  bottom: -60px;
  right: 5%;
  width: 280px;
  opacity: 0.04;
  pointer-events: none;
}

/* --- Stats Bar --- */
.stats-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Features --- */
.features { background: var(--bg-primary); }

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

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

.feature-card.featured {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(37, 211, 102, 0.05) 100%);
  border-color: rgba(37, 211, 102, 0.25);
}

.feature-card.featured .feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--green);
  color: #021a0a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- How It Works --- */
.how-it-works { background: var(--bg-card); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--green-dim), var(--amber-dim), var(--green-dim));
  opacity: 0.4;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* --- Who It's For --- */
.audience { background: var(--bg-primary); }

.audience-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.audience-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.audience-tag:hover {
  border-color: var(--green-dim);
  color: var(--text-primary);
  background: rgba(37, 211, 102, 0.05);
}

/* --- Pricing --- */
.pricing { background: var(--bg-card); }

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-badge {
  display: inline-block;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.3);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pricing-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pricing-currency {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 8px;
}

.pricing-value {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 8px;
}

.pricing-savings {
  display: inline-block;
  background: rgba(37, 211, 102, 0.12);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
}

.btn-pricing {
  width: 100%;
  background: var(--green);
  color: #021a0a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: block;
}

.btn-pricing:hover {
  background: #2de370;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25);
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* --- Final CTA --- */
.final-cta {
  background: var(--bg-primary);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.final-cta .final-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-flags {
  font-size: 1.4rem;
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-text a {
  color: var(--green-dim);
  transition: color 0.2s;
}

.footer-text a:hover { color: var(--green); }

/* --- WhatsApp floating button --- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 200;
  cursor: pointer;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

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

  .steps::before { display: none; }

  .hero h1 {
    font-size: 2.4rem;
  }

  .pricing-card {
    padding: 36px 28px;
  }
}

@media (max-width: 480px) {
  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    text-align: center;
    justify-content: center;
  }
}