/* ==========================================================================
   MMM Study — Public Marketing Homepage Stylesheet
   Lively, Modern, Student-Focused EdTech Styling
   ========================================================================== */

:root {
  --home-blue: #2563EB;
  --home-blue-hover: #1D4ED8;
  --home-blue-dark: #1E3A8A;
  --home-blue-soft: #EFF6FF;
  --home-blue-border: #BFDBFE;
  
  --home-navy: #0F172A;
  --home-navy-deep: #0B1E36;
  --home-bg: #F8FAFC;
  --home-card-bg: #FFFFFF;
  
  --home-cyan: #06B6D4;
  --home-cyan-soft: #E0F2FE;
  --home-purple: #7C3AED;
  --home-purple-soft: #F5F3FF;
  --home-amber: #D97706;
  --home-amber-soft: #FEF3C7;
  --home-success: #16A34A;
  --home-success-soft: #DCFCE7;
  --home-crimson: #DC2626;
  --home-crimson-soft: #FEE2E2;

  --home-text-primary: #0F172A;
  --home-text-secondary: #475569;
  --home-text-muted: #64748B;
  --home-border: #E2E8F0;
  --home-border-subtle: #F1F5F9;

  --home-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --home-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.07);
  --home-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09);
  --home-shadow-blue: 0 10px 25px -4px rgba(37, 99, 235, 0.35);
  --home-shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.08);

  --home-max-width: 1160px;
}

/* ================= RESET & TYPOGRAPHY ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', 'Noto Sans Myanmar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--home-text-primary);
  background-color: var(--home-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--home-bg);
  color: var(--home-text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Radial Glows */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 900px;
  background: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--home-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.myanmar-text, [lang="my"] {
  font-family: 'Noto Sans Myanmar', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: var(--home-max-width);
  margin-inline: auto;
  padding-inline: 20px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 32px;
  }
}

/* Highlight text in heading */
.highlight-text {
  display: inline-block;
  white-space: nowrap;
  color: #1D4ED8;
  background: linear-gradient(120deg, rgba(253, 224, 71, 0.45) 0%, rgba(253, 224, 71, 0.45) 100%);
  background-repeat: no-repeat;
  background-size: 100% 36%;
  background-position: 0 90%;
  padding-inline: 4px;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ================= 1. NAVIGATION BAR ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  height: 70px;
  width: 100%;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--home-navy);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-brand:hover {
  transform: scale(1.02);
}

.nav-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--home-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nav-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--home-text-muted);
  line-height: 1.2;
}

/* Nav links & actions */
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--home-text-secondary);
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 2px;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--home-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--home-blue);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-nav-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-text-primary);
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-login:hover {
  color: var(--home-blue);
  background: var(--home-blue-soft);
}

