/* ============================================================
   MENTOR MD — HOMEPAGE REBUILD LAYER
   Loaded AFTER style.css. Scoped to body.home so it never
   touches the other pages. Reuses the brand tokens already
   defined in style.css :root (--star-red, --bg-faceted, etc.)
   and only restyles the homepage's own frame — every
   functional class/ID that script.js relies on is preserved.
   Signature motif: the shooting-star trajectory.
   ============================================================ */

body.home {
  /* Body voice in Outfit; display stays Hanken Grotesk for contrast */
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  overflow-x: hidden;
}

body.home .container { max-width: 1180px; }

/* The decorative blue blobs read as muddy noise over the new
   crisp sections — retire them on the homepage. */
body.home .bg-blobs { display: none; }

/* ---- Shared display / eyebrow helpers ---- */
body.home .section { padding: 6rem 0; }

body.home .section-header { max-width: 760px; margin: 0 auto 3.5rem; }

body.home .section-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
}
body.home .section-title .text-script,
body.home .section-title .text-gradient { text-transform: none !important; }
body.home .section-title .text-script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--star-red);
  -webkit-text-fill-color: var(--star-red);
  /* sit the script on the caps baseline (Kaushan rides high & large) */
  display: inline-block;
  font-size: 1.02em;
  line-height: 1;
  vertical-align: baseline;
  position: relative;
  top: 0.01em;
}
body.home .section-subtitle {
  color: var(--slate-500);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-top: 1rem;
}
body.home .mmd-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--star-red);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1rem;
}
body.home .mmd-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--star-red);
  display: inline-block;
}

/* ---- Section background rhythm ---- */
body.home .sec-paper { background: var(--paper) !important; }
body.home .sec-white { background: var(--white) !important; }
body.home .sec-muted { background: var(--slate-100) !important; }

/* ============================================================
   NAVBAR — clean white glass so the full-colour logo reads
   ============================================================ */
body.home .navbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(4, 4, 47, 0.07);
  box-shadow: none;
}
body.home .navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 26px rgba(4, 4, 47, 0.10);
  border-bottom-color: rgba(4, 4, 47, 0.06);
}
body.home .nav-logo img { height: 46px; }
body.home .nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
body.home .nav-link::after { background: var(--star-red); height: 2.5px; bottom: -6px; }
body.home .nav-menu .btn-primary {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
  box-shadow: 0 8px 20px rgba(249, 78, 103, 0.28);
}

/* ============================================================
   HERO — faceted electric blue + shooting-star trajectory
   ============================================================ */
body.home .hero {
  min-height: 100vh;
  background: var(--bg-faceted);
  padding-top: 96px;
  isolation: isolate;
}
/* Keep the existing twinkling star-field but calm it down */
body.home .hero::before { opacity: 0.5; }

/* The signature: a star streaking across the hero on a long
   light-wake trajectory. Pure transform/opacity animation. */
body.home .hero-streak {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  max-width: 620px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(16deg);
  animation: shootStar 8s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(249, 78, 103, 0.32));
}
/* The star flies in from the upper-left, crosses the centre of the
   hero, and streaks off to the right — then pauses and repeats. */
@keyframes shootStar {
  0%   { opacity: 0;    transform: translate(-205%, -150%) rotate(16deg); }
  12%  { opacity: 0;    transform: translate(-176%, -126%) rotate(16deg); }
  24%  { opacity: 0.95; }
  46%  { opacity: 0.95; transform: translate(-50%, -50%) rotate(16deg); }
  66%  { opacity: 0;    transform: translate(128%, 38%) rotate(16deg); }
  100% { opacity: 0;    transform: translate(128%, 38%) rotate(16deg); }
}

/* comet-head halo gently breathes */
body.home .streak-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: haloPulse 4.5s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.92); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* sparks twinkle on staggered cycles */
body.home .hero-streak .spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 3.2s ease-in-out infinite;
}
body.home .hero-streak .spark-2 { animation-delay: 0.7s; }
body.home .hero-streak .spark-3 { animation-delay: 1.4s; }
body.home .hero-streak .spark-4 { animation-delay: 2.1s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  body.home .hero-streak,
  body.home .streak-halo,
  body.home .hero-streak .spark { animation: none !important; }
  /* show the star resting (centred) when motion is reduced */
  body.home .hero-streak { opacity: 0.9 !important; }
  body.home .hero::before { animation: none !important; }
}

/* Mobile-tuned flight: smaller star, flatter path, gentler fade.
   (Activated in the max-width:768px block below.) */
