/* ============================================================
   InstaFit — Brand Homepage
   Premium wellness brand · mobile-first · vanilla CSS
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --brand-primary: #5A4BFF;
  --brand-secondary: #6C63FF;
  --brand-light: #8B7BFF;
  --brand-ghost: #F4F2FF;
  --brand-tint: #EDE9FF;

  /* Ink */
  --ink-900: #0F172A;
  --ink-800: #111827;
  --ink-700: #1E293B;
  --ink-600: #334155;
  --ink-500: #475569;
  --ink-400: #64748B;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;
  --ink-100: #E2E8F0;
  --ink-50:  #F8FAFC;
  --white:   #FFFFFF;

  /* Semantic */
  --success: #10B981;
  --danger:  #EF4444;
  --warning: #F59E0B;

  /* Surfaces */
  --bg:        var(--ink-50);
  --bg-card:   var(--white);
  --bg-elev:   rgba(255, 255, 255, 0.7);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(90, 75, 255, 0.12);
  --shadow-xl: 0 24px 60px rgba(90, 75, 255, 0.18);
  --shadow-brand: 0 8px 24px rgba(90, 75, 255, 0.28);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Type scale (rem, mobile-first) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 2.875rem;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Layout */
  --container: 72rem;
  --container-narrow: 56rem;
  --nav-h: 4rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 480ms;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection {
  background: var(--brand-primary);
  color: var(--white);
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--s-5);
}
.container--narrow { max-width: var(--container-narrow); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Focus rings — accessible */
:focus-visible {
  outline: 3px solid rgba(90, 75, 255, 0.45);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Reveal-on-scroll base state */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: var(--fs-base);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(90, 75, 255, 0.38);
  background: linear-gradient(135deg, #6C5FFF 0%, #7C6FFF 100%);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--ink-700);
  border: 1px solid var(--ink-200);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-ghost);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--white);
  color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

/* ---------- 5. Section scaffolding ---------- */
section { padding-block: var(--s-8); }

.section__head { margin-bottom: var(--s-6); }
.section__head--center { text-align: center; }

.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-ghost);
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  margin-bottom: var(--s-4);
}
.section__eyebrow--light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-3);
}
.section__title--light { color: var(--white); }

.section__sub {
  color: var(--ink-500);
  font-size: var(--fs-md);
  max-width: 40rem;
  margin: 0 auto;
}

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: calc(var(--nav-h) + 1rem);
  padding-block: var(--s-3);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.nav__logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
  flex: none;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--s-5);
}
.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-600);
  position: relative;
  padding-block: var(--s-1);
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-fast) var(--ease);
  border-radius: 2px;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--brand-primary); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta {
  display: none;
  padding: 0.625rem 1.125rem;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: var(--s-2);
  cursor: pointer;
  z-index: 60;
}
.nav__toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile menu */
.nav__links--mobile {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(20rem, 85vw);
  background: var(--white);
  padding: calc(var(--nav-h) + var(--s-4)) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out);
  z-index: 55;
}
.nav__links--mobile.is-open { transform: translateX(0); }
.nav__links--mobile .nav__link {
  font-size: var(--fs-md);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--ink-100);
}
.nav__links--mobile .nav__link::after { display: none; }

.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  z-index: 54;
}
.nav__backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: calc(var(--nav-h) + var(--s-8)) var(--s-9);
  overflow: hidden;
  isolation: isolate;
}

/* Hide the hero gradient while the mobile menu is open —
   the white drawer should cover a clean background, not the gradient gap. */
.hero--menu-open {
  background: transparent;
}
.hero--menu-open .hero__bg {
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(90, 75, 255, 0.12) 0%, transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(108, 99, 255, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #F8FAFC 0%, #F3F0FF 100%);
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  animation: orb-drift 18s var(--ease) infinite alternate;
}
.hero__orb--1 {
  width: 320px; height: 320px;
  background: var(--brand-secondary);
  top: -120px; right: -80px;
}
.hero__orb--2 {
  width: 240px; height: 240px;
  background: var(--brand-primary);
  bottom: -100px; left: -60px;
  animation-delay: -6s;
}
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(20px, -10px) scale(1.05); }
  100% { transform: translate(-10px, 15px) scale(0.98); }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--white);
  border: 1px solid var(--brand-tint);
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--s-5);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulse-dot 2s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.05); }
}

