/* ==========================================================================
   Local Fonts (DSGVO-konform - keine externen Verbindungen)
   ========================================================================== */

/* Nunito - Latin Extended (für deutsche Umlaute) */
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Nunito - Latin */
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins - Latin Extended */
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-600-ext.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-700-ext.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins - Latin */
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   BabyProf Premium Design System
   ========================================================================== */

/* CSS Custom Properties */
:root {
  /* Colors */
  --color-primary: #8B7EC8;
  --color-primary-dark: #7A6DB7;
  --color-primary-light: #A89ED8;
  --color-primary-subtle: rgba(139, 126, 200, 0.1);
  --color-secondary: #F5A623;
  --color-secondary-dark: #E09510;
  --color-secondary-light: #FFB94D;
  --color-background: #F8F6FF;
  --color-background-white: #FFFFFF;
  --color-background-gradient: linear-gradient(180deg, #FFFFFF 0%, #F8F6FF 50%, #F0ECFF 100%);
  --color-text: #2D2D3F;
  --color-text-light: #6B6B7B;
  --color-text-muted: #9494A4;
  --color-border: #E8E5F0;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(139, 126, 200, 0.08);
  --shadow-md: 0 4px 20px rgba(139, 126, 200, 0.12);
  --shadow-lg: 0 8px 40px rgba(139, 126, 200, 0.16);
  --shadow-xl: 0 16px 60px rgba(139, 126, 200, 0.2);
  --shadow-glow: 0 0 40px rgba(139, 126, 200, 0.3);

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

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::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: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--color-text-light);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1400px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-slow);
}

.btn:hover::before {
  opacity: 1;
  transform: scale(2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
}

/* Shine/Glanz hover effect */
.btn-primary::after,
.nav-cta::after,
.mobile-nav-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}

.btn-primary:hover::after,
.nav-cta:hover::after,
.mobile-nav-cta:hover::after {
  animation: btnShine 0.6s ease-in-out;
}

@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

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

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

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.logo img {
  height: 36px;
  width: auto;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.logo img.visible {
  opacity: 1;
}

@keyframes logoBreath {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.03) rotate(1deg); }
}

.logo img.visible {
  animation: logoBreath 4s ease-in-out infinite;
}

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

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

.nav-links a {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.nav-cta {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  direction: ltr !important;
}

.lang-switcher button {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0.6;
  line-height: 1;
}

.lang-switcher button:hover {
  opacity: 1;
  background: var(--color-primary-subtle);
  transform: scale(1.1);
}

.lang-switcher button.active {
  opacity: 1;
  background: var(--color-primary-subtle);
  box-shadow: 0 2px 8px rgba(139, 126, 200, 0.3);
  transform: scale(1.1);
}

/* Mobile language switcher - always visible */
.mobile-lang-switcher {
  display: none;
}

/* Mobile Menu - Simple, No Animations */
@media (max-width: 768px) {
  .nav {
    display: none !important;
  }

  .lang-switcher {
    display: none !important;
  }

  .mobile-lang-switcher {
    display: none !important;
  }

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

  #active-lang-flag {
    display: inline !important;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    height: 60px;
    overflow: hidden;
  }

  .logo img {
    height: 30px !important;
    width: auto !important;
  }
}

/* ==========================================================================
   Floating Background Elements
   ========================================================================== */
.floating-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(60px);
  will-change: transform;
}

.floating-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary-light);
  top: 10%;
  right: -10%;
  animation: float-1 20s ease-in-out infinite;
}

.floating-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--color-secondary-light);
  bottom: 20%;
  left: -5%;
  animation: float-2 25s ease-in-out infinite;
}

.floating-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--color-primary);
  top: 50%;
  right: 20%;
  animation: float-3 18s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-30px, 50px) rotate(120deg); }
  66% { transform: translate(20px, -30px) rotate(240deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.1); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, 30px); }
  50% { transform: translate(-20px, 50px); }
  75% { transform: translate(-40px, 20px); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 126, 200, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 750px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  margin: 0 auto 2rem auto;
  width: 300px;
  height: auto;
}

