/* ==========================================================================
   منصة أ/ طارق يوسف - كيمياء الثانوية العامة
   LANDING PAGE & PREMIUM MONTHLY CARD DESIGN SYSTEM
   Optimized for 60fps, Mobile Performance, and Dark/Light Modes
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;600;700;800;900&family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-heading: 'Alexandria', 'Cairo', sans-serif;
  --font-body: 'Cairo', sans-serif;

  /* Color Tokens (Luxurious Dark Slate & Royal Titanium & Gold) */
  --bg-landing: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(15, 23, 42, 0.92);
  --bg-card-solid: #0f172a;
  
  --brand-gold: #f59e0b;
  --brand-gold-light: #fbbf24;
  --brand-gold-glow: rgba(245, 158, 11, 0.25);
  
  --brand-accent: #6366f1;
  --brand-accent-glow: rgba(99, 102, 241, 0.2);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(245, 158, 11, 0.35);
  
  --nav-height: 80px;
  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;
}

/* Light Theme Overrides */
html.theme-light, body.theme-light {
  --bg-landing: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-solid: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-active: rgba(245, 158, 11, 0.4);
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body.landing-page {
  font-family: var(--font-body);
  background-color: var(--bg-landing);
  color: var(--text-main);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
}

/* Container */
.landing-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   GLOBAL ACCENTS & BACKGROUND EFFECTS (CLEAN & SUBTLE - NO BLUE GLARE)
   -------------------------------------------------------------------------- */
.landing-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  pointer-events: none;
  background-image: 
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(245, 158, 11, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 15%, rgba(255, 255, 255, 0.03), transparent 60%);
  z-index: 0;
}

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

.gradient-text-platinum {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   STICKY NAVBAR
   -------------------------------------------------------------------------- */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-height);
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.theme-light .landing-navbar {
  background: rgba(255, 255, 255, 0.92);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.nav-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.6);
  object-fit: cover;
  box-shadow: 0 0 12px var(--brand-gold-glow);
}

.nav-brand-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.nav-brand-text p {
  font-size: 0.75rem;
  color: var(--brand-gold-light);
  font-weight: 600;
}

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

/* Buttons */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #030712;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--brand-gold-glow);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  color: #000;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-gold);
  color: var(--brand-gold-light);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   HERO SHOWCASE SECTION
   -------------------------------------------------------------------------- */
.landing-hero {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 5rem 0;
  overflow: hidden;
}

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

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.hero-badge-cohort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
}

.hero-bio strong {
  color: #fbbf24;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
}

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

/* Hero Visual Showcase (Natural Studio Depth - No Blue Glow) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.hero-portrait-frame {
  position: relative;
  width: 330px;
  height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Teacher Image with soft bottom blend and deep natural drop shadow */
.hero-teacher-img {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 330px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.75));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 98%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 98%);
}

/* Elegant Warm Dark Ambient Studio Backdrop */
.hero-studio-backdrop {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  height: 310px;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 75%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* Orbital Rings for Chemistry Atoms - Subtle Titanium / Gold dashes */
.atom-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

.atom-orbit-ring-1 {
  width: 360px;
  height: 360px;
  border-color: rgba(245, 158, 11, 0.22);
  animation: orbitRotateCW 26s linear infinite;
}

.atom-orbit-ring-2 {
  width: 440px;
  height: 440px;
  border-color: rgba(255, 255, 255, 0.08);
  animation: orbitRotateCCW 36s linear infinite;
}

/* Floating Chemistry Badges (High-End Dark Glass) */
.floating-science-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  will-change: transform;
  transition: transform 0.3s ease;
}

.floating-science-badge i, .floating-science-badge svg {
  color: var(--brand-gold);
}

.badge-top-left {
  top: 12%;
  left: -5%;
  animation: floatMotion1 5s ease-in-out infinite;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-mid-right {
  top: 45%;
  right: -8%;
  animation: floatMotion2 6s ease-in-out infinite;
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--brand-gold-glow);
}

.badge-bottom-left {
  bottom: 8%;
  left: -2%;
  animation: floatMotion3 5.5s ease-in-out infinite;
  border-color: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   SECTION: TARGET AUDIENCE (أحنا بندرس لمين؟)
   -------------------------------------------------------------------------- */
.landing-section {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Grade / Cohort Cards */
.cohort-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cohort-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cohort-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-gold);
  box-shadow: 0 15px 35px -10px rgba(245, 158, 11, 0.15);
}

.cohort-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-gold);
}

.cohort-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

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

.cohort-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.cohort-features-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cohort-features-list li i {
  color: #10b981;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   REDESIGNED PREMIUM MONTHLY PACKAGE CARDS (Nested Card Frame Architecture)
   -------------------------------------------------------------------------- */
.monthly-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 360px));
  justify-content: center;
  gap: 2rem;
}

.premium-month-card {
  background: var(--bg-card, #0f172a);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 0.9rem 0.9rem 1.35rem 0.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.5);
  max-width: 365px;
  width: 100%;
  gap: 1.15rem;
}

.premium-month-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 20px 45px -10px rgba(245, 158, 11, 0.22);
}

.premium-month-card.featured-package {
  border-color: rgba(245, 158, 11, 0.6);
}

.premium-month-card.featured-package:hover {
  border-color: rgba(245, 158, 11, 0.9);
  box-shadow: 0 20px 45px -10px rgba(245, 158, 11, 0.3);
}

