/* ClassCards Home Page - Playful & Lucid Redesign */

/* Skip-to-content accessibility link (hidden by default, visible on focus) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid white;
  outline-offset: 2px;
}

:root {
  /* Electric Indigo Primary */
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #8B7EF0;
  --primary-100: #EDE9FC;
  --primary-rgb: 108, 92, 231;
  --primary-glow: rgba(108, 92, 231, 0.4);

  /* Mint/Teal Secondary */
  --secondary: #11B8A0;
  --secondary-light: #2ED8BB;

  /* Warm Orange Accent */
  --accent: #6C5CE7;
  --accent-hover: #5A4BD1;
  --accent-dark: #4A3DC0;
  --accent-glow: rgba(108, 92, 231, 0.4);
  --accent-orange: #F5A623;

  /* Product Highlight Colors */
  --highlight-teal: #11B8A0;
  --highlight-coral: #ED6A6D;
  --highlight-green: #6DBA71;
  --highlight-orange: #F5A623;

  /* Gradient Colors */
  --gradient-start: #6C5CE7;
  --gradient-end: #F5A623;

  /* Warm beige backgrounds */
  --cream: #FBF5EB;
  --beige-50: #F5EFE3;
  --beige-100: #EDE6D9;
  --beige-200: #E2D9CC;
  --beige-300: #D5CCC0;

  /* Text colors */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-900: #1F2937;

  /* Category colors */
  --category-teal: #E0F7F4;
  --category-coral: #FDEDED;
  --category-green: #E5F5E7;
  --category-orange: #FEF0E5;
  --category-blue: #E0F7F4;
  --category-purple: #EDE9FC;
  --category-amber: #FEF0E5;

  /* Semantic colors */
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F5A623;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --bg-primary: #F8F8FC;
  --bg-secondary: #F5F5FA;
  --bg-tertiary: #EDEDF5;
  --card-bg: white;
  --border: #E2E2EE;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);

  /* Responsive spacing scale */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 0.75rem);
  --space-md: clamp(0.75rem, 1.5vw, 1rem);
  --space-lg: clamp(1rem, 2vw, 1.5rem);
  --space-xl: clamp(1.5rem, 3vw, 2rem);

  /* Responsive font sizes */
  --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
  --text-sm: clamp(0.875rem, 2vw, 1rem);

  /* Container widths */
  --container-lg: min(100% - 2rem, 75rem);

  /* Border radius - more rounded for playful look */
  --radius: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  /* Dark mode - Playful & Lucid palette */
  --primary: #8B7EF0;
  --primary-dark: #6C5CE7;
  --primary-light: #A99BF5;
  --primary-100: #2D2755;
  --secondary: #2ED8BB;
  --accent: #8B7EF0;
  --accent-hover: #A99BF5;
  --accent-orange: #F5A623;
  --success: #66BB6A;
  --danger: #EF5350;
  --warning: #F5A623;
  --text-primary: #F5F5F8;
  --text-secondary: #B0B3C0;
  --text-light: #8A8D9A;
  --bg-primary: #1A1A2E;
  --bg-secondary: #222236;
  --bg-tertiary: #2A2A42;
  --card-bg: #222236;
  --border: #3A3A55;
  --cream: #1A1A2E;
  --beige-50: #222236;
  --beige-100: #2A2A42;
  --beige-200: #3A3A55;
  --beige-300: #4A4A65;
  --primary-glow: rgba(139, 126, 240, 0.4);
  --highlight-teal: #2ED8BB;
  --highlight-coral: #F28082;
  --highlight-green: #7DCA81;
  --highlight-orange: #F5A623;
  --gray-900: #F5F5F8;
  --gray-700: #B0B3C0;
  --gray-600: #8A8D9A;
}

/* Ocean Blue Theme */
[data-theme="ocean-blue"] {
  --primary: #0077B6;
  --primary-dark: #005A8C;
  --primary-light: #00B4D8;
  --secondary: #00B4D8;
  --accent-orange: #00B4D8;
  --success: #06D6A0;
  --danger: #EF476F;
  --warning: #FFD166;
  --text-primary: #E0FBFC;
  --text-secondary: #98C1D9;
  --text-light: #6B9AC4;
  --bg-primary: #073B4C;
  --bg-secondary: #0A4F67;
  --bg-tertiary: #0D6384;
  --card-bg: #0A4F67;
  --border: #1A7A9D;
}

/* Forest Green Theme */
[data-theme="forest-green"] {
  --primary: #2D6A4F;
  --primary-dark: #1B4332;
  --primary-light: #40916C;
  --secondary: #52B788;
  --accent-orange: #95D5B2;
  --success: #74C69D;
  --danger: #E76F51;
  --warning: #F4A261;
  --text-primary: #D8F3DC;
  --text-secondary: #B7E4C7;
  --text-light: #95D5B2;
  --bg-primary: #1B4332;
  --bg-secondary: #2D6A4F;
  --bg-tertiary: #40916C;
  --card-bg: #2D6A4F;
  --border: #40916C;
}

/* Sunset Orange Theme */
[data-theme="sunset-orange"] {
  --primary: #E07A5F;
  --primary-dark: #C96148;
  --primary-light: #F2A65A;
  --secondary: #F4A261;
  --accent-orange: #E9C46A;
  --success: #81B29A;
  --danger: #E76F51;
  --warning: #F4A261;
  --text-primary: #FEF9EF;
  --text-secondary: #E8D5C4;
  --text-light: #D4B5A0;
  --bg-primary: #3D405B;
  --bg-secondary: #4A4E69;
  --bg-tertiary: #5A5F7A;
  --card-bg: #4A4E69;
  --border: #6B708A;
}

/* Purple Theme */
[data-theme="purple"] {
  --primary: #7B2CBF;
  --primary-dark: #5A189A;
  --primary-light: #9D4EDD;
  --secondary: #C77DFF;
  --accent-orange: #E0AAFF;
  --success: #57CC99;
  --danger: #FF6B6B;
  --warning: #FFD93D;
  --text-primary: #F3E8FF;
  --text-secondary: #D4BBFF;
  --text-light: #B794F6;
  --bg-primary: #240046;
  --bg-secondary: #3C096C;
  --bg-tertiary: #5A189A;
  --card-bg: #3C096C;
  --border: #7B2CBF;
}

