/* ═══════════════════════════════════════════
   EDUNIFY — LANDING PAGE CSS
   Advanced: mesh gradients · glassmorphism ·
   scroll-reveal · 3D · micro-interactions
═══════════════════════════════════════════ */

/* ── CANVAS BACKGROUND ── */
#heroCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
}

/* ── FLOATING BLOBS ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
  will-change: transform;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(24,90,219,.22) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,.18) 0%, transparent 70%);
  top: 40%; right: -80px;
  animation-delay: -3s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
  bottom: -60px; left: 30%;
  animation-delay: -5s;
}
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.04); }
  66%      { transform: translate(-20px,15px) scale(.97); }
}

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; overflow: hidden; }

/* ─────────────────────────────
   HERO
───────────────────────────── */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: 88vh;
  padding: 7rem 0 5rem;
}
.lp-hero__inner { max-width: 580px; }

/* Badge */
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.lp-badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(24,90,219,.2);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 2px rgba(24,90,219,.2); }
  50%      { box-shadow: 0 0 0 5px rgba(24,90,219,.08); }
}

/* Title */
.lp-hero__title {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}
.lp-hero__title-accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub */
.lp-hero__sub {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

/* CTA */
.lp-hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.lp-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}
.lp-btn:hover::after {
  left: 200%;
  transition: all 0.6s ease;
}
.lp-btn:hover {
  transform: translateY(-3px);
  text-decoration: none;
}
.lp-btn:active {
  transform: translateY(-1px);
}

.lp-btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff !important;
  border-color: rgba(255,255,255,0.15);
  box-shadow: 
    0 8px 24px color-mix(in srgb, var(--color-primary) 35%, transparent),
    inset 0 1.5px 0 rgba(255,255,255,0.25),
    inset 0 -1.5px 0 rgba(0,0,0,0.1);
}
.lp-btn--primary:hover {
  box-shadow: 
    0 12px 32px color-mix(in srgb, var(--color-primary) 45%, transparent),
    inset 0 1.5px 0 rgba(255,255,255,0.35),
    inset 0 -1.5px 0 rgba(0,0,0,0.1);
  border-color: rgba(255,255,255,0.25);
}
.lp-btn--ghost {
  background: var(--bg-card);
  color: var(--text-main) !important;
  border-color: var(--border-color);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.lp-btn--ghost:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(24,90,219,.12);
}
.lp-btn--white {
  background: #fff;
  color: var(--color-primary) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.lp-btn--white:hover { box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.lp-btn--outline-white {
  border-color: rgba(255,255,255,.5);
  color: #fff !important;
  background: rgba(255,255,255,.08);
}
.lp-btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.15); }

/* Social proof */
.lp-proof {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.lp-proof__avatars {
  display: flex;
}
.lp-proof__avatars img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-main);
  margin-left: -8px;
  object-fit: cover;
}
.lp-proof__avatars img:first-child { margin-left: 0; }
.lp-proof__text {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0;
}
.lp-proof__text strong { color: var(--text-main); }