@media (max-width: 768px) {
  .hero-logo {
    width: 220px;
    margin-bottom: 1.5rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.hero-feature svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* Blob shapes */
.hero-blob {
  position: absolute;
  z-index: 0;
}

.hero-blob-1 {
  top: 20%;
  right: 5%;
  width: 120px;
  height: 120px;
  opacity: 0.6;
}

.hero-blob-2 {
  bottom: 30%;
  left: 8%;
  width: 80px;
  height: 80px;
  opacity: 0.4;
}

/* ==========================================================================
   Section Base Styles
   ========================================================================== */
section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 1.125rem;
  line-height: 1.8;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Why BabyProf Section
   ========================================================================== */
.why-section {
  background: transparent;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.why-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-background);
  border-radius: 24px;
  border: 2px solid rgba(139, 126, 200, 0.15);
  transition: var(--transition-base);
}

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

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-md);
  color: white;
}

.why-icon svg {
  width: 32px;
  height: 32px;
}

.why-card h3 {
  margin-bottom: var(--space-sm);
}

.why-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ==========================================================================
   Science Section
   ========================================================================== */
.science-section {
  background: transparent;
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.science-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.science-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

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

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

.science-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.science-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.science-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .science-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Age Timeline Section
   ========================================================================== */
.timeline-section {
  background: transparent;
  overflow: visible;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-line-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  transform: translateX(-50%);
  transition: height 0.1s linear;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition-base);
}

.timeline-item.active .timeline-dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 6px var(--color-primary-subtle);
}

.timeline-content {
  flex: 1;
  max-width: calc(50% - var(--space-xl));
}

.timeline-card {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition-base);
}

.timeline-item.active .timeline-card {
  background: white;
  box-shadow: var(--shadow-md);
}

.timeline-age {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.timeline-card h3 {
  margin-bottom: var(--space-xs);
}

.timeline-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.timeline-skill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.timeline-skill svg {
  width: 16px;
  height: 16px;
}

.timeline-placeholder {
  flex: 1;
  max-width: calc(50% - var(--space-xl));
}

@media (max-width: 768px) {
  .timeline-line,
  .timeline-line-progress {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }

  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    max-width: 100%;
    text-align: left;
  }

  .timeline-placeholder {
    display: none;
  }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border-radius: 24px;
  border: 2px solid rgba(139, 126, 200, 0.12);
  transition: var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-subtle);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-content h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.125rem;
}

.feature-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Soundbooks & Stories Sections
   ========================================================================== */
.soundbooks-section {
  background: var(--color-background);
  position: relative;
  overflow: visible;
}