/* Dark mode overrides for home page elements */
[data-theme="dark"] #backgroundHeader {
  background: linear-gradient(135deg, #2E2550 0%, #3A2D6A 50%, #2E2550 100%);
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-ghost {
  color: var(--text-secondary);
}

[data-theme="dark"] .btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .lang-select .language-switcher,
[data-theme="dark"] .lang-select .theme-switcher {
  background: var(--bg-tertiary);
  border-color: var(--border);
  color: var(--text-secondary);
}

[data-theme="dark"] .lang-select .language-switcher:hover,
[data-theme="dark"] .lang-select .theme-switcher:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .theme-dropdown {
  background: var(--bg-secondary);
  border-color: var(--border);
}

[data-theme="dark"] .theme-dropdown-item {
  color: var(--text-secondary);
}

[data-theme="dark"] .theme-dropdown-item:hover {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .contentWrapper {
  background-color: var(--bg-secondary);
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .section-subtitle {
  color: var(--text-primary);
}

[data-theme="dark"] .dropdown-menu {
  background: var(--bg-secondary);
  border-color: var(--border);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-secondary);
}

[data-theme="dark"] .dropdown-item:hover {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .dropdown-item-title {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .dropdown-item-desc {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .feature-carousel {
  background: var(--bg-secondary);
  border-color: var(--border);
}

[data-theme="dark"] .carousel-card {
  background: var(--bg-tertiary);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  min-height: 100vh;
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

/* Announcement Banner (purple stripe) */
.announcement-banner {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.announcement-banner a {
  color: white;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.announcement-banner a:hover {
  opacity: 0.9;
}

/* ===== Hero Section - Purple Gradient with Stars ===== */
.hero-stripe {
  background: linear-gradient(135deg, #5D4C9A 0%, #9A4C79 100%);
  position: relative;
  overflow: hidden;
  padding: calc(60px + 2.5rem) 1.5rem 2.5rem;
  box-shadow: 0 4px 20px rgba(93, 76, 154, 0.3);
}

/* Decorative blur blobs - re-enabled for purple hero */
.hero-stripe::before { display: none; }
.hero-stripe::after { display: none; }

.hero-stripe .hero-tagline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-stripe h1 {
  color: white !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Gradient text for the keyword - gold on purple bg */
.hero-gradient-text {
  background: linear-gradient(135deg, #FFD83F 0%, #F5A623 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stripe .hero-subtext {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.25rem !important;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem !important;
}

.hero-stripe .hero-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2rem;
}

.hero-stripe .hero-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-stripe .hero-benefit svg {
  color: #FFD83F;
}


/* Decorative Stars */
.hero-star {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-star.star-1 {
  top: 15%;
  left: 8%;
  color: rgba(122, 107, 181, 0.8);
  font-size: 2rem;
  animation: twinkle 3s ease-in-out infinite;
}

.hero-star.star-2 {
  top: 25%;
  left: 15%;
  color: rgba(154, 76, 121, 0.6);
  font-size: 1rem;
  animation: twinkle 2.5s ease-in-out infinite 0.5s;
}

.hero-star.star-3 {
  top: 60%;
  right: 10%;
  color: rgba(122, 107, 181, 0.8);
  font-size: 1.5rem;
  animation: twinkle 2.8s ease-in-out infinite 1s;
}

.hero-star.star-4 {
  bottom: 20%;
  right: 18%;
  color: rgba(154, 76, 121, 0.6);
  font-size: 0.875rem;
  animation: twinkle 3.2s ease-in-out infinite 0.3s;
}

.hero-star.star-5 {
  top: 40%;
  left: 5%;
  color: var(--accent);
  font-size: 1.25rem;
  animation: twinkle 2.6s ease-in-out infinite 0.7s;
}

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

@keyframes starDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
  25% { transform: translate(5px, -8px) rotate(10deg); opacity: 0.6; }
  50% { transform: translate(-3px, -12px) rotate(-5deg); opacity: 0.5; }
  75% { transform: translate(8px, -4px) rotate(15deg); opacity: 0.4; }
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

@keyframes starSpin {
  0% { transform: rotate(0deg) scale(1); opacity: 0.4; }
  50% { transform: rotate(180deg) scale(1.15); opacity: 0.7; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.4; }
}

/* Additional hero stars */
.hero-star.star-6 {
  top: 10%;
  right: 25%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.75rem;
  animation: starDrift 6s ease-in-out infinite;
}

.hero-star.star-7 {
  bottom: 30%;
  left: 20%;
  color: rgba(122, 107, 181, 0.7);
  font-size: 1.125rem;
  animation: starPulse 4s ease-in-out infinite 0.8s;
}

.hero-star.star-8 {
  top: 70%;
  left: 12%;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  font-weight: 300;
  animation: starSpin 8s linear infinite;
}

.hero-star.star-9 {
  top: 20%;
  right: 6%;
  color: rgba(154, 76, 121, 0.5);
  font-size: 0.75rem;
  animation: twinkle 2.2s ease-in-out infinite 1.5s;
}

.hero-star.star-10 {
  bottom: 35%;
  left: 30%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.5rem;
  animation: starPulse 3.5s ease-in-out infinite 0.4s;
}

.hero-star.star-11 {
  top: 50%;
  right: 30%;
  color: rgba(122, 107, 181, 0.6);
  font-size: 1.375rem;
  animation: starDrift 7s ease-in-out infinite 2s;
}

.hero-star.star-12 {
  bottom: 15%;
  left: 25%;
  color: var(--accent);
  font-size: 0.875rem;
  opacity: 0.5;
  animation: twinkle 3.5s ease-in-out infinite 1.2s;
}

.hero-star.star-13 {
  top: 35%;
  right: 15%;
  color: rgba(154, 76, 121, 0.5);
  font-size: 1rem;
  animation: starSpin 10s linear infinite 0.6s;
}

/* SVG star shapes in hero */
.hero-star-svg {
  position: absolute;
  pointer-events: none;
}

.hero-star-svg.star-svg-1 {
  top: 8%;
  right: 12%;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.35);
  animation: starDrift 5.5s ease-in-out infinite 0.3s;
}

.hero-star-svg.star-svg-2 {
  bottom: 25%;
  left: 6%;
  width: 14px;
  height: 14px;
  color: rgba(122, 107, 181, 0.5);
  animation: starSpin 12s linear infinite;
}

.hero-star-svg.star-svg-3 {
  top: 45%;
  right: 4%;
  width: 10px;
  height: 10px;
  color: rgba(154, 76, 121, 0.6);
  animation: starPulse 3s ease-in-out infinite 1.8s;
}

/* Dreamy glow stars */
.star-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  text-shadow: 0 0 8px currentColor, 0 0 20px currentColor;
  filter: blur(0.3px);
}

.star-glow.g1  { top: 5%;  left: 3%;  color: rgba(255,255,255,0.7); font-size: 0.6rem; animation: twinkle 2.1s ease-in-out infinite 0.2s; }
.star-glow.g2  { top: 12%; left: 35%; color: rgba(200,180,255,0.6); font-size: 1.4rem; animation: starFloat 8s ease-in-out infinite; }
.star-glow.g3  { top: 8%;  left: 50%; color: rgba(255,216,63,0.4);  font-size: 0.9rem; animation: starPulse 3s ease-in-out infinite 0.6s; }
.star-glow.g4  { top: 18%; left: 70%; color: rgba(255,255,255,0.5); font-size: 0.5rem; animation: twinkle 1.8s ease-in-out infinite 1.1s; }
.star-glow.g5  { top: 30%; left: 92%; color: rgba(200,180,255,0.5); font-size: 1.1rem; animation: starFloat 10s ease-in-out infinite 2s; }
.star-glow.g6  { top: 45%; left: 2%;  color: rgba(255,255,255,0.4); font-size: 1.6rem; animation: starPulse 4.5s ease-in-out infinite 0.3s; }
.star-glow.g7  { top: 55%; left: 18%; color: rgba(255,255,255,0.8); font-size: 2.5rem; animation: twinkle 2.5s ease-in-out infinite 0.8s; }
.star-glow.g8  { top: 65%; left: 40%; color: rgba(255,216,63,0.3);  font-size: 0.7rem; animation: starFloat 7s ease-in-out infinite 1.5s; }
.star-glow.g9  { top: 70%; left: 60%; color: rgba(200,180,255,0.6); font-size: 0.4rem; animation: twinkle 1.5s ease-in-out infinite 0.4s; }
.star-glow.g10 { top: 75%; left: 85%; color: rgba(255,255,255,0.5); font-size: 1.2rem; animation: starDrift 6s ease-in-out infinite 1s; }
.star-glow.g11 { top: 82%; left: 10%; color: rgba(200,180,255,0.4); font-size: 0.8rem; animation: starSpin 9s linear infinite 0.5s; }
.star-glow.g12 { top: 88%; left: 55%; color: rgba(255,255,255,0.3); font-size: 1rem;   animation: twinkle 3.2s ease-in-out infinite 2s; }
.star-glow.g13 { top: 22%; left: 88%; color: rgba(255,216,63,0.5);  font-size: 0.6rem; animation: starPulse 2.8s ease-in-out infinite 1.3s; }
.star-glow.g14 { top: 38%; left: 45%; color: rgba(255,255,255,0.3); font-size: 0.5rem; animation: starFloat 12s ease-in-out infinite 3s; }
.star-glow.g15 { top: 50%; left: 75%; color: rgba(200,180,255,0.7); font-size: 1.8rem; animation: twinkle 2s ease-in-out infinite 0.7s; }
.star-glow.g16 { top: 62%; left: 95%; color: rgba(255,255,255,0.6); font-size: 3rem;   animation: starPulse 3.8s ease-in-out infinite 1.8s; }
.star-glow.g17 { top: 35%; left: 8%;  color: rgba(255,255,255,0.4); font-size: 0.7rem; animation: starDrift 5s ease-in-out infinite 0.9s; }
.star-glow.g18 { top: 90%; left: 30%; color: rgba(200,180,255,0.5); font-size: 1rem;   animation: starSpin 11s linear infinite 2.5s; }
.star-glow.g19 { top: 15%; left: 58%; color: rgba(255,216,63,0.3);  font-size: 0.8rem; animation: twinkle 2.7s ease-in-out infinite 1.6s; }
.star-glow.g20 { top: 48%; left: 28%; color: rgba(255,255,255,0.5); font-size: 1.3rem; animation: starFloat 9s ease-in-out infinite 0.4s; }

/* Nebula glow dots */
.hero-nebula {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0.15;
  z-index: 0;
}
.hero-nebula.n1 { top: 10%; left: 15%; width: 120px; height: 120px; background: rgba(200,180,255,0.8); animation: nebulaPulse 8s ease-in-out infinite; }
.hero-nebula.n2 { top: 60%; right: 10%; width: 80px;  height: 80px;  background: rgba(255,216,63,0.6);  animation: nebulaPulse 10s ease-in-out infinite 2s; }
.hero-nebula.n3 { bottom: 20%; left: 40%; width: 150px; height: 100px; background: rgba(154,76,121,0.6); animation: nebulaPulse 12s ease-in-out infinite 4s; }
.hero-nebula.n4 { top: 30%; right: 25%; width: 60px;  height: 60px;  background: rgba(200,180,255,0.5); animation: nebulaPulse 7s ease-in-out infinite 1s; }
.hero-nebula.n5 { bottom: 10%; left: 70%; width: 90px;  height: 90px;  background: rgba(255,255,255,0.3); animation: nebulaPulse 9s ease-in-out infinite 3s; }

@keyframes starFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  33% { transform: translateY(-10px) scale(1.2); opacity: 0.7; }
  66% { transform: translateY(5px) scale(0.9); opacity: 0.5; }
}

@keyframes nebulaPulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.3); }
}

/* Purple glow stars for cream boxes */
.box-star {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: rgba(245, 166, 35, 0.7);
  text-shadow: 0 0 10px rgba(245, 166, 35, 0.8), 0 0 25px rgba(245, 166, 35, 0.5), 0 0 45px rgba(245, 166, 35, 0.3);
  filter: blur(0.3px);
  transition: all 0.4s ease;
}

/* Glow + spark stars when a feature card is hovered */
.marketing-section:has(.feature-card-magicschool:hover) .box-star {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 12px rgba(108, 92, 231, 1), 0 0 30px rgba(108, 92, 231, 0.8), 0 0 60px rgba(108, 92, 231, 0.5), 0 0 90px rgba(245, 166, 35, 0.4);
  filter: blur(0px);
  transform: scale(1.3);
}

.box-star.bs1  { top: 8%;   left: 4%;   font-size: 0.7rem;  animation: twinkle 2.4s ease-in-out infinite 0.1s; }
.box-star.bs2  { top: 15%;  right: 6%;  font-size: 1.2rem;  animation: starFloat 7s ease-in-out infinite 0.5s; }
.box-star.bs3  { top: 40%;  left: 2%;   font-size: 0.5rem;  animation: starPulse 3.2s ease-in-out infinite 1s; }
.box-star.bs4  { bottom: 12%; right: 3%; font-size: 0.9rem; animation: twinkle 2.8s ease-in-out infinite 0.7s; }
.box-star.bs5  { bottom: 25%; left: 8%;  font-size: 1.4rem; animation: starFloat 9s ease-in-out infinite 1.5s; }
.box-star.bs6  { top: 6%;   left: 45%;  font-size: 0.6rem;  animation: starPulse 2.6s ease-in-out infinite 0.3s; }
.box-star.bs7  { top: 55%;  right: 5%;  font-size: 0.8rem;  animation: starDrift 6s ease-in-out infinite 2s; }
.box-star.bs8  { bottom: 8%; left: 35%; font-size: 1.0rem;  animation: twinkle 3.5s ease-in-out infinite 1.2s; }
.box-star.bs9  { top: 25%;  left: 15%;  font-size: 0.5rem;  animation: starSpin 10s linear infinite 0.8s; }
.box-star.bs10 { top: 70%;  right: 15%; font-size: 0.6rem;  animation: starFloat 8s ease-in-out infinite 2.5s; }
.box-star.bs11 { top: 3%;   right: 30%; font-size: 1.1rem;  animation: starPulse 4s ease-in-out infinite 0.4s; }
.box-star.bs12 { bottom: 5%; right: 40%; font-size: 0.7rem; animation: starDrift 5.5s ease-in-out infinite 1.8s; }

/* CTA buttons - rounded pills on purple bg */
.hero-stripe .btn-accent {
  background: #FFD83F;
  color: #1a1a2e;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 216, 63, 0.35);
  transition: all 0.3s ease;
}

.hero-stripe .btn-accent:hover {
  background: #ffe066;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 216, 63, 0.5);
}

.hero-stripe .btn-secondary {
  background: transparent;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.hero-stripe .btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Clickable logo link */
.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-link:hover .logo-circle {
  opacity: 0.85;
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
  .hero-stripe {
    padding: calc(60px + 1.5rem) 1rem 2rem;
  }

  .hero-stripe h1 {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }

  .hero-stripe .hero-subtext {
    font-size: 1rem !important;
    display: none;
  }

  .hero-stripe .hero-benefits {
    gap: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .hero-stripe .btn-accent,
  .hero-stripe .btn-secondary {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }

  .hero-trust-row {
    font-size: 0.8125rem;
  }
}

/* Pricing Section */
.pricing-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.pricing-card-home {
  background: rgba(108, 92, 231, 0.06);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(108, 92, 231, 0.12);
}

.pricing-card-home--premium {
  border: 2px solid var(--primary);
}

.pricing-card-home--school {
  border: 2px solid var(--secondary);
}

.pricing-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pricing-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pricing-card-icon--school {
  background: rgba(17, 184, 160, 0.1);
}

.pricing-card-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.pricing-card-title--sm {
  font-size: 1.125rem;
}

.pricing-card-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.pricing-card-subtitle--primary {
  color: var(--primary);
}

.pricing-card-subtitle--secondary {
  color: var(--secondary);
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-primary);
}

.pricing-card-features--sm {
  font-size: 0.9rem;
}

.pricing-card-feature {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card-feature:last-child {
  border-bottom: none;
}

.pricing-card-feature--compact {
  padding: 0.375rem 0;
  border-bottom: none;
}

.pricing-card-check {
  color: var(--primary);
}

.pricing-card-check--secondary {
  color: #4EBFC0;
}

.pricing-card-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pricing-card-cta {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
}

.pricing-premium-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-footer-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Pricing cards - stack on mobile */
@media (max-width: 768px) {
  .pricing-comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* Header Bar - always fixed, background fades in on scroll via --header-opacity */
#backgroundHeader {
  min-height: 60px;
  width: 100%;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: 0 2px 12px rgba(74, 61, 122, calc(0.3 * var(--header-opacity, 0)));
  --header-opacity: 1;
}

/* Pseudo-element with the gradient, opacity driven by JS */
#backgroundHeader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4A3D7A 0%, #5D4C9A 50%, #4A3D7A 100%);
  opacity: var(--header-opacity, 0);
  transition: opacity 0.35s ease;
  z-index: -1;
  pointer-events: none;
}

/* Star animation keyframes (for header stars injected by theme.js) */
@keyframes qsTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.15); }
}
@keyframes qsDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
  25% { transform: translate(4px, -6px) rotate(8deg); opacity: 0.6; }
  50% { transform: translate(-3px, -10px) rotate(-5deg); opacity: 0.5; }
  75% { transform: translate(6px, -3px) rotate(12deg); opacity: 0.4; }
}
@keyframes qsPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.4); opacity: 0.75; }
}

