/* =========================================
   SAMA SCHOOL — PREMIUM WEBSITE CSS v2.0
   Design: Dark EdTech · Ultra Premium
   ========================================= */

:root {
  --primary: #4F6EF7;
  --primary-2: #7C3AED;
  --accent: #F59E0B;
  --accent-green: #10B981;
  --bg: #04040A;
  --surface: #0C0C18;
  --surface-2: #12121F;
  --border: rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.12);
  --text: #F8F8FF;
  --muted: #8888A8;
  --radius: 24px;
  --radius-lg: 36px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* GRAIN TEXTURE */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* PARTICLE CANVAS */
#particleCanvas {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* AMBIENT BLOBS */
.bg-visuals {
  position: fixed; inset: 0;
  z-index: 1; overflow: hidden;
  filter: blur(140px);
  pointer-events: none;
}
.visual-blob { position: absolute; border-radius: 50%; opacity: 0.18; }
.blob-1 { width: 700px; height: 700px; background: radial-gradient(circle, #4F6EF7, transparent); top: -200px; right: -150px; animation: drift 30s infinite alternate ease-in-out; }
.blob-2 { width: 600px; height: 600px; background: radial-gradient(circle, #7C3AED, transparent); bottom: -200px; left: -100px; animation: drift 25s infinite alternate-reverse ease-in-out; }
.blob-3 { width: 400px; height: 400px; background: radial-gradient(circle, #F59E0B, transparent); top: 50%; left: 50%; animation: drift 35s infinite alternate ease-in-out; opacity: 0.08; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(80px, 120px) scale(1.15); }
}

/* SCROLL PROGRESS */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--primary);
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 8%;
  background: rgba(4, 4, 10, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled {
  padding: 0.9rem 8%;
  background: rgba(4, 4, 10, 0.92);
}

.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}
.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 0 12px rgba(79, 110, 247, 0.4));
}

.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 0 10px rgba(79, 110, 247, 0.3));
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; list-style: none; gap: 2.5rem;
}
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  color: white !important;
  padding: 0.65rem 1.5rem !important;
  border-radius: 100px;
  font-weight: 600 !important;
  box-shadow: 0 0 20px rgba(79,110,247,0.35);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 30px rgba(79,110,247,0.5) !important;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8rem 8% 6rem;
  gap: 4rem;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(79, 110, 247, 0.12);
  border: 1px solid rgba(79, 110, 247, 0.3);
  padding: 0.5rem 1rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; color: #91A7FF;
  margin-bottom: 2rem;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--accent-green); }
  50% { box-shadow: 0 0 14px var(--accent-green), 0 0 28px rgba(16,185,129,0.3); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #A78BFA, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-sub {
  font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.7;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-pills {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  transition: all 0.2s;
}
.pill:hover { border-color: var(--primary); color: var(--text); }
.pill i { width: 14px; height: 14px; color: var(--primary); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* STORE BUTTONS */
.store-btn {
  display: inline-flex; align-items: center; gap: 0.9rem;
  background: var(--surface); border: 1px solid var(--border-2);
  padding: 1rem 1.75rem; border-radius: 16px;
  text-decoration: none; color: var(--text);
  transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
  position: relative; overflow: hidden;
}
.store-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(79,110,247,0.1), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.store-btn:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(79,110,247,0.2); }
.store-btn:hover::before { opacity: 1; }
.store-btn i { width: 28px; height: 28px; color: var(--text); }
.store-btn .s { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 500; letter-spacing: 0.05em; }
.store-btn .b { display: block; font-size: 1.1rem; font-weight: 700; }
.store-btn.apple i { color: var(--text); }
.store-btn.google i { color: var(--accent-green); }
.store-btn.large { padding: 1.2rem 2rem; }

/* PHONE MOCKUP */
.hero-visual {
  flex: 1; max-width: 420px;
  position: relative;
  display: flex; justify-content: center;
}

.phone-frame {
  width: 300px; height: 600px;
  background: linear-gradient(160deg, #1a1a2e, #16213e);
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 60px 120px rgba(0,0,0,0.8),
    0 0 60px rgba(79,110,247,0.15);
  position: relative; overflow: hidden;
  transform: perspective(1200px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.8s cubic-bezier(0.2,0.8,0.2,1);
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: perspective(1200px) rotateY(-15deg) rotateX(5deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-15deg) rotateX(5deg) translateY(-12px); }
}
.phone-frame:hover { transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) translateY(-8px); }

.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #04040A; border-radius: 100px; z-index: 20;
}

