/* ==========================================================================
   SajaKitab Intro Landing Page - Modern CSS Design System & Theme
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1c2742;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-glass-hover: rgba(255, 255, 255, 0.09);
  --surface-border: rgba(255, 255, 255, 0.12);
  --surface-border-bright: rgba(99, 102, 241, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Brand Accents */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-gold: #fbbf24;
  --accent-green: #10b981;
  --accent-rose: #f43f5e;
  --accent-orange: #f97316;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-bg: radial-gradient(circle at top center, #1e1b4b 0%, #0b0f19 70%);

  /* Shadows & Glows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 35px rgba(99, 102, 241, 0.35);
  --glow-secondary: 0 0 35px rgba(168, 85, 247, 0.35);

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --nav-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --surface-glass-hover: rgba(255, 255, 255, 0.95);
  --surface-border: rgba(226, 232, 240, 0.8);
  --surface-border-bright: rgba(99, 102, 241, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.8) 100%);
  --gradient-bg: radial-gradient(circle at top center, #e0e7ff 0%, #f8fafc 70%);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --glow-primary: 0 0 25px rgba(99, 102, 241, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

body {
  background: var(--gradient-bg);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  transition: background var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Ambient Glow Backdrops
   ========================================================================== */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.glow-1 {
  top: -100px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.3);
}

.glow-2 {
  top: 600px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: rgba(168, 85, 247, 0.25);
}

.glow-3 {
  bottom: 800px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   Typography & Reusable Utilities
   ========================================================================== */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

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

/* Glassmorphism Cards */
.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--surface-border-bright);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-bounce);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-hero);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-outline {
  background: var(--surface-glass);
  border: 1.5px solid var(--surface-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--surface-glass-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-primary);
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--surface-glass);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.glow-btn {
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
  100% { box-shadow: 0 4px 30px rgba(168, 85, 247, 0.7); }
}

/* Text Colors */
.text-orange { color: var(--accent-orange); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.text-blue { color: var(--accent-cyan); }

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: all var(--transition-normal);
}

.navbar-header.scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .navbar-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
}

.nav-container {
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  padding: 4px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo.lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
}

/* Nav Actions & Theme Toggle */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-bounce);
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.05);
  border-color: var(--primary);
  color: var(--accent-gold);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  padding: 8px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.drawer-close-btn {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.drawer-link:hover {
  color: var(--primary);
}

.drawer-footer {
  margin-top: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Hero Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

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

/* Hero Visual Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.phone-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient-hero);
  filter: blur(40px);
  opacity: 0.35;
  border-radius: 40px;
  z-index: 0;
}

.mockup-card {
  position: relative;
  z-index: 1;
  padding: 12px;
  background: rgba(19, 27, 46, 0.85);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.app-mockup-img {
  width: 100%;
  border-radius: 26px;
  display: block;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.badge-top-left {
  top: 40px;
  left: -40px;
}

.badge-bottom-right {
  bottom: 40px;
  right: -40px;
  animation-delay: 2s;
}

.floating-badge i {
  font-size: 1.5rem;
}

.floating-badge strong {
  display: block;
  color: var(--text-primary);
}

.floating-badge span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 36px 30px;
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.icon-purple { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.icon-blue { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.icon-amber { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.icon-cyan { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list i {
  color: var(--accent-green);
  font-size: 0.9rem;
}

/* ==========================================================================
   Curriculum Explorer Section
   ========================================================================== */
.tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

.tab-btn.active {
  background: var(--gradient-hero);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.level-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  margin-bottom: 16px;
}

.tab-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.tab-info p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.subject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.chip i {
  color: var(--primary);
}

.tab-metrics {
  display: flex;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-border);
}

.tab-metrics div {
  display: flex;
  flex-direction: column;
}

.tab-metrics strong {
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.tab-metrics span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Tab Preview Card */
.tab-preview {
  padding: 24px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.preview-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-left: 8px;
}

.sample-question-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.q-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.q-opt {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  font-size: 0.9rem;
  color: var(--text-secondary);

}

.q-opt.correct {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Interactive Demo Section
   ========================================================================== */
.interactive-quiz-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px;
}

.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

.quiz-progress-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;

}

.quiz-progress-info span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.quiz-progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gradient-hero);
  transition: width var(--transition-normal);
}

.quiz-stats-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  font-size: 0.9rem;
  font-weight: 700;
}

.quiz-body-box {
  min-height: 280px;
}

.demo-q-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.demo-q-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}

.demo-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-option-btn {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1.5px solid var(--surface-border);
  color: var(--text-primary);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.demo-option-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--surface-glass-hover);
  transform: translateX(4px);
}

.demo-option-btn.selected-correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.demo-option-btn.selected-wrong {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #fb7185;
}

.explanation-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.quiz-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.review-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.95rem;
}

.avatar-1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.avatar-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.avatar-3 { background: linear-gradient(135deg, #10b981, #059669); }

.reviewer-name {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.reviewer-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

.faq-icon {
  font-size: 1rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 28px 24px 28px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Download Banner Section
   ========================================================================== */
.download-section {
  padding: 60px 0 100px 0;
}

.download-banner-card {
  position: relative;
  overflow: hidden;
  padding: 60px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.download-banner-card .download-title,
.download-banner-card .brand-name {
  color: #ffffff !important;
}

.download-banner-card .download-text,
.download-banner-card .download-trust-tags,
.download-banner-card .qr-label {
  color: rgba(241, 245, 249, 0.85) !important;
}

.download-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 350px;
  height: 350px;
  background: var(--gradient-hero);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mb-3 { margin-bottom: 20px; }

.download-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-text {
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 600px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.store-btn {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-align: left;
}

.store-btn i {
  font-size: 1.8rem;
}

.store-text {
  display: flex;
  flex-direction: column;
}

.small-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.big-text {
  font-size: 1.05rem;
  font-weight: 800;
}

.download-trust-tags {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
}

.download-qr-box {
  display: flex;
  justify-content: center;
}

.qr-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-decoration: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.qr-container:hover {
  transform: translateY(-4px);
  border-color: var(--primary) !important;
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.qr-label {
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--surface-border);
  padding: 80px 0 30px 0;
  position: relative;
  z-index: 1;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 16px 0 24px 0;
  max-width: 360px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats-row {
    justify-content: center;
  }

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

  .download-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-text {
    margin-left: auto;
    margin-right: auto;
  }

  .download-buttons, .download-trust-tags {
    justify-content: center;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .hide-mobile {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .floating-badge {
    display: none;
  }

  .download-banner-card {
    padding: 32px 20px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
