﻿/* ==========================================================================
   AI KIDS GURU - PRIMARY DESIGN SYSTEM & STYLESHEET
   Optimized for High Performance, Responsive Displays & cPanel Deployment
   ========================================================================== */

:root {
  /* Brand Color Palette derived from Mascot Logo */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-subtle: #eff6ff;

  --navy: #1e1b4b;
  --navy-dark: #0f172a;

  --accent-yellow: #facc15;
  --accent-yellow-light: #fef08a;
  --accent-yellow-dark: #eab308;

  --accent-coral: #ef4444;
  --accent-coral-light: #fee2e2;

  --accent-green: #10b981;
  --accent-green-light: #d1fae5;

  --accent-cyan: #06b6d4;
  --accent-cyan-light: #cffafe;

  --accent-orange: #f97316;
  --accent-orange-light: #ffedd5;

  --accent-purple: #8b5cf6;
  --accent-purple-light: #ede9fe;

  /* Neutrals & Surfaces */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.9);
  --border-subtle: #e2e8f0;
  --border-focus: #3b82f6;

  /* Typography */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --font-heading: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -8px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
  --shadow-glow-yellow: 0 0 40px rgba(250, 204, 21, 0.35);
  --shadow-glow-blue: 0 0 40px rgba(37, 99, 235, 0.3);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

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

.text-gradient-rainbow {
  background: linear-gradient(135deg, #2563eb 0%, #ef4444 35%, #f59e0b 65%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-sun {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* NAVIGATION BAR */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  height: 72px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
  transition: var(--transition-bounce);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.1) rotate(5deg);
}

.brand-title {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.brand-title .ai { color: #2563eb; }
.brand-title .k { color: #ef4444; }
.brand-title .i { color: #10b981; }
.brand-title .d { color: #06b6d4; }
.brand-title .s { color: #f97316; }
.brand-title .guru { color: #1e1b4b; margin-left: 5px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-yellow));
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: var(--transition-bounce);
}

.btn-nav-download:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
  font-size: 1.6rem;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 10% 60%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
              #f8fafc;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-top: 1.2rem;
  margin-bottom: 1.3rem;
  line-height: 1.18;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

/* Store Badges */
.store-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.3);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.btn-store::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 80%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.75s ease-in-out;
}

.btn-store:hover::before {
  transform: rotate(25deg) translateY(100%);
}

.btn-store:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 30px -4px rgba(15, 23, 42, 0.45);
}

.btn-store.playstore {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-left: 3px solid #10b981;
}

.btn-store.appstore {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-left: 3px solid #38bdf8;
}

.btn-store-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

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

.btn-store-text .caption {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 600;
  line-height: 1.1;
}

.btn-store-text .store-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.btn-qr-scan {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  color: var(--navy);
  padding: 0.75rem 1.2rem;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-qr-scan:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.social-proof-strip {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed #cbd5e1;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-sm);
}

.avatar-item:first-child {
  margin-left: 0;
}

.rating-details {
  display: flex;
  flex-direction: column;
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
  font-size: 1.1rem;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rating-text strong {
  color: var(--navy);
}

/* Mascot & Hero Visual */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-glow-backdrop {
  position: absolute;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.4) 0%, rgba(37, 99, 235, 0.25) 50%, transparent 70%);
  filter: blur(50px);
  border-radius: 50%;
  z-index: 1;
}

.mascot-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.mascot-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.18));
}

.floating-badge {
  position: absolute;
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  transition: var(--transition-bounce);
}

.floating-badge:hover {
  transform: scale(1.08) translateY(-4px);
}

.badge-robot {
  top: 10%;
  left: -6%;
}

.badge-safety {
  bottom: 25%;
  right: -5%;
}

.badge-quest {
  bottom: 6%;
  left: 2%;
}

.badge-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.badge-text-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.badge-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* HERO PLAYGROUND */
.hero-playground-box {
  margin-top: 2.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid #e0e7ff;
  box-shadow: var(--shadow-md);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.playground-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #1e40af;
  font-weight: 700;
}

.playground-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.prompt-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.prompt-chip:hover, .prompt-chip.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.playground-output-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem;
  border-left: 4px solid var(--accent-yellow);
  display: flex;
  gap: 0.9rem;
  min-height: 85px;
}