.hero__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 var(--s-4);
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--ink-600);
  max-width: 32rem;
  margin: 0 0 var(--s-5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.hero__meta {
  display: flex;
  gap: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--ink-100);
}
.hero__meta-item { display: flex; flex-direction: column; }
.hero__meta-num {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
}
.hero__meta-label {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--s-1);
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: none;
  min-height: 28rem;
  align-items: center;
  justify-content: center;
}
.hero__card {
  position: absolute;
  background: var(--bg-elev);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--s-5);
  animation: float 6s var(--ease) infinite alternate;
}
@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-12px) rotate(-0.5deg); }
  100% { transform: translateY(-4px) rotate(0.3deg); }
}

.hero__card--main {
  width: 18rem;
  top: 12%;
  left: 8%;
  animation-duration: 7s;
}
.hero__card--small {
  width: 11rem;
  padding: var(--s-4);
  animation-duration: 5s;
}
.hero__card--small.hero__card--float-1 {
  top: 65%;
  right: 4%;
  animation-delay: -2s;
}
.hero__card--small.hero__card--float-2 {
  bottom: 4%;
  left: 2%;
  animation-delay: -4s;
}

.hero__card-icon {
  width: 2.5rem; height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--brand-ghost);
  color: var(--brand-primary);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
}
.hero__card-icon svg { width: 1.25rem; height: 1.25rem; }

.hero__card-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}
.hero__card-value {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink-900);
  margin-top: var(--s-1);
  line-height: 1;
}
.hero__card-bar {
  width: 100%;
  height: 6px;
  background: var(--ink-100);
  border-radius: var(--r-full);
  margin: var(--s-3) 0 var(--s-2);
  overflow: hidden;
}
.hero__card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-light));
  border-radius: var(--r-full);
  transition: width 1.2s var(--ease-out);
}
.hero__card-foot {
  font-size: var(--fs-xs);
  color: var(--ink-500);
}
.hero__glow {
  position: absolute;
  inset: 10% 20%;
  background: radial-gradient(closest-side, rgba(90, 75, 255, 0.25), transparent);
  filter: blur(40px);
  z-index: -1;
}

/* ---------- 8. Trust / Pillars ---------- */
.trust {
  padding-block: var(--s-6);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  background: var(--white);
}
.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
.trust__card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--ink-50);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.trust__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust__icon {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  background: var(--brand-ghost);
  color: var(--brand-primary);
  border-radius: var(--r-md);
}
.trust__icon svg { width: 1.25rem; height: 1.25rem; }
.trust__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}
.trust__text {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  margin: 0;
}

/* ---------- 9. Featured product ---------- */
.featured {
  padding-block: var(--s-8);
  background: linear-gradient(180deg, var(--white) 0%, var(--ink-50) 100%);
}
.featured__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
}

.featured__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 30% 30%, rgba(90, 75, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #F4F2FF 0%, #EDE9FF 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.featured__media-frame {
  position: absolute;
  inset: 8%;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}
.featured__media-inner {
  display: grid;
  place-items: center;
  gap: var(--s-3);
  color: var(--brand-primary);
}
.featured__play {
  width: 4rem; height: 4rem;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--brand-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-brand);
}
.featured__play svg { width: 1.5rem; height: 1.5rem; margin-left: 4px; }
.featured__media-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-600);
  letter-spacing: 0.04em;
}
.featured__media-chip {
  position: absolute;
  top: var(--s-4); left: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--white);
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}
.featured__media-chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.featured__content { display: flex; flex-direction: column; gap: var(--s-4); }
.featured__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.featured__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.featured__desc {
  color: var(--ink-600);
  margin: 0;
}

.featured__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2) var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.featured__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--ink-700);
}
.featured__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.3rem;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: var(--brand-ghost);
  border: 2px solid var(--brand-primary);
}
.featured__list li::after {
  content: '';
  position: absolute;
  left: 0.3rem; top: 0.55rem;
  width: 0.35rem; height: 0.2rem;
  border-left: 2px solid var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
  transform: rotate(-45deg);
}