.stories-section {
  background: #ffffff;
  position: relative;
  overflow: visible;
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature-showcase-reverse {
  direction: rtl;
}

.feature-showcase-reverse > * {
  direction: ltr;
}

.feature-showcase-content {
  max-width: 500px;
}

.feature-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.feature-showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-showcase-visual svg {
  max-width: 100%;
  height: auto;
}

/* Sound waves animation */
.sound-waves path {
  animation: soundPulse 1.5s ease-in-out infinite;
}

.sound-waves path:nth-child(2) {
  animation-delay: 0.3s;
}

.sound-waves path:nth-child(3) {
  animation-delay: 0.6s;
}

.sound-waves path:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes soundPulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* Story stars animation */
.story-stars polygon {
  animation: starTwinkle 2s ease-in-out infinite;
}

.story-stars polygon:nth-child(2) {
  animation-delay: 0.4s;
}

.story-stars polygon:nth-child(3) {
  animation-delay: 0.8s;
}

.story-stars polygon:nth-child(4) {
  animation-delay: 1.2s;
}

.story-stars polygon:nth-child(5) {
  animation-delay: 1.6s;
}

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

/* Highlight Cards */
.highlight-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.soundbooks-section .highlight-card {
  background: white;
}

.stories-section .highlight-card {
  background: var(--color-background);
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

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

@media (max-width: 768px) {
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-showcase-reverse {
    direction: ltr;
  }

  .feature-showcase-visual {
    order: -1;
  }

  .feature-showcase-visual svg {
    width: 150px;
    height: auto;
  }

  .highlight-cards {
    grid-template-columns: 1fr;
  }

  .feature-description {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Health/Safety Section
   ========================================================================== */
.health-section {
  background: linear-gradient(180deg, var(--color-background) 0%, #F0FFF4 50%, #E8F5E9 100%);
  position: relative;
  overflow: visible;
}

.health-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #81C784 50%, transparent 100%);
}

.health-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.health-text {
  max-width: 540px;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #2E7D32;
  margin-bottom: var(--space-md);
}

.health-badge svg {
  width: 16px;
  height: 16px;
}

.health-text h2 {
  margin-bottom: var(--space-md);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.health-text > p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

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

.health-highlight {
  background: white;
  border-left: 4px solid #4CAF50;
  padding: var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-lg) 0;
}

.health-highlight p {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.6;
}

.health-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  background: rgba(139, 126, 200, 0.08);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.health-note strong {
  color: var(--color-primary);
}

.health-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.health-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E8F5E9;
  transition: var(--transition-base);
}

.health-benefit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #A5D6A7;
}

.health-benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #A5D6A7 0%, #4CAF50 100%);
  border-radius: var(--radius-md);
  color: white;
}

.health-benefit-icon svg {
  width: 24px;
  height: 24px;
}

.health-benefit-content h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.125rem;
  color: var(--color-text);
}

.health-benefit-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .health-content {
    grid-template-columns: 1fr;
  }

  .health-text {
    max-width: 100%;
  }
}

/* ==========================================================================
   Intermediate CTA Section
   ========================================================================== */
.intermediate-cta {
  background: var(--color-background);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
}

.intermediate-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 2px;
}

.intermediate-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.intermediate-cta h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

.intermediate-cta p {
  margin-bottom: var(--space-md);
}

.intermediate-cta .cta-buttons {
  gap: var(--space-sm);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: visible;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  color: white;
  margin-bottom: var(--space-sm);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

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

.cta-buttons .btn-primary:hover {
  background: var(--color-background);
}

.app-store-badge {
  height: 44px;
  width: auto;
  min-width: 150px;
  max-width: 180px;
  transition: var(--transition-base);
}

.app-store-badge:hover {
  transform: translateY(-2px);
}

.app-store-link {
  display: inline-block;
  transition: var(--transition-base);
}

.app-store-link:hover {
  transform: translateY(-2px);
}

/* Custom App Store Badge SVG */
.app-store-badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #000;
  border-radius: 8px;
  color: white;
  font-size: 0.75rem;
  transition: var(--transition-base);
  min-width: 150px;
}

.app-store-badge-custom:hover {
  background: #333;
  transform: translateY(-2px);
}

.app-store-badge-custom svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-store-badge-custom .badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-store-badge-custom .badge-text-small {
  font-size: 0.6rem;
  opacity: 0.9;
}

.app-store-badge-custom .badge-text-large {
  font-size: 1rem;
  font-weight: 600;
}

/* CTA buttons wrapper */
.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
}

.cta-hint {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: var(--space-sm);
}

.cta-hint-light {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-text);
  color: white;
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-app-store .app-store-badge {
  height: 36px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-email a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-email a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ==========================================================================
   Support Page
   ========================================================================== */
.support-hero {
  padding: 100px 0 var(--space-xl);
  background: linear-gradient(180deg, white 0%, var(--color-background) 100%);
  text-align: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .support-hero {
    padding: 80px 1rem var(--space-md);
  }
}

/* Force visibility on support page - disable reveal animation */
.support-hero .reveal,
.contact-section .reveal,
.faq-section .reveal,
.faq-item.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.support-hero h1 {
  margin-bottom: var(--space-sm);
}

.contact-section {
  background: white;
  position: relative;
  z-index: 10;
}

.contact-card {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-md);
  color: white;
}

