/* --- ThirtyTutors marketing/home page (/landing) ---
   Same design language as the rest of the app (ink-navy + warm off-white
   + muted crimson accent, Space Grotesk/Inter) rather than a separate
   marketing identity - this is the front door of the same product, not a
   different brand. Two signature elements here get to be a little more
   alive than the rest of the app: the dance/celebrate split section
   (#danceSection, reuses the hero's glow treatment) and the tutor-card
   marquee (#tutorMarqueeWrap) - an endless, gently tilted wall of every
   avatar. Everything else stays quiet and text-led. */

#marketingWrap {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* --- Hero --- */

#heroSection {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 56px;
}

#heroCopy h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
#heroCopy h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 30px;
}

#heroCta {
  display: flex;
  align-items: center;
  gap: 14px;
}
#heroCta .primary-btn {
  padding: 12px 26px;
  font-size: 0.92rem;
}
#heroCta a.secondary-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

#heroVisual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  max-width: 480px;
  margin: 0 auto;
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}
#heroVisualGlow {
  position: absolute;
  inset: 4%;
  border-radius: 24px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(18px);
  animation: hero-glow-pulse 5s ease-in-out infinite;
}
#heroVisualMedia {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* --- Academy split section --- */

#academySection {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 88px;
}
#academyImage {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}
#academyCopy h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 14px;
}
#academyCopy p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 50ch;
}
.academy-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.academy-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text);
}
.academy-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Dance/celebrate split section - mirrors #academySection's layout
   with the visual and copy swapped left/right, so the page alternates
   rather than repeating the same shape twice in a row. The visual gets
   a bit more room than the hero's own (0.95fr here vs the hero's 0.9fr
   column, and no width:78% inset on the media itself - see
   #danceVisualMedia below) but noticeably less than the academy image's
   column, so it reads as "a little bigger than the hero clip, not a
   full-width showpiece". Reuses the hero's glow treatment (radial pulse
   behind the media) rather than inventing a second effect - fitting,
   since this is the more overtly celebratory of the two places that
   pulse now appears. --- */

#danceSection {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
}
#danceCopy h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 14px;
}
#danceCopy p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 46ch;
}

#danceVisual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  max-width: 480px;
  margin: 0 auto;
}
#danceVisualGlow {
  position: absolute;
  inset: 4%;
  border-radius: 24px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 72%);
  filter: blur(20px);
  animation: hero-glow-pulse 5s ease-in-out infinite;
}
#danceVisualMedia {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* --- Tutors section header + marquee --- */

#tutorsSection {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px 36px;
}
#tutorsSection h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.tutors-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

#tutorMarqueeWrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0 96px;
  /* Fade the marquee out at both edges rather than a hard clip. */
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

@keyframes tutor-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

#tutorMarqueeTrack {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: tutor-marquee-scroll 100s linear infinite;
}
/* Paused by hovering the TRACK itself, not the wrap - the wrap has a
   generous 96px of bottom padding (for the edge-fade mask above, and to
   give the marquee room to breathe from the section below it), and that
   padding sits well below where the cards actually are. Pausing on
   #tutorMarqueeWrap:hover meant the marquee froze the moment the cursor
   crossed into that empty space beneath the row, with nothing visible
   there to explain why. The track's own box hugs the cards tightly (flex
   sizes it to its tallest child), so hovering it only pauses while the
   cursor is actually over a card. */
#tutorMarqueeTrack:hover {
  animation-play-state: paused;
}

.tutor-card {
  flex: 0 0 auto;
  width: 175px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease;
}
/* Alternating tilt gives the row a loose, "spread out on a table" feel
   rather than a rigid grid - each card straightens on hover. Hovering a
   single card lifts and enlarges just that one (translateY + scale) -
   pure transform, so it never nudges its neighbors out of place, they
   stay exactly where they are while this one pops forward above them
   (z-index). */
.tutor-card:nth-child(odd) { transform: rotate(-2.5deg); }
.tutor-card:nth-child(even) { transform: rotate(2.5deg); }
.tutor-card:hover { transform: rotate(0deg) translateY(-10px) scale(1.08); z-index: 2; }

.tutor-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  background: var(--panel-raised);
  transition: box-shadow 0.25s ease;
}
.tutor-card:hover img {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}
.tutor-card-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Final CTA band --- */

#finalCtaSection {
  text-align: center;
  padding: 64px 32px 88px;
  background: linear-gradient(180deg, transparent 0%, var(--accent-soft) 100%);
}
#finalCtaSection h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 22px;
}
#finalCtaSection .primary-btn {
  padding: 13px 30px;
  font-size: 0.95rem;
}

/* --- Responsive --- */

@media (max-width: 760px) {
  #heroSection,
  #academySection,
  #danceSection {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  #heroVisual { order: -1; max-width: 320px; margin: 0 auto; }
  #heroCopy h1 { font-size: 2rem; }
  #academyImage { order: -1; }
  #danceVisual { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  #tutorMarqueeTrack { animation: none; }
  #heroVisualGlow { animation: none; }
}