@keyframes shootStarMobile {
  0%   { opacity: 0;    transform: translate(-200%, -88%) rotate(12deg); }
  14%  { opacity: 0;    transform: translate(-174%, -76%) rotate(12deg); }
  28%  { opacity: 0.55; }
  48%  { opacity: 0.55; transform: translate(-50%, -50%) rotate(12deg); }
  68%  { opacity: 0;    transform: translate(118%, -14%) rotate(12deg); }
  100% { opacity: 0;    transform: translate(118%, -14%) rotate(12deg); }
}

body.home .hero .container { position: relative; z-index: 2; }
body.home .hero-content {
  max-width: 920px;
  padding: 2rem 1.5rem 4rem;
}

/* Eyebrow pill */
body.home .hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 0.6em 1.3em;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(6px);
}

/* Headline — big, tight, uppercase display */
body.home .hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-size: clamp(2.6rem, 8vw, 6rem);
  color: #fff;
  margin-bottom: 1.6rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}
/* the script flourish word — Kaushan, star red */
body.home .hero h1 .text-script {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92em;
  line-height: 1;
  color: var(--star-red);
  -webkit-text-fill-color: var(--star-red);
  /* lift the script onto the caps baseline */
  position: relative;
  top: -0.08em;
  filter: drop-shadow(0 6px 18px rgba(249, 78, 103, 0.5));
  /* kill the inherited shimmer/clip from .hero-pop */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  animation: none;
}

body.home .hero-subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

/* CTA buttons */
body.home .hero-buttons { gap: 1rem; flex-wrap: wrap; }
body.home .hero-buttons .btn {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  padding: 1.05rem 2rem;
}
body.home .hero-buttons .btn-primary {
  box-shadow: 0 14px 34px rgba(249, 78, 103, 0.4);
}
/* Subscribe Now — solid white CTA, the direct-to-purchase path */
body.home .hero-buttons .btn-hero-solid {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(4, 4, 47, 0.28);
}
body.home .hero-buttons .btn-hero-solid:hover {
  transform: translateY(-3px);
  color: var(--star-red);
  box-shadow: 0 18px 40px rgba(4, 4, 47, 0.34);
}
body.home .hero-buttons .btn-hero-solid:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Trust row */
body.home .hero-trust {
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
body.home .hero-trust .dot-sep { opacity: 0.4; }
body.home .hero-trust i { color: var(--star-red); margin-right: 5px; }

/* Stats — signature offset Star-Red numbers */
body.home .hero-stats {
  margin-top: 3.5rem;
  gap: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
body.home .hero-stats .stat-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem 1.35rem;
  backdrop-filter: blur(4px);
}
body.home .hero .stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 5px 6px 0 var(--star-red);
  display: block;
  margin-bottom: 0.7rem;
}
body.home .hero .stat-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

/* Success gallery — keep it (Dr. Atef's request) but veil it
   so it reads as ambient texture, not clutter. */
body.home .hero-success-gallery { opacity: 0.5; z-index: 0; }
body.home .hero-success-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 45%, var(--blue-electric) 0%, rgba(12,12,206,0.2) 55%, transparent 100%);
  pointer-events: none;
}

/* ============================================================
   "WHO IT'S FOR" — collage cards on paper
   ============================================================ */
body.home .feature-card {
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px rgba(4, 4, 47, 0.05);
  padding: 2.25rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
body.home .feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 78, 103, 0.4);
  box-shadow: var(--shadow-collage);
}
body.home .feature-card .feature-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--bg-faceted) !important;
  box-shadow: var(--shadow-collage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
body.home .feature-card .feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
body.home .feature-card .feature-description { color: var(--slate-500); line-height: 1.65; }
body.home .feature-card .feature-description li { margin-bottom: 0.5rem; }

/* ============================================================
   "HOW IT WORKS" — the shooting-star trajectory sequence
   The 6 steps are a true ordered process, so they are numbered
   and threaded along a dashed flight path.
   ============================================================ */
body.home #features .intro-statement {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(4, 4, 47, 0.06);
  border-left: 5px solid var(--star-red);
}
body.home #features .intro-statement p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

body.home .trajectory {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
body.home .step-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem 1.75rem;
  box-shadow: 0 2px 14px rgba(4, 4, 47, 0.05);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}