/* ─────────────────────────────
   BROWSER MOCKUP
───────────────────────────── */
.lp-hero__mockup {
  position: relative;
}
.lp-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,.12),
    0 0 0 1px rgba(255,255,255,.05) inset;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transition: transform .6s cubic-bezier(.23,1,.32,1);
}
.lp-mockup:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}
.lp-mockup__bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-darker);
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.lp-mockup__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e5e7eb;
}
.lp-mockup__bar span:nth-child(1) { background: #f87171; }
.lp-mockup__bar span:nth-child(2) { background: #fbbf24; }
.lp-mockup__bar span:nth-child(3) { background: #34d399; }
.lp-mockup__bar-url {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  padding: .2rem .8rem;
  margin-left: .5rem;
}
.lp-mockup__body { padding: 1.25rem; }

/* AI Chat inside mockup */
.lp-chat { display: flex; flex-direction: column; gap: .75rem; }
.lp-chat__header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border-color);
}
.lp-chat__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.lp-chat__name { font-size: .85rem; font-weight: 600; color: var(--text-main); }
.lp-chat__status { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: #10b981; }
.lp-chat__dot {
  width: 6px; height: 6px; border-radius: 50%; background: #10b981;
  animation: pulseDot 1.5s ease-in-out infinite;
}
.lp-chat__messages { display: flex; flex-direction: column; gap: .6rem; }
.lp-chat__msg {
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .82rem;
  line-height: 1.5;
  max-width: 90%;
  animation: fadeSlideIn .4s ease forwards;
}
.lp-chat__msg--bot {
  background: var(--bg-darker);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.lp-chat__msg--user {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.lp-chat__formula {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: .2rem .6rem;
  font-size: .75rem;
  margin-top: .4rem;
  font-family: 'Courier New', monospace;
}
.lp-chat__input {
  display: flex;
  gap: .4rem;
  margin-top: .25rem;
}
.lp-chat__input input {
  flex: 1;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .8rem;
  color: var(--text-main);
  outline: none;
}
.lp-chat__send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Floating badges */
.lp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: .45rem .85rem;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  backdrop-filter: blur(10px);
  animation: floatUpDown 3s ease-in-out infinite;
  white-space: nowrap;
}
.lp-float--1 { top: -18px; left: -20px; animation-delay: 0s; }
.lp-float--2 { bottom: 60px; left: -30px; animation-delay: -1.2s; }
.lp-float--3 { top: 30px; right: -20px; animation-delay: -.6s; }
@keyframes floatUpDown {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ─────────────────────────────
   STATS — PREMIUM DASHBOARD
───────────────────────────── */
.stat-dash-section {
  padding: 3rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

/* Glassmorphism dashboard container */
.stat-dashboard {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .stat-dashboard {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Subtle rotating glow */
.stat-dashboard__glow {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(
    transparent, 
    rgba(24,90,219,0.05), 
    transparent, 
    rgba(139,92,246,0.05), 
    transparent
  );
  animation: rotateGlow 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .stat-dashboard__glow {
  background: conic-gradient(
    transparent, 
    rgba(56,189,248,0.06), 
    transparent, 
    rgba(167,139,250,0.06), 
    transparent
  );
}

.stat-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Individual Stat Item */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-item:hover {
  transform: translateY(-8px);
}

/* Icons */
.stat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Color Variants */
.stat-icon--blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.12);
}
.stat-icon--violet {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.12);
}
.stat-icon--amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.12);
}
.stat-icon--emerald {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.12);
}

/* Dark Mode Icons */
[data-theme="dark"] .stat-icon--blue { background: rgba(37, 99, 235, 0.15); color: #60a5fa; border-color: rgba(37,99,235,.2); }
[data-theme="dark"] .stat-icon--violet { background: rgba(124, 58, 237, 0.15); color: #a78bfa; border-color: rgba(124,58,237,.2); }
[data-theme="dark"] .stat-icon--amber { background: rgba(217, 119, 6, 0.15); color: #fbbf24; border-color: rgba(217,119,6,.2); }
[data-theme="dark"] .stat-icon--emerald { background: rgba(5, 150, 105, 0.15); color: #34d399; border-color: rgba(5,150,105,.2); }

/* Text & Typography */
.premium-stat-value {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15; /* Increased to prevent clipping */
  padding-bottom: 0.1em; /* Extra room for descenders like 'g' */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
  letter-spacing: -1px;
}
[data-theme="dark"] .premium-stat-value {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 991px) {
  .stat-dashboard__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
}
@media (max-width: 575px) {
  .stat-dashboard {
    padding: 2.5rem 1.5rem;
  }
  .stat-dashboard__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .premium-stat-value {
    font-size: 3rem;
  }
}

/* ─────────────────────────────
   FEATURES — PREMIUM BENTO GRID
───────────────────────────── */
.lp-features {
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

/* Decorative background orbs */
.feat-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: .5;
}
.feat-bg-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(24,90,219,.1) 0%, transparent 70%);
  top: 0; left: -10%;
}
.feat-bg-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.08) 0%, transparent 70%);
  bottom: -5%; right: -5%;
}
[data-theme="dark"] .feat-bg-orb--1 {
  background: radial-gradient(circle, rgba(79,156,249,.08) 0%, transparent 70%);
}
[data-theme="dark"] .feat-bg-orb--2 {
  background: radial-gradient(circle, rgba(139,92,246,.06) 0%, transparent 70%);
}

.lp-section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 12%, transparent) 0%, color-mix(in srgb, var(--color-accent) 12%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primary) 12%, transparent);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.lp-section-label::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-20deg);
  animation: shineLabel 4s infinite;
}
@keyframes shineLabel {
  0%, 70% { left: -100%; }
  100% { left: 200%; }
}
[data-theme="dark"] .lp-section-label {
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 20%, transparent) 0%, color-mix(in srgb, var(--color-accent) 20%, transparent) 100%);
  color: #60a5fa;
  border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
}
[data-theme="dark"] .lp-section-label::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.lp-section-title {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-main);
  margin-bottom: .75rem;
}
.lp-section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