/* Screenshot inside phone */
.phone-screen-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
}

.mockup-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 42px;
}

/* Floating badges around phone */
.float-badge {
  position: absolute;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(12,12,24,0.9);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(16px);
  padding: 0.6rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 10;
  white-space: nowrap;
}
.float-badge i { width: 16px; height: 16px; color: var(--primary); }
.fb-1 { top: 10%; right: -30%; animation: float-b 4s ease-in-out infinite; }
.fb-2 { bottom: 25%; right: -25%; animation: float-b 4s ease-in-out infinite 1.5s; }
.fb-3 { top: 45%; left: -30%; animation: float-b 4s ease-in-out infinite 0.7s; }
@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== MARQUEE ========== */
.marquee-section {
  position: relative; z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  background: rgba(255,255,255,0.01);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap; color: var(--muted); font-size: 0.85rem; font-weight: 500;
}
.marquee-item i { width: 16px; height: 16px; color: var(--primary); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========== STATS ========== */
.stats-section {
  position: relative; z-index: 2;
  padding: 6rem 8%;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
  transition: all 0.4s;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { transform: translateY(-6px); border-color: var(--border-2); }

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 800; color: var(--text);
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; font-weight: 500; }
.stat-bar { height: 2px; background: var(--border); border-radius: 2px; margin-top: 1.5rem; }

/* ========== SECTION HEADER ========== */
.section-header { text-align: center; margin-bottom: 5rem; }
.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(79,110,247,0.1); border: 1px solid rgba(79,110,247,0.2);
  padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1rem;
}
.section-header p { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ========== FEATURES BENTO ========== */
.features-section { position: relative; z-index: 2; padding: 8rem 8%; }

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.5rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1);
  cursor: default;
}
.bento-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(79,110,247,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover { transform: translateY(-6px); border-color: var(--border-2); }

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

/* Card color variants */
.bento-card[data-color="blue"] .bento-icon { color: var(--primary); background: rgba(79,110,247,0.1); border-color: rgba(79,110,247,0.2); }
.bento-card[data-color="purple"] .bento-icon { color: #A78BFA; background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.2); }
.bento-card[data-color="orange"] .bento-icon { color: var(--accent); background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); }
.bento-card[data-color="gold"] .bento-icon { color: #FBBF24; background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.2); }
.bento-card[data-color="green"] .bento-icon { color: var(--accent-green); background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }
.bento-card[data-color="indigo"] .bento-icon { color: #818CF8; background: rgba(129,140,248,0.1); border-color: rgba(129,140,248,0.2); }
.bento-card[data-color="pink"] .bento-icon { color: #F472B6; background: rgba(244,114,182,0.1); border-color: rgba(244,114,182,0.2); }
.bento-card[data-color="red"] .bento-icon { color: #F87171; background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.2); }
.bento-card[data-color="teal"] .bento-icon { color: #2DD4BF; background: rgba(45,212,191,0.1); border-color: rgba(45,212,191,0.2); }

.bento-icon {
  width: 52px; height: 52px;
  border-radius: 14px; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.bento-icon i { width: 24px; height: 24px; }
.bento-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.bento-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* Chat preview in bento */
.bento-chat { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-bubble { padding: 0.75rem 1rem; border-radius: 16px; font-size: 0.8rem; max-width: 85%; line-height: 1.5; }
.chat-bubble.user { background: rgba(79,110,247,0.2); border: 1px solid rgba(79,110,247,0.3); margin-left: auto; }
.chat-bubble.ai { background: var(--surface-2); border: 1px solid var(--border); }
.ai-tag { display: inline-block; font-size: 0.65rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; display: block; }

/* Scan animation */
.scan-animation {
  margin-top: 1.5rem; height: 80px;
  background: rgba(255,255,255,0.03); border-radius: 12px;
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #A78BFA, transparent);
  animation: scan 2s ease-in-out infinite;
  box-shadow: 0 0 12px #A78BFA;
}
@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.scan-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #A78BFA; animation: blink 1.5s infinite; }
.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* VS animation */
.vs-animation { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; }
.player-avatar { font-size: 2.5rem; animation: bounce-p 2s ease-in-out infinite; }
.player-avatar:last-child { animation-delay: 0.5s; }
@keyframes bounce-p { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.vs-badge { background: linear-gradient(135deg, var(--accent), #ef4444); color: white; font-size: 0.9rem; font-weight: 900; padding: 0.4rem 0.8rem; border-radius: 8px; }

/* Credits animation */
.credits-animation { display: flex; gap: 1rem; margin-top: 1.5rem; }
.credit-coin { font-size: 1.8rem; animation: coin-float 2s ease-in-out infinite; }
.credit-coin.delay { animation-delay: 0.4s; }
.credit-coin.delay2 { animation-delay: 0.8s; }
@keyframes coin-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(15deg); } }

/* XP Progress */
.xp-progress { margin-top: 1.5rem; }
.rank-badge { display: inline-block; background: rgba(129,140,248,0.2); border: 1px solid rgba(129,140,248,0.3); color: #818CF8; font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 8px; margin-bottom: 0.75rem; }
.xp-bar-outer { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; margin-bottom: 0.5rem; }
.xp-bar-fill { height: 100%; width: 62%; border-radius: 4px; background: linear-gradient(90deg, #818CF8, var(--primary-2)); }
.xp-text { font-size: 0.75rem; color: var(--muted); }

/* Flashcard preview */
.flashcard-preview { margin-top: 1.5rem; }
.mini-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem;
  font-size: 0.8rem; font-style: italic; color: var(--muted);
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flashcard-preview:hover .mini-card { transform: rotateY(10deg); }

/* ========== ROLES SECTION ========== */
.roles-section { position: relative; z-index: 2; padding: 8rem 8%; }

.tab-buttons {
  display: flex; gap: 0.5rem; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.4rem; border-radius: 16px; width: fit-content; margin: 0 auto 3rem;
}
.tab-btn {
  padding: 0.75rem 1.5rem; border-radius: 12px;
  border: none; background: none; color: var(--muted);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s;
}
.tab-btn.active { background: var(--primary); color: white; box-shadow: 0 0 20px rgba(79,110,247,0.4); }
.tab-btn:hover:not(.active) { color: var(--text); }

.tab-content { min-height: 300px; }
.tab-pane { display: none; gap: 4rem; align-items: center; }
.tab-pane.active { display: flex; }
.tab-text { flex: 1; }
.tab-text h3 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.feature-list li { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.95rem; }
.feature-list li i { width: 18px; height: 18px; color: var(--accent-green); flex-shrink: 0; }
.tab-visual { flex: 1; min-height: 280px; border-radius: var(--radius); border: 1px solid var(--border); }
.student-visual { background: linear-gradient(135deg, rgba(79,110,247,0.15), rgba(124,58,237,0.1)); }
.parent-visual { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(16,185,129,0.1)); }
.teacher-visual { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(79,110,247,0.1)); }
.school-visual { background: linear-gradient(135deg, rgba(244,114,182,0.15), rgba(129,140,248,0.1)); }

/* ========== AI SECTION ========== */
.ai-section {
  position: relative; z-index: 2;
  padding: 8rem 8%;
  display: flex; gap: 5rem; align-items: center;
  background: linear-gradient(135deg, rgba(79,110,247,0.04), transparent);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ai-content { flex: 1; }
.ai-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.2; margin: 1.5rem 0 1rem; }
.ai-content p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; }
.ai-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ai-feat { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.25rem; }
.ai-feat-icon { font-size: 1.5rem; }
.ai-feat strong { display: block; font-size: 0.9rem; }
.ai-feat div:last-child { font-size: 0.8rem; color: var(--muted); }

/* AI Terminal */
.ai-visual { flex: 1; max-width: 480px; }
.ai-terminal { background: #0d1117; border: 1px solid #30363d; border-radius: 16px; overflow: hidden; font-family: 'Fira Code', monospace; font-size: 0.85rem; }
.terminal-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: #161b22; border-bottom: 1px solid #30363d; }
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.terminal-header span { color: #8b949e; font-size: 0.75rem; margin-left: 0.5rem; }
.terminal-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.t-line { color: #e6edf3; }
.t-prompt { color: #8b949e; margin-right: 0.5rem; }
.t-prompt.success { color: #3fb950; }
.t-green { color: #3fb950; }
.t-gold { color: #e3b341; }
.t-line.typing { opacity: 0; animation: type-in 0.5s forwards; }
.t-line.typing.delay { animation-delay: 1s; }
.t-line.typing.delay2 { animation-delay: 2s; }
.t-line.typing.delay3 { animation-delay: 3s; }
@keyframes type-in { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }

/* AI Audio Widget */
.ai-audio-widget {
  margin-top: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s;
}
.ai-audio-widget:hover {
  border-color: rgba(79,110,247,0.3);
  box-shadow: 0 15px 35px rgba(79,110,247,0.08);
}
.audio-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.audio-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(79,110,247,0.1);
  border: 1px solid rgba(79,110,247,0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.audio-status {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.audio-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  transition: background 0.3s, box-shadow 0.3s;
}
.ai-audio-widget.playing .audio-status::before {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 1.5s infinite;
}
.audio-player-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.audio-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.audio-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(255,255,255,0.02);
}
.audio-btn.active {
  border-color: var(--primary-2);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 15px rgba(124,58,237,0.15);
}
.audio-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s;
  flex-shrink: 0;
}
.audio-btn-icon i {
  width: 14px;
  height: 14px;
}
.audio-btn:hover .audio-btn-icon {
  background: var(--primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 10px rgba(79,110,247,0.3);
}
.audio-btn.active .audio-btn-icon {
  background: var(--primary-2);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 10px rgba(124,58,237,0.3);
}
.audio-btn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.audio-btn-text strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.audio-btn-text span {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-wave-container {
  height: 40px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  padding: 0 1.5rem;
}
.wave-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  transition: height 0.15s ease, background 0.3s;
}
.ai-audio-widget.playing .wave-bar {
  background: linear-gradient(to top, var(--primary), var(--primary-2));
  animation: wave-bounce 1s ease-in-out infinite alternate;
}
.ai-audio-widget.playing .wave-bar:nth-child(even) {
  animation-duration: 0.7s;
  animation-delay: 0.15s;
}
.ai-audio-widget.playing .wave-bar:nth-child(3n) {
  animation-duration: 1.2s;
  animation-delay: 0.3s;
}
.ai-audio-widget.playing .wave-bar:nth-child(5n) {
  animation-duration: 0.8s;
  animation-delay: 0.05s;
}

@keyframes wave-bounce {
  0% { height: 4px; }
  100% { height: 32px; }
}

@media (max-width: 600px) {
  .audio-player-controls {
    grid-template-columns: 1fr;
  }
}

/* ========== TUTORING ========== */
.tutoring-section { position: relative; z-index: 2; padding: 8rem 8%; }
.tutors-carousel { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.tutor-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  text-align: center; max-width: 280px; width: 100%;
  transition: all 0.4s; position: relative;
}
.tutor-card.featured { border-color: var(--primary); box-shadow: 0 0 30px rgba(79,110,247,0.2); transform: scale(1.04); }
.tutor-card:hover { transform: translateY(-8px); border-color: var(--border-2); }
.tutor-card.featured:hover { transform: translateY(-8px) scale(1.04); }
.featured-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: 100px; white-space: nowrap; }
.tutor-avatar { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 1rem; border: 3px solid var(--border); }
.tutor-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tutor-avatar-placeholder.blue {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.4);
}
.tutor-avatar-placeholder.purple {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.4);
}
.tutor-avatar-placeholder.orange {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.4);
}
.tutor-card:hover .tutor-avatar-placeholder {
  transform: scale(1.06);
}
.tutor-card.featured:hover .tutor-avatar-placeholder {
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.45);
}
.tutor-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.tutor-subject { font-size: 0.8rem; color: var(--muted); }
.tutor-rating { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin: 0.75rem 0; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.tutor-rating i { width: 14px; height: 14px; }
.reviews { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.tutor-price { color: var(--accent-green); font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; }
.btn-book { width: 100%; padding: 0.75rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 0.9rem; }
.btn-book:hover { border-color: var(--primary); color: var(--primary); }
.btn-book.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; color: white; }
.btn-book.primary:hover { box-shadow: 0 0 20px rgba(79,110,247,0.4); }

/* ========== TESTIMONIALS ========== */
.testimonials-section { position: relative; z-index: 2; padding: 8rem 8%; overflow: hidden; }
.testimonials-track { mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.testimonials-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all 0.4s; }
.testimonial-card:hover { transform: translateY(-6px); border-color: var(--border-2); }
.stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; font-style: italic; margin-bottom: 1.5rem; }
.t-user { display: flex; align-items: center; gap: 0.75rem; }
.t-user img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--border); }
.t-avatar-placeholder {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 14px;
  color: white; border: 1.5px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 12px rgba(79, 110, 247, 0.2);
  flex-shrink: 0;
}
.t-user strong { display: block; font-size: 0.9rem; }
.t-user span { font-size: 0.8rem; color: var(--muted); }

/* ========== FAQ ========== */
.faq-section { position: relative; z-index: 2; padding: 8rem 8%; }
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color 0.3s; }
.faq-item.active { border-color: var(--primary); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; cursor: pointer; gap: 1rem; }
.faq-q h3 { font-size: 1rem; font-weight: 600; }
.faq-q i { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.active .faq-q i { transform: rotate(45deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-item.active .faq-a { max-height: 200px; padding: 0 1.5rem 1.25rem; }
.faq-a p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ========== CTA SECTION ========== */
.cta-section { position: relative; z-index: 2; padding: 10rem 8%; text-align: center; }
.cta-inner { position: relative; max-width: 800px; margin: 0 auto; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,110,247,0.15), transparent 70%);
  pointer-events: none;
}
.cta-section .section-tag { margin-bottom: 1.5rem; }
.cta-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.cta-section p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-badges { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.cta-badges span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ========== FOOTER ========== */
.footer { position: relative; z-index: 2; padding: 6rem 8% 3rem; border-top: 1px solid var(--border); }
.footer-top { display: flex; gap: 5rem; margin-bottom: 4rem; }
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; max-width: 260px; }
.footer-logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.footer-links-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); margin-bottom: 1.25rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.85rem; text-decoration: none; margin-bottom: 0.75rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: var(--muted); transition: color 0.2s; }
.social-links a:hover { color: var(--text); }
.social-links i { width: 18px; height: 18px; }

/* ========== ANIMATIONS — CSS PUR (pas de JS requis) ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal-up {
  animation: fadeUp 0.7s cubic-bezier(0.2,0.8,0.2,1) both;
}
.reveal-right {
  animation: fadeRight 0.8s cubic-bezier(0.2,0.8,0.2,1) both;
}
/* La classe .visible n'est plus nécessaire mais on la garde pour compat */
.reveal-up.visible, .reveal-right.visible { opacity: 1; transform: none; }

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .hero { flex-direction: column; text-align: center; padding-top: 10rem; }
  .hero-pills, .hero-cta { justify-content: center; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .fb-1 { right: -5%; }
  .fb-2 { right: -5%; }
  .fb-3 { left: -5%; }
  .features-bento { grid-template-columns: 1fr 1fr; }
  .bento-big { grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-section { flex-direction: column; }
  .footer-top { flex-direction: column; gap: 3rem; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; inset: 0; background: var(--bg); z-index: 999; justify-content: center; align-items: center; gap: 2rem; }
  .nav-links.mobile-active { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 9rem 5% 4rem; }
  .features-bento { grid-template-columns: 1fr; }
  .bento-big { grid-column: span 1; }
  .testimonials-inner { grid-template-columns: 1fr; }
  .tab-pane.active { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar { padding: 1rem 5%; }
  section { padding: 5rem 5%; }
  .ai-section { padding: 5rem 5%; }
}
