/* ============================================================
   Dhyanscout — Landing Page Styles
   Dark theme · gradient accents · glassmorphism · animations
   ============================================================ */

:root {
  --bg: #07071a;
  --bg-2: #0c0c24;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4fb;
  --text-dim: #a9a9c8;
  --text-mute: #6f6f96;

  --primary: #7c5cff;
  --primary-2: #a855f7;
  --accent: #ec4899;
  --accent-2: #f59e0b;
  --success: #22c55e;

  --grad: linear-gradient(135deg, #7c5cff 0%, #a855f7 45%, #ec4899 100%);
  --grad-animated: linear-gradient(135deg, #7c5cff, #a855f7, #ec4899, #a855f7, #7c5cff);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(236, 72, 153, 0.18));

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px -8px rgba(124, 92, 255, 0.45);
  --shadow-card: 0 20px 50px -24px rgba(0, 0, 0, 0.5);

  --container: 1180px;
  --container-narrow: 820px;

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Space Grotesk", "Inter", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.container-narrow { max-width: var(--container-narrow); }

/* ---------- Background orbs ---------- */
.bg-orbs {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(ellipse at top, #11112e 0%, var(--bg) 55%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: #7c5cff; top: -120px; left: -100px; }
.orb-2 { width: 420px; height: 420px; background: #ec4899; top: 30%; right: -140px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #a855f7; bottom: -120px; left: 30%; animation-delay: -12s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 999; transition: width .1s linear;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
}

/* ---------- Noise texture overlay ---------- */
.noise-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap; line-height: 1; position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Shine sweep on hover */
.btn::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left .6s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--grad); background-size: 200% 200%; color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
  animation: grad-shift 6s ease infinite;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(236, 72, 153, 0.5); }
@keyframes grad-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px -12px rgba(124, 92, 255, 0.4); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 26, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px -10px rgba(0, 0, 0, 0.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; transition: opacity .2s ease; }
.brand:hover { opacity: 0.85; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--grad); background-size: 200% 200%; border-radius: 10px; color: #fff; font-weight: 700;
  box-shadow: var(--shadow-glow); animation: grad-shift 5s ease infinite;
  transition: transform .3s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.1); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--text-dim); font-size: 0.92rem; font-weight: 500; position: relative; padding: 6px 0;
  transition: color .25s ease, transform .25s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); transition: width .3s var(--ease-out); border-radius: 2px;
}
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding: 120px 0 60px; text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.eyebrow {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem; font-weight: 500;
  animation: eyebrow-glow 4s ease-in-out infinite;
}
@keyframes eyebrow-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
  50% { box-shadow: 0 0 20px -4px rgba(124, 92, 255, 0.3); }
}
.hero-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em;
  max-width: 900px;
}
.grad-text {
  background: var(--grad-animated); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 600px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.hero-trust { width: 100%; max-width: 760px; margin-top: 30px; }
.hero-trust-label {
  display: block; font-size: 0.8rem; color: var(--text-mute); text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 14px;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll-x 40s linear infinite; will-change: transform; }
.marquee-track span {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--text-dim);
  white-space: nowrap; opacity: 0.7;
}
.partners-track span { font-size: 0.95rem; }
.logo-track { gap: 28px; }
.logo-track img {
  height: 40px; width: auto; flex-shrink: 0;
  padding: 8px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  transition: transform .35s var(--ease-spring), box-shadow .35s ease;
  object-fit: contain;
}
.logo-track img:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 30px -8px rgba(124, 92, 255, 0.3);
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); }
.hero-scroll span {
  display: block; width: 24px; height: 40px; border: 2px solid var(--border-strong); border-radius: 14px;
  position: relative;
}
.hero-scroll span::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--primary); border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot { 0%, 100% { opacity: 0; top: 8px; } 50% { opacity: 1; top: 20px; } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.04), transparent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.section-tag::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad); opacity: 0; transition: opacity .3s ease;
}
.section-tag:hover::before { opacity: 0.15; }
.section-head h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -0.02em;
}
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Feature cards ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card, .why-card, .recipe-card, .movement-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .35s var(--ease-out), border-color .35s ease, background .35s ease, box-shadow .35s ease;
  position: relative; overflow: hidden;
}
/* Spotlight glow that follows mouse via JS-set CSS vars */
.feature-card::before, .why-card::before, .recipe-card::before, .movement-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.12), transparent 40%);
  transition: opacity .3s ease; pointer-events: none;
}
.feature-card:hover::before, .why-card:hover::before, .recipe-card:hover::before, .movement-card:hover::before { opacity: 1; }
.feature-card:hover, .why-card:hover, .recipe-card:hover, .movement-card:hover {
  transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2);
  box-shadow: var(--shadow-card);
}
.feature-icon, .why-icon, .movement-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 16px;
  color: var(--primary-2); transition: transform .35s var(--ease-spring), box-shadow .35s ease;
}
.feature-card:hover .feature-icon, .why-card:hover .why-icon, .movement-card:hover .movement-icon {
  transform: scale(1.1) rotate(-5deg); box-shadow: 0 8px 20px -6px rgba(124, 92, 255, 0.4);
}
.feature-icon svg, .why-icon svg, .movement-icon svg { width: 24px; height: 24px; }
.feature-card h3, .why-card h3, .recipe-card h3, .movement-card h3 {
  font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px;
}
.feature-card p, .why-card p, .recipe-card p, .movement-card p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px;
  padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  background: var(--grad); opacity: 0; z-index: -1; transition: opacity .4s ease;
  filter: blur(20px);
}
.stats:hover::before { opacity: 0.15; }
.stat { text-align: center; transition: transform .3s ease; }
.stat:hover { transform: scale(1.05); }
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem); background: var(--grad-animated); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}
.stat-label { color: var(--text-dim); font-size: 0.88rem; display: block; margin-top: 6px; }