.contact-icon svg {
  width: 32px;
  height: 32px;
}

.contact-card h3 {
  margin-bottom: var(--space-sm);
}

.contact-card p {
  margin-bottom: var(--space-md);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

/* FAQ */
.faq-section {
  background: var(--color-background);
  position: relative;
  z-index: 10;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  transition: var(--transition-base);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: var(--transition-base);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */
.legal-page {
  padding: 100px 1.5rem 4rem 1.5rem;
  min-height: 100vh;
  position: relative;
  z-index: 10;
  background: #ffffff;
}

#privacy-page, #imprint-page {
  padding-top: 80px !important;
  padding-bottom: 3rem;
  min-height: 100vh;
  background: #ffffff;
  position: relative;
  z-index: 10;
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

/* Hide floating elements on legal/subpages */
.legal-page ~ #floating-words,
body:has(.legal-page) #floating-words,
body:has(.legal-page) .floating-elements,
body:has(.legal-page) .scroll-rocket,
body:has(.legal-page) .mouse-follower {
  display: none !important;
}

/* Force visibility on legal pages - disable reveal animation */
.legal-page .reveal,
.legal-page .legal-content,
.legal-content.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0eef5;
  color: var(--color-text);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: #8B7EC8;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content strong {
  color: var(--color-text);
}

/* Legal Pages Mobile */
@media (max-width: 768px) {
  .legal-page {
    padding: 80px 0.5rem 2rem 0.5rem !important;
  }
  .legal-content {
    padding: 1rem !important;
  }
  .legal-content h1 {
    font-size: 1.6rem !important;
    word-break: break-word;
  }
  .legal-content h2 {
    font-size: 1.1rem !important;
  }
  .legal-content h3 {
    font-size: 0.95rem !important;
  }
  .legal-content p,
  .legal-content li {
    font-size: 0.85rem !important;
  }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.2s; }
.stagger-4 { transition-delay: 0.3s; }
.stagger-5 { transition-delay: 0.4s; }
.stagger-6 { transition-delay: 0.5s; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.text-muted {
  color: var(--color-text-muted);
}

/* ==========================================================================
   Enhanced Animations & Effects
   ========================================================================== */

/* Section Decorations */
.section-deco,
.section-deco-left,
.section-deco-right,
[class*="section-deco"] {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
  padding: 1.5rem 0;
  pointer-events: none;
  opacity: 0.75;
  position: relative;
  z-index: 5;
}

.section-deco svg {
  animation: gentleFloat 4s ease-in-out infinite;
}

.section-deco-left {
  text-align: left;
  padding-left: 10%;
}

.section-deco-right {
  text-align: right;
  padding-right: 10%;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

/* Section decorations on mobile - smaller and less opaque */
@media (max-width: 768px) {
  .section-deco {
    display: block !important;
    visibility: visible !important;
    padding: 0.5rem 0;
  }
  .section-deco svg {
    transform: scale(0.5);
  }
}

/* Scroll Rocket */
.scroll-rocket {
  position: fixed;
  right: 30px;
  top: 10vh;
  z-index: 50;
  opacity: 0.65;
  pointer-events: none;
  transition: top 0.3s ease-out, transform 0.2s ease-out;
  overflow: visible;
}

.scroll-rocket svg {
  filter: drop-shadow(0 4px 12px rgba(139, 126, 200, 0.3));
  overflow: visible;
}

/* Flame animation */
.rocket-flame .flame-outer {
  animation: flameFlicker 0.3s ease-in-out infinite alternate;
  transform-origin: center top;
}

.rocket-flame .flame-middle {
  animation: flameFlicker 0.25s ease-in-out infinite alternate-reverse;
  transform-origin: center top;
}

.rocket-flame .flame-inner {
  animation: flameFlicker 0.2s ease-in-out infinite alternate;
  transform-origin: center top;
}

@keyframes flameFlicker {
  0% {
    transform: scaleY(1) scaleX(1);
    opacity: 0.9;
  }
  100% {
    transform: scaleY(1.15) scaleX(0.9);
    opacity: 1;
  }
}

/* Scroll rocket on mobile - smaller and less opaque */
@media (max-width: 768px) {
  .scroll-rocket {
    display: block !important;
    right: 10px;
    opacity: 0.5;
  }
  .scroll-rocket svg {
    width: 40px;
    height: 60px;
  }
}

/* ==========================================================================
   Section Scroll Animations
   ========================================================================== */

/* Base styles for scroll animations */
.scroll-animation {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
  z-index: 5;
}

/* Make sections relative for absolute positioning */
.why-section,
.science-section,
.timeline-section,
.features-section,
.health-section,
.cta-section {
  position: relative;
  overflow: visible;
}

/* Bagger Animation - scroll-gesteuert */
.bagger-animation {
  position: absolute;
  bottom: 15px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  will-change: transform, opacity;
}

/* Arm bobbing animation */
.bagger-arm {
  transform-origin: 22px 28px;
  animation: armBob 0.5s ease-in-out infinite;
}

@keyframes armBob {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2deg); }
}

@keyframes wheelSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Track wheels spin always */
.bagger-animation .bagger-track circle {
  animation: wheelSpin 2s linear infinite;
}

/* Smoke pulsing animation */
.bagger-smoke .smoke-1 {
  animation: smokePulse1 1.5s ease-in-out infinite;
}

.bagger-smoke .smoke-2 {
  animation: smokePulse2 1.2s ease-in-out infinite;
  animation-delay: 0.4s;
}

@keyframes smokePulse1 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-8px) scale(1.4); opacity: 0.15; }
}

