:root {
  /* Modern, Education-Friendly Color Palette */
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #22d3ee;
  --primary-soft: #ecfeff;
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --accent-dark: #d97706;
  
  --success: #10b981;
  --success-soft: #d1fae5;
  
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   ENHANCED NAVIGATION WITH EFFECTS
   =========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state - more solid */
nav.scrolled {
  background: rgba(195, 192, 192, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Hidden state on scroll down */
nav.hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: rotate(0deg) scale(1); }
  50% { opacity: 0.8; transform: rotate(10deg) scale(1.1); }
}

.logo-accent {
  color: var(--primary);
  position: relative;
}

.logo-accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.logo:hover .logo-accent::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  align-items: center;
  margin: 0 auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

/* Animated underline effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Active state with glow */
.nav-links a:active {
  transform: translateY(0);
}

.nav-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

/* Register Link - FIXED */
.nav-link-cta {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.nav-link-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

.nav-link-cta:hover::before {
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* ===========================
   BUTTONS - Enhanced
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Ripple effect on buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px) scale(1.02);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--surface);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ===========================
   HERO WITH IMAGE BACKGROUND RESTORED
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 80px;
  background: url("../main/img/img.jpg") center/cover no-repeat fixed;
  color: white;
  overflow: hidden;
}

/* Dark overlay with gradient */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(15, 23, 42, 0.85) 50%,
    rgba(30, 41, 59, 0.75) 100%
  );
  z-index: 1;
}

/* Animated geometric pattern overlay */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(8, 145, 178, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  z-index: 1;
  animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-content {
  max-width: 720px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  animation: fadeInDown 0.8s ease-out;
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  font-weight: 600;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.highlight {
  color: var(--primary-light);
  display: inline-block;
  position: relative;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Trust indicators */
.trust-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 1s ease-out 0.8s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.trust-item:hover {
  color: white;
  transform: translateX(4px);
}

.trust-item i {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
}

/* ===========================
   FEATURES SECTION
   =========================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.section-title.centered {
  text-align: center;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

.section-sub.centered {
  text-align: center;
  margin-top: 12px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: rgb(228, 223, 223);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1.5px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -12px rgba(8, 145, 178, 0.2);
}

/* Featured card - OCR */
.feature-card.featured {
  background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 100%);
  border: 2px solid var(--primary);
  position: relative;
}

.feature-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-large {
  width: 80px;
  height: 80px;
}

.feature-card:hover .icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Feature highlights */
.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.highlight-item i {
  color: var(--success);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
  transition: gap 0.3s ease;
}

.feature-link:hover {
  gap: 10px;
}

.feature-link i {
  width: 16px;
  height: 16px;
}

/* Progression steps */
.progression-steps {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 60px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.feature-card:hover .step-num {
  background: var(--primary);
  color: white;
}

.step-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

/* Dark card */
.card-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border: none;
}

.card-dark h3,
.card-dark .feature-link {
  color: white;
}

.card-dark p,
.card-dark .highlight-item {
  color: rgba(255, 255, 255, 0.8);
}

.card-dark .icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-light);
}

.card-dark:hover .icon {
  background: var(--primary-light);
  color: var(--secondary);
}

.stat-row {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

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

.stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
}

.stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Accent card */
.accent-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
  border-color: var(--accent);
}

.accent-card .icon {
  background: var(--accent);
  color: white;
}

/* Tags */
.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tag {
  background: var(--surface-2);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.age-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.age-range i {
  width: 18px;
  height: 18px;
}

.span-2 {
  grid-column: span 2;
}

/* ===========================
   PERSONAS SECTION - MVP GRADE 4-6 FOCUSED
   =========================== */
.personas-section {
  background: var(--surface);
  padding: 5px 32px;
}

/* New MVP Grid - Two columns with different sizes */
.personas-grid-mvp {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-top: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Primary Student Card - LARGE & ENGAGING */
.persona-card-primary {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  border: 3px solid var(--primary);
  position: relative;
}

.persona-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--success);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

.student-icon-large {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.3);
}

.student-icon-large i {
  width: 48px;
  height: 48px;
}

.persona-card-primary h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.persona-description {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 32px;
  line-height: 1.6;
  font-weight: 500;
}

/* Enhanced benefit list for students - 2x2 GRID */
.benefit-list-enhanced {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.benefit-list-enhanced li {
  display: flex;
  gap: 12px;
  background: white;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(8, 145, 178, 0.2);
  transition: all 0.3s ease;
}

.benefit-list-enhanced li:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.benefit-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefit-content strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.benefit-content span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Secondary Teacher Card - SMALLER & SUPPORTIVE */
.persona-card-secondary {
  background: white;
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.persona-card-secondary .persona-icon {
  width: 64px;
  height: 64px;
}

.persona-card-secondary h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.persona-description-small {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.persona-card-secondary .benefit-list {
  margin-top: auto;
}

.persona-card-secondary .benefit-list li {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.persona-card-secondary .benefit-list li:last-child {
  margin-bottom: 0;
}

.persona-card-secondary .benefit-list i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Base persona card styles */
.persona-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1.5px solid var(--border);
  transition: all 0.3s ease;
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.persona-card-primary:hover {
  border-color: var(--primary-dark);
  box-shadow: 0 20px 40px rgba(8, 145, 178, 0.2);
}

.persona-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

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

.persona-icon i {
  width: 32px;
  height: 32px;
}

.student-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

.teacher-icon {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #be185d;
}

.admin-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.persona-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.benefit-list {
  list-style: none;
  margin: 24px 0;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.benefit-list i {
  color: var(--success);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}

.text-link:hover {
  gap: 8px;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 32px 40px;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-actions .search-btn {
    display: none;
  }
  
  .nav-actions {
    gap: var(--space-sm);
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-large {
    width: 100%;
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  /* Responsive adjustments for MVP personas */
  .personas-grid-mvp {
    grid-template-columns: 1fr;
  }
  
  .persona-badge {
    top: 16px;
    right: 16px;
  }
  
  /* Stack benefits grid on mobile */
  .benefit-list-enhanced {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 60px 20px;
  }
  
  .hero {
    padding: 120px 20px 60px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .trust-bar {
    flex-direction: column;
    gap: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}