/* ---------- Courses ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.course-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.course-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.course-card.featured {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.course-card.featured::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: var(--grad-animated); background-size: 300% 300%;
  z-index: -1; opacity: 0.5; animation: grad-shift 4s ease infinite;
  filter: blur(8px);
}
.course-card.featured:hover { transform: translateY(-10px) scale(1.01); }
.course-flag {
  position: absolute; top: -12px; left: 24px; background: var(--grad); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.course-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.course-badge {
  font-size: 0.72rem; color: var(--text-dim); background: var(--surface-2);
  border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px;
}
.course-price { text-align: right; }
.price-now { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--text); }
.price-old { display: block; font-size: 0.85rem; color: var(--text-mute); text-decoration: line-through; }
.price-soon { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--accent-2); }
.course-card h3 { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.25; min-height: 60px; }
.course-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.course-meta div { display: flex; flex-direction: column; gap: 3px; }
.course-meta strong { font-size: 0.68rem; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.course-meta span { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.course-list { display: flex; flex-direction: column; gap: 9px; }
.course-list li { position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--text-dim); transition: color .2s ease, transform .2s ease; }
.course-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; font-size: 0.85rem;
  transition: transform .2s ease;
}
.course-list li:hover { color: var(--text); transform: translateX(4px); }
.course-list li:hover::before { transform: scale(1.3); }
.course-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.course-enrolled { font-size: 0.8rem; color: var(--text-mute); text-align: center; }

/* ---------- Recipe ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.recipe-card { position: relative; overflow: hidden; }
.recipe-step {
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.5; display: block; margin-bottom: 8px;
}

/* ---------- Mentors ---------- */
.mentors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mentor-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
  transition: transform .4s var(--ease-out), border-color .35s ease, box-shadow .35s ease;
  position: relative; overflow: hidden;
}
.mentor-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, 0.1), transparent 50%);
  transition: opacity .3s ease; pointer-events: none;
}
.mentor-card:hover::before { opacity: 1; }
.mentor-card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.mentor-avatar {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  background: var(--grad); background-size: 200% 200%; color: #fff; box-shadow: var(--shadow-glow);
  animation: grad-shift 5s ease infinite;
  transition: transform .4s var(--ease-spring);
}
.mentor-card:hover .mentor-avatar { transform: scale(1.12) rotate(5deg); }
.mentor-card h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.mentor-role { display: block; color: var(--text-dim); font-size: 0.85rem; min-height: 38px; }
.mentor-rating { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--accent-2); font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner-section { padding: 60px 0; }
.cta-banner {
  background: var(--grad-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 56px 48px; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad-animated); background-size: 300% 300%; opacity: 0.06;
  animation: grad-shift 8s ease infinite; pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; }
.cta-banner p { color: var(--text-dim); max-width: 640px; margin: 16px auto 0; }
.cta-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin: 24px 0; }
.cta-points li { color: var(--text); font-size: 0.95rem; }
.cta-tagline { font-family: var(--font-head); font-weight: 600; margin-bottom: 22px; color: var(--text); }

