/* ================================================================
   MathLedX — Design System v3
   Light Theme · Trusted Educator · Electric Blue Accents
   ================================================================ */

/* ─── Custom Properties ─── */
:root {
  --bg:              #ffffff;
  --bg-alt:          #f8f7f4;
  --bg-card:         #ffffff;
  --surface:         #ffffff;
  --surface-alt:     #f8f7f4;
  --surface-raised:  #f0eeea;
  --border:          #e5e3de;
  --border-mid:      #d8d5ce;
  --border-bright:   #c9c5bc;

  --navy:            #0f1f3d;
  --blue:            #1a56db;
  --blue-hover:      #1347c4;
  --blue-dim:        rgba(26,86,219,0.08);
  --blue-light:      #eef2ff;
  --blue-glow:       rgba(26,86,219,0.18);

  --text:            #1a1a2e;
  --text-muted:      #6b7280;
  --text-subtle:     #9ca3af;
  --white:           #ffffff;

  --radius-sm:       6px;
  --radius:          10px;
  --radius-md:       14px;
  --radius-lg:       18px;
  --radius-xl:       24px;

  --nav-h:           68px;
  --max-w:           1200px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* ─── Grain texture (disabled on light theme) ─── */
.grain { position: relative; }

/* ─── Fade-up animation ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ================================================================
   NAVIGATION — dark navy anchor
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15,31,61,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  background: rgba(15,31,61,0.98);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
@media (min-width: 1024px) { .nav-inner { padding: 0 40px; } }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.82; }
.logo:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--radius-sm); }
.logo-icon {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px var(--blue-glow);
}
.logo-wordmark {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
}

/* Center nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 820px) { .nav-links { display: flex; } }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #ffffff; }
.nav-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.badge-beta {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fb923c;
  background: rgba(251,146,60,0.12);
  border: 1px solid rgba(251,146,60,0.25);
  padding: 1px 6px;
  border-radius: 20px;
}

/* Nav CTA */
.nav-cta { display: none; }
@media (min-width: 820px) { .nav-cta { display: inline-flex; } }

/* Mobile toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); }
@media (min-width: 820px) { .menu-toggle { display: none; } }

.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer — navy */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(15,31,61,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
  z-index: 99;
}
.mobile-menu.open { max-height: 520px; opacity: 1; }
.mobile-menu-inner {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active { color: #ffffff; background: rgba(255,255,255,0.08); }
.mobile-cta { margin-top: 12px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: 1px solid rgba(26,86,219,0.4);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(26,86,219,0.28), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: background 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,86,219,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-outline:hover {
  color: var(--navy);
  background: var(--bg-alt);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.btn-outline:active { transform: translateY(0); }
.btn-outline:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* btn-outline inside dark sections (CTA, footer) */
.cta-section .btn-outline {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
  background: transparent;
}
.cta-section .btn-outline:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-sm  { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg  { padding: 15px 34px; font-size: 1.0625rem; }
.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   HERO — SPLIT LAYOUT (homepage)
   ================================================================ */
.hero-split {
  background: var(--bg);
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  border-bottom: 1px solid var(--border);
}
.hero-split-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-split-inner {
    grid-template-columns: 3fr 2fr;
    gap: 64px;
  }
}

/* Photo first on mobile, right side on desktop */
.hero-split-photo {
  order: -1;
}
@media (min-width: 768px) {
  .hero-split-photo { order: 0; }
}

.hero-split-photo img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 12px 40px rgba(0,0,0,0.10);
  display: block;
}
@media (min-width: 768px) {
  .hero-split-photo img {
    max-width: 100%;
    margin: 0;
  }
}

.hero-location-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 96px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header.left { text-align: left; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--blue);
  opacity: 0.45;
}
.section-label.left::before { display: none; }

.section-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   GRID
   ================================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(26,86,219,0.22);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--blue-light);
  border: 1px solid rgba(26,86,219,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.card-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 10px;
}
.card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}
.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
  margin-top: auto;
}
.card-arrow:hover { color: var(--blue-hover); gap: 10px; }

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  overflow: hidden;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 3px solid var(--navy);
}
.page-hero-glow { display: none; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--navy);
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

/* ================================================================
   METHOD ITEMS
   ================================================================ */
.method-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) { .method-list { grid-template-columns: repeat(3, 1fr); } }

.method-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.method-item:hover { border-color: rgba(26,86,219,0.22); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.method-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  border: 1px solid rgba(26,86,219,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.method-title {
  font-size: 0.9375rem; font-weight: 600;
  color: var(--navy); margin-bottom: 4px;
}
.method-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ================================================================
   STEPS (process)
   ================================================================ */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover { transform: translateY(-5px); border-color: rgba(26,86,219,0.28); box-shadow: 0 8px 28px rgba(0,0,0,0.09); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 4px 20px var(--blue-glow);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem; font-weight: 800; color: #fff;
}
.step-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.125rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px; letter-spacing: -0.01em;
}
.step-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

/* ================================================================
   FORM
   ================================================================ */
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
@media (min-width: 560px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-group { margin-bottom: 20px; }

.form-label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--text); margin-bottom: 8px;
}
.form-label .req { color: var(--text-subtle); }

.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: var(--text-subtle); }
.form-input:focus { border-color: rgba(26,86,219,0.5); box-shadow: 0 0 0 3px rgba(26,86,219,0.08); }
select.form-input { -webkit-appearance: none; appearance: none; cursor: pointer; }
select.form-input option { background: var(--bg); color: var(--text); }
textarea.form-input { resize: vertical; min-height: 120px; }