.bot-avatar-mini {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bot-speech-text {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.5;
  font-weight: 500;
}

/* TRUST STRIP */
.trust-strip-section {
  padding: 2.5rem 0;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.trust-badge-icon {
  font-size: 2.2rem;
}

.trust-badge-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
}

.trust-badge-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FEATURES SECTION */
.features-section {
  padding: 6rem 0;
  background: #f8fafc;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--card-accent, var(--primary));
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--icon-bg, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

.feature-title {
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  width: fit-content;
}

/* SHOWCASE SECTION */
.showcase-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.showcase-section .section-header .section-tag {
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.showcase-section .section-header h2 {
  color: #ffffff;
}

.showcase-section .section-header p {
  color: #94a3b8;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.showcase-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.showcase-tab-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.showcase-tab-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(96, 165, 250, 0.4);
}

.showcase-tab-card.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(30, 41, 59, 0.9) 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.35);
  transform: translateX(8px);
}

.tab-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.showcase-tab-card.active .tab-icon-box {
  background: #2563eb;
  color: white;
}

.tab-content-info h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.tab-content-info p {
  color: #94a3b8;
  font-size: 0.92rem;
}

/* SMARTPHONE MOCKUP */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

.smartphone-frame {
  width: 320px;
  height: 620px;
  background: #000000;
  border-radius: 48px;
  border: 12px solid #334155;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.phone-lens {
  width: 8px;
  height: 8px;
  background: #1e293b;
  border-radius: 50%;
}

.phone-screen-content {
  flex: 1;
  background: #f8fafc;
  padding: 42px 16px 16px 16px;
  overflow-y: auto;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-screen-content::-webkit-scrollbar {
  display: none;
}

.app-screen-view {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
}

.app-screen-view.active {
  display: flex;
}

.screen-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.screen-app-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #1e1b4b;
}

.screen-streak-badge {
  background: #fef3c7;
  color: #b45309;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

.screen-chat-bubble {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  line-height: 1.4;
}

.screen-user-bubble {
  background: #2563eb;
  color: white;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  font-size: 0.82rem;
  align-self: flex-end;
  max-width: 85%;
}

.audio-pulse-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 35px;
  margin: 0.5rem 0;
}

.audio-bar {
  width: 4px;
  background: #2563eb;
  border-radius: 4px;
}

/* CURRICULUM SECTION */
.curriculum-section {
  padding: 6rem 0;
  background: #ffffff;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.curriculum-card {
  border-radius: var(--radius-xl);
  padding: 2.4rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  transition: var(--transition-bounce);
  position: relative;
  display: flex;
  flex-direction: column;
}

.curriculum-card:hover {
  transform: translateY(-6px);
  border-color: var(--path-color, var(--primary));
  box-shadow: var(--shadow-lg);
}

.age-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  background: var(--path-bg, #eff6ff);
  color: var(--path-color, #2563eb);
  width: fit-content;
}

.curriculum-card h3 {
  margin-bottom: 0.8rem;
}

.curriculum-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.curriculum-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.curriculum-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.curriculum-list li span.bullet-icon {
  color: #10b981;
}

/* SAFETY SECTION */
.safety-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  border-top: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;
  position: relative;
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.safety-points-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
}

.safety-point-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.safety-check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.safety-point-item h4 {
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.safety-point-item p {
  font-size: 0.95rem;
}

.safety-card-visual {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid #d1fae5;
  text-align: center;
  position: relative;
}

.safety-shield-icon {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  padding: 6rem 0;
  background: #f8fafc;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: var(--transition-bounce);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  margin-bottom: 1.2rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1e40af;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* AI SEARCH & GEO FACTS SECTION */
.seo-facts-section {
  padding: 4.5rem 0;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.seo-facts-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.seo-facts-box h3 {
  margin-bottom: 0.8rem;
}

.seo-facts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.seo-facts-table th, .seo-facts-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.seo-facts-table th {
  background: #f1f5f9;
  font-family: var(--font-heading);
  color: var(--navy);
}

/* FAQ ACCORDION */
.faq-section {
  padding: 6rem 0;
  background: #f8fafc;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon-chevron {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 1.6rem;
}

.faq-item.active .faq-content {
  padding: 0 1.6rem 1.4rem 1.6rem;
}

.faq-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* CTA BANNER */
.cta-banner-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 10% 20%, #1d4ed8 0%, #1e1b4b 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-banner-card {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner-card h2 {
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.cta-banner-card p {
  color: #cbd5e1;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.cta-banner-card .store-buttons-group {
  justify-content: center;
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--navy);
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: #e2e8f0;
}

.qr-code-box {
  width: 200px;
  height: 200px;
  margin: 1.5rem auto;
  padding: 12px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-box svg {
  width: 100%;
  height: 100%;
}

/* FOOTER */
.site-footer {
  background: #0b1329;
  color: #94a3b8;
  padding: 5rem 0 2.5rem 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1.3rem;
}

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

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

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

  .store-buttons-group {
    justify-content: center;
  }

  .social-proof-strip {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .phone-mockup-wrapper {
    order: -1;
  }

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

  .safety-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid #e2e8f0;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

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

  .btn-nav-download {
    display: none;
  }

  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .floating-badge {
    display: none;
  }
}

/* ==========================================================================
   LEGAL, COMPLIANCE & POLICY PAGES STYLING (Google Play & App Store Ready)
   ========================================================================== */
.legal-hero {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3rem;
  background: radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 10% 60%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
              #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
  color: var(--navy);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-body {
  padding: 4.5rem 0;
  background: #ffffff;
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
}

.legal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  font-size: 1.55rem;
  color: var(--navy);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.legal-card p, .legal-card li {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1rem;
}

.legal-card ul, .legal-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.legal-card li {
  margin-bottom: 0.5rem;
}

.legal-callout {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.legal-callout.alert {
  background: #eff6ff;
  border-left-color: #2563eb;
}

.legal-callout h4 {
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.legal-callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.compliance-table th, .compliance-table td {
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.compliance-table th {
  background: #f8fafc;
  color: var(--navy);
  font-family: var(--font-heading);
}

/* Deletion Request Form */
.deletion-form {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #ffffff;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-submit-deletion {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: var(--transition-bounce);
}

.btn-submit-deletion:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.45);
}

@media (max-width: 768px) {
  .legal-card {
    padding: 1.8rem 1.2rem;
  }
}
