/* =============================================
   BiologyKendra — Main Stylesheet
   ============================================= */

:root {
  --primary: #5c3bfe;
  --primary-dark: #4527d6;
  --primary-light: #ede8ff;
  --secondary: #ff6b35;
  --accent: #00c896;
  --dark: #0f0c29;
  --dark-2: #1a1a2e;
  --text: #2d2d3a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-light: #f8f9ff;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #5c3bfe 0%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(92,59,254,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(92,59,254,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(92,59,254,0.45); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  padding: 12px 28px;
}
.btn-outline-primary:hover { background: var(--primary); color: white; }

.btn-whatsapp {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.btn-whatsapp:hover {
  background: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-white { background: white; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: #f0ecff; }

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: white;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

.btn-large { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }

/* ---- Section Common ---- */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin: 8px 0 12px;
  line-height: 1.2;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.section-header.light h2 { color: white; }
.section-header.light p { color: rgba(255,255,255,0.7); }
.section-tag.light { background: rgba(255,255,255,0.15); color: white; }

.highlight { color: var(--primary); }
.highlight-light { color: #ffd166; }

/* =============================================
   TOP BANNER
   ============================================= */
.top-banner {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.top-banner a { color: #ffd166; font-weight: 700; }
.top-banner a:hover { text-decoration: underline; }
.blink-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.2; } }
.close-banner {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: white; font-size: 1.2rem;
  cursor: pointer; opacity: 0.7; line-height: 1;
}
.close-banner:hover { opacity: 1; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 66px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li { position: relative; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.nav-item-icon {
  font-size: 0.86rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.nav-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

/* Dropdown */
.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.dropdown-trigger:hover,
.dropdown.open .dropdown-trigger {
  color: var(--primary);
  background: var(--primary-light);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  z-index: 999;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown.open .nav-caret { transform: rotate(180deg); }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text);
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); }
.dropdown-menu a i { width: 16px; color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn i { font-size: 0.85rem; }

.nav-collapse-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.nav-collapse-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

@media (min-width: 769px) {
  .navbar.compact .nav-links a,
  .navbar.compact .dropdown-trigger {
    width: 40px;
    justify-content: center;
    padding: 8px;
    gap: 0;
  }

  .navbar.compact .nav-links .nav-text,
  .navbar.compact .dropdown-trigger .nav-text,
  .navbar.compact .dropdown-trigger .nav-caret,
  .navbar.compact .nav-actions .btn .nav-text {
    display: none;
  }

  .navbar.compact .nav-actions .btn {
    width: 40px;
    justify-content: center;
    padding: 10px;
    gap: 0;
  }

  .navbar.compact .dropdown-menu {
    min-width: 64px;
  }

  .navbar.compact .dropdown-menu a {
    justify-content: center;
    padding: 10px;
    gap: 0;
  }

  .navbar.compact .dropdown-menu a span {
    display: none;
  }

  .navbar.compact .dropdown-menu a i {
    width: auto;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: -100px; right: -100px;
}
.shape-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #5c3bfe, transparent);
  bottom: 0; left: -80px;
}
.shape-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #ff6b35, transparent);
  top: 40%; left: 40%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,209,102,0.15);
  border: 1px solid rgba(255,209,102,0.3);
  color: #ffd166;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-title .highlight { color: #ffd166; }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 480px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffd166;
  line-height: 1;
}
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.divider-v { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-stack {
  position: relative;
  width: 320px;
  height: 380px;
}
.hero-image-wrapper {
  width: 280px;
  height: 320px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(92,59,254,0.3), rgba(139,92,246,0.3));
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.7);
}
.teacher-avatar {
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 16px;
  border: 2px solid rgba(255,255,255,0.2);
}
.hero-image-placeholder p { font-size: 0.9rem; font-weight: 600; }

.floating-card {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  font-size: 0.8rem;
  color: var(--text);
  z-index: 2;
  animation: floatY 3s ease-in-out infinite;
}
.floating-card strong { display: block; font-weight: 700; color: var(--dark); }
.floating-card span { color: var(--text-muted); font-size: 0.75rem; }
.floating-card i { font-size: 1.2rem; }

.card-live {
  top: 20px; left: -20px;
  animation-delay: 0s;
}
.card-live i { color: #e63946; }

.card-result {
  bottom: 20px; right: -20px;
  animation-delay: 1.5s;
}
.card-result i { color: #f4a261; }

@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-wave { line-height: 0; margin-top: 0; }
.hero-wave svg { display: block; width: 100%; }

/* =============================================
   TRUSTED BY
   ============================================= */
.trusted-by {
  background: var(--bg-light);
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.trusted-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.trusted-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.exam-badge {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.exam-badge i { color: var(--primary); font-size: 0.75rem; }
.exam-badge:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* =============================================
   FEATURES
   ============================================= */
.features { background: white; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: white;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   COURSES
   ============================================= */
.courses-section { background: var(--bg-light); }

.courses-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 9px 24px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.course-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.course-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.course-badge-live {
  position: absolute;
  top: 12px; left: 12px;
  background: #e63946;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.course-badge-live::before {
  content: '';
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.4s infinite;
}
.course-badge-new {
  position: absolute;
  top: 12px; left: 12px;
  background: #00c896;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.course-body { padding: 18px; }
.course-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.course-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.course-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.course-meta span { display: flex; align-items: center; gap: 5px; }
.course-meta i { color: var(--primary); }

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.course-price strong { font-size: 1.1rem; color: var(--dark); font-weight: 800; }
.course-price del { font-size: 0.8rem; color: var(--text-muted); margin-left: 6px; }
.course-price .discount { font-size: 0.75rem; color: var(--accent); font-weight: 700; margin-left: 6px; }
.btn-enroll {
  background: var(--primary-light);
  color: var(--primary);
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}
.btn-enroll:hover { background: var(--primary); color: white; }

.courses-cta { text-align: center; }

/* =============================================
   EDUCATORS
   ============================================= */
.educators { background: white; }

.educators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.educator-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  transition: var(--transition);
}
.educator-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.educator-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.educator-info h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.educator-subject {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.educator-subject i { color: var(--primary); font-size: 0.75rem; }
.educator-stats { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted); }
.educator-stats span { display: flex; align-items: center; gap: 4px; }
.educator-stats i { color: var(--secondary); font-size: 0.7rem; }

/* =============================================
   RESULTS
   ============================================= */
.results-section {
  background: var(--gradient-hero);
  color: white;
  padding: 80px 0;
}

.results-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 50px;
  scrollbar-width: none;
}
.results-grid::-webkit-scrollbar { display: none; }

.result-card {
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  text-align: center;
  min-width: 180px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.result-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }

.rank-badge {
  display: inline-block;
  background: #ffd166;
  color: #1a1a2e;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.student-initial {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 10px;
  border: 2px solid rgba(255,255,255,0.2);
}
.result-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.result-card p { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.score-badge {
  background: rgba(255,255,255,0.1);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.results-numbers {
  display: flex;
  justify-content: center;
  gap: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
}
.result-num { text-align: center; }
.result-num strong { display: block; font-size: 2rem; font-weight: 800; color: #ffd166; }
.result-num span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* =============================================
   STUDY MATERIAL
   ============================================= */
.study-material { background: var(--bg-light); }

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.material-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.material-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

.material-icon {
  width: 48px; height: 48px;
  background: #fff0f0;
  color: #e63946;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.material-info { flex: 1; }
.material-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.material-info p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.material-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.btn-download {
  width: 38px; height: 38px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-download:hover { background: var(--primary); color: white; }

/* =============================================
   APP SECTION
   ============================================= */
.app-section { background: white; padding: 80px 0; }

.app-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.app-content .section-tag { margin-bottom: 12px; display: inline-block; }
.app-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.25;
}
.app-features { margin-bottom: 32px; }
.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
}
.app-features i { color: var(--accent); font-size: 1.1rem; }

.app-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  transition: var(--transition);
}
.store-btn:hover { background: var(--primary); transform: translateY(-2px); }
.store-btn i { font-size: 1.5rem; }
.store-btn small { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.7); }
.store-btn strong { display: block; font-size: 0.95rem; font-weight: 700; }

/* Phone mockup */
.app-mockup { display: flex; justify-content: center; }

.phone-mockup {
  width: 240px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(92,59,254,0.3), 0 0 0 2px rgba(255,255,255,0.1);
  position: relative;
}
.phone-screen {
  background: var(--bg-light);
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
}
.phone-status-bar {
  height: 28px;
  background: #0f0c29;
  border-radius: 28px 28px 0 0;
}
.phone-content { padding: 14px 12px; }

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.phone-header span { font-size: 0.75rem; font-weight: 700; color: var(--dark); }
.streak-badge {
  background: var(--secondary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.phone-card {
  background: linear-gradient(135deg, #5c3bfe, #8b5cf6);
  color: white;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
}
.live-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  position: absolute;
  top: 12px; right: 12px;
  animation: blink 1.4s infinite;
}
.phone-card p { font-size: 0.72rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.phone-card span { font-size: 0.85rem; font-weight: 700; }

.phone-progress { margin-bottom: 14px; }
.phone-progress p { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.prog-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 4px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1s ease;
}
.phone-progress span { font-size: 0.7rem; color: var(--accent); font-weight: 700; }

.phone-subjects { display: flex; gap: 6px; }
.sub-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  background: white;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.sub-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--bg-light); }

.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}
.testimonial-card {
  flex-shrink: 0;
  width: calc(33.33% - 14px);
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.quote-icon { font-size: 1.5rem; color: var(--primary); opacity: 0.4; margin-bottom: 14px; }
.testimonial-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-video {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #0f172a;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.reviewer div:nth-child(2) { flex: 1; }
.reviewer strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.reviewer span { font-size: 0.75rem; color: var(--text-muted); }
.stars { color: #f4a261; font-size: 0.75rem; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { border-color: var(--primary); color: var(--primary); }
.slider-dots { display: flex; gap: 6px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--primary); width: 20px; border-radius: 4px; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar-section {
  background: white;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  text-align: center;
}

.stat-item strong {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* =============================================
   FAQ
   ============================================= */
.faq-section { background: white; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  gap: 10px;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question i { flex-shrink: 0; font-size: 0.8rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-item.open .faq-question { background: var(--primary-light); color: var(--primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-answer p {
  padding: 0 20px 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; }

/* =============================================
   CTA
   ============================================= */
.cta-section { padding: 60px 0; background: var(--bg-light); }

.cta-box {
  background: var(--gradient-primary);
  border-radius: 24px;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  position: relative;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
}
.cta-content p { color: rgba(255,255,255,0.75); margin-bottom: 28px; font-size: 1rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-decorations {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.cta-badge {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}
.cta-badge i { color: #ffd166; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark-2);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { font-size: 1.3rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 14px 0 20px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: white; }

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links a:hover { color: white; }

.footer-contact { margin-top: 16px; }
.footer-contact p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact i { color: var(--primary); }

.footer-bottom {
  padding: 20px 0;
  background: rgba(0,0,0,0.2);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(92,59,254,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

