/* =============================================
   CBSE MATHS WORLD — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Merriweather:wght@400;700;900&display=swap');

/* ── CSS Variables ── */
:root {
  --blue-900: #0a1f5c;
  --blue-800: #0d2878;
  --blue-700: #1338a0;
  --blue-600: #1a4fc4;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --gold:     #f59e0b;
  --gold-lt:  #fef3c7;
  --white:    #ffffff;
  --grey-50:  #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-400: #94a3b8;
  --grey-600: #475569;
  --grey-800: #1e293b;
  --text-dark: #0f172a;

  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(13,40,120,.10);
  --shadow-lg: 0 12px 40px rgba(13,40,120,.14);
  --shadow-xl: 0 24px 64px rgba(13,40,120,.18);

  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-blue { color: var(--blue-600); }
.text-gold  { color: var(--gold); }
.hidden { display: none !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--blue-900);
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.btn-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.45);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.18);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-blue {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-blue:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-white {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-md);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
}
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }

/* ── Section Headings ── */
.section-label {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--blue-900);
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-600);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
section { padding: 90px 0; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon {
  width: 44px; height: 44px;
  background: var(--blue-600);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.nav-logo-text { line-height: 1.1; }
.nav-logo-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -.01em;
}
.nav-logo-text span {
  font-size: .72rem;
  font-weight: 600;
  color: var(--blue-500);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--grey-600);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 22px; font-size: .88rem; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 20px 24px 28px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--grey-800);
  font-size: .95rem;
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--blue-50); color: var(--blue-600); }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-500) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
/* Animated Math Symbols */
.math-symbol {
  position: absolute;
  font-family: var(--font-display);
  color: rgba(255,255,255,.06);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  user-select: none;
  animation: floatSymbol 12s ease-in-out infinite;
}
.math-symbol:nth-child(1)  { top: 8%;  left: 5%;   font-size: 3rem;   animation-delay: 0s; }
.math-symbol:nth-child(2)  { top: 20%; right: 8%;  font-size: 4.5rem; animation-delay: -2s; }
.math-symbol:nth-child(3)  { top: 55%; left: 3%;   font-size: 2.5rem; animation-delay: -4s; }
.math-symbol:nth-child(4)  { top: 70%; right: 12%; font-size: 3.5rem; animation-delay: -6s; }
.math-symbol:nth-child(5)  { top: 30%; left: 18%;  font-size: 2rem;   animation-delay: -1s; }
.math-symbol:nth-child(6)  { top: 85%; left: 25%;  font-size: 4rem;   animation-delay: -3s; }
.math-symbol:nth-child(7)  { top: 15%; right: 25%; font-size: 2.5rem; animation-delay: -5s; }
.math-symbol:nth-child(8)  { top: 45%; right: 3%;  font-size: 3rem;   animation-delay: -7s; }
.math-symbol:nth-child(9)  { top: 60%; left: 40%;  font-size: 5rem;   animation-delay: -2.5s; }
.math-symbol:nth-child(10) { top: 5%;  left: 50%;  font-size: 2.8rem; animation-delay: -4.5s; }

@keyframes floatSymbol {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: .06; }
  33%       { transform: translateY(-18px) rotate(8deg); opacity: .10; }
  66%       { transform: translateY(10px) rotate(-5deg); opacity: .07; }
}

/* Geometric circles */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-circle-1 { width: 520px; height: 520px; top: -180px; right: -120px; }
.hero-circle-2 { width: 300px; height: 300px; bottom: -80px; left: -60px; }
.hero-circle-3 { width: 180px; height: 180px; top: 40%; right: 15%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--blue-100);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; display: block; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-200, #93c5fd);
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Hero Illustration Panel */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-stack {
  position: relative;
  width: 360px;
  height: 420px;
}
.hero-main-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: absolute;
  inset: 0;
}
.hero-formula-line {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
  opacity: .9;
}
.hero-formula-line.dim { opacity: .5; font-size: .95rem; }
.formula-divider {
  height: 1px;
  background: rgba(255,255,255,.18);
  margin: 20px 0;
}
.hero-class-pills {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px;
}
.class-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
}
.hero-floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  animation: floatBadge 4s ease-in-out infinite;
}
.hero-floating-badge.badge-1 { top: -20px; right: -24px; }
.hero-floating-badge.badge-2 { bottom: 20px; left: -32px; animation-delay: -2s; }
.hfb-icon { font-size: 1.5rem; }
.hfb-text strong { display: block; font-size: .82rem; font-weight: 800; color: var(--blue-900); }
.hfb-text span   { font-size: .72rem; color: var(--grey-600); }

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

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section { background: var(--grey-50); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--blue-600);
  transform: scale(1.08);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 8px;
}
.feature-card p { font-size: .88rem; color: var(--grey-600); line-height: 1.6; }

