/* =====================
   FONTS
   ===================== */
:root {
  --bg: #FAF8F3;
  --fg: #1A1814;
  --fg-muted: #6B6560;
  --accent: #D4622A;
  --accent-light: #F5DDD0;
  --warm: #E8D5B7;
  --sage: #5C8A6B;
  --sage-light: #D5E4D9;
  --border: #E8E0D5;
  --white: #FFFFFF;
  --font: 'Sora', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--body);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =====================
   NAV
   ===================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-family: var(--body);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 80px 48px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #E8D5B7, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #F5DDD0, transparent 70%);
  bottom: 50px;
  left: 30%;
}

.hero-grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  opacity: 0.04;
}

.hero-line {
  background: var(--fg);
}

.h-line-1 { position: absolute; top: 25%; left: 0; right: 0; height: 1px; }
.h-line-2 { position: absolute; top: 75%; left: 0; right: 0; height: 1px; }
.v-line-1 { position: absolute; left: 33%; top: 0; bottom: 0; width: 1px; }
.v-line-2 { position: absolute; left: 66%; top: 0; bottom: 0; width: 1px; }

.hero-dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(circle, var(--fg) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-right: 48px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-headline {
  font-family: var(--font);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.hero-accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 460px;
}

/* WhatsApp phone mockup */
.hero-phone {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 0;
  padding-left: 48px;
}

.phone-frame {
  width: 280px;
  background: #1A1814;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 32px 80px rgba(26, 24, 20, 0.25), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.phone-screen {
  background: #0F0E0C;
  border-radius: 26px;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  height: 420px;
  overflow: hidden;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #0F0E0C;
  border-radius: 0 0 12px 12px;
  margin: -8px auto 0;
  position: relative;
  z-index: 2;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wa-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.wa-info { flex: 1; }
.wa-name { font-family: var(--font); font-size: 12px; font-weight: 600; color: white; }
.wa-status { font-size: 10px; color: #5C8A6B; }

.wa-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
}

.wa-msg { display: flex; flex-direction: column; }
.wa-msg-recv { align-items: flex-start; }
.wa-msg-sent { align-items: flex-end; }

.bubble {
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 12px;
  font-family: var(--body);
  font-size: 11px;
  line-height: 1.5;
  color: white;
}

.bubble.recv {
  background: rgba(255,255,255,0.1);
  border-bottom-left-radius: 4px;
}

.bubble.sent {
  background: var(--accent);
  border-bottom-right-radius: 4px;
}

.mt-2 { margin-top: 4px; }

.wa-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 10px 12px;
  margin-top: 8px;
}

.wa-input {
  flex: 1;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.wa-send {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-badge {
  position: absolute;
  bottom: 40px;
  right: -20px;
  background: white;
  border-radius: 20px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* =====================
   PROOF
   ===================== */
.proof {
  background: var(--fg);
  color: white;
  padding: 48px;
}

.proof-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 32px;
}

.proof-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}

.stat-num {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--body);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.proof-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}

/* =====================
   SECTION TAG
   ===================== */
.section-tag {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* =====================
   FEATURES
   ===================== */
.features {
  padding: 100px 48px;
}

.features-header {
  max-width: 600px;
  margin-bottom: 64px;
}

.features-title {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}

.features-sub {
  font-family: var(--body);
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card-main {
  grid-row: span 2;
  background: var(--fg);
  color: white;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-main .feature-icon {
  background: rgba(212, 98, 42, 0.2);
}

.feature-title {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.feature-card-main .feature-title {
  color: white;
}

.feature-body {
  font-family: var(--body);
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
}

.feature-card-main .feature-body {
  color: rgba(255,255,255,0.65);
}

.feature-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.detail-tag {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  padding: 4px 8px;
  border-radius: 6px;
}

.detail-tag-accent {
  color: var(--accent);
  background: rgba(212, 98, 42, 0.15);
}

.detail-arrow {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

/* =====================
   M-PESA SECTION
   ===================== */
.mpesa-section {
  background: #1A1814;
  padding: 100px 48px;
  color: white;
}

.mpesa-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.mpesa-title {
  font-family: var(--font);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: white;
  margin-bottom: 20px;
}

.mpesa-body {
  font-family: var(--body);
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 40px;
}

.mpesa-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mpesa-step {
  display: flex;
  align-items: center;
  gap: 20px;
}

.step-num {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(212, 98, 42, 0.15);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.step-text {
  font-family: var(--body);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.mpesa-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.mpesa-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mpesa-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #00A878;
}

.mpesa-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mpesa-detail:last-of-type { border-bottom: none; }

.mpesa-detail-label {
  font-family: var(--body);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.mpesa-detail-val {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.mpesa-amount {
  color: var(--accent);
}

.mpesa-status-badge {
  background: rgba(0, 168, 120, 0.15);
  color: #00A878;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.mpesa-code {
  font-family: monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  text-align: right;
}

.mpesa-fee-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-size: 12px;
  color: var(--sage);
}

/* =====================
   LEDGER
   ===================== */
.ledger {
  padding: 100px 48px;
}

.ledger-header {
  margin-bottom: 48px;
}

.ledger-title {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.ledger-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  padding: 16px 24px;
  align-items: center;
  font-family: var(--body);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.ledger-row:last-child { border-bottom: none; }

.ledger-head {
  background: var(--fg);
  color: white;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}

.ledger-vendor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--fg);
}

.lv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lv-paid { background: var(--sage); }
.lv-pending { background: var(--warm); }
.lv-warning { background: #E8A832; }
.lv-overdue { background: #E04A2A; }

.ledger-amount {
  font-family: var(--font);
  font-weight: 600;
  color: var(--fg);
}

.ledger-date {
  font-family: var(--body);
  color: var(--fg-muted);
  font-size: 13px;
}

.badge {
  display: inline-block;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-paid { background: var(--sage-light); color: var(--sage); }
.badge-scheduled { background: var(--warm); color: #8B6A3D; }
.badge-due { background: #FFF0CC; color: #A06800; }
.badge-overdue { background: #FCE8E4; color: #C02010; }
.badge-pending { background: #F0F0F0; color: var(--fg-muted); }

.ledger-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.summary-item {
  background: var(--bg);
  padding: 24px;
  text-align: center;
}

.summary-val {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 4px;
}

.summary-warn { color: #E04A2A; }
.summary-ok { color: var(--sage); }

.summary-label {
  font-family: var(--body);
  font-size: 12px;
  color: var(--fg-muted);
}

/* =====================
   CLOSING
   ===================== */
.closing {
  background: var(--fg);
  color: white;
  padding: 120px 48px;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.closing-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.closing-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.cc-1 { width: 300px; height: 300px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cc-2 { width: 200px; height: 200px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-color: rgba(255,255,255,0.1); }
.cc-3 { width: 100px; height: 100px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(212,98,42,0.3), transparent 70%); }

.closing-text {
  position: relative;
  z-index: 2;
}

.closing-headline {
  font-family: var(--font);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: white;
  margin-bottom: 24px;
}

.closing-sub {
  font-family: var(--body);
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 48px;
}

.closing-vibe {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.vibe-line {
  font-family: var(--font);
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: #111009;
  color: rgba(255,255,255,0.3);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-name {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.footer-tagline {
  font-family: var(--body);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-meta {
  font-family: var(--body);
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { grid-template-columns: 1fr; padding: 60px 24px; gap: 48px; }
  .hero-content { padding-right: 0; }
  .hero-phone { display: none; }
  .proof { padding: 40px 24px; }
  .proof-stats { flex-direction: column; gap: 24px; }
  .proof-divider { width: 60px; height: 1px; }
  .features { padding: 64px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-main { grid-row: auto; }
  .mpesa-section { padding: 64px 24px; }
  .mpesa-inner { grid-template-columns: 1fr; gap: 48px; }
  .ledger { padding: 64px 24px; }
  .ledger-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .ledger-row > *:first-child { grid-column: span 3; }
  .ledger-summary { grid-template-columns: 1fr; }
  .closing { padding: 80px 24px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 36px; }
  .stat-num { font-size: 28px; }
  .feature-card { padding: 28px 20px; }
}