@keyframes smokePulse2 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-6px) scale(1.2); opacity: 0.1; }
}

/* Falling Letters Animation */
.letters-animation {
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 10%;
}

.falling-letter {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-50px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.falling-letter:nth-child(odd) {
  color: #8B7EC8;
}

.falling-letter:nth-child(even) {
  color: #F5A623;
}

.letters-animation.active .falling-letter {
  opacity: 0.7;
  transform: translateY(0);
  transition-delay: calc(var(--delay) * 0.15s);
}

/* Train Animation - scroll-gesteuert */
.train-animation {
  position: absolute;
  bottom: 30px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  will-change: transform, opacity;
}

.train-wheel {
  animation: wheelSpin 2s linear infinite;
}

/* Pencils Animation */
.pencils-animation {
  bottom: 10px;
  left: 0;
  right: 0;
  width: 100% !important;
  height: 80px;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 5 !important;
  position: absolute;
}

.pencils-animation svg {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
}

.pencil-line {
  transition: stroke-dashoffset 2s ease-out;
}

.pencil-line-2 {
  transition-delay: 0.3s;
}

.pencil-line-3 {
  transition-delay: 0.6s;
}

.pencil {
  transition: transform 0.1s linear;
}

/* Shield Animation */
.shield-animation {
  bottom: 20px;
  right: 10%;
  opacity: 0.5;
}

.shield-circle {
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  transition: stroke-dashoffset 0.8s ease-out;
}

.shield-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.5s ease-out 0.3s;
}

.shield-animation.active .shield-circle {
  stroke-dashoffset: 0;
}

.shield-animation.active .shield-check {
  stroke-dashoffset: 0;
}

