/* ===========================
   NOVIN ZEHN - DESIGN SYSTEM
   =========================== */

:root {
  /* Brand colors */
  --primary: #3D2B7A;
  --primary-dark: #2A1B5C;
  --primary-light: #5B47A8;
  --primary-50: #F4F1FB;
  --primary-100: #E8E0F5;
  --primary-200: #C9B8E8;

  --accent: #F5A623;
  --accent-dark: #D88B0E;
  --accent-light: #FFB940;
  --accent-50: #FEF7E8;
  --accent-100: #FDECC4;

  /* Neutrals */
  --bg: #FAF9FF;
  --surface: #FFFFFF;
  --surface-2: #F4F2FB;
  --text: #1A1530;
  --text-muted: #6B6685;
  --text-light: #9892AE;
  --border: #E8E4F5;
  --border-strong: #D4CDE8;

  /* Semantic */
  --success: #22C55E;
  --success-bg: #E8F8EF;
  --danger: #EF4444;
  --warning: #F59E0B;

  /* Layout */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(61, 43, 122, 0.04), 0 1px 4px rgba(61, 43, 122, 0.04);
  --shadow: 0 4px 12px rgba(61, 43, 122, 0.06), 0 2px 6px rgba(61, 43, 122, 0.04);
  --shadow-lg: 0 12px 40px rgba(61, 43, 122, 0.10), 0 4px 12px rgba(61, 43, 122, 0.05);
  --shadow-glow: 0 8px 32px rgba(245, 166, 35, 0.25);

  --container: 1200px;
  --container-wide: 1320px;
}

/* ===========================
   RESET & BASE
   =========================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01";        /* Vazirmatn: consistent Persian-style digits */
  font-variant-numeric: tabular-nums;   /* equal-width digits → no jitter */
  overflow-x: hidden;
}

/* Consistent Persian digit rendering everywhere */
.stat-num,
.h3-proof li strong,
.achievement-num,
.testimonial-card .testimonial-rating,
[data-count],
.cd-num,
.metric-value,
.bento-stat-num {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-feature-settings: "ss01";
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===========================
   TYPOGRAPHY
   =========================== */

.h1, h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.h2, h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.h3, h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
}

.h4, h4 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

p { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

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

/* ===========================
   LAYOUT
   =========================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section-lg { padding: 4rem 0; }
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--accent);
  color: #4A2A00;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245, 166, 35, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

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

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; min-height: 38px; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* ===========================
   HEADER / NAVIGATION
   =========================== */

.notification-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 10px 0;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.notification-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.2), transparent);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  to { left: 200%; }
}

.notification-bar a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  white-space: nowrap;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.1rem;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-mark span {
  position: relative;
  z-index: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

/* The close button and bottom CTA are mobile-drawer-only — hide on desktop.
   The .nav-emoji prefix is also mobile-only so the desktop bar stays clean. */
.nav-menu-close-host,
.nav-menu-cta { display: none; }
.nav-menu a .nav-emoji { display: none; }

.nav-menu a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-menu a:hover { color: var(--primary); }

.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-2);
}

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .nav-menu.open {
    display: flex;
    position: fixed;
    top: 70px;
    right: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    box-shadow: -8px 0 24px rgba(0,0,0,0.05);
  }

  .nav-actions .btn-text { display: none; }
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  padding: 5rem 0 7rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(61, 43, 122, 0.08) 0%, transparent 70%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 4rem; }
}

.hero-content h1 { margin-bottom: 1.5rem; }
.hero-content h1 strong {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content h1 strong::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 0;
  width: 100%;
  height: 12px;
  background: var(--accent);
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
}

.hero-content .lead { margin-bottom: 2rem; max-width: 540px; }

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-trust-item .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-trust-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin: 0 auto;
}