/* Ribbon */
.card-ribbon-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #030712;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.25rem 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
  letter-spacing: 0.02em;
}

/* Card Banner / Floating Nested Poster */
.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  min-height: 195px;
  max-height: 220px;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.premium-month-card:hover .card-poster-img {
  transform: scale(1.04);
}

.card-top-price-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: linear-gradient(135deg, #a3e635, #84cc16);
  color: #022c22;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 0.65rem;
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.35);
}

.card-top-type-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #030712;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 0.65rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.card-duration-pill {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  color: var(--brand-gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Card Body */
.card-body-content {
  padding: 0 0.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 1rem;
}

.card-main-title {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.38;
  margin-bottom: 0.35rem;
}

.card-main-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 3-Column Mini Stats Bar (الفصول / الدروس / الاختبارات) */
.card-mini-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0.25rem 0;
}

.mini-stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.45rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
}

.mini-stat-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 700;
}

.mini-stat-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Update status badge bar */
.card-update-bar {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 0.65rem;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--brand-gold-light);
  font-weight: 700;
}

/* Feature checklist */
.card-inclusions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.card-inclusions-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-inclusions-list li i {
  color: #10b981;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Price Row */
.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.15rem;
}

.price-glow-amount {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-gold);
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.price-period-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Card CTA Button */
.btn-card-subscribe {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #030712;
  font-weight: 900;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--brand-gold-glow);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-card-subscribe:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  color: #000;
}

/* --------------------------------------------------------------------------
   PLATFORM FEATURES (لماذا منصة أ/ طارق يوسف؟)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.feature-glass-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

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

/* --------------------------------------------------------------------------
   FINAL CTA BANNER
   -------------------------------------------------------------------------- */
.final-cta-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.final-cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
}

.final-cta-banner p {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   CHEMISTRY TICKER TAPE (شريط الصيغ والمعادلات الكيميائية الذهبي)
   -------------------------------------------------------------------------- */
.chemistry-ticker-section {
  width: 100%;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  position: relative;
  z-index: 2;
}

.chemistry-ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: tickerScroll 35s linear infinite;
  will-change: transform;
}

.chemistry-ticker-track:hover {
  animation-play-state: paused;
}

.chem-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.chem-item:hover {
  color: var(--brand-gold-light);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.chem-formula {
  font-weight: 900;
  color: var(--brand-gold);
  letter-spacing: 0.03em;
}

.chem-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.5);
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* --------------------------------------------------------------------------
   CHEMISTRY WISDOM / MOTIVATIONAL QUOTES SLIDER (بطاقة حكمة الكيمياء التفاعلية)
   -------------------------------------------------------------------------- */
.chemistry-wisdom-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.25rem 1.75rem 2.25rem;
  margin: 3.5rem 0 1.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wisdom-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
}

.wisdom-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-gold-light);
}

.wisdom-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wisdom-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wisdom-nav-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.wisdom-slides-container {
  position: relative;
  min-height: 90px;
  display: flex;
  align-items: center;
}

.wisdom-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.wisdom-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.wisdom-slide-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.wisdom-slide-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.7;
}

.wisdom-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.wisdom-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wisdom-dot.active {
  width: 24px;
  border-radius: 9999px;
  background: var(--brand-gold);
  box-shadow: 0 0 10px var(--brand-gold-glow);
}

.wisdom-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  width: 0%;
  box-shadow: 0 0 8px var(--brand-gold-glow);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.landing-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(3, 7, 18, 0.95);
  padding: 3rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   ANIMATIONS & KEYFRAMES (GPU ACCELERATED)
   -------------------------------------------------------------------------- */
@keyframes blobMorph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: translateX(-50%) rotate(0deg);
  }
  50% {
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
    transform: translateX(-50%) rotate(180deg);
  }
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes orbitRotateCW {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitRotateCCW {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

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

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

@keyframes floatMotion3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}

/* --------------------------------------------------------------------------
   MOBILE & PERFORMANCE OPTIMIZATIONS (STRICT 60FPS)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  .cohort-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Disable heavy backdrop-filters on mobile to eliminate GPU throttling & battery drain */
  .landing-navbar,
  .cohort-card,
  .premium-month-card,
  .feature-glass-card,
  .floating-science-badge {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-card-solid) !important;
  }

  html.theme-light .landing-navbar,
  html.theme-light .cohort-card,
  html.theme-light .premium-month-card,
  html.theme-light .feature-glass-card {
    background: #ffffff !important;
  }

  /* Simplify orbital rings and hero aura on small devices */
  .atom-orbit-ring-2 {
    display: none !important;
  }
  .atom-orbit-ring-1 {
    width: 290px;
    height: 290px;
  }
  .hero-aura-blob {
    width: 240px;
    height: 250px;
    filter: blur(8px);
    animation: none !important; /* Stop heavy morphing on mobile */
  }

  .hero-portrait-frame {
    width: 270px;
    height: 350px;
  }

  .hero-teacher-img {
    max-width: 270px;
  }

  .floating-science-badge {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
  .badge-top-left { left: 0%; top: 5%; }
  .badge-mid-right { right: -2%; top: 40%; }
  .badge-bottom-left { left: 2%; bottom: 4%; }

  .landing-hero {
    padding: 2rem 0 3.5rem 0;
  }
}

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