/* ---------- Why Us grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .35s var(--ease-out), border-color .35s ease, box-shadow .35s ease;
  position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--grad); opacity: 0; transition: opacity .3s ease;
}
.testimonial-card:hover::before { opacity: 1; }
.testimonial-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.testimonial-card h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.testimonial-card p { color: var(--text-dim); font-size: 0.95rem; font-style: italic; }
.testimonial-author { display: block; margin-top: 14px; font-weight: 600; color: var(--primary-2); }

/* ---------- Movement ---------- */
.movement-section { padding-top: 60px; }
.movement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.movement-cta { text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0; transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.faq-item:hover { background: var(--surface-2); }
.faq-item[open] { border-color: var(--primary); box-shadow: 0 0 20px -8px rgba(124, 92, 255, 0.3); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-head);
  font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center;
  transition: color .2s ease;
}
.faq-item summary:hover { color: var(--primary-2); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform .3s var(--ease-spring); font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 22px; color: var(--text-dim); font-size: 0.95rem;
  animation: faq-slide .3s var(--ease-out);
}
@keyframes faq-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-top: 60px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin: 14px 0 18px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 10px; transition: color .2s ease, transform .2s ease; }
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-col .btn { margin-top: 6px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom span { color: var(--text-mute); font-size: 0.85rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 16, 0.7); backdrop-filter: blur(6px); animation: fade .25s ease; }
.modal-card {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, #14143a, #0c0c24);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow); animation: pop .3s cubic-bezier(.2,.8,.2,1);
}
.modal-card h2 { font-family: var(--font-head); font-size: 1.6rem; }
.modal-sub { color: var(--text-dim); font-size: 0.92rem; margin: 8px 0 24px; }
.modal-close {
  position: absolute; top: 16px; right: 18px; background: var(--surface); border: 1px solid var(--border);
  width: 36px; height: 36px; border-radius: 50%; color: var(--text); font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center; line-height: 1; transition: background .2s ease;
}
.modal-close:hover { background: var(--surface-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.optional { color: var(--text-mute); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}
.field select option { background: #14143a; color: var(--text); }
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.88rem; text-align: center; min-height: 20px; }
.form-note.success { color: var(--success); }
.form-note.error { color: #f87171; }
#formSubmit[disabled] { opacity: 0.7; cursor: not-allowed; }
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #1a1a44, #14143a); border: 1px solid var(--border-strong);
  color: var(--text); padding: 14px 22px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow); z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(30px) scale(0.98);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* Staggered children — each .reveal inside a grid gets incremental delay */
.features-grid .reveal:nth-child(1), .mentors-grid .reveal:nth-child(1),
.movement-grid .reveal:nth-child(1), .recipe-grid .reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .reveal:nth-child(2), .mentors-grid .reveal:nth-child(2),
.movement-grid .reveal:nth-child(2), .recipe-grid .reveal:nth-child(2) { transition-delay: .1s; }
.features-grid .reveal:nth-child(3), .mentors-grid .reveal:nth-child(3),
.movement-grid .reveal:nth-child(3), .recipe-grid .reveal:nth-child(3) { transition-delay: .2s; }
.features-grid .reveal:nth-child(4), .mentors-grid .reveal:nth-child(4),
.movement-grid .reveal:nth-child(4), .recipe-grid .reveal:nth-child(4) { transition-delay: .3s; }
.courses-grid .reveal:nth-child(2) { transition-delay: .12s; }
.courses-grid .reveal:nth-child(3) { transition-delay: .24s; }
.testimonials-grid .reveal:nth-child(2) { transition-delay: .1s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: .2s; }
.testimonials-grid .reveal:nth-child(4) { transition-delay: .3s; }
.why-grid .reveal:nth-child(2) { transition-delay: .08s; }
.why-grid .reveal:nth-child(3) { transition-delay: .16s; }
.why-grid .reveal:nth-child(4) { transition-delay: .24s; }
.why-grid .reveal:nth-child(5) { transition-delay: .32s; }
.why-grid .reveal:nth-child(6) { transition-delay: .4s; }
.faq-list .reveal:nth-child(2) { transition-delay: .06s; }
.faq-list .reveal:nth-child(3) { transition-delay: .12s; }
.faq-list .reveal:nth-child(4) { transition-delay: .18s; }
.faq-list .reveal:nth-child(5) { transition-delay: .24s; }
.faq-list .reveal:nth-child(6) { transition-delay: .3s; }
.faq-list .reveal:nth-child(7) { transition-delay: .36s; }
.faq-list .reveal:nth-child(8) { transition-delay: .42s; }

/* ---------- Responsive ---------- */

/* Tablet landscape & smaller desktops */
@media (max-width: 1100px) {
  .features-grid, .recipe-grid, .mentors-grid, .movement-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { height: 64px; gap: 12px; }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 0.9rem; }

  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7, 7, 26, 0.98); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px; transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { padding: 8px 14px; font-size: 0.82rem; }

  .hero { min-height: 100vh; padding: 100px 0 40px; }
  .hero-inner { gap: 18px; }
  .eyebrow { font-size: 0.78rem; padding: 6px 14px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 12px 20px; font-size: 0.9rem; }

  .hero-trust { max-width: 100%; margin-top: 24px; }
  .hero-trust-label { font-size: 0.72rem; margin-bottom: 12px; }
  .logo-track { gap: 16px; }
  .logo-track img { height: 32px; padding: 6px 12px; border-radius: 10px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 0.98rem; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px 20px; margin-top: 40px; }
  .stat-num { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .stat-label { font-size: 0.8rem; }

  .courses-grid { grid-template-columns: 1fr; gap: 20px; }
  .course-card { padding: 22px 20px; }
  .course-card h3 { min-height: auto; font-size: 1.15rem; }
  .course-meta { grid-template-columns: 1fr 1fr; gap: 10px; }

  .feature-card, .why-card, .recipe-card, .movement-card, .mentor-card, .testimonial-card { padding: 22px 20px; }
  .feature-icon, .why-icon, .movement-icon { width: 46px; height: 46px; }

  .cta-banner { padding: 36px 22px; }
  .cta-banner h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .cta-points { gap: 10px 20px; }
  .cta-points li { font-size: 0.9rem; }

  .faq-item summary { padding: 16px 20px; font-size: 0.95rem; }
  .faq-item p { padding: 0 20px 18px; font-size: 0.9rem; }

  .footer { padding-top: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 6px; }

  .modal { padding: 16px; }
  .modal-card { padding: 28px 22px; max-height: 88vh; }
  .modal-card h2 { font-size: 1.35rem; }
  .modal-sub { font-size: 0.88rem; }
  .modal-close { top: 12px; right: 14px; width: 32px; height: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { padding: 11px 12px; font-size: 16px; }

  .toast { bottom: 20px; left: 16px; right: 16px; transform: translateY(20px); text-align: center; font-size: 0.85rem; padding: 12px 18px; }
  .toast.show { transform: translateY(0); }

  .hero-scroll { display: none; }
}

/* Mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 60px; }
  .nav-links { top: 60px; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 28px; height: 28px; font-size: 0.85rem; }
  .nav-actions .btn-primary { padding: 7px 12px; font-size: 0.78rem; }

  .hero { padding: 90px 0 32px; min-height: auto; }
  .hero-inner { gap: 16px; }
  .eyebrow { font-size: 0.72rem; padding: 5px 12px; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 280px; }
  .hero-cta .btn { width: 100%; }

  .logo-track img { height: 28px; padding: 5px 10px; }
  .marquee-track { gap: 24px; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .section-tag { font-size: 0.7rem; padding: 5px 12px; }

  .features-grid, .recipe-grid, .mentors-grid, .movement-grid, .testimonials-grid, .why-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; padding: 20px 16px; gap: 12px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.76rem; }

  .course-card { padding: 20px 18px; }
  .course-top { flex-direction: column; gap: 8px; }
  .course-price { text-align: left; }
  .course-meta { grid-template-columns: 1fr; gap: 8px; }
  .course-meta div { flex-direction: row; justify-content: space-between; }
  .course-list li { font-size: 0.86rem; }

  .cta-banner { padding: 28px 18px; }
  .cta-points { flex-direction: column; gap: 8px; align-items: flex-start; }

  .mentor-avatar { width: 60px; height: 60px; font-size: 1.2rem; }
  .mentor-role { min-height: auto; }

  .faq-item summary { padding: 14px 16px; font-size: 0.9rem; }
  .faq-item p { padding: 0 16px 16px; }

  .modal-card { padding: 24px 18px; }
  .modal-card h2 { font-size: 1.2rem; }

  .footer-bottom span { font-size: 0.78rem; }
}

/* Very small phones */
@media (max-width: 360px) {
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 0.95rem; }
  .stat-num { font-size: 1.3rem; }
  .logo-track img { height: 24px; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: scroll-x 60s linear infinite !important; }
}