.header-content {
  width: var(--container-lg);
  margin-inline: auto;
  padding: 0.5rem var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.header-logo img {
  height: clamp(1.75rem, 5vw, 2.5rem);
}

.header-logo h2 {
  color: white;
  margin: 0;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-select .language-switcher,
.lang-select .theme-switcher {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.lang-select .language-switcher:hover,
.lang-select .theme-switcher:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Theme dropdown - appended to body by theme.js */
.theme-dropdown-container {
  position: relative;
  display: inline-block;
}

.theme-dropdown {
  display: none;
  flex-direction: column;
  min-width: 160px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99999;
  margin-top: 0.25rem;
}

.theme-dropdown.show {
  display: flex;
}

.theme-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}

.theme-dropdown-item:hover {
  background: #f5f5f5;
}

.theme-dropdown-item.active {
  background: var(--primary);
  color: white;
}

/* Header Auth Buttons */
.btn-ghost {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  border-radius: var(--radius);
}

.btn-ghost:hover {
  color: white;
}

.btn-accent {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

.btn-accent:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-accent:active {
  transform: translateY(0);
}

.theme-dropdown-item .theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ddd;
  flex-shrink: 0;
}

.theme-dropdown-item.active .theme-icon {
  border-color: rgba(255,255,255,0.5);
}

.theme-icon.light { background: linear-gradient(135deg, #FAFAFA, #E0E0E0); }
.theme-icon.dark { background: linear-gradient(135deg, #424242, #212121); }

/* Content Wrapper */
.contentWrapper {
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  background-color: var(--cream);
  box-shadow: none;
  overflow: hidden;
}

.contentWrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* Logo Circle - Minimalist Style (in public header, NOT navbar) */
.logo-circle:not(.navbar-logo-circle) {
  --logo-bg: transparent;
  --logo-text: white;
  --logo-accent: #FFD700;

  position: relative;
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: var(--space-xs);
  color: var(--logo-text);
}

.logo-circle:not(.navbar-logo-circle) .logo-icon {
  width: clamp(3rem, 6vw, 3.5rem);
  height: clamp(3rem, 6vw, 3.5rem);
  color: rgba(255, 255, 255, 0.95);
}

.logo-circle:not(.navbar-logo-circle) .logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-circle:not(.navbar-logo-circle) .logo-text {
  text-align: left;
  line-height: 1.1;
}

.logo-circle:not(.navbar-logo-circle) .logo-main {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: white;
}

.logo-circle:not(.navbar-logo-circle) .logo-sub {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Navigation */
.navigation-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.main-navigation {
  position: relative;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s;
  background: transparent;
  box-sizing: border-box;
}

.nav-item a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.nav-item.active a {
  background: var(--primary-100);
  color: var(--primary);
}

/* Header nav links (Preise, Über uns) match dropdown toggles */
#backgroundHeader .nav-item a.nav-link,
#backgroundHeader .nav-item button.nav-link {
  color: rgba(255, 255, 255, 0.95);
  flex-direction: row;
}

#backgroundHeader .nav-item a.nav-link:hover,
#backgroundHeader .nav-item button.nav-link:hover {
  color: #fff;
  background: transparent;
}

.nav-item a svg {
  margin-bottom: 2px;
  width: 16px;
  height: 16px;
}

.nav-item a span {
  font-size: 0.6rem;
  font-weight: 500;
}

/* ================================
   DROPDOWN NAVIGATION
   ================================ */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: var(--radius);
  transition: color 0.15s;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: #fff;
}

/* Dropdown Toggle */
.dropdown-toggle {
  position: relative;
}

.dropdown-chevron {
  transition: transform 0.2s;
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.85);
}

.has-dropdown:hover .dropdown-chevron,
.has-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu Container */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(108, 92, 231, 0.1);
  padding: 1rem;
  min-width: 400px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.dropdown-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, #F0EDF5 0%, var(--primary-100) 100%);
}

.dropdown-item-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-item-icon svg {
  width: 28px;
  height: 28px;
}

/* Icon colors by category - using new highlight palette */
.dropdown-item-icon[data-category="teacher"] {
  background: var(--category-teal);
  color: var(--highlight-teal);
}

.dropdown-item-icon[data-category="student"] {
  background: var(--category-green);
  color: var(--highlight-green);
}

.dropdown-item-icon[data-category="school"] {
  background: var(--category-orange);
  color: var(--highlight-orange);
}

.dropdown-item-icon[data-category="docs"] {
  background: var(--category-coral);
  color: var(--highlight-coral);
}

.dropdown-item-icon[data-category="video"] {
  background: #FCE7F3;
  color: #DB2777;
}

.dropdown-item-icon[data-category="help"] {
  background: var(--primary-100);
  color: var(--primary);
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  text-align: left;
}

.dropdown-item-title {
  font-weight: 700;
  font-size: 1.25rem !important;
  color: #1F2937 !important;
  display: block;
  line-height: 1.2;
}

.dropdown-item-desc {
  font-size: 1.0625rem !important;
  color: #6B7280 !important;
  line-height: 1.4;
  display: block;
}

/* Login Dropdown in Header */
.login-dropdown-container {
  position: relative;
}

.login-dropdown-toggle {
  cursor: pointer;
}

.login-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(108, 92, 231, 0.1);
  padding: 1.5rem;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000;
}

.login-dropdown-container:hover .login-dropdown-menu,
.login-dropdown-container:focus-within .login-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-dropdown-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.login-field label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.login-field input {
  padding: 0.75rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.25);
}