/* Stars Animation */
.stars-animation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle-star {
  position: absolute;
  opacity: 0;
  transform: scale(0) rotate(0deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.star-1 { top: 15%; left: 10%; }
.star-2 { top: 25%; right: 15%; }
.star-3 { top: 60%; left: 5%; }
.star-4 { top: 70%; right: 8%; }
.star-5 { top: 40%; left: 85%; }
.star-6 { top: 80%; left: 50%; }

.stars-animation.active .sparkle-star {
  opacity: 0.8;
  transform: scale(1) rotate(360deg);
}

.stars-animation.active .star-1 { transition-delay: 0s; }
.stars-animation.active .star-2 { transition-delay: 0.1s; }
.stars-animation.active .star-3 { transition-delay: 0.2s; }
.stars-animation.active .star-4 { transition-delay: 0.3s; }
.stars-animation.active .star-5 { transition-delay: 0.4s; }
.stars-animation.active .star-6 { transition-delay: 0.5s; }

/* Performance: will-change for animated elements */
.scroll-rocket,
.bagger-animation,
.scroll-animation,
.train-animation {
  will-change: transform;
}

/* Scroll animations on mobile - smaller and less opaque */
@media (max-width: 768px) {
  .scroll-animation {
    display: block !important;
    visibility: visible !important;
  }
  .scroll-animation svg {
    transform: scale(0.6);
    transform-origin: center bottom;
  }

  /* Bagger on mobile */
  .bagger-animation {
    bottom: 10px;
  }
  .bagger-animation svg {
    transform: scale(0.6);
    transform-origin: left bottom;
  }

  /* Train on mobile */
  .train-animation {
    bottom: 20px;
  }
  .train-animation svg {
    transform: scale(0.6);
    transform-origin: left bottom;
  }

  /* Reduce animation complexity on mobile */
  .bagger-smoke {
    display: none;
  }
  .bagger-arm {
    animation: none !important;
  }
  .rocket-flame .flame-outer,
  .rocket-flame .flame-middle,
  .rocket-flame .flame-inner {
    animation-duration: 1s !important;
  }
  .section-deco svg {
    animation: none !important;
  }

  /* Disable floating words animation on mobile */
  #floating-words {
    display: none !important;
  }
}

/* Mouse follower gradient */
.mouse-follower {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 126, 200, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, opacity 0.3s ease;
  will-change: transform;
  filter: blur(30px);
}

.mouse-follower.secondary {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.05) 0%, transparent 70%);
  transition: transform 0.2s ease-out;
}

@media (max-width: 768px) {
  .mouse-follower {
    display: none;
  }
}

