/* ========================
   Sarsara Landing Page
   Warm African AI EdTech
   ======================== */

:root {
  --orange: #E8652A;
  --orange-light: #FF8C42;
  --orange-pale: #FFF3E6;
  --navy: #0D1B2A;
  --navy-mid: #1B2D45;
  --cream: #FEF9F3;
  --cream-dark: #F5EDE3;
  --gold: #F4A261;
  --white: #FFFFFF;
  --gray-600: #6B7280;
  --gray-400: #9CA3AF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(13, 27, 42, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(254, 249, 243, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 101, 42, 0.1);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* HERO */
.hero {
  position: relative;
  padding: 140px 24px 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FEF9F3 0%, #F5EDE3 40%, #FFF3E6 100%);
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #FF8C42 0%, transparent 70%);
  top: -200px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #E8652A 0%, transparent 70%);
  bottom: -100px; left: -100px;
  opacity: 0.25;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #F4A261 0%, transparent 70%);
  top: 40%; left: 30%;
  opacity: 0.2;
}
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-pale);
  border: 1px solid rgba(232, 101, 42, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 24px;
  font-family: 'Syne', sans-serif;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 20px;
}
.headline-accent {
  color: var(--orange);
}
.hero-sub {
  font-size: 17px;
  color: var(--navy);
  opacity: 0.75;
  max-width: 480px;
  line-height: 1.7;
}

/* HERO VISUAL — Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.phone-frame {
  width: 280px;
  background: var(--navy);
  border-radius: 40px;
  padding: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(232, 101, 42, 0.15);
  position: relative;
}
.phone-notch {
  width: 100px; height: 28px;
  background: var(--navy);
  border-radius: 0 0 16px 16px;
  margin: -16px auto 12px;
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: #1B2D45;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(232, 101, 42, 0.15);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chat-avatar {
  width: 32px; height: 32px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Syne', sans-serif;
}
.chat-info { display: flex; flex-direction: column; }
.chat-name { color: white; font-weight: 600; font-size: 13px; }
.chat-status { color: #4ade80; font-size: 11px; }
.chat-messages {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.msg { display: flex; }
.ai-msg { justify-content: flex-start; }
.user-msg { justify-content: flex-end; }
.bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
}
.ai-bubble {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px;
}
.user-bubble {
  background: var(--orange);
  color: white;
  border-bottom-right-radius: 4px;
}
.flashcard-preview {
  background: rgba(232, 101, 42, 0.15);
  border: 1px solid rgba(232, 101, 42, 0.3);
  border-radius: 10px;
  padding: 10px;
  margin-top: 4px;
}
.fc-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
  font-family: 'Syne', sans-serif;
}
.fc-question {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 4px;
}
.fc-answer {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

/* Floating tags */
.floating-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid rgba(232, 101, 42, 0.2);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.tag-1 { animation: float1 3s ease-in-out infinite; }
.tag-2 { animation: float2 3s ease-in-out infinite 0.5s; }
.tag-3 { animation: float1 3s ease-in-out infinite 1s; }
@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* STUDY SECTION */
.study {
  background: var(--navy);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.study-bg-blob {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: 0.08;
  border-radius: 50%;
  top: -100px; right: -100px;
}
.study-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.study-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 60px;
}
.stat-item {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
}
.study-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  max-width: 600px;
}
.study-body {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* SECTION LABEL */
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

/* FEATURES */
.features {
  padding: 100px 24px;
  background: var(--cream);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 60px;
  max-width: 500px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: 20px;
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature-icon {
  margin-bottom: 20px;
}
.feature-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ftag {
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
}

/* HOW */
.how {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.how-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 60px;
  max-width: 480px;
}
.steps-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 16px;
}
.step-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}
.step-connector {
  flex-shrink: 0;
  padding-top: 40px;
}

/* CLOSING */
.closing {
  padding: 120px 24px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.closing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.closing-blob {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 60%);
  opacity: 0.12;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-accent { color: var(--orange); }
.closing-body {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 16px;
}
.closing-philosophy {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.philosophy-mark { opacity: 0.6; }
.philosophy-quote {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  max-width: 480px;
  line-height: 1.6;
}

/* FOOTER */
.footer {
  padding: 48px 24px;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: white;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .hero-sub { margin: 0 auto; }
  .hero-badge { margin: 0 auto 24px; }
  .floating-tags { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; gap: 40px; }
  .step-connector { display: none; }
  .study-stat-row { flex-direction: column; }
  .stat-divider { width: 80px; height: 1px; margin: 0 auto; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
  .nav-links { display: none; }
}