/* ==========================================================================
   Calcul Facile - Version 2 Stylesheet
   Modern, accessible, high-performance styling for mobile app showcase
   ========================================================================== */

:root {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-soft: #eff6ff;

  --accent-green: #10b981;
  --accent-green-soft: #ecfdf5;
  --accent-purple: #8b5cf6;
  --accent-purple-soft: #f5f3ff;
  --accent-amber: #f59e0b;
  --accent-amber-soft: #fffbeb;
  --accent-rose: #f43f5e;
  --accent-rose-soft: #fff1f2;
  --accent-cyan: #06b6d4;
  --accent-cyan-soft: #ecfeff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-mockup: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

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

  --container-max: 1240px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a:hover {
  color: var(--primary-dark);
}

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

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

/* Background Gradients & Blobs */
.bg-ambient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.45;
}

.blob-1 {
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
}

.blob-2 {
  top: 600px;
  left: -150px;
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #34d399, #6ee7b7);
}

.blob-3 {
  bottom: 800px;
  right: 10%;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #f472b6, #fb923c);
  opacity: 0.25;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s ease;
}

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

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-text span {
  color: var(--primary);
}

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

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  color: var(--text-main);
  padding: 6px;
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-tag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 2.25rem;
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-chip-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Store Download Buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
  transition: var(--transition);
  min-width: 195px;
}

.store-btn:hover {
  background-color: #1e293b;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
  color: #ffffff;
}

.store-btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.store-btn-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 3px;
}

.store-btn-main {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.store-btn-ms {
  background-color: #0f172a;
}

/* Phone Mockup */
.mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1344 / 2992;
  background: #0f172a;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 25px 60px -15px rgba(30, 41, 59, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.4s ease;
}

.phone-mockup:hover {
  transform: translateY(-6px);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #0f172a;
  border-radius: 20px;
  z-index: 10;
}

/* Trust / Key Numbers Banner */
.stats-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 3rem;
  margin-bottom: 5rem;
}

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

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--border-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Section Common Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  background-color: var(--primary-soft);
  color: var(--primary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Pédagogie Highlights */
.pedagogy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.pedagogy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pedagogy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  opacity: 0;
  transition: var(--transition);
}

.pedagogy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.pedagogy-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 1.5rem;
}

.pedagogy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.pedagogy-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Feature Spotlight: 2ème Chance QCM */
.spotlight-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.spotlight-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(147, 197, 253, 0.2);
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.spotlight-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

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

.spotlight-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: #e2e8f0;
}

.spotlight-bullets li svg {
  width: 20px;
  height: 20px;
  fill: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.spotlight-phone-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spotlight-mockup {
  max-width: 260px;
}

/* Modules Section */
.modules-section {
  background-color: #f1f5f9;
}

.module-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3rem;
}

.module-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-tab-btn:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary-light);
}