/* ── Bento Grid ── */
.feat-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Base Card ── */
.feat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-align: left;
  overflow: hidden;
  cursor: default;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1),
              border-color .3s ease,
              box-shadow .4s ease;
}
.feat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,.1);
}
[data-theme="dark"] .feat-card:hover {
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}

/* Card inner glow on hover */
.feat-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  border-radius: inherit;
}
.feat-card:hover .feat-card__glow { opacity: 1; }

.feat-card[data-color="blue"] .feat-card__glow {
  background: radial-gradient(600px circle at 30% 30%, rgba(24,90,219,.07) 0%, transparent 70%);
}
.feat-card[data-color="emerald"] .feat-card__glow {
  background: radial-gradient(500px circle at 50% 20%, rgba(16,185,129,.07) 0%, transparent 70%);
}
.feat-card[data-color="violet"] .feat-card__glow {
  background: radial-gradient(500px circle at 50% 20%, rgba(139,92,246,.07) 0%, transparent 70%);
}
.feat-card[data-color="amber"] .feat-card__glow {
  background: radial-gradient(500px circle at 50% 20%, rgba(245,158,11,.07) 0%, transparent 70%);
}
.feat-card[data-color="rose"] .feat-card__glow {
  background: radial-gradient(500px circle at 50% 20%, rgba(244,63,94,.07) 0%, transparent 70%);
}
.feat-card[data-color="cyan"] .feat-card__glow {
  background: radial-gradient(500px circle at 50% 20%, rgba(14,165,233,.07) 0%, transparent 70%);
}

/* Hover border color per card */
.feat-card[data-color="blue"]:hover   { border-color: rgba(24,90,219,.25); }
.feat-card[data-color="emerald"]:hover { border-color: rgba(16,185,129,.25); }
.feat-card[data-color="violet"]:hover  { border-color: rgba(139,92,246,.25); }
.feat-card[data-color="amber"]:hover   { border-color: rgba(245,158,11,.25); }
.feat-card[data-color="rose"]:hover    { border-color: rgba(244,63,94,.25); }
.feat-card[data-color="cyan"]:hover    { border-color: rgba(14,165,233,.25); }

/* ── Hero card (AI Tutor — spans 2 cols) ── */
.feat-card--hero {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem;
}

/* ── Card Head (icon + badge) ── */
.feat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .2rem;
}

/* ── Icons ── */
.feat-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feat-card:hover .feat-card__icon {
  transform: scale(1.08);
}