/* ============================================
   PHILOSOPHY (LEARN PRACTICE EXCEL)
   ============================================ */
.philosophy-section { background: var(--white); }
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--grey-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 20px;
}
.philosophy-card {
  background: var(--white);
  padding: 52px 40px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.philosophy-card:hover {
  background: var(--blue-900);
  z-index: 1;
}
.philosophy-card:hover .phil-num,
.philosophy-card:hover .phil-title,
.philosophy-card:hover .phil-desc { color: var(--white); }
.philosophy-card:hover .phil-icon-wrap { background: rgba(255,255,255,.15); }
.phil-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: 16px;
  transition: var(--transition);
}
.phil-icon-wrap {
  width: 72px; height: 72px;
  background: var(--blue-50);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.phil-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 12px;
  transition: var(--transition);
}
.phil-desc {
  font-size: .92rem;
  color: var(--grey-600);
  line-height: 1.7;
  transition: var(--transition);
}

/* ============================================
   CLASSES SECTION
   ============================================ */
.classes-section { background: var(--blue-900); }
.classes-section .section-title { color: var(--white); }
.classes-section .section-subtitle { color: rgba(255,255,255,.65); }
.classes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.class-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.class-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.4), rgba(59,130,246,.2));
  opacity: 0;
  transition: var(--transition);
}
.class-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.class-card:hover::after { opacity: 1; }
.class-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue-400);
  line-height: 1;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.class-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.class-card p {
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  position: relative; z-index: 1;
}
.class-card .btn { margin-top: 20px; position: relative; z-index: 1; font-size: .82rem; padding: 9px 20px; }
.classes-note {
  text-align: center;
  margin-top: 44px;
  padding: 20px 28px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
.classes-note strong { color: var(--gold); }

/* ============================================
   FEATURES STRIP
   ============================================ */
.features-strip { background: var(--grey-50); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.strip-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
}
.strip-item:hover {
  border-color: var(--blue-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.strip-icon { font-size: 1.8rem; margin-bottom: 10px; }
.strip-item span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.3;
  display: block;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '∫ π √ Σ ∞ θ';
  position: absolute;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255,255,255,.04);
  white-space: nowrap;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-banner .btn { position: relative; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.75);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.75;
  margin: 16px 0 24px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: rgba(255,255,255,.7);
}
.social-btn:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: .82rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--blue-300); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: .88rem;
}
.footer-contact-item .fci-icon {
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}
.footer-contact-item p { color: rgba(255,255,255,.55); font-size: .8rem; margin-top: 2px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin-bottom: 28px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.45); }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .nav-logo-icon { width: 36px; height: 36px; font-size: 1.1rem; }
.footer-logo .nav-logo-text strong { font-size: .88rem; color: var(--white); }
.footer-logo .nav-logo-text span  { font-size: .65rem; color: var(--blue-300); }

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  padding: 120px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  position: relative;
}
.breadcrumb a { color: var(--blue-300); }
.breadcrumb a:hover { color: var(--white); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-image-block {
  position: relative;
}
.about-img-placeholder {
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  border: 2px dashed var(--blue-300);
  border-radius: var(--radius-xl);
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--blue-500);
  font-size: .88rem;
  font-weight: 600;
}
.about-img-placeholder .img-icon { font-size: 3rem; }
.about-stat-chip {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-stat-chip.chip-1 { bottom: 32px; right: -24px; }
.about-stat-chip.chip-2 { top: 32px; left: -24px; }
.about-stat-chip strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--blue-700); }
.about-stat-chip span   { font-size: .72rem; font-weight: 600; color: var(--grey-600); }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mvv-card {
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--grey-200);
}
.mvv-card.card-mission { background: var(--blue-50); border-color: var(--blue-200); }
.mvv-card.card-vision  { background: var(--gold-lt); border-color: #fde68a; }
.mvv-card.card-commit  { background: #f0fdf4; border-color: #86efac; }
.mvv-icon { font-size: 2.2rem; margin-bottom: 16px; }
.mvv-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--blue-900); margin-bottom: 10px; }
.mvv-card p  { font-size: .88rem; color: var(--grey-600); line-height: 1.7; }