.login-field-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-field-checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
}

.login-field-checkbox label {
  font-size: 0.9375rem;
  color: #4B5563;
  cursor: pointer;
}

.btn-login-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.login-dropdown-links {
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid #E5E7EB;
}

.login-dropdown-links a {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
}

.login-dropdown-links a:hover {
  text-decoration: underline;
}

/* Dark mode for login dropdown */
[data-theme="dark"] .login-dropdown-menu {
  background: #1F1F23;
  border-color: rgba(108, 92, 231, 0.3);
}

[data-theme="dark"] .login-field label {
  color: #E5E7EB;
}

[data-theme="dark"] .login-field input {
  background: #27272A;
  border-color: #3F3F46;
  color: #F5F5F5;
}

[data-theme="dark"] .login-field-checkbox label {
  color: #D1D5DB;
}

[data-theme="dark"] .login-dropdown-links {
  border-top-color: #3F3F46;
}

/* Header left: Logo + Navigation */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Login Form in Header (blue background) */
.header-login-form-vertical {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.header-login-form-vertical input {
  width: 140px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  font-size: 0.875rem;
  color: var(--gray-900);
  transition: all 0.2s;
}

.header-login-form-vertical input::placeholder {
  color: var(--gray-400);
}

.header-login-form-vertical input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.header-login-form-vertical .btn-header-login {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.header-login-form-vertical .btn-header-login:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: none;
  box-shadow: none;
}

/* Header right: Login Form + Language/Theme */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Content Layout */
.content-layout {
  position: relative;
  float: left;
  width: 100%;
}

.content-layout::after {
  content: "";
  display: table;
  clear: both;
}

#sidebar {
  position: relative;
  float: left;
  width: clamp(8rem, 15vw, 9.125rem);
}

#contentBody {
  position: relative;
  float: left;
  padding-left: var(--space-sm);
  width: calc(100% - clamp(8rem, 15vw, 9.125rem));
}

#contentBody h1,
#contentBody h2 {
  color: var(--text-primary);
  line-height: 1.3;
}

/* Gradient Boxes */
.gradient-box {
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

/* Login Box */
.login-box {
  width: 100%;
}

.login-form {
  width: 100%;
}

.form-row {
  margin-bottom: var(--space-sm);
}

.form-row label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-row input {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.25);
}

.btn-submit {
  width: 100%;
  padding: var(--space-sm);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.form-row a {
  color: var(--primary);
  text-decoration: none;
}

.form-row a:hover {
  text-decoration: underline;
}

/* Intro Box */
.intro-box {
  width: 100%;
  position: relative;
  clear: both;
  color: var(--text-primary);
}

/* Version Columns */
.version-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  clear: both;
}

.feature-column {
  padding: var(--space-lg);
}

.feature-column h2 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.feature-column p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-sm) 0;
}

.feature-column hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-sm) 0;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: var(--space-sm) 0;
}

.feature-list li {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  position: relative;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-primary);
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success-alt-dark);
  font-weight: bold;
}

/* ====================================
   Habitkit-style Feature Grid
   Clean 3x3 grid with icon+title+desc
   ==================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.feature-grid-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-grid-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-grid-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-grid-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

.feature-grid-content {
  flex: 1;
}

.feature-grid-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0 0 0.375rem 0;
}

.feature-grid-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* Feature grid section wrapper */
.feature-grid-section {
  padding: 3rem 0;
  background: var(--bg-primary);
}

.feature-grid-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-grid-section .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 600px) {
  .efficiency-section > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

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

  .feature-grid-item {
    padding: 1rem;
  }

  .feature-grid-section h2 {
    font-size: 1.5rem;
  }
}