.btn-nav-signup {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  padding: 9px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-signup:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-nav-signup:active {
  transform: translateY(0);
}

.nav-user-pill {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--home-blue-soft);
  color: var(--home-blue);
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--home-blue-border);
  box-shadow: var(--home-shadow-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-user-pill:hover {
  background: #DBEAFE;
  transform: translateY(-1px);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

@media (max-width: 859px) {
  .site-header {
    height: 64px;
  }

  .nav-brand-title {
    font-size: 16px;
  }

  .nav-brand-sub {
    font-size: 10px;
  }

  .nav-brand-logo {
    width: 36px;
    height: 36px;
  }

  .btn-nav-login {
    font-size: 13px;
    padding: 7px 12px;
  }

  .btn-nav-signup {
    font-size: 13px;
    padding: 8px 15px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 60px;
  }

  .site-header .container {
    padding-inline: 14px;
  }

  .site-nav {
    gap: 8px;
  }

  .nav-brand {
    gap: 8px;
  }

  .nav-brand-title {
    font-size: 15.5px;
    white-space: nowrap;
  }

  .nav-brand-sub {
    display: none !important;
  }

  .nav-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .nav-auth-group {
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .btn-nav-login {
    font-size: 12.5px;
    padding: 7px 11px;
    min-height: 38px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .btn-nav-signup {
    font-size: 12.5px;
    padding: 7px 13px;
    min-height: 38px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-user-pill {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .site-header .container {
    padding-inline: 10px;
  }

  .nav-brand {
    gap: 6px;
  }

  .nav-brand-logo {
    width: 28px;
    height: 28px;
  }

  .nav-brand-title {
    font-size: 14px;
  }

  .nav-auth-group {
    gap: 4px;
  }

  .btn-nav-login {
    padding: 6px 8px;
    font-size: 11.5px;
    min-height: 36px;
  }

  .btn-nav-signup {
    padding: 6px 9px;
    font-size: 11.5px;
    min-height: 36px;
  }
}

@media (max-width: 330px) {
  .site-header .container {
    padding-inline: 7px;
  }

  .nav-brand-logo {
    width: 26px;
    height: 26px;
  }

  .nav-brand-title {
    font-size: 13.5px;
  }

  .btn-nav-login {
    padding: 5px 6px;
    font-size: 11px;
    min-height: 32px;
  }

  .btn-nav-signup {
    padding: 5px 7px;
    font-size: 10.5px;
    min-height: 32px;
  }
}

/* ================= 2. HERO SECTION ================= */
.hero-section {
  padding: 44px 0 64px;
  position: relative;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 72px 0 96px;
  }
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 992px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-blue);
  background: #FFFFFF;
  border: 1px solid var(--home-blue-border);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
  box-shadow: var(--home-shadow-sm);
  max-width: 100%;
}

.hero-eyebrow .sparkle {
  color: #F59E0B;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.hero-heading {
  font-size: clamp(23px, 4.6vw, 42px);
  font-weight: 800;
  line-height: 1.62;
  color: var(--home-navy);
  margin-bottom: 18px;
  letter-spacing: normal;
}

.hero-description {
  font-size: clamp(14.5px, 2vw, 17px);
  line-height: 1.85;
  color: var(--home-text-secondary);
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  font-size: 16.5px;
  font-weight: 700;
  padding: 15px 36px;
  min-height: 52px;
  border-radius: 14px;
  box-shadow: var(--home-shadow-blue);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary-cta .cta-arrow {
  transition: transform 0.2s ease;
}

.btn-primary-cta:hover .cta-arrow {
  transform: translateX(4px);
}

@media (min-width: 480px) {
  .btn-primary-cta {
    width: auto;
  }
}

.btn-primary-cta:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(37, 99, 235, 0.45);
}

.btn-primary-cta:active {
  transform: translateY(0);
}

.hero-cta-subtext {
  font-size: 13px;
  color: var(--home-text-muted);
  margin-top: 12px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.subtext-line {
  display: inline;
}

/* Feature Trust Badges underneath hero CTA */
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--home-text-secondary);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--home-border);
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: var(--home-shadow-sm);
}

@media (max-width: 520px) {
  .hero-eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    line-height: 1.4;
    white-space: normal;
    margin-bottom: 16px;
  }

  .hero-trust-badges {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-badge-chip {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ================= HERO SHOWCASE COMPOSITION (RIGHT) ================= */
.hero-visual-col {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.hero-showcase-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 12px;
}

/* Main device phone mockup */
.hero-device-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  background: #FFFFFF;
  border-radius: 30px;
  padding: 10px;
  border: 1.5px solid var(--home-border);
  box-shadow: 
    0 20px 40px -10px rgba(15, 23, 42, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.hero-device-wrapper:hover {
  transform: translateY(-4px);
}

.hero-device-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hero-device-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-preview-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: var(--home-shadow-md);
  pointer-events: none;
}

/* Floating Elements around hero phone */
.floating-element {
  position: absolute;
  z-index: 3;
  background: #FFFFFF;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--home-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

/* Top-Left Floating Quiz Card */
.floating-quiz-card {
  top: 10px;
  left: -20px;
  animation: floatSlow 5.5s ease-in-out infinite;
}

.floating-quiz-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #EFF6FF;
  color: var(--home-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.floating-quiz-info {
  display: flex;
  flex-direction: column;
}

.floating-quiz-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--home-navy);
}

.floating-quiz-score {
  font-size: 11px;
  font-weight: 600;
  color: #16A34A;
}

/* Bottom-Right Floating Streak Card */
.floating-streak-card {
  bottom: 30px;
  right: -24px;
  animation: floatReverse 6.5s ease-in-out infinite;
}

.floating-streak-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.floating-streak-info {
  display: flex;
  flex-direction: column;
}

.floating-streak-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--home-navy);
}

.floating-streak-desc {
  font-size: 11px;
  font-weight: 600;
  color: var(--home-blue);
}

/* Top-Right Floating Subject Chip */
.floating-subject-chip {
  top: 55px;
  right: -10px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #7C3AED;
  background: #F5F3FF;
  border-color: #DDD6FE;
  animation: floatSlow 6s ease-in-out 1s infinite;
}

/* Tablet & Mobile Hero Showcase Responsive Rules */
@media (max-width: 767px) {
  .hero-section {
    padding: 24px 0 36px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-showcase-container {
    max-width: 280px;
    padding: 8px 0 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  /* Streamline mobile hero: hide decorative floating elements to keep device preview clean & prominent */
  .hero-visual-col .floating-element {
    display: none !important;
  }

  .hero-device-wrapper {
    max-width: min(220px, 66vw);
    border-radius: 22px;
    padding: 7px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  }

  .hero-device-screen {
    border-radius: 16px;
  }

  .hero-preview-badge {
    bottom: 10px;
    right: 10px;
    font-size: 9.5px;
    padding: 3px 8px;
  }
}

/* ================= 3. STUDY MATERIALS & QUESTION PRACTICE ================= */
.features-section {
  padding: 72px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 52px;
}

.section-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-blue);
  background: var(--home-blue-soft);
  border: 1px solid var(--home-blue-border);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(22px, 3.8vw, 34px);
  font-weight: 800;
  color: var(--home-navy);
  line-height: 1.58;
  margin-bottom: 14px;
  letter-spacing: normal;
}

.section-intro {
  font-size: clamp(14.5px, 1.8vw, 16.5px);
  color: var(--home-text-secondary);
  line-height: 1.75;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 880px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

.feature-panel {
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-lg);
}

/* Card 1: Study Materials (Warm Notebook Aesthetic) */
.feature-panel-study {
  background: linear-gradient(150deg, #FFFDF7 0%, #FFFFFF 55%, #F5F3FF 100%);
  border: 1.5px solid #FDE68A;
  box-shadow: 0 8px 24px -4px rgba(217, 119, 6, 0.08);
}

/* Card 2: Question Practice (Vivid Blue/Green Aesthetic) */
.feature-panel-practice {
  background: linear-gradient(150deg, #F0FDF4 0%, #FFFFFF 55%, #EFF6FF 100%);
  border: 1.5px solid #BFDBFE;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.08);
}

.feature-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.feature-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 8px;
}

.feature-panel-study .feature-card-label {
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
}

.feature-panel-practice .feature-card-label {
  color: #1D4ED8;
  background: #DBEAFE;
  border: 1px solid #BFDBFE;
}

.feature-live-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.feature-live-pill.upcoming {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.feature-live-pill.active {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.feature-card-title {
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 800;
  color: var(--home-navy);
  line-height: 1.55;
  margin-bottom: 12px;
  letter-spacing: normal;
}

.feature-card-desc {
  font-size: 14.5px;
  color: var(--home-text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.feature-card-visual {
  margin-top: auto;
  background: #FFFFFF;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--home-shadow-sm);
  aspect-ratio: 16 / 10.5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.feature-panel:hover .feature-card-visual {
  transform: scale(1.01);
}

.feature-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-status-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--home-text-secondary);
  font-weight: 500;
  line-height: 1.55;
}

/* ================= 4. LEARN FROM YOUR MISTAKES ================= */
.mistakes-section {
  padding: 72px 0;
  background: var(--home-bg);
  position: relative;
}

.mistakes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .mistakes-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

/* Explicit requirement: Hide mistakes review photos on mobile/tablet viewports (< 992px) */
@media (max-width: 991px) {
  .mistakes-visual-wrap {
    display: none !important;
  }

  .mistakes-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .mistakes-section {
    padding: 44px 0 !important;
  }
}

/* 3 Connected Step Progression */
.steps-journey {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.step-card {
  background: #FFFFFF;
  border: 1.5px solid var(--home-border);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--home-shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.step-card:hover {
  border-color: var(--home-blue-border);
  transform: translateX(4px);
  box-shadow: var(--home-shadow-md);
}

.step-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--home-shadow-sm);
}

.step-card:nth-child(1) .step-badge {
  background: var(--home-crimson-soft);
  color: var(--home-crimson);
  border: 1px solid #FECACA;
}

.step-card:nth-child(2) .step-badge {
  background: var(--home-amber-soft);
  color: var(--home-amber);
  border: 1px solid #FDE68A;
}

.step-card:nth-child(3) .step-badge {
  background: var(--home-success-soft);
  color: var(--home-success);
  border: 1px solid #BBF7D0;
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--home-navy);
  line-height: 1.5;
  margin-bottom: 4px;
  letter-spacing: normal;
}

.step-desc {
  font-size: 14px;
  color: var(--home-text-secondary);
  line-height: 1.65;
}

.mistakes-visual-wrap {
  background: #FFFFFF;
  border: 1.5px solid var(--home-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--home-shadow-md);
  padding: 12px;
  transition: transform 0.25s ease;
}

.mistakes-visual-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-lg);
}

.mistakes-visual-screen {
  border-radius: 16px;
  overflow: hidden;
  background: #F8FAFC;
  aspect-ratio: 16 / 10.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mistakes-visual-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= 5. ABOUT MMM STUDY & TEAM ================= */
.about-section {
  padding: 72px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  scroll-margin-top: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 800;
  color: var(--home-navy);
  line-height: 1.58;
  margin-bottom: 20px;
  letter-spacing: normal;
}

.about-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--home-text-secondary);
  margin-bottom: 24px;
}

.about-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--home-navy);
  background: var(--home-bg);
  border: 1px solid var(--home-border);
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: var(--home-shadow-sm);
}