.mentor-section { background: var(--grey-50); }
.mentor-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.mentor-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  border: 3px dashed var(--blue-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 24px;
}
.mentor-card h3 { font-size: 1.4rem; font-weight: 800; color: var(--blue-900); margin-bottom: 8px; }
.mentor-card .mentor-title { font-size: .9rem; color: var(--blue-600); font-weight: 600; margin-bottom: 16px; }
.mentor-card p  { font-size: .9rem; color: var(--grey-600); line-height: 1.75; }
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.method-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.method-item:hover { border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.method-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}
.method-item h4 { font-size: .95rem; font-weight: 700; color: var(--blue-900); margin-bottom: 6px; }
.method-item p  { font-size: .85rem; color: var(--grey-600); line-height: 1.6; }

/* ============================================
   STUDY MATERIALS PAGE
   ============================================ */
.materials-section { background: var(--white); }
.materials-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--grey-200);
  font-size: .85rem;
  font-weight: 700;
  color: var(--grey-600);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.material-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.material-card:hover {
  border-color: var(--blue-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.material-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.material-card h3 { font-size: .98rem; font-weight: 700; color: var(--blue-900); margin-bottom: 8px; }
.material-card p  { font-size: .83rem; color: var(--grey-600); margin-bottom: 20px; line-height: 1.6; }
.material-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--grey-100);
}
.material-class {
  font-size: .75rem;
  font-weight: 700;
  color: var(--grey-400);
  background: var(--grey-100);
  padding: 3px 10px;
  border-radius: 50px;
}
.material-coming {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-lt);
  padding: 3px 10px;
  border-radius: 50px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-600);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--blue-200);
  background: var(--blue-50);
  transition: var(--transition);
}
.download-btn:hover { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info-card {
  background: var(--blue-900);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  color: var(--white);
}
.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.contact-info-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  line-height: 1.7;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-item:last-of-type { border-bottom: none; }
.ci-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.ci-text strong { display: block; font-size: .82rem; font-weight: 800; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.ci-text p { font-size: .95rem; color: var(--white); font-weight: 600; }
.ci-text span { font-size: .8rem; color: rgba(255,255,255,.5); }
.contact-social { margin-top: 28px; }
.contact-social p { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 12px; }

.contact-form-block { }
.form-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--blue-900); margin-bottom: 6px; }
.form-subtitle { font-size: .9rem; color: var(--grey-600); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; color: var(--blue-900); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  color: #166534;
  font-weight: 600;
  font-size: .9rem;
  margin-top: 12px;
}
.demo-banner-section {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-xl);
  padding: 44px;
  margin-top: 60px;
  text-align: center;
}
.demo-banner-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.demo-banner-section p {
  font-size: .95rem;
  color: var(--grey-600);
  margin-bottom: 28px;
}

/* ============================================
   COMING SOON PAGE
   ============================================ */