/* Icon color variants */
.feat-card__icon--blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,.12);
}
.feat-card__icon--emerald {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #059669;
  border: 1px solid rgba(5,150,105,.12);
}
.feat-card__icon--violet {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #7c3aed;
  border: 1px solid rgba(124,58,237,.12);
}
.feat-card__icon--amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
  border: 1px solid rgba(217,119,6,.12);
}
.feat-card__icon--rose {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  color: #e11d48;
  border: 1px solid rgba(225,29,72,.12);
}
.feat-card__icon--cyan {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  color: #0891b2;
  border: 1px solid rgba(8,145,178,.12);
}

/* Dark mode icon variants */
[data-theme="dark"] .feat-card__icon--blue {
  background: rgba(37,99,235,.15);
  color: #60a5fa;
  border-color: rgba(37,99,235,.2);
}
[data-theme="dark"] .feat-card__icon--emerald {
  background: rgba(5,150,105,.15);
  color: #34d399;
  border-color: rgba(5,150,105,.2);
}
[data-theme="dark"] .feat-card__icon--violet {
  background: rgba(124,58,237,.15);
  color: #a78bfa;
  border-color: rgba(124,58,237,.2);
}
[data-theme="dark"] .feat-card__icon--amber {
  background: rgba(217,119,6,.15);
  color: #fbbf24;
  border-color: rgba(217,119,6,.2);
}
[data-theme="dark"] .feat-card__icon--rose {
  background: rgba(225,29,72,.15);
  color: #fb7185;
  border-color: rgba(225,29,72,.2);
}
[data-theme="dark"] .feat-card__icon--cyan {
  background: rgba(8,145,178,.15);
  color: #22d3ee;
  border-color: rgba(8,145,178,.2);
}

/* ── Card Title ── */
.feat-card__title {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: .5rem;
}

/* ── Card Description ── */
.feat-card__desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Badge (New) ── */
.feat-card__badge--new {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 999px;
  letter-spacing: .03em;
  box-shadow: 0 4px 12px rgba(24,90,219,.25);
}

/* ── Feature Chips (AI tutor card) ── */
.feat-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.2rem;
}
.feat-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .73rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color .2s ease, color .2s ease;
}
.feat-chip i { font-size: .72rem; color: var(--color-primary); }
.feat-chip:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
}

/* ── Mini Chat Preview (inside hero card) ── */
.feat-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-mini-chat {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: 100%;
  max-width: 280px;
}
.feat-mini-chat__msg {
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .78rem;
  line-height: 1.5;
  animation: fadeSlideIn .5s ease forwards;
}
.feat-mini-chat__msg--q {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  max-width: 80%;
}
.feat-mini-chat__msg--a {
  background: var(--bg-darker);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  max-width: 95%;
  animation-delay: .3s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── Language Pills (multilingual card) ── */
.feat-card__lang-flags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.feat-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: .35rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-main);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feat-lang-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ── Score Bar (quiz card) ── */
.feat-card__mini-score {
  margin-top: 1.2rem;
}
.feat-score-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-darker);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .5rem;
  border: 1px solid var(--border-color);
}
.feat-score-bar__fill {
  height: 100%;
  width: var(--score, 0%);
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 999px;
  animation: scoreGrow 1.5s cubic-bezier(.4,0,.2,1) forwards;
  animation-play-state: paused;
}
.visible .feat-score-bar__fill {
  animation-play-state: running;
}
@keyframes scoreGrow {
  from { width: 0; }
  to { width: var(--score, 0%); }
}
.feat-score-label {
  font-size: .75rem;
  font-weight: 600;
  color: #7c3aed;
}
[data-theme="dark"] .feat-score-label { color: #a78bfa; }
[data-theme="dark"] .feat-score-bar__fill {
  background: linear-gradient(90deg, #a78bfa, #c4b5fd);
}

/* ── Feature grid: responsive legacy compat (old grid removed) ── */
.lp-feat-grid { display: none; }

/* ── Responsive Bento ── */
@media (max-width: 1024px) {
  .feat-bento {
    grid-template-columns: 1fr 1fr;
  }
  .feat-card--hero {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .feat-bento {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .feat-card--hero {
    grid-column: 1;
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  .feat-card__visual {
    display: none;
  }
  .feat-card {
    padding: 1.5rem;
  }
  .feat-card__icon {
    width: 46px; height: 46px;
    border-radius: 12px;
  }
}

/* ─────────────────────────────
   HOW IT WORKS — PREMIUM TIMELINE
───────────────────────────── */
.hiw-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background decorative elements */
.hiw-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    color-mix(in srgb, var(--color-primary) 4%, transparent) 0%,
    transparent 70%);
  pointer-events: none;
}
.hiw-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .4;
}
.hiw-bg-orb--1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(14,165,233,.08) 0%, transparent 70%);
  top: 10%; right: -5%;
}
.hiw-bg-orb--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,.06) 0%, transparent 70%);
  bottom: 5%; left: -5%;
}