.register-link {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-top: var(--space-sm);
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.register-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.register-link.secondary {
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.register-link.secondary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.register-link.secondary {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.register-link.secondary:hover {
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

/* Info Boxes */
.info-box {
  width: 100%;
  position: relative;
  clear: both;
}

.info-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.info-icon {
  flex-shrink: 0;
}

.info-text h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.info-text span,
.info-text p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Leitner Section */
#leitner {
  width: 100%;
  clear: both;
}

#leitner p {
  color: var(--text-primary);
}

/* CTA Box */
.cta-box {
  text-align: center;
  padding: var(--space-xl);
  width: 100%;
  clear: both;
}

.cta-box h2 {
  margin-top: 0;
}

.cta-box p {
  color: var(--text-primary);
}

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

/* Footer */
.info-footer {
  color: var(--text-secondary);
  text-align: center;
  margin: var(--space-lg) auto;
  padding-bottom: var(--space-lg);
}

.info-footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.info-footer a:hover {
  text-decoration: underline;
}

/* Clear float helper */
.clearBoth {
  clear: both;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .contentWrapper {
    width: 95%;
    margin-inline: auto;
  }

  .header-content {
    width: 95%;
    margin-inline: auto;
  }
}

/* Hide mobile login link on desktop (form is visible) */
.mobile-login-link {
  display: none;
}

/* Hamburger button - hidden on desktop */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.mobile-menu-toggle:hover {
  background: rgba(108, 92, 231, 0.1);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

[data-theme="dark"] .mobile-menu-toggle span {
  background: #d1d5db;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* Override inline grid styles */
  .advantages-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Show mobile login link on mobile */
  .mobile-login-link {
    display: block;
  }

  /* Compact mobile header - single row */
  #backgroundHeader {
    height: auto;
    min-height: auto;
    padding: 0.5rem 0;
  }

  .header-content {
    position: static;
    left: auto;
    margin-left: 0;
    width: 100%;
    padding: 0 0.75rem;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .header-logo h2 {
    font-size: var(--text-base);
  }

  .contentWrapper {
    position: static;
    left: auto;
    margin-left: 0;
    margin-top: 0;
    width: 100%;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  /* Header left: just logo on mobile */
  .header-left {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  /* Show hamburger on mobile */
  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }

  /* Hide nav-menu by default on mobile, show as dropdown when toggled */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4A3D7A 0%, #5D4C9A 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 200;
    list-style: none;
    margin: 0;
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  /* Prevent dropdown overflow on mobile/tablet */
  .dropdown-menu {
    min-width: 0;
    width: calc(100vw - 2rem);
    left: 1rem;
    right: 1rem;
    transform: none;
  }

  .nav-menu .nav-item {
    width: 100%;
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    justify-content: space-between;
  }

  .nav-menu .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-menu .has-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    padding: 0 0 0 1rem;
    display: none;
    border-top: none;
    background: transparent;
  }

  .nav-menu .has-dropdown:focus-within .dropdown-menu,
  .nav-menu .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-menu .has-dropdown:hover .dropdown-menu {
    display: none;
  }

  .nav-menu .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-menu .dropdown-item {
    padding: 0.625rem 1rem;
  }

  .nav-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-menu .dropdown-item-title {
    color: #fff !important;
  }

  .nav-menu .dropdown-item-desc {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .nav-menu .dropdown-item-icon {
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-menu .dropdown-chevron {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Show mobile login link in nav menu */
  .mobile-login-link {
    display: list-item;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    text-align: center;
  }

  .mobile-login-link a {
    color: #F5A623 !important;
    font-weight: 600;
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  /* Hide login form and register button on mobile (header only) */
  .header-login-form-vertical {
    display: none;
  }

  .header-right > .btn-accent {
    display: none;
  }

  .login-dropdown-container {
    display: none;
  }

  /* Compact right section: only lang/theme */
  .header-right {
    width: auto;
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
  }

  /* Smaller logo on mobile */
  .logo-circle:not(.navbar-logo-circle) {
    width: auto;
    height: auto;
    flex-direction: row;
    margin: 0;
    padding: 0;
    gap: 0.375rem;
    flex-shrink: 0;
  }

  .logo-circle:not(.navbar-logo-circle) .logo-icon {
    width: 26px;
    height: 22px;
    margin-bottom: 0;
  }

  .logo-circle:not(.navbar-logo-circle) .logo-text {
    display: flex;
    flex-direction: row;
    gap: 0.125rem;
  }

  .logo-circle:not(.navbar-logo-circle) .logo-main {
    font-size: 0.9375rem;
  }

  .logo-circle:not(.navbar-logo-circle) .logo-sub {
    font-size: 0.9375rem;
  }

  /* Compact language/theme buttons */
  .lang-select {
    gap: 0.25rem;
  }

  .lang-select .language-switcher,
  .lang-select .theme-switcher {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
  }

  .content-layout {
    float: none;
  }

  #sidebar {
    float: none;
    width: 100%;
    margin-bottom: var(--space-lg);
  }

  #contentBody {
    float: none;
    width: 100%;
    padding-left: 0;
  }

  .version-columns {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-column {
    padding: var(--space-md);
  }

  .feature-column h2 {
    font-size: var(--text-lg);
  }

  .info-box {
    width: 100%;
    margin-right: 0;
  }

  .info-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-box {
    padding: var(--space-lg) var(--space-md);
  }
}

/* Header Login Form Styles */
.header-login-item {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.header-login-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.header-login-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  width: 120px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.header-login-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.25);
}

.btn-header-login {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-header-login:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

/* Full-width content body (no sidebar) */
#contentBody.full-width {
  float: none;
  width: 100%;
  padding-left: 0;
}

@media (max-width: 768px) {
  .header-login-form {
    padding: 0.4rem 0.5rem;
    gap: 0.4rem;
  }

  .header-login-input {
    width: 100px;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .btn-header-login {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 0.5rem;
    gap: 0.25rem;
  }

  .header-logo img {
    height: 1.5rem;
  }

  .header-logo h2 {
    font-size: var(--text-xs);
  }

  /* Smaller logo on very small screens */
  .logo-circle:not(.navbar-logo-circle) {
    gap: 0.25rem;
  }

  .logo-circle:not(.navbar-logo-circle) .logo-icon {
    width: 20px;
    height: 17px;
  }

  .logo-circle:not(.navbar-logo-circle) .logo-main,
  .logo-circle:not(.navbar-logo-circle) .logo-sub {
    font-size: 0.8125rem;
  }

  /* Smaller nav icons on very small screens */
  .nav-item a {
    padding: 0.25rem;
  }

  .nav-item a svg {
    width: 18px;
    height: 18px;
  }

  /* Smaller login button on very small screens */
  .mobile-login-link a {
    padding: 0.25rem 0.5rem;
  }

  .mobile-login-link a svg {
    width: 16px;
    height: 16px;
  }

  .mobile-login-link a span {
    font-size: 0.75rem;
  }

  .lang-select .language-switcher,
  .lang-select .theme-switcher {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }

  .contentWrapper {
    padding: var(--space-xs);
  }

  .feature-column {
    padding: var(--space-sm);
  }

  .feature-list li {
    font-size: var(--text-xs);
  }

  .register-link {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
  }

}

/* Extra small screens (320px) */
@media (max-width: 360px) {
  .header-content {
    padding: 0 0.375rem;
  }

  /* Hide logo text, show icon only */
  .logo-circle:not(.navbar-logo-circle) .logo-text {
    display: none;
  }

  .logo-circle:not(.navbar-logo-circle) .logo-icon {
    width: 24px;
    height: 20px;
  }

  .nav-item a svg {
    width: 16px;
    height: 16px;
  }

  .mobile-login-link a {
    padding: 0.1875rem 0.375rem;
  }

  .mobile-login-link a svg {
    width: 14px;
    height: 14px;
  }

  .mobile-login-link a span {
    font-size: 0.6875rem;
  }

  .lang-select .language-switcher,
  .lang-select .theme-switcher {
    padding: 0.3rem 0.375rem;
    font-size: 0.75rem;
  }
}

/* ============================================
   Marketing Section - Why ClassCards
   ============================================ */
.marketing-section {
  margin: 3rem auto;
  padding: 5rem 2.5rem 4rem;
  background: var(--cream);
  border-radius: 2rem;
  max-width: 1100px;
  width: 95%;
  position: relative;
  overflow: visible;
  border: 2.5px solid rgba(108, 92, 231, 0.4);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.25), 0 0 50px rgba(108, 92, 231, 0.15), 0 0 80px rgba(108, 92, 231, 0.08);
}

.marketing-section::before {
  display: none;
}

.marketing-section::after {
  display: none;
}

/* Decorative sparkles - hidden in redesign */
.sparkle {
  display: none;
}

.sparkle-1 {
  top: 10%;
  left: 5%;
  font-size: 2rem;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 15%;
  right: 8%;
  font-size: 1.2rem;
  animation-delay: 1s;
}

.sparkle-3 {
  top: 5%;
  right: 20%;
  font-size: 2.5rem;
  color: rgba(122, 107, 181, 0.9);
  animation-delay: 0.5s;
}

.sparkle-4 {
  bottom: 20%;
  left: 10%;
  font-size: 1rem;
  animation-delay: 1.5s;
}

.sparkle-5 {
  bottom: 15%;
  right: 5%;
  font-size: 1.8rem;
  color: rgba(154, 76, 121, 0.9);
  animation-delay: 2s;
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-10px) rotate(15deg) scale(1.1);
    opacity: 1;
  }
}

@keyframes sparkleDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
  25% { transform: translate(6px, -10px) rotate(12deg); opacity: 0.7; }
  50% { transform: translate(-4px, -15px) rotate(-8deg); opacity: 0.6; }
  75% { transform: translate(10px, -5px) rotate(18deg); opacity: 0.5; }
}

@keyframes sparklePulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 0.8; }
}

@keyframes sparkleSpin {
  0% { transform: rotate(0deg) scale(1); opacity: 0.5; }
  50% { transform: rotate(180deg) scale(1.2); opacity: 0.8; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.5; }
}

/* Additional marketing sparkles */
.sparkle-6 {
  top: 30%;
  left: 3%;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.6);
  animation: sparkleDrift 6s ease-in-out infinite !important;
}

.sparkle-7 {
  bottom: 10%;
  right: 15%;
  font-size: 1.1rem;
  color: rgba(122, 107, 181, 0.8);
  animation: sparklePulse 3.5s ease-in-out infinite !important;
  animation-delay: 0.7s !important;
}

.sparkle-8 {
  top: 25%;
  left: 18%;
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  animation: sparkleSpin 9s linear infinite !important;
}

.sparkle-9 {
  bottom: 30%;
  right: 25%;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  animation: sparkleFloat 3s ease-in-out infinite !important;
  animation-delay: 2.5s !important;
}

.sparkle-10 {
  top: 8%;
  left: 30%;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.5);
  animation: sparklePulse 4.5s ease-in-out infinite !important;
  animation-delay: 1.2s !important;
}

.sparkle-11 {
  bottom: 25%;
  left: 22%;
  font-size: 1.3rem;
  color: rgba(154, 76, 121, 0.7);
  animation: sparkleDrift 7s ease-in-out infinite !important;
  animation-delay: 0.4s !important;
}

.sparkle-12 {
  top: 20%;
  right: 30%;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  animation: sparkleFloat 3.8s ease-in-out infinite !important;
  animation-delay: 1.8s !important;
}

/* SVG sparkle shapes - hidden in redesign */
.sparkle-svg {
  display: none;
}

.sparkle-svg.sparkle-svg-1 {
  top: 12%;
  right: 3%;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
  animation: sparkleSpin 10s linear infinite;
}

.sparkle-svg.sparkle-svg-2 {
  bottom: 8%;
  left: 15%;
  width: 12px;
  height: 12px;
  color: rgba(122, 107, 181, 0.6);
  animation: sparkleDrift 5s ease-in-out infinite 1s;
}

.marketing-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-shadow: none;
}

.marketing-section .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.125rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Blocks */
.feature-block {
  margin-bottom: 2rem;
}

.block-title {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  padding-left: 0.75rem;
  border-left: 4px solid rgba(255, 255, 255, 0.5);
}

.block-title svg {
  flex-shrink: 0;
  color: white !important;
}

/* 2-Column Grid with better spacing for glowy boxes */
.feature-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem; /* More space for glow to show */
  margin-top: 1rem;
  padding: 1rem; /* Extra padding for glow overflow */
}

/* All boxes same size - no spanning */

@media (max-width: 768px) {
  .feature-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Feature Items (Accordion) */
.feature-item {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.feature-item::before {
  display: none;
}

.feature-item::after {
  display: none;
}

.feature-item:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.15);
  transform: translateY(-4px);
}

.feature-item:hover::before {
  display: none;
}

.feature-item:hover::after {
  display: none;
}

.feature-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-item .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.feature-item .feature-text {
  flex: 1;
}