.hero-visual-main {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(245, 166, 35, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.hero-visual-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

/* Logical properties so cards always peek toward the page edge,
   not into the text column — works for both RTL and LTR. */
.floating-card.fc-1 {
  top: 6%;
  inset-inline-end: -6%;
  animation-delay: 0s;
}

.floating-card.fc-2 {
  bottom: 14%;
  inset-inline-end: -8%;
  animation-delay: 1.5s;
}

.floating-card.fc-3 {
  top: 48%;
  inset-inline-end: -10%;
  animation-delay: 3s;
}

@media (max-width: 1024px) {
  /* On small screens visual stacks above text — keep all cards
     inside the visual so they don't run off-screen. */
  .floating-card.fc-1, .floating-card.fc-2, .floating-card.fc-3 {
    inset-inline-end: 4%;
    inset-inline-start: auto;
  }
  .floating-card.fc-3 { inset-inline-start: 4%; inset-inline-end: auto; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

.fc-icon.purple { background: var(--primary-50); color: var(--primary); }
.fc-icon.gold { background: var(--accent-50); color: var(--accent-dark); }
.fc-icon.green { background: var(--success-bg); color: var(--success); }

.fc-title { font-weight: 700; color: var(--text); }
.fc-sub { font-size: 0.75rem; color: var(--text-muted); }

.hero-robot {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* ===========================
   STATS BAND
   =========================== */

.stats-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===========================
   FEATURES / WHY US
   =========================== */

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

@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--accent-50) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.feature-card.gold .feature-icon { background: var(--accent-50); color: var(--accent-dark); }
.feature-card.green .feature-icon { background: var(--success-bg); color: var(--success); }

.feature-card h3 { margin-bottom: 0.75rem; position: relative; z-index: 1; }
.feature-card p { font-size: 0.95rem; line-height: 1.7; position: relative; z-index: 1; }

.feature-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--primary-50);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 1rem;
  font-weight: 600;
}

/* ===========================
   COURSE CARDS
   =========================== */

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

@media (max-width: 1024px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .courses-grid { grid-template-columns: 1fr; } }

.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.course-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.course-cover.gold { background: linear-gradient(135deg, #D88B0E 0%, #F5A623 100%); }
.course-cover.teal { background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%); }
.course-cover.coral { background: linear-gradient(135deg, #B91C1C 0%, #EF4444 100%); }
.course-cover.indigo { background: linear-gradient(135deg, #4338CA 0%, #6366F1 100%); }
.course-cover.green { background: linear-gradient(135deg, #15803D 0%, #22C55E 100%); }
.course-cover.pink { background: linear-gradient(135deg, #BE185D 0%, #EC4899 100%); }
.course-cover.cyan { background: linear-gradient(135deg, #0E7490 0%, #06B6D4 100%); }

.course-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.15) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
}

.course-cover-icon {
  font-size: 3.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.course-cover-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 2;
}

.course-badge.popular {
  background: var(--accent);
  color: #4A2A00;
}

.course-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.course-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.course-price {
  font-weight: 700;
  color: var(--primary);
}

.course-price small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Replaces course-price — direct phone CTA */
.course-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 7px 13px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  font-feature-settings: "ss01";
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(94,62,184,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.course-quote:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(94,62,184,0.35); }
.course-quote svg { color: #FFD96E; flex-shrink: 0; }

/* ===========================
   PLATFORM SHOWCASE
   =========================== */

.platform-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

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

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

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.platform-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow);
}

.platform-card-content h3 { margin-bottom: 0.5rem; }
.platform-card-content p { font-size: 0.9rem; margin-bottom: 1rem; }

.platform-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-tag {
  font-size: 0.75rem;
  background: var(--primary-50);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
}

.platform-visual {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.platform-card.gold .platform-visual { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); }
.platform-card.green .platform-visual { background: linear-gradient(135deg, #15803D 0%, #22C55E 100%); }
.platform-card.coral .platform-visual { background: linear-gradient(135deg, #B91C1C 0%, #EF4444 100%); }

@media (max-width: 480px) {
  .platform-card { grid-template-columns: 1fr; text-align: right; }
  .platform-visual { width: 80px; height: 80px; font-size: 1.8rem; }
}

/* ===========================
   TESTIMONIALS
   =========================== */

.testimonials {
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background:
    radial-gradient(circle at 80% 30%, rgba(245, 166, 35, 0.15) 0%, transparent 50%);
}

.testimonials .section-header h2 { color: white; }
.testimonials .section-header p { color: rgba(255,255,255,0.7); }
.testimonials .eyebrow { background: rgba(255,255,255,0.1); color: var(--accent-light); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: serif;
  color: var(--accent);
  line-height: 1;
  opacity: 0.4;
}

.testimonial-text {
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A2A00;
  font-weight: 800;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; margin-bottom: 2px; }
.testimonial-role { font-size: 0.8rem; color: var(--accent-light); }

/* ===========================
   ACHIEVEMENTS
   =========================== */

.achievements-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) { .achievements-strip { grid-template-columns: repeat(2, 1fr); } }

.achievement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
}

.achievement-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.achievement-medal {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.achievement-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.achievement-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===========================
   PARENT PORTAL DEMO
   =========================== */

.parent-demo {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
  border-radius: var(--radius-xl);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .parent-demo { grid-template-columns: 1fr; padding: 2.5rem; gap: 2rem; }
}

.parent-demo::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-100) 0%, transparent 70%);
  opacity: 0.6;
}

.parent-demo-content { position: relative; z-index: 1; }

.parent-demo-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.parent-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.parent-feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
}

.parent-feature-text {
  font-weight: 500;
  color: var(--text);
}

.parent-feature-text small {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  margin-top: 2px;
}

.parent-mockup {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.parent-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.parent-mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1rem;
}

.parent-stat {
  background: var(--surface-2);
  padding: 1rem;
  border-radius: var(--radius);
}

.parent-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.parent-stat .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.parent-progress {
  background: var(--surface-2);
  padding: 1rem;
  border-radius: var(--radius);
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 999px;
  transition: width 1s ease;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.2) 0%, transparent 60%);
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: #1A1530;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

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

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

.footer-brand .logo { color: white; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 320px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: white;
}

.footer-social a:hover {
  background: var(--accent);
  color: #4A2A00;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ===========================
   PAGE HERO (sub pages)
   =========================== */

.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg) 100%);
  text-align: center;
}

.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  justify-content: center;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-light); }

/* ===========================
   FILTERS
   =========================== */

.filters-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.filter-btn:hover { background: var(--primary-50); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  color: white;
}

/* ===========================
   FORMS
   =========================== */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-50);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

/* ===========================
   UTILITIES
   =========================== */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

/* Animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================
   FLOATING ACTIONS — WhatsApp / Call / Top
   ========================================== */
.floating-actions {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9000;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  border: none;
  cursor: pointer;
}
.fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }
.fab.whatsapp { background: #25D366; }
.fab.call { background: var(--accent, #F5A623); }
.fab.top { background: var(--primary, #5e3eb8); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s; }
.fab.top.visible { opacity: 1; pointer-events: auto; }
.fab .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: fab-pulse 2.2s ease-out infinite;
}
.fab.whatsapp .pulse { background: #25D366; }
.fab.call .pulse { background: var(--accent, #F5A623); }
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fab svg { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .floating-actions { bottom: 14px; left: 14px; gap: 10px; }
  .fab { width: 50px; height: 50px; }
}

/* ==========================================
   LEAD MODAL — Quick Consultation Form
   ========================================== */
.lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 50, 0.72);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: lead-fade-in 0.25s ease;
}
.lead-overlay.visible { display: flex; }
@keyframes lead-fade-in { from { opacity: 0 } to { opacity: 1 } }

.lead-modal {
  background: white;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: lead-slide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes lead-slide { from { transform: translateY(30px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.lead-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2, #f5f3ff);
  color: var(--text);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lead-close:hover { background: #e9e3ff; }

.lead-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.lead-modal .lead-sub {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.lead-modal .lead-gift {
  background: linear-gradient(135deg, #FFF6E5, #FFFDF7);
  border: 1px solid #FFE0B2;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.lead-modal .lead-gift strong { color: #C76E00; display: block; font-size: 0.92rem; }
.lead-modal .lead-gift small { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }

.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form input, .lead-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  color: var(--text);
  direction: rtl;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-form input:focus, .lead-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 62, 184, 0.12);
}
.lead-form button {
  margin-top: 6px;
  padding: 14px;
  font-size: 1rem;
}
.lead-trust {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.lead-success {
  text-align: center;
  padding: 1rem;
}
.lead-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success, #2E7D32);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}
.lead-success h3 { color: var(--success, #2E7D32); margin-bottom: 0.5rem; }
.lead-success p { color: var(--text); line-height: 1.7; }

/* ==========================================
   SOCIAL PROOF TOAST
   ========================================== */
.proof-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  border-radius: 14px;
  padding: 12px 14px 12px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 320px;
  z-index: 8000;
  border: 1px solid var(--border, #eee);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.proof-toast.show { transform: translateY(0); }
.proof-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.proof-text { flex: 1; min-width: 0; }
.proof-text .nm { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.proof-text .ds { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; line-height: 1.4; }
.proof-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .proof-toast { left: 14px; right: 14px; bottom: 80px; max-width: none; }
}

/* Course card urgency */
.course-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFE5E5;
  color: #C62828;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 6px;
  white-space: nowrap;
}
.course-urgency::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #C62828;
  animation: urgency-pulse 1.4s ease-in-out infinite;
}
@keyframes urgency-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.skip-to-content {
  position: absolute;
  top: -100px;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 99999;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 0; outline: 3px solid var(--accent); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, details:focus-visible {
  outline: 3px solid var(--accent, #F5A623);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .fab .pulse { display: none; }
}

/* ==========================================
   VIDEO MODAL + VIDEO CARDS
   ========================================== */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 30, 0.92);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: lead-fade-in 0.2s ease;
}
.video-overlay.visible { display: flex; }
.video-modal {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.video-modal iframe { width: 100%; height: 100%; border: 0; }
.video-modal .vm-close {
  position: absolute;
  top: -42px;
  left: 0;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.video-modal .vm-close:hover { background: rgba(255,255,255,0.3); }

.video-card {
  position: relative;
  background: var(--surface, white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-poster {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-poster .play-orb {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  transition: transform 0.25s;
}
.video-card:hover .play-orb { transform: scale(1.12); }
.video-card .vc-body { padding: 1.1rem 1.25rem; }
.video-card .vc-name { font-weight: 700; margin-bottom: 4px; font-size: 1rem; }
.video-card .vc-role { color: var(--text-muted); font-size: 0.85rem; }
.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(94,62,184,0.18);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.92rem;
  margin-top: 1.25rem;
  transition: all 0.2s;
}
.hero-video-btn:hover { background: white; transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-video-btn .ho {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   HERO ENRICHMENT v2
   ========================================== */
.hero { position: relative; overflow: hidden; }

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-bg-orb.o1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(94,62,184,0.28), transparent 70%);
  top: -120px; right: -100px;
  animation: orb-drift 14s ease-in-out infinite;
}
.hero-bg-orb.o2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.22), transparent 70%);
  bottom: -120px; left: -80px;
  animation: orb-drift 18s ease-in-out infinite reverse;
}
.hero-bg-orb.o3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(34,197,94,0.18), transparent 70%);
  top: 40%; left: 40%;
  animation: orb-drift 22s ease-in-out infinite;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

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

/* Live visitors indicator */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.10);
  color: #1B7A3A;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(34,197,94,0.25);
}
.live-pill .live-dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  position: relative;
}
.live-pill .live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22C55E;
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Avatar stack + trust line */
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.avatar-stack { display: flex; }
.avatar-stack > div {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.avatar-stack > div:nth-child(1) { background: linear-gradient(135deg, #F472B6, #EC4899); }
.avatar-stack > div:nth-child(2) { background: linear-gradient(135deg, #60A5FA, #3B82F6); margin-right: 0; }
.avatar-stack > div:nth-child(3) { background: linear-gradient(135deg, #34D399, #10B981); }
.avatar-stack > div:nth-child(4) { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.avatar-stack > div:nth-child(5) {
  background: var(--primary);
  font-size: 0.7rem;
}
.hero-trust-row .trust-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}
.hero-trust-row .trust-text strong { color: var(--primary); }
.hero-trust-row .stars { color: #F5A623; letter-spacing: 1px; font-size: 0.85rem; }

/* Hero visual: layered awards + glow */
.hero-visual { aspect-ratio: 1.05 / 1; }
.hero-visual-main { box-shadow: 0 30px 80px rgba(61,43,122,0.25), 0 0 0 8px rgba(255,255,255,0.4); }

.hero-award-stack {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: white;
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  z-index: 3;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.hero-award-stack .medal { font-size: 1.4rem; }
.hero-award-stack .div { width: 1px; height: 24px; background: var(--border); }
.hero-award-stack .award-text { color: var(--text); line-height: 1.3; }
.hero-award-stack .award-text small { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.72rem; }

/* Achievement marquee strip */
.achievement-strip {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}
.achievement-strip::before, .achievement-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.achievement-strip::before { right: 0; background: linear-gradient(to left, white, transparent); }
.achievement-strip::after { left: 0; background: linear-gradient(to right, white, transparent); }

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.marquee-item .ic { font-size: 1.4rem; }
.marquee-item strong { color: var(--primary); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

@media (max-width: 768px) {
  .hero-award-stack { font-size: 0.72rem; padding: 8px 10px; gap: 6px; }
  .hero-award-stack .medal { font-size: 1.1rem; }
}

/* ==========================================
   HERO v3 — clean, image-first, professional
   ========================================== */
.hero-v3 {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(94,62,184,0.06), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(245,166,35,0.05), transparent 55%),
    var(--bg);
}
.h3-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.h3-orb-1 {
  width: 520px; height: 520px;
  background: rgba(94,62,184,0.10);
  top: -180px; right: -120px;
}
.h3-orb-2 {
  width: 420px; height: 420px;
  background: rgba(245,166,35,0.10);
  bottom: -160px; left: -100px;
}

.hero-v3 .container { position: relative; z-index: 1; }

.h3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 1024px) {
  .h3-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-v3 { padding: 2.5rem 0 3.5rem; }
}

/* ----- Left: copy ----- */
.h3-content { max-width: 580px; }

.h3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: white;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 1.5rem;
}
.h3-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.h3-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.h3-mark {
  background: linear-gradient(180deg, transparent 60%, rgba(94,62,184,0.18) 60%);
  padding: 0 4px;
  font-weight: 800;
}
.h3-mark.gold {
  background: linear-gradient(180deg, transparent 60%, rgba(245,166,35,0.30) 60%);
}

.h3-sub {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.h3-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.h3-cta .btn-accent { padding: 16px 28px; font-size: 1rem; }

.h3-watch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  padding: 10px 4px;
  transition: color 0.2s;
}
.h3-watch:hover { color: var(--primary); }
.h3-watch-orb {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(94,62,184,0.18);
  transition: transform 0.2s;
}
.h3-watch:hover .h3-watch-orb { transform: scale(1.08); }

.h3-proof {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 8px;
  margin: 1.5rem 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(61,43,122,0.04);
}
.h3-proof li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  line-height: 1;
}
/* Slim vertical divider between items (RTL safe) */
.h3-proof li + li::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--border);
}
.h3-proof .hp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(94,62,184,0.12), rgba(245,166,35,0.10));
  color: var(--primary);
  flex-shrink: 0;
}
.h3-proof .hp-icon svg { width: 14px; height: 14px; }
.h3-proof li strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
  font-feature-settings: "ss01";
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.h3-proof li strong small {
  font-size: 0.65em;
  font-weight: 800;
  margin-inline-start: 1px;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}
.h3-proof .hp-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
@media (max-width: 480px) {
  .h3-proof { padding: 6px; }
  .h3-proof li { padding: 5px 9px; gap: 6px; }
  .h3-proof .hp-icon { width: 22px; height: 22px; border-radius: 6px; }
  .h3-proof .hp-icon svg { width: 12px; height: 12px; }
  .h3-proof li strong { font-size: 0.98rem; }
  .h3-proof .hp-label { font-size: 0.7rem; }
}

/* ----- Right: photo ----- */
.h3-visual {
  position: relative;
  aspect-ratio: 5 / 4.4;
  max-width: 620px;
  margin-left: auto;
  width: 100%;
}
@media (max-width: 1024px) { .h3-visual { margin-left: 0; margin-right: auto; } }

.h3-photo {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(61,43,122,0.22),
    0 8px 20px rgba(61,43,122,0.10);
}
.h3-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h3-photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,14,50,0.08) 100%);
  pointer-events: none;
}

/* Animated SVG hero scene */
.h3-scene {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(61,43,122,0.22),
    0 8px 20px rgba(61,43,122,0.10);
  background: linear-gradient(135deg, #3D2B7A 0%, #5e3eb8 60%, #7c3aed 100%);
}
.h3-scene img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Single floating credibility badge */
.h3-badge {
  position: absolute;
  bottom: 18px;
  inset-inline-end: -18px;
  background: white;
  border-radius: 16px;
  padding: 12px 16px 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  z-index: 2;
  max-width: 240px;
  animation: h3-float 5s ease-in-out infinite;
}
@keyframes h3-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.h3-badge-medal { font-size: 2rem; line-height: 1; }
.h3-badge-t { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.h3-badge-s { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 480px) {
  .h3-badge { inset-inline-end: 12px; bottom: 12px; padding: 10px 12px; max-width: 200px; }
  .h3-badge-medal { font-size: 1.6rem; }
  .h3-badge-t { font-size: 0.85rem; }
}

/* Hide legacy hero v2 styles when v3 is active (just in case any leak) */
.hero-v3 .floating-card,
.hero-v3 .hero-bg-orb,
.hero-v3 .live-pill,
.hero-v3 .hero-trust-row,
.hero-v3 .hero-award-stack { display: none; }

/* ==========================================
   NAV — modern minimal pill
   ========================================== */
.nav-menu a {
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.nav-menu a:hover { background: var(--surface-2); color: var(--primary); }
.nav-menu a.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.nav-menu a.active::after { display: none !important; }

@media (min-width: 1025px) {
  .nav-menu { gap: 0.25rem; }
  .nav-menu a { font-size: 0.92rem; }
}

/* ==========================================
   MOBILE NAV — robust, accessible
   ========================================== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 50, 0.55);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 1024px) {
  .nav-toggle { display: flex !important; align-items: center; justify-content: center; }

  /* Re-enable mobile-drawer-only elements (hidden by the desktop default) */
  .nav-menu-close-host { display: flex; }
  .nav-menu-cta { display: block; }
  .nav-menu a .nav-emoji { display: inline-block; }

  /* Mobile drawer: gradient bg, real close button, emoji-prefixed items */
  .nav-menu {
    /* Closed drawer is display:none — it has NO box, so it can't extend the
       document's scrollWidth. A fixed element parked off-screen (via `right`
       offset OR `transform`) is still counted in scrollWidth by Chrome and
       causes phantom horizontal scroll on LTR pages; display:none avoids that
       entirely, and — unlike `overflow:clip` on <html> — leaves the sticky
       header working. The slide-in is restored with a keyframe on .open. */
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100vh;
    background: linear-gradient(160deg, #ffffff 0%, #f8f5ff 35%, #fff7ec 100%);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.1rem 1.5rem;
    gap: 0.35rem;
    box-shadow: -20px 0 60px rgba(20, 14, 50, 0.25);
    z-index: 105;
    overflow-y: auto;
  }
  /* Higher specificity than modern-2026.css `header.header .nav-menu`
     (which force-hides the menu at ≤1100px) so the open drawer actually shows. */
  header.header .nav-menu.open {
    display: flex;
    animation: nav-drawer-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes nav-drawer-in {
    from { transform: translateX(105%); }
    to   { transform: translateX(0); }
  }
  .nav-menu li { list-style: none; }

  /* Disable the old pseudo-element X — replaced with a real button below */
  .nav-menu::before { display: none !important; }

  /* Real, clickable close button (rendered by layout.js inside .nav-menu) */
  .nav-menu-close-host {
    display: flex;
    justify-content: flex-start;
    margin: 0 -0.35rem 0.5rem;
  }
  .nav-menu-close {
    background: rgba(20, 14, 50, 0.06);
    border: 0;
    border-radius: 12px;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
  }
  .nav-menu-close:hover { background: rgba(20, 14, 50, 0.12); }
  .nav-menu-close:active { transform: scale(0.92); }

  .nav-menu a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 14px !important;
    border-radius: 14px;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 2px 8px rgba(20, 14, 50, 0.04);
    transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
  }
  .nav-menu a:hover, .nav-menu a:active {
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
  }
  .nav-menu a.active {
    background: linear-gradient(135deg, var(--primary), var(--accent-dark)) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
    border-color: transparent;
  }
  .nav-menu a.active .nav-emoji { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)); }
  .nav-emoji {
    font-size: 1.25rem;
    line-height: 1;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
  }
  .nav-menu a.active::after { display: none !important; }

  /* CTA at bottom of drawer */
  .nav-menu-cta {
    margin-top: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(20, 14, 50, 0.08);
  }
  .nav-menu-cta .btn {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 13px 14px !important;
    border-radius: 14px;
    font-weight: 700 !important;
  }

  /* Show the CTA but in compact form (header buttons outside the drawer) */
  .nav-actions .btn-text { display: none; }
  .nav-actions .btn-accent {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 540px) {
  .nav { padding: 0.7rem 0; }
  .logo { font-size: 1.05rem; }
  .logo-mark { width: 36px; height: 36px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-accent { padding: 7px 12px; font-size: 0.78rem; }
  .nav-toggle { width: 36px; height: 36px; }
  .notification-bar { font-size: 0.78rem; padding: 8px 0; }
  .notification-bar .container { padding: 0 1rem; }
}

/* Lock body scroll when nav is open */
body.nav-open { overflow: hidden; }

/* ==========================================
   COURSE CARDS v2 — illustration-first, less boxy
   ========================================== */
.course-card {
  border: 0 !important;
  border-radius: 24px !important;
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s !important;
  box-shadow: 0 4px 16px rgba(61,43,122,0.06), 0 1px 3px rgba(61,43,122,0.04);
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(61,43,122,0.18), 0 4px 12px rgba(61,43,122,0.08);
}
.course-cover {
  aspect-ratio: 5/3.5;
  position: relative;
  overflow: hidden;
  background: var(--primary-50);
  display: block !important;
}
.course-cover-illust {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.course-card:hover .course-cover-illust { transform: scale(1.04); }

.course-badge {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.course-badge.popular { color: #B45309; }

/* Teachers page — founder badge (blue) */
.teacher .badge {
  background: #3B82F6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(59,130,246,0.4) !important;
}

.course-body {
  padding: 1.25rem 1.4rem 1.4rem !important;
}
.course-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  line-height: 1.5;
}
.course-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  gap: 10px;
}
.course-price { color: var(--primary); font-weight: 800; font-size: 0.95rem; }
.course-price small { color: var(--text-muted); font-weight: 500; font-size: 0.8em; }
.course-footer .btn {
  border-color: var(--primary-100) !important;
  background: var(--primary-50) !important;
  color: var(--primary) !important;
  border-radius: 10px;
}
.course-footer .btn:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* ==========================================
   SECTION FLOW — curved dividers + softer feel
   ========================================== */
.section { position: relative; }

/* Wave divider you can place at the top of any section */
.section-wave-top {
  position: relative;
}
.section-wave-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,0 L0,0 Z' fill='%23FAF9FF'/></svg>");
  background-size: 100% 100%;
  pointer-events: none;
}
.section-wave-top.on-purple::before {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,0 L0,0 Z' fill='%23F4F2FB'/></svg>");
}

/* Soften surface section transitions: remove harsh edges */
.bg-surface-soft {
  background:
    radial-gradient(ellipse at top right, rgba(94,62,184,0.04), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(245,166,35,0.03), transparent 50%),
    var(--surface-2);
}

/* ==========================================
   BENTO — replace rigid 3x3 features grid
   ========================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(160px, auto); } }

.bento-item {
  background: var(--surface);
  border-radius: 22px;
  padding: 1.6rem 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 2px 6px rgba(61,43,122,0.04);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s;
}
.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(61,43,122,0.10);
}
.bento-item h3 { font-size: 1.05rem; margin-bottom: 4px; line-height: 1.5; }
.bento-item p { font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); margin: 0; }

.bento-emoji {
  font-size: 2.4rem;
  margin-bottom: auto;
  align-self: flex-start;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

/* spans */
.bento-w2 { grid-column: span 2; }
.bento-w3 { grid-column: span 3; }
.bento-w4 { grid-column: span 4; }
.bento-h2 { grid-row: span 2; }

@media (max-width: 1024px) {
  .bento-w3 { grid-column: span 2; }
  .bento-w4 { grid-column: span 4; }
}
@media (max-width: 640px) {
  .bento-w2, .bento-w3, .bento-w4 { grid-column: span 2; }
  .bento-h2 { grid-row: auto; }
}

/* Color accents for bento items */
.bento-item.purple {
  background: linear-gradient(135deg, #5B47A8 0%, #3D2B7A 100%);
  color: white;
}
.bento-item.purple h3, .bento-item.purple p { color: white; }
.bento-item.purple p { color: rgba(255,255,255,0.85); }

.bento-item.gold {
  background: linear-gradient(135deg, #FFE0A8 0%, #FBBF24 100%);
}
.bento-item.gold h3 { color: #7C2D12; }
.bento-item.gold p { color: #92400E; }

.bento-item.green {
  background: linear-gradient(135deg, #D1FAE5 0%, #86EFAC 100%);
}
.bento-item.green h3 { color: #14532D; }
.bento-item.green p { color: #15803D; }

.bento-item.coral {
  background: linear-gradient(135deg, #FECACA 0%, #FCA5A5 100%);
}
.bento-item.coral h3 { color: #7F1D1D; }
.bento-item.coral p { color: #991B1B; }

.bento-item.cyan {
  background: linear-gradient(135deg, #CFFAFE 0%, #67E8F9 100%);
}
.bento-item.cyan h3 { color: #164E63; }
.bento-item.cyan p { color: #0E7490; }

/* Decorative blob inside bento items */
.bento-blob {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
}
.bento-item.purple .bento-blob { background: #F5A623; top: -80px; left: -60px; }
.bento-item.gold .bento-blob { background: #FFFFFF; top: -80px; right: -60px; opacity: 0.6; }
.bento-item.green .bento-blob { background: #FFFFFF; bottom: -80px; left: -40px; opacity: 0.5; }

/* ==========================================
   WHY US — compact pill strip
   ========================================== */
.why-compact {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--surface-2) 100%);
  border-radius: 24px;
  padding: 1.75rem 1.75rem 1.4rem;
  box-shadow: 0 4px 16px rgba(61,43,122,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.why-compact-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.why-compact-head .eyebrow { flex-shrink: 0; }
.why-compact-head h2 { font-size: 1.5rem; line-height: 1.4; margin: 0; }
.why-pills {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  gap: 8px 10px;
  flex-wrap: wrap;
}
.why-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.why-pills li:hover {
  transform: translateY(-2px);
  border-color: var(--primary-200);
  box-shadow: 0 4px 12px rgba(61,43,122,0.08);
}
.why-pills li span { font-size: 1.15rem; }
.why-pills li b { color: var(--text); font-weight: 700; }

/* ==========================================
   WHY US — editorial deck (replaces pill strip)
   ========================================== */
.why-section { padding: 4.5rem 0; position: relative; }
.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(94,62,184,0.04), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(245,166,35,0.04), transparent 55%);
  pointer-events: none;
}
.why-section .container { position: relative; z-index: 1; }

.why-deck {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 1024px) { .why-deck { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .why-deck { grid-template-columns: 1fr; } }

/* Header takes top row */
.why-head {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 0.5rem;
}
.why-head .eyebrow { margin-bottom: 0.85rem; }
.why-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.why-title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, rgba(245,166,35,0.30) 60%);
  padding: 0 6px;
}
.why-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Hero feature card — spans 2 cols and 2 rows */
.why-feat {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  border-radius: 24px;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 320px;
  box-shadow: 0 18px 50px rgba(61,43,122,0.22);
}
.why-feat::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(245,166,35,0.45), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.why-feat > * { position: relative; z-index: 1; }

.why-feat-icon {
  width: 56px; height: 56px;
  color: var(--accent);
  background: rgba(255,255,255,0.10);
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  align-self: center;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.why-feat-num {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFB940 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: auto;
  text-align: center;
  align-self: center;
  width: 100%;
}
.why-feat-num small {
  font-size: 0.5em;
  font-weight: 800;
  -webkit-text-fill-color: var(--accent);
}
.why-feat-text h3 { color: white; font-size: 1.3rem; margin-bottom: 4px; font-weight: 800; }
.why-feat-text p { color: rgba(255,255,255,0.85); font-size: 0.92rem; line-height: 1.7; margin: 0; }

/* Decorative sparks */
.why-feat-spark { position: absolute; inset: 0; pointer-events: none; }
.why-feat-spark span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  animation: spark 4s ease-in-out infinite;
}
.why-feat-spark span:nth-child(1) { top: 14%; left: 12%; animation-delay: 0s; }
.why-feat-spark span:nth-child(2) { top: 28%; right: 16%; animation-delay: 0.6s; width: 5px; height: 5px; }
.why-feat-spark span:nth-child(3) { bottom: 30%; left: 18%; animation-delay: 1.2s; width: 6px; height: 6px; }
.why-feat-spark span:nth-child(4) { top: 50%; right: 28%; animation-delay: 2s; width: 4px; height: 4px; }
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1024px) {
  .why-feat { grid-column: span 2; grid-row: auto; min-height: 240px; }
}
@media (max-width: 540px) {
  .why-feat { grid-column: span 1; }
}

/* Small tiles — clean editorial look */
.why-tile {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.3rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s, border-color 0.25s;
  box-shadow: 0 2px 8px rgba(61,43,122,0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.why-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--primary));
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.why-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent, var(--primary));
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 14%, transparent),
              0 4px 8px rgba(61,43,122,0.05);
}
.why-tile:hover::before { opacity: 1; }
.why-tile svg {
  width: 32px; height: 32px;
  color: var(--accent, var(--primary));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 6px;
  border-radius: 10px;
  flex-shrink: 0;
}
.why-tile h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.45;
  color: var(--text);
}
.why-tile p {
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red, blue)) {
  .why-tile svg { background: rgba(94,62,184,0.10); }
  .why-tile:hover { box-shadow: 0 14px 32px rgba(94,62,184,0.14); }
}

/* ==========================================
   USER LOGIN — top-left button + modal
   ========================================== */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
}
.user-pill:hover {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-200);
  transform: translateY(-1px);
}
.user-pill svg { color: var(--primary); }
.user-pill .uname { font-weight: 700; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pill .ucount {
  background: var(--accent);
  color: #4A2A00;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

@media (max-width: 540px) {
  .user-pill { padding: 6px 10px; font-size: 0.78rem; }
  .user-pill .uname { max-width: 70px; }
}

/* Login overlay (separate from lead modal) */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 50, 0.72);
  backdrop-filter: blur(6px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: lead-fade-in 0.25s ease;
}
.login-overlay.visible { display: flex; }

.login-modal {
  background: white;
  border-radius: 22px;
  max-width: 420px;
  width: 100%;
  padding: 2rem 2rem 1.75rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: lead-slide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-modal h3 { font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--primary); }
.login-modal .lead-sub { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }

.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  color: var(--text);
  direction: rtl;
}
.login-form input[type="tel"] { direction: ltr; text-align: right; font-family: 'JetBrains Mono', monospace; }
.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 62, 184, 0.12);
}
.login-form button { padding: 14px; font-size: 1rem; margin-top: 6px; }
.login-trust {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.login-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}
.login-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  transition: all 0.2s;
}
.login-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