.coming-soon-wrapper {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: var(--grey-50);
}
.coming-soon-card {
  max-width: 540px;
}
.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}
.coming-soon-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 14px;
}
.coming-soon-card p {
  font-size: 1rem;
  color: var(--grey-600);
  margin-bottom: 32px;
  line-height: 1.7;
}
.coming-badge {
  display: inline-block;
  background: var(--gold-lt);
  color: #92400e;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid #fde68a;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid        { grid-template-columns: 1fr; text-align: center; }
  .hero-visual      { display: none; }
  .hero-btns        { justify-content: center; }
  .hero-stats       { justify-content: center; }
  .hero-desc        { margin: 0 auto 36px; }
  .philosophy-grid  { grid-template-columns: 1fr; }
  .classes-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-grid       { grid-template-columns: 1fr; }
  .mvv-grid         { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .classes-grid     { grid-template-columns: repeat(2, 1fr); }
  .hero             { padding-top: 72px; }
  .hero-grid        { padding: 48px 0; }
  section           { padding: 64px 0; }
  .form-row         { grid-template-columns: 1fr; }
  .philosophy-grid  { grid-template-columns: 1fr; }
  .methodology-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .classes-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .hero-btns    { flex-direction: column; align-items: center; }
  .strip-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE OVERRIDES — ALL SCREEN SIZES
   ============================================ */

/* ── Large Desktop (1400px+) ── */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero h1 { font-size: 3.8rem; }
  .classes-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
}

/* ── Desktop (1025px–1399px) ── */
@media (min-width: 1025px) and (max-width: 1399px) {
  .classes-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .class-card { padding: 24px 16px; }
  .class-number { font-size: 2.4rem; }
  .strip-grid { grid-template-columns: repeat(8, 1fr) !important; gap: 10px; }
  .strip-item { padding: 16px 8px; }
  .strip-item span { font-size: .75rem; }
}

/* ── Tablet Landscape (769px–1024px) ── */
@media (max-width: 1024px) {
  /* Hero — single column, hide visual panel */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 0 40px;
  }
  .hero-visual { display: flex !important; }
  .hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-desc { margin: 0 auto 24px; }
  .hero-badge { display: inline-flex; }

  /* Buttons & stats stacked neatly */
  .hero-btns-wrap {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .hero-btns-inner {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-stats-inner {
    display: flex;
    gap: 24px;
    justify-content: center;
  }

  /* Classes — 3 per row on tablet */
  .classes-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Features strip — 4 per row */
  .strip-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 12px; }

  /* Philosophy — single column */
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-card { padding: 36px 28px; }

  /* Footer — 2 columns */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-stat-chip.chip-1 { right: 0; }
  .about-stat-chip.chip-2 { left: 0; }
  .mvv-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Sections spacing */
  section { padding: 72px 0; }

  /* Formula ticker font */
  .formula-item { font-size: .85rem; }
}

/* ── Tablet Portrait (481px–768px) ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-logo-text strong { font-size: .88rem; }

  /* Hero */
  .hero { padding-top: 72px; min-height: auto; }
  .hero-grid { padding: 40px 0 32px; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero-sub { font-size: .95rem; }
  .hero-desc { font-size: .92rem; }

  /* Buttons side by side */
  .hero-btns-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .btn-lg { padding: 12px 20px; font-size: .88rem; }

  /* Stats row */
  .hero-stats-inner { gap: 16px; }
  .hero-stat strong { font-size: 1.2rem; }
  .hero-stat span { font-size: .68rem; }

  /* Classes — 2 per row */
  .classes-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .class-number { font-size: 2rem; }
  .class-card { padding: 20px 14px; }
  .class-card p { display: none; } /* hide long descriptions on mobile */

  /* Strip — 4 per row */
  .strip-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 10px; }
  .strip-item { padding: 16px 8px; }
  .strip-icon img { width: 36px !important; }
  .strip-item span { font-size: .72rem; }

  /* Features grid */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-card { padding: 20px; }

  /* Philosophy */
  .philosophy-grid { grid-template-columns: 1fr; gap: 2px; }
  .phil-num { font-size: 3.5rem; }

  /* Sections */
  section { padding: 56px 0; }
  .section-title { font-size: clamp(1.5rem, 4vw, 2rem); }
  .section-subtitle { font-size: .92rem; margin-bottom: 32px; }

  /* About */
  .about-img-placeholder { height: 280px; }
  .about-stat-chip { position: static; margin: 8px auto; display: block; width: fit-content; }
  .methodology-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer { padding: 52px 0 24px; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-info-card { padding: 28px 20px; }

  /* CTA banner */
  .cta-banner { padding: 56px 0; }
  .cta-btns { flex-direction: column; align-items: center; gap: 12px; }

  /* Formula ticker */
  .formula-item { font-size: .78rem; }
  .formulas-ticker { gap: 18px; }

  /* Demo banner */
  .demo-banner-section { padding: 28px 20px; }
}

/* ── Mobile (320px–480px) ── */
@media (max-width: 480px) {
  /* Container padding */
  .container { padding: 0 16px; }

  /* Nav */
  .nav-logo-text strong { font-size: .8rem; }
  .nav-logo-text span { display: none; }
  .nav-inner { height: 60px; }
  .mobile-menu { top: 60px; }

  /* Hero */
  .hero { padding-top: 60px; }
  .hero-grid { padding: 32px 0 24px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-badge { font-size: .7rem; padding: 5px 12px; }

  /* Buttons stack vertically on very small phones */
  .hero-btns-inner { flex-direction: column; align-items: center; }
  .btn-lg { padding: 12px 24px; font-size: .88rem; width: 100%; justify-content: center; max-width: 300px; }

  /* Stats */
  .hero-stats-inner { gap: 12px; }
  .hero-stat strong { font-size: 1.1rem; }

  /* Classes — 1 per row on small phones */
  .classes-grid { grid-template-columns: 1fr; gap: 12px; }
  .class-card { padding: 20px; }
  .class-card p { display: block; font-size: .8rem; }

  /* Strip — 2 per row */
  .strip-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Philosophy */
  .philosophy-card { padding: 28px 20px; }

  /* Footer — single column */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }

  /* Sections */
  section { padding: 44px 0; }

  /* MVV cards */
  .mvv-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Mentor card */
  .mentor-card { padding: 28px 20px; }

  /* Coming soon */
  .coming-soon-wrapper { padding: 48px 16px; }

  /* Formula ticker smaller */
  .formula-item { font-size: .7rem; }
  .formulas-ticker { gap: 14px; animation-duration: 18s; }

  /* Contact */
  .contact-info-card { padding: 24px 16px; }

  /* Page hero */
  .page-hero { padding: 100px 0 48px; }
  .page-hero h1 { font-size: 1.8rem; }

  /* Hide math bg symbols on mobile for performance */
  .math-symbol { display: none; }
}

/* ── Very Small (below 360px) ── */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.5rem; }
  .btn-lg { font-size: .82rem; padding: 11px 18px; }
  .section-title { font-size: 1.4rem; }
  .strip-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .classes-grid { grid-template-columns: 1fr; }
}