/* ── Timeline container ── */
.hiw-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* ── Connecting line ── */
.hiw-timeline__line {
  position: absolute;
  top: 28px;
  left: calc(16.67% + 10px);
  right: calc(16.67% + 10px);
  height: 3px;
  background: var(--border-color);
  border-radius: 999px;
  z-index: 0;
  overflow: hidden;
}
.hiw-timeline__line-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  transition: width 1.5s cubic-bezier(.4,0,.2,1);
}
.hiw-timeline.visible .hiw-timeline__line-fill,
.hiw-timeline .visible ~ .hiw-timeline__line-fill {
  width: 100%;
}

/* ── Step item ── */
.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Step marker (numbered circle) ── */
.hiw-step__marker {
  position: relative;
  margin-bottom: 1.5rem;
}
.hiw-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(24,90,219,.3);
  position: relative;
  z-index: 2;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hiw-step:hover .hiw-step__number {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(24,90,219,.4);
}
.hiw-step__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: hiwPulse 2.5s ease-in-out infinite;
}
.hiw-step:nth-child(2) .hiw-step__pulse { animation-delay: .3s; }
.hiw-step:nth-child(3) .hiw-step__pulse { animation-delay: .6s; }
.hiw-step:nth-child(4) .hiw-step__pulse { animation-delay: .9s; }
@keyframes hiwPulse {
  0%   { opacity: .6; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.6); }
}

/* ── Step card ── */
.hiw-step__card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  text-align: left;
  width: 100%;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1),
              box-shadow .4s ease,
              border-color .3s ease;
}
.hiw-step:hover .hiw-step__card {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0,0,0,.1);
  border-color: var(--border-hover);
}
[data-theme="dark"] .hiw-step:hover .hiw-step__card {
  box-shadow: 0 20px 44px rgba(0,0,0,.35);
}

/* ── Step icons ── */
.hiw-step__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: transform .3s ease;
}
.hiw-step:hover .hiw-step__icon {
  transform: scale(1.08);
}

.hiw-step__icon--blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,.12);
}
.hiw-step__icon--emerald {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  border: 1px solid rgba(5,150,105,.12);
}
.hiw-step__icon--violet {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: #7c3aed;
  border: 1px solid rgba(124,58,237,.12);
}
[data-theme="dark"] .hiw-step__icon--blue {
  background: rgba(37,99,235,.15);
  color: #60a5fa;
  border-color: rgba(37,99,235,.2);
}
[data-theme="dark"] .hiw-step__icon--emerald {
  background: rgba(5,150,105,.15);
  color: #34d399;
  border-color: rgba(5,150,105,.2);
}
[data-theme="dark"] .hiw-step__icon--violet {
  background: rgba(124,58,237,.15);
  color: #a78bfa;
  border-color: rgba(124,58,237,.2);
}

/* ── Step title & desc ── */
.hiw-step__title {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: .5rem;
}
.hiw-step__desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

/* ── Mini-preview containers ── */
.hiw-step__preview {
  margin-top: auto;
}

/* Mini Google Auth button */
.hiw-mini-auth__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: .5rem 1rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-main);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hiw-mini-auth__btn:hover {
  border-color: rgba(66,133,244,.4);
  box-shadow: 0 4px 12px rgba(66,133,244,.1);
}