body.home .step-card::before {
  /* faint big numeral watermark, fully contained in the corner */
  content: attr(data-step);
  position: absolute;
  top: 0.6rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #eef0f7;
  z-index: 0;
}
body.home .step-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 0, 165, 0.35);
  box-shadow: var(--shadow-collage);
}
body.home .step-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
body.home .step-star {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--star-red);
  filter: drop-shadow(2px 3px 0 rgba(192, 31, 63, 0.25));
}
body.home .step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--usmle-blue);
}
body.home .step-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
body.home .step-card p {
  position: relative;
  z-index: 1;
  color: var(--slate-500);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

body.home .closing-line {
  text-align: center;
  margin-top: 4rem;
}
body.home .closing-line p {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto;
}
body.home .closing-line .accent { color: var(--star-red); }

/* ============================================================
   SERVICES / TESTIMONIALS / FAQ — section chrome only
   (component internals keep their existing style.css rules)
   ============================================================ */
body.home #services .section-title .text-gradient,
body.home #testimonials .section-title .text-gradient,
body.home #faq .section-title .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   FOOTER — ink slab with brand accents
   ============================================================ */
body.home .footer {
  background: var(--ink);
  position: relative;
  border-top: 4px solid var(--star-red);
}
body.home .footer .footer-section h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: #fff;
}
body.home .footer .footer-section p,
body.home .footer .footer-section a:not(.social-link) { color: rgba(255, 255, 255, 0.66); }
body.home .footer .footer-section a:not(.social-link):hover { color: var(--star-red); }
body.home .footer .social-link {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
}
body.home .footer .social-link:hover {
  background: var(--star-red);
  transform: translateY(-3px);
}
body.home .footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}
body.home .footer .nav-logo img { height: 42px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  body.home .trajectory { grid-template-columns: repeat(2, 1fr); }
  body.home .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
}
@media (max-width: 768px) {
  body.home .section { padding: 4rem 0; }
  body.home .hero { padding-top: 84px !important; padding-bottom: 3rem !important; min-height: auto !important; }
  body.home .hero-success-gallery { display: none !important; }

  /* Streak becomes a calm comet at the very top, clear of the
     headline — no longer slashing through the text. */
  body.home .hero-streak {
    width: 68%;
    max-width: none;
    left: 50%;
    right: auto;
    top: 27%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(12deg);
    animation: shootStarMobile 9.5s ease-in-out infinite;
  }

  body.home .hero-content { padding: 1.25rem 1.1rem 0 !important; }

  body.home .hero-eyebrow {
    font-size: 0.62rem !important;
    letter-spacing: 0.1em;
    padding: 0.5em 1em;
    margin-bottom: 1.25rem !important;
  }

  /* Bigger, two-line headline with the script flourish on its
     own line for real impact. */
  body.home .hero h1 {
    font-size: 2.6rem !important;
    line-height: 0.98 !important;
    margin-bottom: 1.25rem !important;
  }
  body.home .hero h1 .text-script {
    display: block !important;
    font-size: 1.32em !important;
    margin-top: 0.08em;
  }

  /* Subtitle: plain text — no card/window (override legacy glass) */
  body.home .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.62 !important;
    padding: 0 0.25rem !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    margin-bottom: 1.75rem !important;
  }

  body.home .hero-buttons { gap: 0.7rem !important; margin: 0 0 1.4rem !important; }
  body.home .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem !important;
    padding: 0.95rem 1.25rem !important;
  }

  /* Trust indicators as premium pill-chips */
  body.home .hero-trust {
    gap: 0.45rem;
    margin-top: 0;
  }
  body.home .hero-trust .dot-sep { display: none; }
  body.home .hero-trust span:not(.dot-sep) {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.42em 0.85em;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
  }

  body.home .hero-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
    margin-top: 2.5rem !important;
  }
  body.home .hero-stats .stat-item {
    opacity: 1 !important;
    padding: 1rem 0.85rem 0.9rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 14px !important;
    text-align: left !important;
  }
  /* keep the signature offset-red stat number on mobile too
     (override the legacy inline gradient-text rule) */
  body.home .hero .stat-number {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    text-shadow: 3px 4px 0 var(--star-red) !important;
    font-size: 1.95rem !important;
    margin-bottom: 0.45rem !important;
  }
  body.home .hero .stat-label { font-size: 0.6rem !important; letter-spacing: 0.04em; line-height: 1.35; }

  body.home .trajectory { grid-template-columns: 1fr; }
  body.home .step-card { padding: 2rem 1.5rem 1.5rem; }
}
@media (max-width: 400px) {
  body.home .hero h1 { font-size: 2.25rem !important; }
  body.home .hero .stat-number { text-shadow: 3px 4px 0 var(--star-red) !important; font-size: 1.85rem !important; }
}