.featured__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--ink-100);
  margin-top: var(--s-2);
}
.featured__price {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-1);
  font-weight: 800;
  color: var(--ink-900);
}
.featured__price-currency { font-size: var(--fs-md); color: var(--ink-500); }
.featured__price-amount { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
.featured__price-note {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  font-weight: 500;
  margin-left: var(--s-2);
}

/* ---------- 10. Programs ---------- */
.programs { padding-block: var(--s-8); }
.programs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-tint);
}
.program-card--live {
  background: linear-gradient(160deg, #FFFFFF 0%, #F8F6FF 100%);
  border-color: var(--brand-tint);
  box-shadow: var(--shadow-brand);
}
.program-card--live::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(90, 75, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.program-card--soon { opacity: 0.85; }
.program-card--soon:hover { opacity: 1; }

.program-card__media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-ghost) 0%, var(--brand-tint) 100%);
  color: var(--brand-primary);
  border-bottom: 1px solid var(--brand-tint);
}
.program-card--soon .program-card__media {
  background: linear-gradient(135deg, var(--ink-50) 0%, var(--ink-100) 100%);
  color: var(--ink-400);
  border-bottom-color: var(--ink-100);
}
.program-card__media svg { width: 3rem; height: 3rem; }

.program-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.program-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-full);
  margin-bottom: var(--s-2);
}
.program-card__badge--live {
  background: var(--success);
  color: var(--white);
}
.program-card__badge--soon {
  background: var(--ink-100);
  color: var(--ink-600);
}
.program-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}
.program-card__desc {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  margin: 0;
  flex: 1;
}
.program-card__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: var(--s-2);
}

/* ---------- 11. About ---------- */
.about {
  padding-block: var(--s-8);
  background: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
}

.about__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 70% 30%, rgba(90, 75, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #F4F2FF 0%, #EDE9FF 100%);
  display: grid;
  place-items: center;
}
.about__media-frame {
  width: 70%;
  aspect-ratio: 1;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  color: var(--brand-primary);
}
.about__media-frame svg { width: 50%; height: 50%; }
.about__media-label {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}
.about__chip {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  background: var(--ink-900);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
}

.about__content { display: flex; flex-direction: column; gap: var(--s-4); }
.about__text {
  color: var(--ink-600);
  margin: 0;
}
.about__points {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: 0;
  list-style: none;
}
.about__points li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-700);
  font-weight: 500;
}
.about__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.3rem;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: var(--brand-ghost);
  border: 2px solid var(--brand-primary);
}
.about__points li::after {
  content: '';
  position: absolute;
  left: 0.3rem; top: 0.55rem;
  width: 0.35rem; height: 0.2rem;
  border-left: 2px solid var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
  transform: rotate(-45deg);
}

/* ---------- 12. Roadmap ---------- */
.roadmap {
  padding-block: var(--s-8);
  background: linear-gradient(180deg, var(--ink-50) 0%, var(--white) 100%);
}
.roadmap__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 36rem;
  margin: 0 auto;
  position: relative;
}
.roadmap__track::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-primary), var(--ink-200));
}
.roadmap__step {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  position: relative;
}
.roadmap__dot {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink-300);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  z-index: 1;
}
.roadmap__step--done .roadmap__dot {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(90, 75, 255, 0.18);
}
.roadmap__step--done .roadmap__dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
}
.roadmap__label {
  font-weight: 600;
  color: var(--ink-700);
}
.roadmap__step--done .roadmap__label { color: var(--ink-900); }

/* ---------- 13. Testimonials ---------- */
.testimonials { padding-block: var(--s-8); }
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial__quote {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink-700);
  font-style: normal;
}
.testimonial__quote::before {
  content: '“';
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand-light);
  margin-bottom: -0.5rem;
}
.testimonial__person {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.testimonial__avatar {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-light));
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-md);
}
.testimonial__meta { display: flex; flex-direction: column; gap: 0.125rem; }
.testimonial__name { font-weight: 600; color: var(--ink-900); font-size: var(--fs-sm); }
.testimonial__role { font-size: var(--fs-xs); color: var(--ink-500); }