/* Animated Hero Gradient Background */
.hero {
  background: linear-gradient(
    135deg,
    rgba(248, 246, 255, 1) 0%,
    rgba(139, 126, 200, 0.05) 25%,
    rgba(245, 166, 35, 0.05) 50%,
    rgba(139, 126, 200, 0.08) 75%,
    rgba(248, 246, 255, 1) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced Scroll Reveal Animations */
.reveal-blur {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-blur.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-scale-blur {
  opacity: 0;
  transform: scale(0.9);
  filter: blur(8px);
  transition:
    opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale-blur.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.reveal-slide-up {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-slide-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-rotate-in {
  opacity: 0;
  transform: translateY(30px) rotate(-3deg);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-rotate-in.visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Parallax layers */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-slow {
  --parallax-speed: 0.02;
}

.parallax-medium {
  --parallax-speed: 0.05;
}

.parallax-fast {
  --parallax-speed: 0.08;
}

/* Enhanced floating shapes with parallax */
.floating-shape {
  transition: transform 0.1s linear;
}

/* Section-specific animation styles */
.why-card {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

.science-card {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

.feature-card {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* Timeline enhanced animations */
.timeline-card {
  transition:
    background 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.active .timeline-card {
  transform: scale(1.02);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .particle,
  .mouse-follower,
  .floating-shape,
  .parallax-layer {
    animation: none !important;
    transition: none !important;
  }

  .hero {
    animation: none;
    background-size: 100% 100%;
  }

  .reveal,
  .reveal-blur,
  .reveal-scale-blur,
  .reveal-slide-up,
  .reveal-rotate-in,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ==========================================================================
   Hero Particles Mobile Fix
   ========================================================================== */
@media (max-width: 768px) {
  .hero { position: relative !important; overflow: visible !important; }
  .hero > div[aria-hidden="true"] { display: block !important; visibility: visible !important; opacity: 1 !important; }
  .hero > div[aria-hidden="true"] span { display: block !important; visibility: visible !important; }
}

/* ==========================================================================
   RTL (Right-to-Left) Support for Arabic
   RTL is applied via inline style on <main> element only.
   Header and Footer always stay LTR.
   ========================================================================== */
.header,
.footer {
  direction: ltr !important;
}

/* Main content RTL styles (applied via inline style on main element) */
main[style*="rtl"] .hero-features {
  flex-direction: row-reverse;
}

main[style*="rtl"] .hero-feature svg {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Timeline RTL */
main[style*="rtl"] .timeline-line,
main[style*="rtl"] .timeline-line-progress {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

main[style*="rtl"] .timeline-item {
  flex-direction: row-reverse;
}

main[style*="rtl"] .timeline-card {
  text-align: right;
}

main[style*="rtl"] .timeline-skill svg {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Cards RTL */
main[style*="rtl"] .why-card,
main[style*="rtl"] .science-card,
main[style*="rtl"] .feature-card {
  text-align: right;
}

main[style*="rtl"] .feature-card {
  flex-direction: row-reverse;
}

main[style*="rtl"] .feature-icon {
  margin-right: 0;
  margin-left: 1.5rem;
}

/* Health section RTL */
main[style*="rtl"] .health-badge svg {
  margin-right: 0;
  margin-left: 0.75rem;
}

main[style*="rtl"] .health-benefit {
  flex-direction: row-reverse;
  text-align: right;
}

main[style*="rtl"] .health-benefit-icon {
  margin-right: 0;
  margin-left: 1.5rem;
}

/* Highlight cards RTL */
main[style*="rtl"] .highlight-card {
  flex-direction: row-reverse;
}

main[style*="rtl"] .highlight-icon {
  margin-right: 0;
  margin-left: 0.75rem;
}

/* Feature showcase RTL */
main[style*="rtl"] .feature-showcase {
  flex-direction: row-reverse;
}

main[style*="rtl"] .feature-showcase-reverse {
  flex-direction: row;
}

/* Buttons RTL in main content */
main[style*="rtl"] .btn svg {
  margin-left: 0;
  margin-right: 0.5rem;
  transform: scaleX(-1);
}

/* Section decorations - flip for RTL */
main[style*="rtl"] .section-deco-left {
  left: auto;
  right: 2rem;
}

main[style*="rtl"] .section-deco-right {
  right: auto;
  left: 2rem;
}

/* ==========================================================================
   Mobile Header Fix for Legal Pages
   ========================================================================== */
@media (max-width: 768px) {
  .nav {
    display: none !important;
  }
  
  .lang-switcher {
    display: none !important;
  }
  
  .header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
  }
  
  .mobile-menu-btn {
    display: block !important;
  }
  
  /* Ensure nav-links don't show as list */
  .nav-links {
    display: none !important;
  }
  
  /* Hide CTA in header on mobile */
  .nav-cta {
    display: none !important;
  }
}

/* ==========================================================================
   Mobile Horizontal Scroll Fix
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

main {
  overflow-x: hidden !important;
}

section {
  overflow-x: hidden !important;
}

.pencils-animation {
  overflow: hidden !important;
}

.scroll-animation {
  overflow: hidden !important;
}

.why-section, .timeline-section {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  /* Hide hero particles at right edge */
  .hero > div[aria-hidden="true"] span[style*="left:95%"],
  .hero > div[aria-hidden="true"] span[style*="left:90%"],
  .hero > div[aria-hidden="true"] span[style*="left:85%"] {
    display: none !important;
  }
}