/* ── Hide old hero-btns/stats classes (replaced by inline divs) ── */
.hero-btns, .hero-stats { display: none !important; }

/* ── Formulas Ticker ── */
.formulas-ticker {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
}
.formulas-ticker:hover { animation-play-state: paused; }
.formula-item {
  font-family: 'Merriweather', serif;
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  flex-shrink: 0;
}
.formula-sep {
  color: rgba(255,255,255,.2);
  font-size: .6rem;
  flex-shrink: 0;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Strip icon image fix ── */
.strip-icon img { display: block; margin: 0 auto 10px; }
.strip-icon { font-size: unset; }
.btn-lg { padding: 13px 22px; font-size: .92rem; }

/* ============================================
    MOBILE CSS
   ============================================ */

/* ── Large Desktop ── */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero h1 { font-size: 3.8rem; }
  .classes-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
}

/* ── Desktop ── */
@media (min-width: 1025px) and (max-width: 1399px) {
  .classes-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .strip-grid { grid-template-columns: repeat(8, 1fr) !important; gap: 10px; }
}

/* ── Tablet (768px–1024px) ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 40px 0; gap: 24px; }
  .hero-visual { display: flex !important; justify-content: center; order: 2; }
  .hero-text { order: 1; }
  .hero-desc { margin: 0 auto 24px; max-width: 100%; }
  .classes-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .strip-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {

  /* Navbar — two rows on mobile */
  .nav-inner { height: auto; padding: 8px 12px; flex-wrap: wrap; gap: 4px; }
  .nav-logo { flex: 1; }
  .nav-logo-icon { width: 32px; height: 32px; }
  .nav-logo-icon img { width: 32px !important; height: 32px !important; }
  .nav-logo-text strong { font-size: .78rem; }
  .nav-logo-text span { display: none; }
  .nav-cta { display: flex !important; }
  .nav-cta .btn { padding: 8px 14px; font-size: .78rem; }
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }

  /* Nav links on second row */
  .nav-links {
    display: flex !important;
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--grey-200);
    padding: 6px 0;
    gap: 0;
  }
  .nav-links a { padding: 6px 12px; font-size: .78rem; font-weight: 700; }

  /* Hero */
  .hero { padding-top: 80px !important; min-height: auto !important; }
  .hero-grid { grid-template-columns: 1fr !important; text-align: center !important; padding: 28px 0 !important; gap: 20px !important; }
  .hero-text { order: 1; }
  .hero-visual { display: flex !important; justify-content: center !important; order: 2; }
  .hero-visual > div { margin-top: 0 !important; }
  .hero-visual > div > div:first-child { width: 180px !important; height: 180px !important; }
  .hero-visual div[style*="width:260px;background"] { width: 180px !important; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem) !important; }
  .hero-desc { font-size: .9rem !important; margin: 0 auto 20px !important; max-width: 100% !important; }
  .hero-badge { font-size: .72rem; padding: 5px 14px; }
  .math-symbol { display: none !important; }

  /* Buttons */
  .btn-lg { padding: 11px 18px !important; font-size: .82rem !important; }

  /* Classes */
  .classes-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .class-card { padding: 18px 12px !important; }
  .class-number { font-size: 2rem !important; }
  .class-card p { display: none; }

  /* Strip */
  .strip-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
  .strip-item { padding: 14px 8px !important; }
  .strip-item span { font-size: .7rem !important; }

  /* Features */
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .feature-card { padding: 18px 14px !important; }

  /* Philosophy */
  .philosophy-grid { grid-template-columns: 1fr !important; }
  .philosophy-card { padding: 28px 20px !important; }
  .phil-num { font-size: 3rem !important; }

  /* Sections */
  section { padding: 48px 0 !important; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  .section-subtitle { font-size: .88rem !important; margin-bottom: 28px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .footer { padding: 48px 0 24px !important; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* About */
  .about-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .about-img-placeholder { height: 240px; }
  .about-stat-chip { position: static !important; display: block; width: fit-content; margin: 8px auto; }
  .mvv-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .methodology-grid { grid-template-columns: 1fr !important; }
  .mentor-card { padding: 28px 18px !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .contact-info-card { padding: 24px 18px !important; }
  .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }

  /* CTA */
  .cta-banner { padding: 48px 0 !important; }
  .cta-btns { flex-direction: column !important; align-items: center !important; gap: 12px !important; }

  /* Page hero */
  .page-hero { padding: 100px 0 44px !important; }
  .page-hero h1 { font-size: 1.7rem !important; }

  /* Ticker */
  .formula-item { font-size: .75rem !important; }
  .formulas-ticker { gap: 16px !important; animation-duration: 20s !important; }

  /* Quiz */
  #options-grid { grid-template-columns: 1fr !important; }
}

/* ── Small phones (max 480px) ── */
@media (max-width: 480px) {
  .container { padding: 0 14px !important; }
  .hero h1 { font-size: 1.6rem !important; }
  .nav-links a { padding: 5px 8px; font-size: .72rem; }
  .classes-grid { grid-template-columns: 1fr !important; }
  .strip-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .features-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .btn-lg { padding: 12px 18px !important; font-size: .82rem !important; width: 100% !important; max-width: 300px !important; justify-content: center !important; }
  .page-hero h1 { font-size: 1.5rem !important; }
}

/* ── Very small (max 360px) ── */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.45rem !important; }
  .nav-links a { font-size: .68rem; padding: 4px 6px; }
}

/* ── Hide old classes ── */
.hero-btns, .hero-stats { display: none !important; }

/* ── Formulas Ticker ── */
.formulas-ticker {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
}
.formulas-ticker:hover { animation-play-state: paused; }
.formula-item {
  font-family: 'Merriweather', serif;
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  flex-shrink: 0;
}
.formula-sep { color: rgba(255,255,255,.2); font-size: .6rem; flex-shrink: 0; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Strip icon fix ── */
.strip-icon img { display: block; margin: 0 auto 10px; }
.strip-icon { font-size: unset; }