.module-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.module-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.module-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-addition { background: #dbeafe; color: #1e40af; }
.badge-soustraction { background: #fee2e2; color: #991b1b; }
.badge-multiplication { background: #f3e8ff; color: #6b21a8; }
.badge-complement { background: #fef3c7; color: #92400e; }
.badge-multiples { background: #e0e7ff; color: #3730a3; }
.badge-conversion { background: #ccfbf1; color: #115e59; }

.module-icon {
  font-size: 1.5rem;
}

.module-card-body {
  padding: 0 1.5rem 1.25rem;
  flex-grow: 1;
}

.module-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.module-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.module-points {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-points li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: bold;
}

.module-card-screens {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.screen-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 1344 / 2000;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease;
}

.screen-thumb:hover {
  transform: scale(1.03);
}

.screen-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.screen-thumb:hover img {
  opacity: 0.9;
}

.screen-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

/* Suivi & Historique Section */
.history-section {
  padding: 5rem 0;
}

.history-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 4rem;
}

.history-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.history-feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.hf-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.hf-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.hf-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Download CTA Banner */
.download-section {
  padding: 5rem 0 6rem;
}

.download-cta-card {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #4338ca 100%);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2.5rem;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.45);
}

.download-cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.download-cta-card::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: #dbeafe;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 5;
}

.cta-store-btn {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-store-btn:hover {
  background: #f8fafc;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-store-btn .store-btn-main {
  color: var(--text-main);
}

.cta-store-btn .store-btn-sub {
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand h4 img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 340px;
}

.footer-col h5 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-height: 80vh;
  width: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.modal-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Standalone Pages */
.download-page .page-hero,
.advice-page .page-hero,
.about-page .page-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.about-page .page-hero {
  position: relative;
}

.download-page .page-title,
.advice-page .page-title,
.about-page .page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.download-page .page-lead,
.advice-page .page-lead,
.about-page .page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 auto;
  line-height: 1.7;
}

.download-page .page-lead {
  max-width: 680px;
}

.advice-page .page-lead {
  max-width: 720px;
}

.about-page .page-lead {
  max-width: 700px;
}

.download-page .footer-bottom,
.advice-page .footer-bottom,
.about-page .footer-bottom {
  border-top: none;
  padding-top: 0;
}

.download-page .footer-bottom a,
.advice-page .footer-bottom a,
.about-page .footer-bottom a {
  color: #38bdf8;
}

/* Download Page */
.download-page .download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin: 3rem 0 5rem;
}

.download-page .download-platform-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-page .download-platform-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.download-page .platform-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 30px;
}

.download-page .icon-android {
  background: #ecfdf5;
  color: #10b981;
}

.download-page .icon-windows {
  background: #eff6ff;
  color: #0284c7;
}

.download-page .download-platform-card h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.download-page .platform-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 360px;
}

.download-page .store-btn {
  min-width: 220px;
}

.download-page .specs-list {
  list-style: none;
  width: 100%;
  text-align: left;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-page .specs-list li {
  display: flex;
  justify-content: space-between;
}

.download-page .specs-list strong {
  color: var(--text-main);
}

.download-page .faq-section {
  padding: 4rem 0 6rem;
  background: #f1f5f9;
  border-radius: var(--radius-xl);
  margin-bottom: 4rem;
}

.download-page .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.download-page .faq-item {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.download-page .faq-item h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.download-page .faq-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Advice Page */
.advice-page .advice-section {
  padding: 2rem 0 5rem;
}

.advice-page .advice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.advice-page .advice-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.advice-page .advice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.advice-page .advice-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.advice-page .advice-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.advice-page .advice-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.advice-page .advice-card p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.advice-page .advice-quote {
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #334155;
  font-size: 0.9rem;
}

.advice-page .guide-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: #ffffff;
  margin-bottom: 4rem;
}

.advice-page .guide-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.advice-page .guide-banner p {
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.advice-page .level-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.advice-page .level-table th,
.advice-page .level-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.advice-page .level-table th {
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  font-weight: 700;
}

.advice-page .text-center {
  margin-top: 2rem;
}

.advice-page .text-center .btn {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* About Page */
.about-page .story-section {
  padding: 3rem 0 5rem;
}

.about-page .story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-page .story-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.about-page .story-card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.about-page .story-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-page .values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-page .value-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.about-page .value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-page .value-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.about-page .value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-page .value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.about-page .cta-buttons .btn {
  background: #ffffff;
  color: var(--primary-dark);
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

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

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

  .hero-highlights {
    justify-content: center;
  }

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

  .mockup-wrapper {
    margin-top: 1rem;
  }

  .spotlight-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.75rem;
    gap: 2.5rem;
  }

  .spotlight-bullets {
    align-items: center;
    text-align: left;
  }

  .history-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .history-features {
    text-align: left;
  }

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

  .pedagogy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

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

@media (max-width: 768px) {
  .download-page .download-grid,
  .download-page .faq-grid,
  .advice-page .advice-grid {
    grid-template-columns: 1fr;
  }

  .advice-page .guide-banner {
    padding: 2rem 1.5rem;
  }

  .advice-page .level-table th,
  .advice-page .level-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

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

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

  .stat-item::after {
    display: none !important;
  }

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

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

@media (max-width: 992px) {
  .about-page .story-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .about-page .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand {
    flex-shrink: 0;
  }

  .nav-actions {
    flex-shrink: 0;
    gap: 0.5rem;
  }

  .nav-actions .btn-primary {
    padding: 0.65rem;
  }

  .install-label {
    display: none;
  }
}