.feature-item .feature-text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
  /* Hide by default - show only when expanded */
  display: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

/* Show tagline when feature is expanded */
.feature-item.expanded .feature-tagline {
  display: block;
  max-height: 100px;
  opacity: 1;
  margin-top: 0.5rem;
}

.feature-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--text-secondary);
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
  margin-top: 0.25rem;
}

/* Expanded State */
.feature-item.expanded .feature-chevron {
  transform: rotate(180deg);
}

.feature-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.feature-item.expanded .feature-details {
  max-height: 200px;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.feature-details p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.feature-details a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.feature-details a:hover {
  text-decoration: underline;
}

/* Premium Badge */
.premium-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #78350f;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ============================================
   Screenshots Gallery Section
   ============================================ */
.screenshots-section {
  background: var(--cream);
  border-radius: 2rem;
  margin: 3rem auto;
  padding: 3rem 2.5rem !important;
  position: relative;
  z-index: 5;
  max-width: 1100px;
  width: 95%;
  border: 2.5px solid rgba(108, 92, 231, 0.4);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.25), 0 0 50px rgba(108, 92, 231, 0.15), 0 0 80px rgba(108, 92, 231, 0.08);
  overflow: hidden;
}

.screenshots-section h2 {
  font-size: 2rem !important;
  color: var(--gray-900) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem !important;
  text-align: center;
  text-shadow: none;
}

.screenshots-section h2::before {
  content: none;
}

.screenshots-section h2::after {
  content: none;
}

.screenshots-section p {
  font-size: 1.1rem !important;
  color: var(--text-secondary);
}

/* Larger labels under screenshots */
.screenshot-item span,
.screenshot-label {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.75rem;
}

.screenshot-item {
  transform: scale(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-item:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2) !important;
  z-index: 10;
}

.screenshot-item img {
  transition: all 0.3s ease;
}

/* Modal styles */
#screenshotModal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#screenshotModal.active {
  display: flex !important;
  opacity: 1;
}

#screenshotModalImg {
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#screenshotModal.active #screenshotModalImg {
  transform: scale(1);
}

/* ============================================
   Features Grid Section
   ============================================ */
.feature-box {
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .screenshots-gallery {
    gap: 0.75rem !important;
  }
  
  .screenshot-item {
    flex: 0 1 140px !important;
  }
}

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

  .screenshots-gallery {
    gap: 0.5rem !important;
  }

  .screenshot-item {
    flex: 0 1 100px !important;
  }

  .screenshot-item:hover {
    transform: scale(1.05);
  }
}

/* ============================================
   Feature Carousel (MagicSchool-style)
   ============================================ */
.feature-carousel {
  overflow: hidden;
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--beige-100) 0%, var(--cream) 100%);
  margin: 3rem 0;
  border-top: 1px solid var(--beige-200);
  border-bottom: 1px solid var(--beige-200);
  position: relative;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--beige-200);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

.carousel-arrow:hover svg {
  stroke: white;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  transition: stroke 0.3s;
}

.carousel-arrow-left {
  left: 1rem;
}

.carousel-arrow-right {
  right: 1rem;
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }

  .carousel-arrow-left {
    left: 0.5rem;
  }

  .carousel-arrow-right {
    right: 0.5rem;
  }
}

.feature-carousel h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.feature-carousel .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-card {
  scroll-snap-align: start;
}

@keyframes carouselScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-card {
  flex-shrink: 0;
  width: 280px;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--beige-200);
}

.carousel-card:hover {
  transform: translateY(-6px);
}

/* Glow effects by category - using new highlight palette */
.carousel-card[data-category="time"] {
  box-shadow:
    0 4px 20px rgba(78, 191, 192, 0.15),
    0 2px 8px rgba(108, 92, 231, 0.08);
}
.carousel-card[data-category="time"]:hover {
  box-shadow:
    0 12px 40px rgba(78, 191, 192, 0.25),
    0 6px 20px rgba(108, 92, 231, 0.12);
}

.carousel-card[data-category="control"] {
  box-shadow:
    0 4px 20px rgba(108, 92, 231, 0.15),
    0 2px 8px rgba(122, 107, 181, 0.1);
}
.carousel-card[data-category="control"]:hover {
  box-shadow:
    0 12px 40px rgba(108, 92, 231, 0.25),
    0 6px 20px rgba(122, 107, 181, 0.18);
}

.carousel-card[data-category="student"] {
  box-shadow:
    0 4px 20px rgba(109, 186, 113, 0.15),
    0 2px 8px rgba(108, 92, 231, 0.08);
}
.carousel-card[data-category="student"]:hover {
  box-shadow:
    0 12px 40px rgba(109, 186, 113, 0.25),
    0 6px 20px rgba(108, 92, 231, 0.12);
}

.carousel-card[data-category="security"] {
  box-shadow:
    0 4px 20px rgba(241, 136, 70, 0.15),
    0 2px 8px rgba(108, 92, 231, 0.08);
}
.carousel-card[data-category="security"]:hover {
  box-shadow:
    0 12px 40px rgba(241, 136, 70, 0.25),
    0 6px 20px rgba(108, 92, 231, 0.12);
}

.carousel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.carousel-icon[data-category="time"] {
  background: var(--category-teal);
  color: var(--highlight-teal);
}

.carousel-icon[data-category="control"] {
  background: var(--primary-100);
  color: var(--primary);
}

.carousel-icon[data-category="student"] {
  background: var(--category-green);
  color: var(--highlight-green);
}

.carousel-icon[data-category="security"] {
  background: var(--category-orange);
  color: var(--highlight-orange);
}

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

.carousel-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
}

.carousel-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Responsive carousel - touch scroll on mobile */
@media (max-width: 768px) {
  .carousel-track {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    gap: 1rem;
  }

  .carousel-card {
    scroll-snap-align: start;
    width: 250px;
  }
}

/* ============================================
   Increased Whitespace & Section Spacing
   ============================================ */
/* marketing-section padding handled in main definition above */

/* ===========================================
   MagicSchool-style Feature Cards
   One box per category with checkmarks
   =========================================== */

.feature-blocks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .feature-blocks-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.feature-card-magicschool {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: none;
  transition: all 0.3s ease;
}