/* ---------- 14. FAQ ---------- */
.faq {
  padding-block: var(--s-8);
  background: var(--white);
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.faq__item {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] {
  border-color: var(--brand-tint);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
  user-select: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; }
.faq__question:hover { color: var(--brand-primary); }

.faq__icon {
  position: relative;
  width: 1.25rem; height: 1.25rem;
  flex-shrink: 0;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}
.faq__icon::before { width: 100%; height: 2px; }
.faq__icon::after  { width: 2px; height: 100%; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }

.faq__answer {
  padding: 0 var(--s-5) var(--s-4);
  color: var(--ink-600);
  font-size: var(--fs-sm);
}
.faq__answer p { margin: 0; }

/* ---------- 15. Newsletter ---------- */
.newsletter {
  padding-block: var(--s-8);
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 100%);
  position: relative;
  overflow: hidden;
}
.newsletter__card {
  position: relative;
  background: linear-gradient(135deg, rgba(90, 75, 255, 0.18) 0%, rgba(108, 99, 255, 0.10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-2xl);
  padding: var(--s-7);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.newsletter__glow {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(90, 75, 255, 0.4);
  filter: blur(80px);
  top: -120px; right: -120px;
  pointer-events: none;
}
.newsletter__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
}

.newsletter__sub {
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
  margin: 0;
}

.newsletter__form {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-2);
}
.newsletter__fields {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.newsletter__field { width: 100%; }
.newsletter__input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter__input:focus {
  outline: none;
  border-color: var(--brand-light);
  background: rgba(255, 255, 255, 0.12);
}
.newsletter__input.is-invalid {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

.newsletter__submit { align-self: center; width: 100%; max-width: 18rem; }
.newsletter__msg {
  margin: 0;
  font-size: var(--fs-sm);
  min-height: 1.25rem;
}
.newsletter__msg.is-success { color: var(--success); font-weight: 600; }
.newsletter__msg.is-error { color: #FCA5A5; }

/* ---------- 16. Footer ---------- */
.footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding-block: var(--s-7) 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--white);
  margin-bottom: var(--s-3);
}
.footer__logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
  flex: none;
}
.footer__tagline {
  color: var(--ink-400);
  font-size: var(--fs-sm);
  max-width: 20rem;
  margin: 0 0 var(--s-4);
}
.footer__social {
  display: flex;
  gap: var(--s-2);
}
.footer__social-link {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-300);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer__social-link:hover {
  background: var(--brand-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 var(--s-3);
}
.footer__list { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__list a {
  color: var(--ink-400);
  font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease);
}
.footer__list a:hover { color: var(--white); }

.footer__cta-text {
  color: var(--ink-400);
  font-size: var(--fs-sm);
  margin: 0 0 var(--s-3);
}
.footer__cta-btn { width: 100%; max-width: 14rem; }

.footer__bottom {
  padding-block: var(--s-4);
  background: var(--ink-800);
}
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: center;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}
.footer__bottom p { margin: 0; }

/* ============================================================
   BREAKPOINTS — mobile-first
   ============================================================ */

/* ---------- Tablet (≥ 640px) ---------- */
@media (min-width: 640px) {
  .container, .container--narrow { padding-inline: var(--s-6); }

  .hero__title { font-size: var(--fs-3xl); }
  .section__title { font-size: var(--fs-2xl); }

  .trust__grid { grid-template-columns: 1fr 1fr; }

  .featured__list { grid-template-columns: 1fr 1fr; }

  .programs__grid { grid-template-columns: 1fr 1fr; }

  .newsletter__fields {
    flex-direction: row;
  }
  .newsletter__field { flex: 1; }

  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Desktop (≥ 960px) ---------- */
@media (min-width: 960px) {
  :root { --nav-h: 4.5rem; }

  .hero { padding-block: calc(var(--nav-h) + var(--s-8)) var(--s-9); }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); }
  .hero__visual { display: flex; }
  .hero__title { font-size: 3.5rem; }

  .trust__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .trust__card { padding: var(--s-6); }

  .featured__wrap {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--s-8);
    padding: var(--s-8);
  }
  .featured__title { font-size: 2.25rem; }

  .programs__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }

  .about__grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); }
  .about__media-frame { width: 60%; }

  .testimonials__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }

  .roadmap__track {
    flex-direction: row;
    max-width: none;
    align-items: flex-start;
    gap: 0;
  }
  .roadmap__track::before {
    top: 1rem;
    bottom: auto;
    left: 1rem;
    right: 1rem;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--ink-200));
  }
  .roadmap__step { flex-direction: column; align-items: center; flex: 1; text-align: center; padding: var(--s-3) 0; }
  .roadmap__label { font-size: var(--fs-sm); }

  .newsletter__card { padding: var(--s-8); }

  /* Nav — desktop links visible */
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__links--mobile { display: none; }
  .nav__backdrop { display: none; }
}

/* ---------- Large desktop (≥ 1200px) ---------- */
@media (min-width: 1200px) {
  .hero__title { font-size: 4rem; }
  .featured__title { font-size: 2.5rem; }
  .section__title { font-size: 2.5rem; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .newsletter, .footer, .hero__bg, .hero__orb { display: none; }
  .reveal { opacity: 1; transform: none; }
}