.form-error {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  padding: 12px 16px; font-size: 0.875rem; color: #dc2626;
  margin-bottom: 20px; display: none;
}

/* ================================================================
   CTA SECTION — dark navy anchor
   ================================================================ */
.cta-section {
  position: relative; overflow: hidden;
  background: var(--navy);
}
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 120% at 50% 50%, rgba(26,86,219,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 600px; margin: 0 auto;
}
.cta-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  color: #ffffff; margin-bottom: 16px;
}
.cta-body { font-size: 1rem; color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 36px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ================================================================
   FOOTER — dark navy
   ================================================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

.footer-brand p {
  font-size: 0.875rem; color: rgba(255,255,255,0.52);
  line-height: 1.75; margin-top: 16px; max-width: 280px;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 4px;
}

.footer-col-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem; color: rgba(255,255,255,0.52);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: rgba(255,255,255,0.52);
}
.footer-contact-item svg path { stroke: rgba(255,255,255,0.4); }
.footer-contact-item a { text-decoration: none; transition: color 0.2s ease; }
.footer-contact-item a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  display: flex; flex-direction: column;
  gap: 12px; align-items: center; text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.38); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 0.8125rem; color: rgba(255,255,255,0.38);
  text-decoration: none; transition: color 0.2s ease;
}
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ================================================================
   BLOG
   ================================================================ */
.blog-card-featured {
  flex-direction: column;
}
@media (min-width: 768px) {
  .blog-card-featured { flex-direction: row; }
  .blog-card-featured .blog-thumb {
    aspect-ratio: unset;
    min-height: 280px;
    flex: 0 0 420px;
  }
  .blog-card-featured .blog-content {
    padding: 40px;
  }
  .blog-card-featured .blog-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 14px;
  }
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26,86,219,0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
.blog-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #ebe9e3 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-thumb-math {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem; font-weight: 800;
  color: rgba(15,31,61,0.10);
  user-select: none;
}
.blog-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(248,247,244,0.5));
}
.blog-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-tag {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.blog-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.0625rem; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em;
  line-height: 1.4; margin-bottom: 10px;
}
.blog-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.blog-meta { font-size: 0.8125rem; color: var(--text-subtle); display: flex; align-items: center; gap: 12px; }
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-subtle); }

/* ================================================================
   MATH MONSTERS / BETA
   ================================================================ */
.beta-banner {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #fb923c;
  background: rgba(251,146,60,0.1);
  border: 1px solid rgba(251,146,60,0.25);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 24px;
}
.beta-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fb923c;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Monster preview card */
.monster-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease;
}
.monster-card:hover { transform: translateY(-5px); border-color: rgba(251,146,60,0.25); }
.monster-emoji { font-size: 3rem; margin-bottom: 16px; display: block; line-height: 1; }
.monster-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.125rem; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em; margin-bottom: 8px;
}
.monster-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ================================================================
   SUCCESS OVERLAY
   ================================================================ */
#success-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(15,31,61,0.92); backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 32px;
}
#success-overlay.show { display: flex; }
.success-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 2rem; font-weight: 800; color: #ffffff;
  letter-spacing: -0.03em; margin-bottom: 12px; margin-top: 24px;
}
.success-body { font-size: 1rem; color: rgba(255,255,255,0.72); line-height: 1.75; max-width: 420px; margin-bottom: 32px; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(26,86,219,0.12); border: 2px solid rgba(26,86,219,0.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 48px var(--blue-glow);
}

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--text-muted); }
.max-w-2xl   { max-width: 640px; margin-left: auto; margin-right: auto; }
.max-w-3xl   { max-width: 800px; margin-left: auto; margin-right: auto; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.gap-3 { gap: 12px; }

/* Inline flex helpers */
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: rgba(15,31,61,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15,31,61,0.28); }

/* ================================================================
   BRAND ASSETS — logo image, profile
   ================================================================ */

/* ── Logo image (navbar) ──────────────────────────────────────── */
.logo-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.logo-pill:hover { opacity: 0.8; transform: translateY(-1px); }
.logo-pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.logo-pill img { height: 44px; width: auto; display: block; }

/* ── Multi-paragraph profile bio spacing ─────────────────────── */
.profile-bio + .profile-bio { margin-top: 12px; }

/* ── Profile section ──────────────────────────────────────────── */
.profile-section {
  padding: 88px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.profile-card {
  max-width: 800px;
  margin: 0 auto;
}

.profile-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.profile-bio {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 620px;
}
.profile-accent-line {
  width: 40px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 20px;
}
.profile-credentials {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-subtle);
  font-style: italic;
  line-height: 1.7;
}

/* ── The MathLedX Approach ────────────────────────────────────── */
.approach-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 0;
}

/* ── Trust / Problem Statement ───────────────────────────────── */
.trust-section {
  padding: 88px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.trust-text {
  font-size: clamp(1.125rem, 2.4vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.trust-text-emphasis {
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.7vw, 1.5rem);
  margin-top: 8px;
  margin-bottom: 0;
}

/* ── Who This Is For ─────────────────────────────────────────── */
.who-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.who-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.55;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.who-item:hover {
  border-color: rgba(26,86,219,0.22);
  background: var(--blue-light);
}
.who-item::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── Wave divider (hidden on light theme) ─────────────────────── */
.wave-divider { display: none; }

/* ── Curriculum note ──────────────────────────────────────────── */
.curriculum-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
/* ── Blog post header image ── */
.post-image-wrap {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #0f1f3d;
}
.post-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.92;
}
@media (max-width: 768px) {
  .post-image,
  .post-image-wrap {
    height: 260px;
  }
}
