/* ========================
   TOKENS & RESET
   ======================== */
:root {
  --bg: #07090f;
  --bg-alt: #0d1520;
  --bg-warm: #f5f0e8;
  --fg: #f5f0e8;
  --fg-muted: #8a9bba;
  --fg-dark: #0d1520;
  --accent: #3cffa0;
  --accent-dim: rgba(60, 255, 160, 0.12);
  --accent-border: rgba(60, 255, 160, 0.25);
  --surface: #0f1a28;
  --surface-2: #162033;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(60,255,160,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ========================
   LAYOUT
   ======================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--accent); color: #07090f; }
.btn-primary:hover { background: #2de08a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--border-accent); }
.btn-outline:hover { background: var(--accent-dim); }
.btn-full { width: 100%; justify-content: center; }
.btn-large { padding: 1rem 2rem; font-size: 1rem; }

/* ========================
   NAV
   ======================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 1rem 0;
  background: rgba(7,9,15,0.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; background: var(--accent); color: #07090f;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--fg); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.875rem; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }

/* ========================
   HERO
   ======================== */
.hero { padding: 9rem 0 5rem; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent-dim); border: 1px solid var(--border-accent); padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.8rem; color: var(--accent); margin-bottom: 1.5rem; width: fit-content; }
.badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-headline { margin-bottom: 1.25rem; color: var(--fg); }
.hero-sub { font-size: 1.05rem; color: var(--fg-muted); max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }
.hero-proof { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.proof-stat { display: flex; flex-direction: column; }
.proof-num { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.proof-label { font-size: 0.72rem; color: var(--fg-muted); margin-top: 0.2rem; max-width: 100px; }
.proof-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero Visual - Agent Hub */
.hero-visual { display: flex; justify-content: center; }
.agent-hub { position: relative; width: 320px; height: 320px; }
.hub-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hub-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px solid var(--accent); opacity: 0.12;
  animation: ring-pulse 3s ease-in-out infinite;
}
.hub-ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.hub-ring-2 { width: 140px; height: 140px; animation-delay: 0.5s; opacity: 0.08; }
.hub-ring-3 { width: 200px; height: 200px; animation-delay: 1s; opacity: 0.04; }
@keyframes ring-pulse { 0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.12; } 50% { transform: translate(-50%,-50%) scale(1.05); opacity: 0.2; } }
.hub-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hub-node {
  position: absolute; display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--border-accent);
  padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; color: var(--fg);
  animation: float 4s ease-in-out infinite;
}
.hub-node span { color: var(--fg-muted); }
.hub-node-whatsapp { top: 10px; left: 50%; transform: translateX(-50%); animation-delay: 0s; color: #25D366; }
.hub-node-mpesa { top: 50%; right: -10px; transform: translateY(-50%); animation-delay: 1s; color: #7AC239; }
.hub-node-social { bottom: 10px; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; color: #1DA1F2; }
.hub-node-email { top: 50%; left: -10px; transform: translateY(-50%); animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0px) translateX(-50%); } 50% { transform: translateY(-8px) translateX(-50%); } }
.hub-node-mpesa, .hub-node-email { animation-name: float-right; }
@keyframes float-right { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(calc(-50% - 8px)) translateX(4px); } }

/* ========================
   AGENT FLOW SECTION
   ======================== */
.agentflow { background: var(--bg-alt); padding: 6rem 0; }
.af-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.af-header { text-align: center; margin-bottom: 4rem; }
.af-headline { margin-bottom: 1rem; }
.af-sub { color: var(--fg-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.af-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.channel-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  border-top: 2px solid var(--accent);
}
.channel-card-wa { border-top-color: #25D366; }
.channel-card-mp { border-top-color: #7AC239; }
.channel-card-social { border-top-color: #1DA1F2; }
.channel-icon { margin-bottom: 1rem; color: var(--accent); }
.channel-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.channel-card p { color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.channel-features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.channel-features li { font-size: 0.85rem; color: var(--fg-muted); padding-left: 1.2rem; position: relative; }
.channel-features li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ========================
   FEATURES
   ======================== */
.features { padding: 6rem 0; }
.features-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.features-header { text-align: center; margin-bottom: 4rem; }
.features-headline { margin-bottom: 0.75rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.feature-icon { width: 44px; height: 44px; background: var(--accent-dim); border: 1px solid var(--border-accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--accent); }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--fg-muted); font-size: 0.875rem; line-height: 1.65; }

/* ========================
   HOW IT WORKS
   ======================== */
.howitworks { background: var(--bg-warm); padding: 6rem 0; }
.how-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.how-header { text-align: center; margin-bottom: 4rem; }
.how-header h2 { color: var(--fg-dark); }
.how-header .section-eyebrow { color: #3c9e6a; }
.how-steps { display: flex; gap: 0; align-items: flex-start; }
.step { flex: 1; }
.step-num { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: rgba(7,9,15,0.12); margin-bottom: 1rem; }
.step-body h3 { color: var(--fg-dark); font-size: 1.1rem; margin-bottom: 0.75rem; }
.step-body p { color: #4a5568; font-size: 0.9rem; line-height: 1.7; }
.step-connector { flex: 0 0 48px; height: 1px; background: repeating-linear-gradient(90deg, rgba(7,9,15,0.15) 0, rgba(7,9,15,0.15) 4px, transparent 4px, transparent 12px); margin-top: 1.5rem; }

/* ========================
   PRICING
   ======================== */
.pricing { padding: 6rem 0; background: var(--bg); }
.pricing-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.pricing-header { text-align: center; margin-bottom: 3rem; }
.pricing-header h2 { margin-bottom: 0.75rem; }
.pricing-sub { color: var(--fg-muted); font-size: 1rem; }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 800px; margin: 0 auto 2rem; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.pricing-card-main { border-color: var(--border-accent); }
.pc-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.pc-price { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: var(--fg); line-height: 1; margin-bottom: 0.5rem; }
.pc-price span { font-size: 1rem; font-weight: 500; color: var(--fg-muted); }
.pc-desc { color: var(--fg-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.pc-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.pc-features li { font-size: 0.875rem; color: var(--fg-muted); padding-left: 1.25rem; position: relative; }
.pc-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-note { text-align: center; color: var(--fg-muted); font-size: 0.85rem; }

/* ========================
   CLOSING
   ======================== */
.closing { padding: 8rem 0; background: linear-gradient(180deg, var(--bg) 0%, #0a1a10 100%); }
.closing-inner { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.closing-headline { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; color: var(--fg); }
.closing-sub { color: var(--fg-muted); font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.7; }
.closing-actions { display: flex; justify-content: center; }

/* ========================
   FOOTER
   ======================== */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-tagline { color: var(--fg-muted); font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.6; }
.footer-links { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 0.25rem; }
.footer-col a { font-size: 0.875rem; color: var(--fg-muted); text-decoration: none; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem 1.5rem 0; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--fg-muted); }
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .af-channels { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { flex-direction: column; gap: 2rem; }
  .step-connector { display: none; }
  .pricing-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { gap: 2rem; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .nav-links { display: none; }
  .hero { padding-top: 7rem; }
}