/* ═══════════════════════════════════════════════
   FONT FACE — Pragmatica Next Variable
═══════════════════════════════════════════════ */
@font-face {
  font-family: 'Pragmatica Next';
  src: url('./pragmatica-next_vf.woff2') format('woff2'),
       url('./pragmatica-next_vf.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
}

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --blue:    #0530EE;
  --light:   #E4F2FF;
  --dark:    #0E1720;

  --blue-dim:  rgba(5, 48, 238, 0.15);
  --light-dim: rgba(228, 242, 255, 0.08);

  --font-body: 'Pragmatica Next', sans-serif;

  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.25rem, 1rem + 1vw, 2rem);
  --text-xl:   clamp(2rem, 1rem + 4vw, 5rem);
  --text-hero: 38px;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════
   BASE RESET
═══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--light);
  background: var(--dark);
  overflow-x: hidden;
}

img, canvas, svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #1a40ff; }

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

.nav-logo {
  color: var(--blue);
  line-height: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Nav button hover: blue by default, dark on blue sections */
.nav .btn-primary-m {
  background: var(--blue) !important;
  color: white !important;
}

.nav .btn-primary-m:hover {
  background: white !important;
  color: black !important;
}

.nav--on-blue .btn-primary-m {
  background: white !important;
  color: black !important;
}

.nav--on-blue .btn-primary-m:hover {
  background: var(--dark) !important;
  color: white !important;
}

/* ═══════════════════════════════════════════════
   SECTIONS — SHARED
═══════════════════════════════════════════════ */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section--flow {
  display: block;
}

.section-inner {
  position: relative;
  z-index: 10;
  padding: 8rem 2.5rem 6rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 6rem;
}

.content-block:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   SCENE 01 — HERO
═══════════════════════════════════════════════ */
.section--hero {
  background: var(--dark);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 7rem 1.5rem 4rem;
  gap: 3rem;
}

.hero-content--centered .hero-title {
  margin-top: 0;
}

.hero-title {
  margin-top: auto;
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: -0.02em;
  font-synthesis: none;
  font-synthesis-weight: none;
}

@media (min-width: 375px) { .hero-title { font-size: 42px; } }
@media (min-width: 640px) { .hero-title { font-size: 50px; } }
@media (min-width: 768px) { .hero-title { font-size: 80px; line-height: 1.2; } }
@media (min-width: 1024px) { .hero-title { font-size: 100px; } }
@media (min-width: 1280px) { .hero-title { font-size: 110px; } }

.hero-title * {
  font-synthesis: none;
  font-synthesis-weight: none;
}

.hero-title__line {
  display: block;
  white-space: nowrap;
  opacity: 0;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#hero-enroll-btn,
#hero-start-box {
  opacity: 0;
}

@media (max-width: 767px) {
  .hero-title {
    align-items: stretch;
    gap: 10px;
    padding: 0 0.5rem;
    overflow: hidden;
  }

  .hero-title__line {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════
   TRANSITION PIN (pinned scroll-driven canvas)
═══════════════════════════════════════════════ */
.transition-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--dark);
  will-change: transform;
}

.transition-pin canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════
   SCENE 03 — GRID (Program)
═══════════════════════════════════════════════ */
.section--grid {
  background: #162736;
}

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.grid-bg svg {
  position: absolute;
  opacity: 0.18;
  transition: transform 0.1s linear;
  transform-origin: center center;
}

/* ═══════════════════════════════════════════════
   SCENE 05 — MARQUEE (blue bg — Pricing + FAQ)
═══════════════════════════════════════════════ */
.section--marquee {
  background: var(--blue);
  padding: 4rem 0;
}

.marquee-wrap {
  width: 100%;
  overflow: hidden;
}

.marquee-decoration {
  opacity: 0.12;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-item svg {
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════
   SCENE 06 — SCATTER (Audience)
═══════════════════════════════════════════════ */
.section--scatter {
  background: var(--dark);
}

.scatter-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ═══════════════════════════════════════════════
   SCENE 07 — FINAL (Mentor + CTA + Footer)
═══════════════════════════════════════════════ */
.section--final {
  background: var(--dark);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .section-inner {
    padding: 6rem 1.25rem 4rem;
  }

  .content-block {
    margin-bottom: 3rem;
  }

  /* Mobile: mentor card full width, no rounding */
  #mentor .rounded-3xl {
    border-radius: 0;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    max-width: none;
    width: calc(100% + 2.5rem);
  }

  /* Audience section full-bleed on mobile */
  #audience {
    margin-left: -1.25rem !important;
    margin-right: -1.25rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .section--marquee {
    padding: 2rem 0;
  }
}