/* Mini course card */
.hiw-mini-course {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: .5rem .7rem;
  transition: border-color .2s ease;
}
.hiw-mini-course:hover {
  border-color: rgba(5,150,105,.3);
}
.hiw-mini-course__thumb {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary) 20%, var(--bg-darker)),
    color-mix(in srgb, var(--color-accent) 20%, var(--bg-darker)));
  flex-shrink: 0;
}
.hiw-mini-course__info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.hiw-mini-course__cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-main);
}
.hiw-mini-course__lessons {
  font-size: .65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* Mini AI chat bubble */
.hiw-mini-ai__bubble {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-radius: 12px 12px 12px 4px;
  padding: .5rem .9rem;
  font-size: .73rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(24,90,219,.25);
}
.hiw-mini-ai__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Legacy compat ── */
.lp-how { display: none; }
.lp-steps { display: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hiw-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 420px;
  }
  .hiw-timeline__line {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .hiw-timeline__line-fill {
    width: 100% !important;
    height: 0;
    transition: height 1.5s cubic-bezier(.4,0,.2,1);
  }
  .hiw-timeline.visible .hiw-timeline__line-fill {
    height: 100%;
    width: 100% !important;
  }
  .hiw-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
  .hiw-step__marker {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .hiw-step__card {
    text-align: left;
  }
}

/* ─────────────────────────────
   CTA BANNER — PREMIUM REDESIGN
───────────────────────────── */
.lp-cta {
  position: relative;
  margin: 4rem 0 6rem;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 6rem 2rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.2);
}
[data-theme="dark"] .lp-cta {
  background: rgba(20,20,24,0.7);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.lp-cta__glow-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
  pointer-events: none;
  z-index: 0;
}
.lp-cta__glow-1, .lp-cta__glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  animation: blobFloat 12s infinite alternate ease-in-out;
}
.lp-cta__glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(24,90,219,0.2) 0%, transparent 70%);
  top: -150px; left: -100px;
}
.lp-cta__glow-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  bottom: -200px; right: -100px;
  animation-delay: -4s;
}

[data-theme="dark"] .lp-cta__glow-1 {
  background: radial-gradient(circle, rgba(79,156,249,0.15) 0%, transparent 70%);
}
[data-theme="dark"] .lp-cta__glow-2 {
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
}

.lp-cta__title {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.lp-cta__title-accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .lp-cta__title-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-cta__sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin: 0 auto 3rem;
  max-width: 600px;
  line-height: 1.6;
  position: relative; z-index: 1;
}

.lp-cta__btns {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ─────────────────────────────
   SCROLL REVEAL
───────────────────────────── */
.reveal-up, .reveal-right {
  opacity: 0;
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0s);
}
.reveal-up    { transform: translateY(36px); }
.reveal-right { transform: translateX(50px); }
.reveal-up.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ─────────────────────────────
   TYPING ANIMATION
───────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lp-chat__msg--typing { animation-delay: .8s; opacity: 0; animation-fill-mode: forwards; }

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 1024px) {
  .lp-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 5rem 0 3rem;
    gap: 3rem;
  }
  .lp-hero__inner { max-width: 100%; }
  .lp-hero__cta { justify-content: center; }
  .lp-proof { justify-content: center; }
  .lp-hero__mockup { display: none; }
  .lp-feat-grid { grid-template-columns: 1fr 1fr; }
  .lp-feat-card--highlight { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .lp-hero { padding: 4rem 0 2rem; min-height: auto; }
  .lp-stats__grid { flex-direction: column; gap: 1.5rem; }
  .lp-stat-divider { width: 60px; height: 1px; }
  .lp-feat-grid { grid-template-columns: 1fr; }
  .lp-feat-card--highlight { grid-column: 1; }
  .lp-steps { flex-direction: column; align-items: center; }
  .lp-step__arrow { transform: rotate(90deg); }
  .lp-step { max-width: 100%; width: 100%; }
}