.feature-card-magicschool:hover {
  background: linear-gradient(135deg, #5D4C9A 0%, #7A6BB5 100%);
  border-color: rgba(108, 92, 231, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(93, 76, 154, 0.35), 0 0 40px rgba(108, 92, 231, 0.15);
}

.feature-card-magicschool:hover .feature-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.feature-card-magicschool:hover .feature-card-header h3 {
  color: white;
}

.feature-card-magicschool:hover .feature-card-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.feature-card-magicschool:hover .feature-card-icon svg {
  stroke: white !important;
}

.feature-card-magicschool:hover .feature-checklist li {
  color: rgba(255, 255, 255, 0.9);
}

.feature-card-magicschool:hover .feature-checklist li strong {
  color: white;
}

.feature-card-magicschool:hover .feature-checklist .check-icon {
  stroke: rgba(255, 255, 255, 0.8);
}

.feature-card-magicschool:hover .premium-badge-small {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.feature-card-magicschool:hover::after {
  color: rgba(255, 255, 255, 0.8);
  border-top-color: rgba(255, 255, 255, 0.2);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--beige-200);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card-magicschool[data-category="time"] .feature-card-icon {
  background: rgba(17, 184, 160, 0.1);
}
.feature-card-magicschool[data-category="time"] .feature-card-icon svg {
  stroke: var(--secondary);
}

.feature-card-magicschool[data-category="control"] .feature-card-icon {
  background: rgba(108, 92, 231, 0.1);
}
.feature-card-magicschool[data-category="control"] .feature-card-icon svg {
  stroke: var(--primary);
}

.feature-card-magicschool[data-category="student"] .feature-card-icon {
  background: rgba(245, 166, 35, 0.1);
}
.feature-card-magicschool[data-category="student"] .feature-card-icon svg {
  stroke: var(--accent-orange);
}

.feature-card-magicschool[data-category="security"] .feature-card-icon {
  background: rgba(109, 186, 113, 0.1);
}
.feature-card-magicschool[data-category="security"] .feature-card-icon svg {
  stroke: var(--highlight-green);
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.feature-card-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.feature-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #4B5563;
}

.feature-checklist .check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--primary);
}

.feature-checklist li strong {
  color: #1F2937;
  font-weight: 600;
}

.premium-badge-small {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #1F2937;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Expandable Feature Cards */
.feature-card-magicschool {
  cursor: pointer;
  position: relative;
}

.feature-card-magicschool::after {
  content: '';
  display: none;
}

.feature-card-cta {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--beige-200);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.feature-card-magicschool:hover .feature-card-cta {
  opacity: 1;
}

.feature-card-cta-btn {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
}

/* Feature Card Modal Backdrop */
.feature-card-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9998;
  transition: background 0.3s ease;
}

.feature-card-backdrop.active {
  background: rgba(0, 0, 0, 0.5);
}

/* Expanded card as modal overlay */
.feature-card-magicschool.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 9999;
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #5D4C9A 0%, #7A6BB5 100%);
  border-color: rgba(108, 92, 231, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 60px rgba(108, 92, 231, 0.3);
  animation: featureModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.feature-card-magicschool.expanded .feature-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.feature-card-magicschool.expanded .feature-card-header h3 {
  color: white;
}

.feature-card-magicschool.expanded .feature-card-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.feature-card-magicschool.expanded .feature-card-icon svg {
  stroke: white !important;
}

.feature-card-magicschool.expanded .feature-checklist li {
  color: rgba(255, 255, 255, 0.9);
}

.feature-card-magicschool.expanded .feature-checklist li strong {
  color: white;
}

.feature-card-magicschool.expanded .feature-checklist .check-icon {
  stroke: rgba(255, 255, 255, 0.8);
}

.feature-card-magicschool.expanded .feature-detail {
  color: rgba(255, 255, 255, 0.85) !important;
}

.feature-card-magicschool.expanded .premium-badge-small {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.feature-card-magicschool.expanded::after {
  content: '\2715  Schließen';
  border-top-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

@keyframes featureModalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.feature-card-magicschool.closing {
  animation: featureModalOut 0.2s ease-in forwards;
}

@keyframes featureModalOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

.feature-card-backdrop.closing {
  background: rgba(0, 0, 0, 0) !important;
  transition: background 0.2s ease-in;
}

.feature-checklist .feature-detail {
  display: none;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(108, 92, 231, 0.05);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #4B5563;
  line-height: 1.5;
  border-left: 3px solid var(--primary);
}

.feature-card-magicschool.expanded .feature-checklist .feature-detail {
  display: block;
  animation: slideDown 0.3s ease-out;
}

/* Alternating detail box colors in expanded modal */
.feature-card-magicschool.expanded .feature-checklist li:nth-child(1) .feature-detail {
  background: rgba(255, 255, 255, 0.13);
  border-left-color: rgba(255, 255, 255, 0.6);
}
.feature-card-magicschool.expanded .feature-checklist li:nth-child(2) .feature-detail {
  background: rgba(17, 184, 160, 0.18);
  border-left-color: #11B8A0;
}
.feature-card-magicschool.expanded .feature-checklist li:nth-child(3) .feature-detail {
  background: rgba(245, 166, 35, 0.15);
  border-left-color: #F5A623;
}
.feature-card-magicschool.expanded .feature-checklist li:nth-child(4) .feature-detail {
  background: rgba(99, 102, 241, 0.2);
  border-left-color: #818CF8;
}

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

.feature-card-magicschool.expanded .feature-checklist li {
  flex-direction: column;
  align-items: stretch;
}

.feature-card-magicschool.expanded .feature-checklist li > span:first-of-type,
.feature-card-magicschool.expanded .feature-checklist li > svg + span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile adjustments for feature card modal */
@media (max-width: 768px) {
  .feature-card-magicschool.expanded {
    width: 95%;
    max-height: 80vh;
    padding: 1.25rem;
  }
}

/* Dark mode support for MagicSchool cards */
[data-theme="dark"] .feature-card-magicschool {
  background: linear-gradient(135deg, #1F1F23 0%, #27272A 100%);
  border-color: rgba(108, 92, 231, 0.3);
}

[data-theme="dark"] .feature-card-magicschool:hover {
  border-color: rgba(139, 126, 240, 0.6);
  background: linear-gradient(135deg, #4A3D7A 0%, #5D4C9A 100%);
}

[data-theme="dark"] .feature-card-header h3 {
  color: #F5F5F5;
}

[data-theme="dark"] .feature-card-header {
  border-bottom-color: rgba(108, 92, 231, 0.2);
}

[data-theme="dark"] .feature-checklist li {
  color: #B0B0B0;
}

[data-theme="dark"] .feature-checklist li strong {
  color: #E5E5E5;
}

[data-theme="dark"] .feature-checklist .check-icon {
  stroke: var(--primary-light);
}

/* Legacy feature-block kept for any remaining uses */
.feature-block {
  margin-bottom: 3rem;
}

.block-title {
  margin-bottom: 1.5rem;
}

/* Section backgrounds */
.features-section-wrapper {
  background: var(--gray-50);
  padding: 5rem 0;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Category title styling */
/* Block titles in marketing section - WHITE text on purple bg */
.marketing-section .block-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: white !important;
  padding-left: 0;
  border-left: none;
}

.marketing-section .block-title::before {
  content: "";
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: rgba(255, 216, 63, 0.8);
}

.marketing-section .block-title svg {
  color: white !important;
}

/* Video Container */
.video-container {
  max-width: 720px;
  margin: 0 auto 1rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.play-button {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  backdrop-filter: blur(4px);
}

.video-play-overlay:hover .play-button {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

/* Social Proof Section */
/* Science Box: unified wrapper for research facts + FSRS bar */
.science-box {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  background: var(--cream);
  border: 2.5px solid rgba(108, 92, 231, 0.4);
  border-radius: 1.25rem;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.25), 0 0 50px rgba(108, 92, 231, 0.15), 0 0 80px rgba(108, 92, 231, 0.08);
  overflow: hidden;
}

.science-box .research-facts {
  padding: 1.75rem 1.5rem 0;
  text-align: center;
}

.science-box .fsrs-dropdown-bar {
  margin: 0;
  max-width: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid rgba(108, 92, 231, 0.15);
}

/* Research-Backed Facts */
.research-facts {
  text-align: center;
}

.research-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.research-fact-card {
  background: var(--bg-primary, white);
  border: 1px solid var(--beige-200, #e8e5de);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.research-fact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.12);
}

.research-fact-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary, #6C5CE7) 0%, var(--secondary, #11B8A0) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.research-fact-unit {
  font-size: 1.75rem;
  font-weight: 700;
}

.research-fact-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary, #6b7280);
  margin: 0 0 0.75rem;
}

.research-fact-cite {
  font-size: 0.72rem;
  font-style: normal;
  display: block;
}

.research-fact-cite a {
  color: var(--primary, #6C5CE7);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.research-fact-cite a:hover {
  opacity: 1;
  text-decoration: underline;
}

.research-facts-note {
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
  margin: 1.25rem 0 0;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .research-facts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 360px;
  }

  .research-fact-number {
    font-size: 2.25rem;
  }

  .research-fact-card {
    padding: 1.25rem 1rem 1rem;
  }
}

.social-proof-section {
  padding: 3rem 1.5rem 5rem;
  text-align: center;
  background: var(--beige-50);
}

.social-proof-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.social-proof-counter strong {
  font-size: 1.1rem;
}


.trust-indicators {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #6b7280);
  font-weight: 500;
}

.trust-icon {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .trust-indicators {
    gap: 1rem;
  }

  .trust-item {
    font-size: 0.8rem;
  }

  .social-proof-section {
    padding: 2rem 1rem 4rem;
  }
}

/* Homepage FSRS Dropdown Bar */
.fsrs-dropdown-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.4rem 2.5rem 1rem;
  margin: 2.5rem auto 3.5rem;
  max-width: 1100px;
  background: var(--cream);
  border-radius: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  border: 2.5px solid rgba(108, 92, 231, 0.4);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.25), 0 0 50px rgba(108, 92, 231, 0.15), 0 0 80px rgba(108, 92, 231, 0.08);
  position: relative;
  overflow: hidden;
}

.fsrs-bar-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.fsrs-dropdown-bar:hover {
  background: var(--primary);
  color: white;
}

.fsrs-dropdown-bar:hover .fsrs-dropdown-text {
  color: white;
}

.fsrs-dropdown-bar:hover .fsrs-dropdown-chevron {
  stroke: white;
}

.fsrs-dropdown-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.fsrs-dropdown-label {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.fsrs-dropdown-text {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary, #5D4C9A);
  transition: color 0.2s;
}

.fsrs-dropdown-sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-light, #7A6BB5);
  transition: color 0.2s;
}

.fsrs-dropdown-bar:hover .fsrs-dropdown-sub {
  color: rgba(255, 255, 255, 0.85);
}

.fsrs-dropdown-chevron {
  width: 40px;
  height: 40px;
  stroke: var(--primary, #5D4C9A);
  fill: none;
  transition: transform 0.3s ease, stroke 0.2s;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Expandable Panel */
.fsrs-expand-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 1100px;
  margin: 0 auto 3.5rem;
}

.fsrs-expand-panel.open {
  max-height: 2000px;
  transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--cream);
  border-radius: 0 0 1.25rem 1.25rem;
  overflow: hidden;
  overflow-x: hidden;
  border: 2.5px solid rgba(108, 92, 231, 0.4);
  border-top: none;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.2), 0 0 50px rgba(108, 92, 231, 0.1);
}

/* When panel is open, merge science-box bottom with panel top */
.fsrs-dropdown-bar.panel-open {
  border-radius: 1.25rem 1.25rem 0 0;
  margin-bottom: 0;
}

.science-box:has(.fsrs-dropdown-bar.panel-open) {
  border-radius: 1.25rem 1.25rem 0 0;
  margin-bottom: 0;
}

.fsrs-expand-inner {
  padding: 1.25rem 1rem 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.fsrs-dropdown-heading {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  color: var(--text-dark, #1a1a2e);
}

.fsrs-dropdown-desc {
  color: var(--text-secondary, #64748b);
  font-size: 0.85rem;
  margin: 0 auto 0.75rem;
  max-width: 500px;
  line-height: 1.5;
}

/* Compact overrides for homepage FSRS viz */
.fsrs-expand-inner .fsrs-journey {
  text-align: left;
  margin-bottom: 0.75rem;
}

.fsrs-expand-inner .fsrs-journey-header {
  padding: 0.75rem 1rem;
}

.fsrs-expand-inner .fsrs-journey-emoji {
  font-size: 1.25rem;
  width: 34px;
  height: 34px;
}

.fsrs-expand-inner .fsrs-journey-title {
  font-size: 0.9rem;
}

.fsrs-expand-inner .fsrs-journey-desc {
  font-size: 0.75rem;
}

.fsrs-expand-inner .fsrs-timeline-wrapper {
  padding: 1rem 0.5rem 0.5rem;
  overflow-x: hidden;
  overflow-y: hidden;
}

.fsrs-expand-inner .fsrs-timeline {
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}

.fsrs-expand-inner .fsrs-step {
  flex-shrink: 1;
  min-width: 0;
}

.fsrs-expand-inner .fsrs-node {
  width: 28px;
  height: 28px;
  font-size: 0.55rem;
  flex-shrink: 0;
}

.fsrs-expand-inner .fsrs-connector {
  width: 16px;
  flex-shrink: 1;
}

.fsrs-expand-inner .fsrs-state-badge {
  font-size: 0.5rem;
  max-width: none;
}

.fsrs-expand-inner .fsrs-rating-label {
  font-size: 0.55rem;
}

.fsrs-expand-inner .fsrs-interval-label {
  font-size: 0.6rem;
}

.fsrs-expand-inner .fsrs-growth-section {
  padding: 0 1rem 0.75rem;
}

@media (max-width: 768px) {
  .science-box {
    margin: 1.5rem 1rem 0;
  }

  .science-box .research-facts {
    padding: 1.25rem 1rem 0;
  }

  .science-box .fsrs-dropdown-bar {
    padding: 1rem 1.25rem;
  }

  .fsrs-dropdown-bar {
    margin: 1.5rem 1rem 2.5rem;
    max-width: none;
    padding: 1rem 1.25rem;
  }

  .fsrs-dropdown-bar.panel-open {
    margin-bottom: 0;
  }

  .fsrs-expand-panel {
    margin: 0 1rem 2.5rem;
  }

  .fsrs-expand-inner .fsrs-connector {
    width: 10px;
  }

  .fsrs-expand-inner .fsrs-node {
    width: 24px;
    height: 24px;
    font-size: 0.5rem;
  }

  .fsrs-expand-inner .fsrs-state-badge {
    font-size: 0.4rem;
    max-width: none;
  }

  .fsrs-expand-inner .fsrs-rating-label {
    font-size: 0.5rem;
  }

  .fsrs-expand-inner .fsrs-interval-label {
    font-size: 0.5rem;
  }

  .fsrs-expand-inner {
    padding: 1rem 0.25rem 0;
  }
}

/* ============================================
   Footer - Multi-column Grid
   ============================================ */
.site-footer {
  background: white;
  border-top: 1px solid var(--beige-200);
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo-icon {
  color: var(--primary);
}

.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  max-width: 300px;
}

.footer-links h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-900);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.625rem;
}

.footer-links ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--beige-200);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Dark mode footer */
[data-theme="dark"] .site-footer {
  background: var(--bg-primary);
  border-top-color: var(--border);
}

[data-theme="dark"] .footer-logo-text {
  color: var(--text-primary);
}

[data-theme="dark"] .footer-links h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: var(--border);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 2rem 1rem 1rem;
  }
}

/* ============================================
   Nebula dots - enabled for purple hero
   ============================================ */

/* ============================================
   Dark mode overrides for redesign
   ============================================ */
[data-theme="dark"] .hero-stripe {
  background: linear-gradient(135deg, #3D2E6B 0%, #7A3D5E 100%);
}

[data-theme="dark"] .hero-stripe h1 {
  color: white !important;
}

[data-theme="dark"] .hero-stripe .hero-tagline {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .hero-stripe .hero-subtext {
  color: rgba(255, 255, 255, 0.8) !important;
}


[data-theme="dark"] .marketing-section {
  background: var(--card-bg);
}

[data-theme="dark"] .pricing-card-home {
  background: rgba(108, 92, 231, 0.12);
}

[data-theme="dark"] .pricing-card-feature {
  border-bottom-color: rgba(108, 92, 231, 0.25);
}

[data-theme="dark"] .marketing-section h2 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-card-magicschool:hover {
  background: linear-gradient(135deg, #4A3D7A 0%, #5D4C9A 100%);
  border-color: rgba(139, 126, 240, 0.6);
}

[data-theme="dark"] .feature-card-magicschool.expanded {
  background: linear-gradient(135deg, #4A3D7A 0%, #5D4C9A 100%);
  border-color: rgba(139, 126, 240, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(108, 92, 231, 0.3);
}

[data-theme="dark"] .feature-card-backdrop.active {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .feature-card-header {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .screenshots-section {
  background: rgba(139, 126, 240, 0.08);
  border-color: var(--border);
}

[data-theme="dark"] .screenshots-section h2 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .fsrs-expand-panel.open {
  background: rgba(139, 126, 240, 0.1);
}

[data-theme="dark"] .science-box {
  background: var(--bg-primary, #1A1A2E);
  border-color: rgba(139, 126, 240, 0.4);
}

[data-theme="dark"] .science-box .fsrs-dropdown-bar {
  border-top-color: rgba(139, 126, 240, 0.2);
}

[data-theme="dark"] .research-fact-card {
  background: var(--bg-secondary, #252540);
  border-color: var(--border, #3D2E6B);
}

[data-theme="dark"] .research-fact-card:hover {
  box-shadow: 0 8px 24px rgba(139, 126, 240, 0.15);
}

[data-theme="dark"] .social-proof-section {
  background: var(--bg-secondary);
}

[data-theme="dark"] .contentWrapper {
  background-color: var(--bg-primary);
}

/* Vokabellisten box X overlay */
.vocab-list-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.vocab-list-box::after {
  content: '\2717';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: 12rem;
  color: rgba(239, 68, 68, 0.35);
  pointer-events: none;
  line-height: 1;
  font-weight: bold;
  z-index: -1;
}
.vocab-list-box li span {
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.6);
  text-decoration-thickness: 2px;
}
.vocab-list-box li::before {
  content: '\2717';
  color: #ef4444;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.classcards-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.classcards-box::after {
  content: '\2714';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: 12rem;
  color: rgba(17, 184, 160, 0.2);
  pointer-events: none;
  line-height: 1;
  font-weight: bold;
  z-index: -1;
}

/* ============================================
   MINT CTA BUTTONS
   ============================================ */
.btn-mint {
  background: linear-gradient(135deg, #11B8A0, #0EA68E);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full, 9999px);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(17, 184, 160, 0.3);
  text-decoration: none;
  display: inline-block;
}
.btn-mint:hover {
  box-shadow: 0 4px 20px rgba(17, 184, 160, 0.45);
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}
.btn-mint-lg { padding: 1rem 2.5rem; font-size: 1.0625rem; }
.btn-mint-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-mint-ghost {
  background: transparent;
  color: #11B8A0;
  border: 2px solid #11B8A0;
  box-shadow: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full, 9999px);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-mint-ghost:hover {
  background: rgba(17, 184, 160, 0.1);
  color: #11B8A0;
  text-decoration: none;
}

[data-theme="dark"] .btn-mint {
  background: linear-gradient(135deg, #11B8A0, #0EA68E);
}
[data-theme="dark"] .btn-mint-ghost {
  color: #4DD9C0;
  border-color: #4DD9C0;
}
[data-theme="dark"] .btn-mint-ghost:hover {
  background: rgba(77, 217, 192, 0.1);
  color: #4DD9C0;
}

/* ============================================
   PRE-FOOTER CTA
   ============================================ */
.pre-footer-cta {
  background: linear-gradient(135deg, rgba(17,184,160,0.05), rgba(17,184,160,0.1));
  text-align: center;
  padding: 4rem 2rem;
}
.pre-footer-cta h2 { margin-bottom: 1rem; font-size: 2rem; }
.pre-footer-cta p { margin-bottom: 2rem; color: #666; font-size: 1.1rem; }
[data-theme="dark"] .pre-footer-cta { background: linear-gradient(135deg, rgba(17,184,160,0.08), rgba(17,184,160,0.15)); }
[data-theme="dark"] .pre-footer-cta p { color: #aaa; }

/* ============================================
   NAV DEMO BADGE
   ============================================ */
.nav-badge-new {
  background: linear-gradient(135deg, #11B8A0, #0EA68E);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  margin-left: 0.35rem;
  vertical-align: super;
  letter-spacing: 0.5px;
}

/* ============================================
   HERO DEMO LINK
   ============================================ */
.hero-demo-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-demo-link:hover {
  color: #4DD9C0;
  text-decoration: underline;
}

/* ============================================
   PRE-FOOTER DEMO LINK
   ============================================ */
.pre-footer-demo-link {
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color 0.2s;
}
.pre-footer-demo-link:hover {
  color: #11B8A0;
}