.team-visual-wrap {
  background: var(--home-bg);
  border: 1.5px solid var(--home-border);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--home-shadow-md);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.team-visual-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-lg);
}

.team-visual-screen {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-visual-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= 6. FINAL CALL TO ACTION ================= */
.final-cta-section {
  padding: 72px 0 80px;
  background: var(--home-bg);
}

.final-cta-card {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #1D4ED8 100%);
  border-radius: 28px;
  padding: 56px 24px;
  text-align: center;
  box-shadow: 
    0 20px 40px -10px rgba(37, 99, 235, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .final-cta-card {
    padding: 68px 48px;
  }
}

/* Ambient glow orb behind text */
.final-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.58;
  margin-bottom: 14px;
  letter-spacing: normal;
  position: relative;
  z-index: 1;
}

.final-cta-desc {
  font-size: clamp(15px, 2vw, 17.5px);
  color: #DBEAFE;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.final-cta-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.btn-final-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  color: #1E3A8A !important;
  font-size: 16.5px;
  font-weight: 800;
  padding: 16px 38px;
  min-height: 52px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  width: 100%;
}

@media (min-width: 480px) {
  .btn-final-cta {
    width: auto;
  }
}

.btn-final-cta:hover {
  background: #F8FAFC;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.btn-final-cta:active {
  transform: translateY(0);
}

.final-trust-chip {
  font-size: 13px;
  color: #BFDBFE;
  font-weight: 500;
}

/* ================= 7. FOOTER ================= */
.site-footer {
  background: var(--home-navy-deep);
  border-top: 1px solid #1E293B;
  padding: 56px 0 36px;
  margin-top: auto;
  color: #CBD5E1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 44px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}

.footer-tagline {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: #94A3B8;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #60A5FA;
}

.footer-contact-item {
  font-size: 13.5px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  line-height: 1.5;
}

.footer-contact-item a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.15s ease;
  word-break: break-word;
}

.footer-contact-item a:hover {
  color: #60A5FA;
  text-decoration: underline;
}

.footer-placeholder-tag {
  display: inline-block;
  font-size: 11px;
  background: #1E293B;
  color: #94A3B8;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #334155;
  max-width: 100%;
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: 13px;
  color: #64748B;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: #64748B;
}

.footer-legal-item {
  color: #64748B;
  cursor: default;
}

/* ================= KEYFRAME ANIMATIONS ================= */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@keyframes floatSlowMobile {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -6px);
  }
}

@keyframes floatReverseMobile {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* ================= MOBILE VIEWPORTS ENHANCEMENTS (< 640px & < 380px) ================= */
@media (max-width: 640px) {
  .features-section,
  .about-section,
  .final-cta-section {
    padding: 44px 0;
  }

  .mistakes-section {
    padding: 40px 0 !important;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .feature-panel {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .feature-card-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .steps-journey {
    gap: 12px;
  }

  .step-card {
    padding: 16px 16px;
    gap: 14px;
    border-radius: 16px;
  }

  .step-badge {
    width: 38px;
    height: 38px;
    font-size: 15px;
    border-radius: 12px;
  }

  .step-title {
    font-size: 15.5px;
  }

  .step-desc {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .team-visual-wrap {
    padding: 8px;
    border-radius: 18px;
  }

  .team-visual-screen {
    border-radius: 14px;
  }

  .about-grid {
    gap: 28px;
  }

  .about-body {
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .about-pills-row {
    gap: 8px;
  }

  .about-pill {
    font-size: 11.5px;
    padding: 5px 12px;
  }

  .final-cta-card {
    padding: 38px 18px;
    border-radius: 20px;
  }

  .final-cta-title {
    font-size: clamp(20px, 5.2vw, 24px);
    line-height: 1.52;
  }

  .cta-title-line {
    display: inline-block;
  }

  .subtext-line {
    display: inline-block;
  }

  .final-cta-desc {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 22px;
  }

  .btn-final-cta {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
    font-size: 15px;
  }

  .final-trust-chip {
    font-size: 11.5px;
    line-height: 1.5;
    text-align: center;
  }

  .site-footer {
    padding: 40px 0 28px;
  }

  .footer-grid {
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-bottom {
    gap: 12px;
    padding-top: 20px;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .container {
    padding-inline: 14px;
  }

  .hero-eyebrow {
    font-size: 9.5px;
    padding: 4px 8px;
  }

  .btn-primary-cta {
    font-size: 15px;
    padding: 13px 18px;
  }

  .hero-badge-chip {
    font-size: 10.5px;
    padding: 3px 8px;
  }

  .hero-device-wrapper {
    max-width: 216px;
  }
}

/* Accessible focus outlines */
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--home-blue);
  outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }

  @media (max-width: 767px) {
    .floating-subject-chip,
    .floating-quiz-card,
    .floating-streak-card {
      transform: translateX(-50%) !important;
    }
  }
}
