/* ================================================================
   CertifAI Design System — styles.css
   Phase 1: Brand tokens, typography, components, layout, hero
   ================================================================ */

/* --- Design Tokens ----------------------------------------------- */
/*
 * Phase 3A: DS is now source of truth. Legacy tokens forward to --ds-*.
 * Tokens with no DS equivalent, or with incompatible values, remain as literals.
 * Incompatible literals:
 *   --glass-light      rgba(255,255,255,0.06) — DS has 0.75 opacity (different use)
 *   --c-border-dark    rgba(255,255,255,0.10) — DS has 0.08 (different value)
 *   --c-white / gamification tokens — no DS equivalent needed
 */
:root {
  /* ── Forwarded to DS (DS is source of truth) ── */
  --c-primary:        var(--ds-primary);
  --c-primary-hover:  var(--ds-primary-hover);
  --c-primary-light:  var(--ds-primary-light);
  --c-navy:           var(--ds-navy);
  --c-navy-2:         var(--ds-navy-2);
  --c-navy-3:         var(--ds-navy-3);
  --c-cyan:           var(--ds-cyan);
  --c-cyan-dim:       var(--ds-cyan-dim);
  --c-off-white:      var(--ds-bg-light);
  --c-border:         var(--ds-border);
  --c-text-heading:   var(--ds-text-heading);
  --c-text-body:      var(--ds-text-body);
  --c-text-muted:     var(--ds-text-faint);   /* #94A3B8 — maps to ds-text-faint, NOT ds-text-muted */
  --glass-dark:       var(--ds-glass-dark);
  --glass-darker:     var(--ds-glass-darker);
  --glass-border:     var(--ds-glass-border-dark);
  --shadow-xs:        var(--ds-shadow-xs);
  --shadow-sm:        var(--ds-shadow-sm);
  --shadow-md:        var(--ds-shadow-md);
  --shadow-lg:        var(--ds-shadow-lg);
  --shadow-glow:      var(--ds-shadow-glow);
  --font-display:     var(--ds-font-display);
  --font-body:        var(--ds-font-body);
  --sp-1:  var(--ds-sp-1);
  --sp-2:  var(--ds-sp-2);
  --sp-3:  var(--ds-sp-3);
  --sp-4:  var(--ds-sp-4);
  --sp-5:  var(--ds-sp-5);
  --sp-6:  var(--ds-sp-6);
  --sp-8:  var(--ds-sp-8);
  --sp-10: var(--ds-sp-10);
  --sp-12: var(--ds-sp-12);
  --sp-16: var(--ds-sp-16);
  --sp-20: var(--ds-sp-20);
  --sp-24: var(--ds-sp-24);
  --r-sm:   var(--ds-r-sm);
  --r-md:   var(--ds-r-md);
  --r-lg:   var(--ds-r-lg);
  --r-xl:   var(--ds-r-xl);
  --r-2xl:  var(--ds-r-2xl);
  --r-full: var(--ds-r-full);
  --t-fast:   var(--ds-t-fast);
  --t-base:   var(--ds-t-base);
  --t-slow:   var(--ds-t-slow);
  --t-spring: var(--ds-t-spring);
  --nav-h: var(--ds-nav-h);
  --max-w: var(--ds-max-w);

  /* ── Literals — no clean DS mapping ── */
  --c-white:       #FFFFFF;
  --c-border-dark: rgba(255, 255, 255, 0.1);   /* differs from ds-glass-border-dark (0.08) */
  --glass-light:   rgba(255, 255, 255, 0.06);  /* differs from ds-glass-light (0.75) */

  /* Gamification palette — no DS equivalent */
  --c-sky:      #EAF4FF;
  --c-lavender: #EEF2FF;
  --c-mint:     #DDFBEA;
  --c-lime:     #C7F84F;
  --c-lime-dim: rgba(199, 248, 79, 0.15);

  /* ── Phase 3: Green brand palette overrides ── */
  --ds-primary:        #16A34A;
  --ds-primary-hover:  #15803D;
  --ds-primary-active: #166534;
  --ds-primary-light:  #DCFCE7;
  --ds-shadow-glow:    0 0 48px rgba(22, 163, 74, 0.22);
  --ds-bg-dark:        #030605;

  /* ── Phase 5: Semantic token foundation ── */
  --color-surface:         #F8FAFC;
  --color-surface-inverse: #030605;
  --color-text:            #0F172A;
  --color-text-inverse:    #F8FAFC;
  --nav-bg:                rgba(3, 6, 5, 0.72);
  --nav-text:              rgba(255, 255, 255, 0.80);
  --nav-border:            rgba(72, 240, 138, 0.10);

  /* ── Brand constants (always available, never theme-switched) ── */
  --brand-green:       #48F08A;
  --brand-green-main:  #16A34A;
  --brand-green-hover: #15803D;
  --brand-green-soft:  #B6FFD2;
  --brand-green-deep:  #0E7A42;
  --brand-glow:        rgba(72, 240, 138, 0.18);
  --brand-dark:        #030605;
  --brand-dark-2:      #06120C;
  --brand-dark-soft:   #08140E;
}

/* ── Light theme (default) ─────────────────────────────────────── */
html[data-theme="light"] {
  --page-bg:         #F7FBF8;
  --section-bg:      #F8FAFC;
  --section-bg-soft: #EFFDF4;
  --surface:         #FFFFFF;
  --surface-soft:    #F8FAFC;
  --text-main:       #0F172A;
  --text-muted:      #475569;
  --border-subtle:   rgba(15, 23, 42, 0.10);
}

/* ── Dark theme ────────────────────────────────────────────────── */
html[data-theme="dark"] {
  --page-bg:         #030605;
  --section-bg:      #06120C;
  --section-bg-soft: #08140E;
  --surface:         rgba(10, 18, 13, 0.92);
  --surface-soft:    rgba(12, 24, 17, 0.88);
  --text-main:       #F8FAFC;
  --text-muted:      rgba(248, 250, 252, 0.68);
  --border-subtle:   rgba(72, 240, 138, 0.16);

  /* Override DS tokens so all DS-aware components adapt */
  --ds-bg-light:     #06120C;
  --ds-text-heading: #F8FAFC;
  --ds-text-body:    rgba(248, 250, 252, 0.82);
  --ds-text-faint:   rgba(248, 250, 252, 0.52);
  --ds-border:       rgba(72, 240, 138, 0.12);
}


/* --- Reset & Base ------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ds-font-body);
  color: var(--text-main, var(--ds-text-body));
  background: var(--page-bg, var(--ds-bg-light));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }


/* --- Typography Scale -------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--ds-font-display);
  color: var(--ds-text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 0.9375rem; }

p { max-width: 65ch; }

.text-xs   { font-size: 0.75rem;   line-height: 1.5; }
.text-sm   { font-size: 0.875rem;  line-height: 1.55; }
.text-base { font-size: 1rem;      line-height: 1.65; }
.text-lg   { font-size: 1.125rem;  line-height: 1.6; }
.text-xl   { font-size: 1.25rem;   line-height: 1.5; }
.text-2xl  { font-size: 1.5rem;    line-height: 1.4; }
.text-3xl  { font-size: 1.875rem;  line-height: 1.3; }

.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-display { font-family: var(--ds-font-display); }

.text-muted   { color: var(--ds-text-faint); }
.text-body    { color: var(--ds-text-body); }
.text-heading { color: var(--ds-text-heading); }
.text-white   { color: var(--c-white); }
.text-cyan    { color: var(--ds-cyan); }
.text-lime    { color: var(--c-lime); }
.text-primary { color: var(--ds-primary); }


/* --- Layout Helpers ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--ds-max-w);
  margin: 0 auto;
  padding: 0 var(--ds-sp-8);
}

.container-sm {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--ds-sp-8);
}

.section {
  padding: var(--ds-sp-24) 0;
}

.section-sm {
  padding: var(--ds-sp-16) 0;
}

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1  { gap: var(--ds-sp-1); }
.gap-2  { gap: var(--ds-sp-2); }
.gap-3  { gap: var(--ds-sp-3); }
.gap-4  { gap: var(--ds-sp-4); }
.gap-6  { gap: var(--ds-sp-6); }
.gap-8  { gap: var(--ds-sp-8); }
.gap-12 { gap: var(--ds-sp-12); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ds-sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ds-sp-6); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.w-full { width: 100%; }
.w-fit  { width: fit-content; }
.mx-auto { margin-left: auto; margin-right: auto; }


/* --- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-sp-2);
  padding: 11px 22px;
  border-radius: var(--ds-r-md);
  font-family: var(--ds-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ds-t-base);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.btn svg { flex-shrink: 0; }

/* Primary */
.btn-primary {
  background: var(--ds-primary);
  color: var(--c-white);
  border-color: var(--ds-primary);
  box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}
.btn-primary:hover {
  background: var(--ds-primary-hover);
  border-color: var(--ds-primary-hover);
  box-shadow: 0 6px 20px rgba(22,163,74,0.38);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--ds-primary);
  border-color: var(--ds-primary);
}
.btn-outline:hover {
  background: var(--ds-primary-light);
  transform: translateY(-1px);
}

/* Ghost (dark bg) */
.btn-ghost-dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.15);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.14);
  color: var(--c-white);
  border-color: rgba(255,255,255,0.25);
}

/* Ghost (light bg) */
.btn-ghost {
  background: transparent;
  color: var(--ds-text-body);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--ds-border);
  color: var(--ds-text-heading);
}

/* Sizes */
.btn-sm  { padding: 7px 14px; font-size: 0.8125rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; border-radius: var(--ds-r-md); }
.btn-xl  { padding: 16px 36px; font-size: 1.0625rem; border-radius: var(--ds-r-lg); }
.btn-full { width: 100%; }


/* --- Cards ------------------------------------------------------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-lg);
  padding: var(--ds-sp-8);
  box-shadow: var(--ds-shadow-xs);
  transition: box-shadow var(--ds-t-base), transform var(--ds-t-base), border-color var(--ds-t-base);
}
.card:hover {
  box-shadow: var(--ds-shadow-md);
  transform: translateY(-3px);
  border-color: var(--ds-primary-light);
}

.card-glass-dark {
  background: var(--ds-glass-dark);
  border: 1px solid var(--ds-glass-border-dark);
  border-radius: var(--ds-r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-glass-light {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--ds-r-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--ds-shadow-md);
}


/* --- Badges / Chips ---------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-sp-1);
  padding: 4px 10px;
  border-radius: var(--ds-r-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue      { background: var(--ds-primary-light); color: var(--ds-primary); }
.badge-cyan      { background: var(--ds-cyan-dim); color: var(--ds-cyan); }
.badge-lime      { background: var(--c-lime-dim); color: var(--c-lime); }
.badge-mint      { background: var(--c-mint); color: #059669; }
/* Semantic aliases — aligned to brand token rules */
.badge-ai        { background: var(--ds-cyan-dim); border: 1px solid var(--ds-cyan-border); color: var(--ds-cyan); }
.badge-xp        { background: var(--ds-xp-dim); border: 1px solid var(--ds-xp-border); color: var(--ds-xp); }
.badge-streak    { background: var(--ds-streak-dim); border: 1px solid var(--ds-streak-border); color: var(--ds-streak); }
.badge-completed { background: var(--ds-success-dim); border: 1px solid var(--ds-success-border); color: var(--ds-success); }
.badge-premium   { background: var(--ds-badge-dim); border: 1px solid var(--ds-badge-border); color: var(--ds-badge-purple); }
.badge-outline-white {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
}
/* Disabled button state */
.btn:disabled, .btn-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}


/* --- Progress Bar ------------------------------------------------ */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.07);
  border-radius: var(--ds-r-full);
  overflow: hidden;
}
.progress-track-dark {
  background: rgba(255,255,255,0.1);
}
.progress-fill {
  height: 100%;
  border-radius: var(--ds-r-full);
  background: linear-gradient(90deg, var(--ds-primary), var(--ds-cyan));
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.progress-fill-lime {
  background: var(--c-lime);
}


/* --- Section Header (reusable) ----------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-sp-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-primary);
  margin-bottom: var(--ds-sp-4);
}
.section-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-primary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--ds-sp-16);
}
.section-header h2 {
  margin-bottom: var(--ds-sp-4);
}
.section-header p {
  color: var(--ds-text-body);
  font-size: 1.0625rem;
  max-width: 56ch;
  margin: 0 auto;
}


/* --- Keyframe Animations ----------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}
@keyframes float-right {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(4px, -6px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
@keyframes shimmer-slide {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Hero background motion — wave, sweep, pulse */
@keyframes certifaiGreenWave {
  0%   { transform: translate3d(-8%, -1%, 0) scale(1);    opacity: 0.55; }
  45%  { transform: translate3d( 2%,  1%, 0) scale(1.06); opacity: 0.90; }
  100% { transform: translate3d( 9%,  2%, 0) scale(1.1);  opacity: 0.70; }
}
@keyframes certifaiGreenSweep {
  from { transform: translateX(-75%); }
  to   { transform: translateX(75%);  }
}
@keyframes certifaiGlowPulse {
  0%, 100% { opacity: 0.70; transform: translateX(-50%) scale(1);    }
  50%       { opacity: 1.00; transform: translateX(-50%) scale(1.12); }
}
/* Hero real-element wave animations */
@keyframes certifaiWaveLeftToRight {
  0%   { transform: translate3d(-10%, 0, 0)        scale(1);    opacity: 0.18; }
  45%  {                                                         opacity: 0.45; }
  100% { transform: translate3d(165vw, 12%, 0)     scale(1.18); opacity: 0.22; }
}
@keyframes certifaiWaveRightDrift {
  0%   { transform: translate3d(20%, -4%, 0)       scale(1);    opacity: 0.15; }
  50%  {                                                         opacity: 0.32; }
  100% { transform: translate3d(-145vw, 8%, 0)     scale(1.15); opacity: 0.18; }
}
@keyframes certifaiGlowBreath {
  from { transform: translateX(-50%) scale(0.95);  opacity: 0.22; }
  to   { transform: translateX(-50%) scale(1.12);  opacity: 0.42; }
}
@keyframes logoLTR {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%);   }
}
@keyframes logoRTL {
  from { transform: translateX(0%);   }
  to   { transform: translateX(-50%); }
}


/* --- Scroll Reveal Utilities ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fade {
  opacity: 0;
  transition: opacity 0.65s ease;
}
.reveal-fade.revealed {
  opacity: 1;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.delay-1  { transition-delay: 0.1s; }
.delay-2  { transition-delay: 0.2s; }
.delay-3  { transition-delay: 0.3s; }
.delay-4  { transition-delay: 0.4s; }
.delay-5  { transition-delay: 0.5s; }
.delay-6  { transition-delay: 0.6s; }


/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--ds-nav-h);
  transition: background var(--ds-t-base), backdrop-filter var(--ds-t-base), box-shadow var(--ds-t-base);
}
.navbar.scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 4px 24px rgba(0,0,0,0.3);
}

/* Section-aware navbar themes — controlled by data-theme observer in script.js */
.navbar--dark {
  background: rgba(3, 6, 5, 0.72);
  border-bottom: 1px solid rgba(72, 240, 138, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.navbar--light {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.navbar--light .nav-link,
.navbar--light .nav-signin {
  color: rgba(15, 23, 42, 0.65);
}
.navbar--light .nav-link:hover,
.navbar--light .nav-signin:hover {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.88);
}
.navbar--light .nav-link.active {
  color: rgba(15, 23, 42, 0.9);
}
.navbar--light .nav-hamburger span {
  background: rgba(15, 23, 42, 0.70);
}

.nav-inner {
  max-width: var(--ds-max-w);
  margin: 0 auto;
  padding: 0 var(--ds-sp-8);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--ds-sp-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-2);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  height: 9px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Logo switching: white logo on dark navbar, dark logo on light navbar */
.nav-logo-img--dark                  { display: none; }
.navbar--light .nav-logo-img--white  { display: none; }
.navbar--light .nav-logo-img--dark   { display: block; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  padding: 8px 13px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  border-radius: var(--ds-r-sm);
  transition: color var(--ds-t-fast), background var(--ds-t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover  { color: var(--c-white); background: rgba(255,255,255,0.07); }
.nav-link.active { color: var(--c-white); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-2);
  flex-shrink: 0;
}
.nav-signin {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: var(--ds-r-sm);
  transition: color var(--ds-t-fast), background var(--ds-t-fast);
}
.nav-signin:hover { color: var(--c-white); background: rgba(255,255,255,0.07); }

.nav-cta {
  padding: 9px 18px;
  font-size: 0.875rem;
  border-radius: var(--ds-r-md);
  font-weight: 600;
  background: linear-gradient(135deg, #48F08A, #19C96B);
  color: #031008;
  border: none;
  transition: all var(--ds-t-base);
  box-shadow: 0 2px 8px rgba(22,163,74,0.30);
}
.nav-cta:hover {
  background: linear-gradient(135deg, #19C96B, #16A34A);
  box-shadow: 0 4px 16px rgba(22,163,74,0.45);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all var(--ds-t-base);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/*
 * INTENTIONALLY DARK — mobile menu always uses a dark background and
 * white-alpha link colours in both light and dark mode.
 * background: var(--ds-navy) is a static dark token, not theme-adaptive.
 * Do not add html[data-theme="light"] overrides for .mobile-menu.
 */
.mobile-menu {
  position: fixed;
  top: var(--ds-nav-h);
  left: 0; right: 0;
  z-index: 199;
  background: var(--ds-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: var(--ds-sp-5) var(--ds-sp-6) var(--ds-sp-8);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--ds-t-base), opacity var(--ds-t-base);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-links { display: flex; flex-direction: column; }
.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--ds-t-fast);
}
.mobile-nav-link:hover { color: var(--c-white); }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-3);
  margin-top: var(--ds-sp-6);
}


/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 18%, rgba(72, 240, 138, 0.18), transparent 32%),
    radial-gradient(circle at 50% 55%, rgba(22, 255, 122, 0.08), transparent 36%),
    linear-gradient(180deg, #020604 0%, #06120C 48%, #020604 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--ds-nav-h);
}
/* Layer 1 — multi-blob green aurora drifting L→R */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 45%, rgba(72, 240, 138, 0.22), transparent 28%),
    radial-gradient(circle at 45% 25%, rgba(22, 255, 122, 0.13), transparent 32%),
    radial-gradient(circle at 80% 40%, rgba(182, 255, 210, 0.08), transparent 30%);
  filter: blur(30px);
  opacity: 0.85;
  animation: certifaiGreenWave 18s ease-in-out infinite alternate;
  pointer-events: none;
}
/* Layer 2 — faint diagonal light sweep */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    100deg,
    transparent                      0%,
    rgba(72, 240, 138, 0.04)        32%,
    rgba(124, 255, 178, 0.12)       50%,
    rgba(72, 240, 138, 0.04)        68%,
    transparent                    100%
  );
  transform: translateX(-75%);
  animation: certifaiGreenSweep 22s linear infinite;
  opacity: 0.45;
  pointer-events: none;
}

/* ── Hero Background Motion — real-element wave system ─────────── */
.hero-bg-motion {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-wave {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.35;
  will-change: transform, opacity;
}

/* Primary wave — wide blob that sweeps left → right */
.hero-wave-primary {
  width: 70vw;
  height: 280px;
  left: -35vw;
  top: 18%;
  background:
    radial-gradient(circle at 35% 50%, rgba(72, 240, 138, 0.55), transparent 55%),
    linear-gradient(90deg, transparent, rgba(72, 240, 138, 0.32), transparent);
  animation: certifaiWaveLeftToRight 18s ease-in-out infinite;
}

/* Secondary wave — softer blob drifting right → left for depth */
.hero-wave-secondary {
  width: 55vw;
  height: 220px;
  right: -30vw;
  top: 34%;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 255, 178, 0.34), transparent 60%);
  animation: certifaiWaveRightDrift 24s ease-in-out infinite;
}

/* Centre glow — slow breathing radial behind the middle */
.hero-wave-glow {
  width: 700px;
  height: 420px;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(72, 240, 138, 0.28), transparent 65%);
  animation: certifaiGlowBreath 10s ease-in-out infinite alternate;
}

/* Background atmosphere */
.hero-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Layer 3 — breathing centre glow */
.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse at center,
    rgba(72, 240, 138, 0.15) 0%,
    transparent 60%);
  animation: certifaiGlowPulse 9s ease-in-out infinite;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 72%);
}

/* Hero layout — full-width column: logo lanes above, copy below */
/* Hero → Why: bottom atmospheric fade (both ::before and ::after are taken by animations) */
.hero-section-fade {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 4, 0),
    rgba(6, 18, 12, 0.82) 62%,
    #030605 100%
  );
}

.hero-inner {
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* ── Hero Marquee — Three-Lane Logo System ───────────────────── */
.hero-logos-marquee {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 32px;
}

.logo-lane {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right,
    transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Depth: outer rows softer, middle row sharpest */
.logo-lane-top { opacity: 0.72; }
.logo-lane-mid { opacity: 1.00; }
.logo-lane-bot { opacity: 0.72; }

/* Middle row tiles: slightly stronger border for focal emphasis */
.logo-lane-mid .logo-tile {
  border-color: rgba(72, 240, 138, 0.24);
}

.logo-set {
  display: contents;
}

.logo-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: logoRTL 42s linear infinite;
}

/* Per-row animation overrides */
.logo-lane-top .logo-track { animation: logoLTR 45s linear infinite; }
.logo-lane-mid .logo-track { animation: logoRTL 42s linear infinite; }
.logo-lane-bot .logo-track { animation: logoLTR 50s linear infinite; }

.logo-tile {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: rgba(8, 14, 10, 0.88);
  border: 1px solid rgba(72, 240, 138, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(72, 240, 138, 0.06);
}

.logo-tile img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* --- Hero copy --------------------------------------------------- */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 960px;
  width: 100%;
  padding: 36px 32px 52px;
}

.hero-badge     { display: none; }
.hero-badge-dot { display: none; }

.hero-headline {
  font-family: var(--ds-font-display);
  font-size: clamp(1.875rem, 3.6vw, 3.0625rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  animation: slide-in-up 0.6s ease both;
}
.hero-headline-accent {
  display: inline-block;
  background: linear-gradient(120deg, #B6FFD2 0%, #48F08A 55%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.0625rem;
  color: #A7B8AE;
  line-height: 1.65;
  max-width: 52ch;
  animation: slide-in-up 0.6s 0.1s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: slide-in-up 0.6s 0.2s ease both;
}

/* --- Hero pill CTAs ----------------------------------------------- */
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #020604;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--ds-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(72, 240, 138, 0.28);
}
.hero-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48F08A;
  flex-shrink: 0;
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(72, 240, 138, 0.06);
  color: #B6FFD2;
  border: 1px solid rgba(72, 240, 138, 0.28);
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--ds-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.hero-cta-secondary:hover {
  background: rgba(72, 240, 138, 0.12);
  border-color: rgba(72, 240, 138, 0.48);
  transform: translateY(-2px);
}

.hero-support  { display: none; }
.hero-proof    { display: none; }
.proof-avatars { display: none; }
.proof-avatar  { display: none; }
.proof-text    { display: none; }


/* --- Hero Visual / Dashboard Mockup ------------------------------ */
.hero-visual {
  position: relative;
  height: 540px;
  animation: fade-in 0.8s 0.4s ease both;
}

/* Glow behind mockup */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(22,163,74,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Main dashboard card */
.dash-mock {
  position: absolute;
  top: 24px;
  left: 0;
  right: 70px;
  background: var(--ds-glass-dark);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--ds-r-xl);
  padding: var(--ds-sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-4);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.07);
  animation: float-gentle 7s ease-in-out infinite;
  z-index: 1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Dash top bar */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--ds-sp-4);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-2);
  font-family: var(--ds-font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-white);
}
.dash-brand-dot {
  width: 22px;
  height: 22px;
  background: var(--ds-primary);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 800;
  color: white;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-2);
}
.dash-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, var(--ds-primary));
  border: 2px solid rgba(255,255,255,0.18);
}
.dash-username {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* Today's lesson card */
.dash-lesson {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: var(--ds-r-md);
  padding: var(--ds-sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-3);
}
.dash-lesson-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-lesson-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.55);
}
.dash-lesson-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}
.dash-lesson-title {
  font-family: var(--ds-font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.35;
}
.dash-progress-row {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-3);
}
.dash-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--ds-r-full);
  overflow: hidden;
}
.dash-progress-fill {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--ds-primary), var(--ds-cyan));
  border-radius: var(--ds-r-full);
}
.dash-progress-pct {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}
.dash-lesson-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-sp-1);
  background: var(--ds-primary);
  color: white;
  border: none;
  border-radius: var(--ds-r-sm);
  padding: 7px 13px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: background var(--ds-t-fast), transform var(--ds-t-fast);
}
.dash-lesson-btn:hover { background: var(--ds-primary-hover); transform: translateY(-1px); }

/* Stats row */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ds-sp-2);
}
.dash-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--ds-r-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: var(--ds-sp-2);
}
.dash-stat-icon { font-size: 1rem; flex-shrink: 0; line-height: 1; }
.dash-stat-info { display: flex; flex-direction: column; gap: 1px; }
.dash-stat-val {
  font-family: var(--ds-font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
}
.dash-stat-lbl {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.2;
}

/* Floating cards */
.float-card {
  position: absolute;
  border-radius: var(--ds-r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2;
}

/* XP notification */
.float-xp {
  top: 8px;
  right: 0;
  background: rgba(7,17,31,0.92);
  border: 1px solid rgba(56,189,248,0.35);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: var(--ds-sp-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(56,189,248,0.1);
  animation: float 4.5s 1s ease-in-out infinite;
}
.float-xp-emoji { font-size: 1.2rem; line-height: 1; }
.float-xp-val {
  font-family: var(--ds-font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: #F59E0B;
  white-space: nowrap;
}
.float-xp-lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* AI Tutor chip */
.float-tutor {
  bottom: 88px;
  right: -4px;
  background: rgba(7,17,31,0.96);
  border: 1px solid rgba(22,163,74,0.3);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: var(--ds-sp-2);
  max-width: 210px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  animation: float-right 5.5s 0.5s ease-in-out infinite;
}
.float-tutor-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.float-tutor-body { display: flex; flex-direction: column; gap: 3px; }
.float-tutor-name { font-size: 0.6875rem; font-weight: 600; color: var(--ds-cyan); }
.float-tutor-msg  { font-size: 0.75rem; color: rgba(255,255,255,0.65); line-height: 1.45; }

/* Certificate card */
.float-cert {
  bottom: 4px;
  left: 16px;
  background: rgba(13,31,53,0.94);
  border: 1px solid rgba(199,248,79,0.22);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: var(--ds-sp-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: float 5s 2s ease-in-out infinite;
}
.float-cert-emoji { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.float-cert-body  { display: flex; flex-direction: column; gap: 5px; min-width: 110px; }
.float-cert-title { font-size: 0.8rem; font-weight: 600; color: var(--c-white); }
.float-cert-prog  { display: flex; align-items: center; gap: var(--ds-sp-2); }
.float-cert-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--ds-r-full);
  overflow: hidden;
}
.float-cert-fill {
  height: 100%;
  width: 75%;
  background: var(--c-lime);
  border-radius: var(--ds-r-full);
}
.float-cert-pct { font-size: 0.7rem; font-weight: 600; color: var(--c-lime); }


/* ================================================================
   PLACEHOLDER FOOTER (Phase 1)
   ================================================================ */
.footer-stub {
  background: var(--ds-navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: var(--ds-sp-8) 0;
}
.footer-stub-inner {
  max-width: var(--ds-max-w);
  margin: 0 auto;
  padding: 0 var(--ds-sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ds-sp-4);
}
.footer-stub-brand {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-2);
}
.footer-stub-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1060px) {
  .hero-logos-marquee { gap: 28px; padding-top: 24px; }
  .logo-tile { width: 80px; height: 80px; border-radius: 18px; }
  .logo-tile img { width: 60px; height: 60px; }
  .logo-track { gap: 14px; }
  .hero-copy { max-width: 720px; padding: 32px 24px 48px; gap: 16px; }
  .hero-visual {
    width: 100%;
    max-width: 520px;
    height: 460px;
    margin: 0 auto;
  }
  .dash-mock { right: 50px; }
}

/* Tablet spacing: exclude protected dark-top sections */
@media (max-width: 1024px) {
  .section:not(.why-bento-section):not(.pc-section) { padding: 80px 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile spacing: exclude protected dark-top sections */
  .section:not(.why-bento-section):not(.pc-section) { padding: 60px 0; }

  .hero-logos-marquee { gap: 20px; }
  .logo-tile { width: 68px; height: 68px; border-radius: 16px; }
  .logo-tile img { width: 50px; height: 50px; }
  .logo-track { gap: 10px; }
  .hero-copy { padding: 28px 24px 44px; }

  /* Wave motion — reduce size/opacity on tablet */
  .hero-wave-primary   { height: 200px; opacity: 0.28; }
  .hero-wave-secondary { height: 160px; opacity: 0.20; }
  .hero-wave-glow      { width: 500px;  height: 300px; }

  .hero-visual { max-width: 400px; height: 380px; }
  .dash-mock { right: 30px; }
  .float-tutor { display: none; }

  .hero-actions { flex-direction: column; align-items: center; width: 100%; max-width: 320px; }
  .hero-cta-primary, .hero-cta-secondary { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .hero-visual { display: none; }

  .logo-tile { width: 56px; height: 56px; border-radius: 13px; }
  .logo-tile img { width: 40px; height: 40px; }
  .logo-track { gap: 8px; animation-duration: 32s; }
  .hero-logos-marquee { gap: 14px; padding-top: 12px; }
  .hero-copy { padding: 24px 20px 44px; gap: 14px; }

  .hero-headline { font-size: 1.75rem; letter-spacing: -0.03em; }
  .hero-sub { font-size: 0.9375rem; }

  /* Wave motion — lighter blur and smaller glow on mobile */
  .hero-wave              { filter: blur(28px); }
  .hero-wave-primary      { height: 160px; }
  .hero-wave-glow         { width: 360px; height: 220px; }

  .footer-stub-inner { flex-direction: column; text-align: center; }

  .container { padding: 0 var(--ds-sp-5); }
}


@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none !important;
    transform: translateX(0) !important;
  }
  .hero::before,
  .hero::after,
  .hero-glow-1,
  .hero-wave { animation: none !important; }
}


/* ================================================================
   PHASE 2 — Section Styles
   ================================================================ */

/* --- Hero Tools Scroll Grid ------------------------------------- */
.hero-tools-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-5);
  height: 540px;
}

.hero-tools-grid {
  display: flex;
  gap: 12px;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

.tools-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: tools-scroll-up var(--col-dur, 24s) var(--col-delay, 0s) linear infinite;
}

@keyframes tools-scroll-up {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.tool-card {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  background: var(--tc, #1a1a2e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform var(--ds-t-base), box-shadow var(--ds-t-base);
  cursor: default;
}
.tool-card:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  z-index: 2;
}
.tc-gradient {
  background: linear-gradient(135deg, var(--tc-a, #4285F4), var(--tc-b, #9C27B0)) !important;
}
.tc-icon {
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  font-family: var(--ds-font-display);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tc-name {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.2;
  padding: 0 6px;
}

/* Hero chips (after-hero cards below the grid) */
.hero-chips {
  display: flex;
  gap: var(--ds-sp-3);
}
.hero-chip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--ds-sp-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ds-r-lg);
  padding: var(--ds-sp-3) var(--ds-sp-4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip-icon { font-size: 1.25rem; flex-shrink: 0; }
.chip-title { font-size: .85rem; font-weight: 600; color: var(--c-white); }
.chip-sub   { font-size: .75rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* Trusted bar */
.trusted-bar {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: var(--ds-sp-5) 0;
  position: relative;
  z-index: 1;
}
.trusted-inner {
  max-width: var(--ds-max-w);
  margin: 0 auto;
  padding: 0 var(--ds-sp-8);
  display: flex;
  align-items: center;
  gap: var(--ds-sp-6);
  flex-wrap: wrap;
  justify-content: center;
}
.trusted-label {
  font-size: .8rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.trusted-logos {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-3);
  flex-wrap: wrap;
  justify-content: center;
}
.trusted-logo {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  transition: color var(--ds-t-fast);
}
.trusted-logo:hover { color: rgba(255,255,255,0.6); }
.trusted-sep { color: rgba(255,255,255,0.15); }


/* --- Why CertifAI ---------------------------------------------- */
/* ================================================================
   WHY CERTIFAI — Dark Bento Redesign
   ================================================================ */

/* ─── Section shell ─────────────────────────────────────────────── */
.why-bento-section {
  position: relative;
  background: #06120C;
  overflow: hidden;
}

/* Why top: secondary fade layer for colour continuity with hero-section-fade endpoint */
.why-bento-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #030605, transparent);
  pointer-events: none;
  z-index: 0;
}

/* Why → Paths: fade into shared dark base */
.why-bento-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(6, 18, 12, 0), #030605);
  pointer-events: none;
  z-index: 0;
}

/* ─── Ambient background glows ──────────────────────────────────── */
.why-bento-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.why-bento-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,240,138,0.10) 0%, transparent 70%);
  top: -15%;
  left: -8%;
  animation: whyGlowDrift1 22s ease-in-out infinite alternate;
  will-change: transform;
}
.why-bento-glow-2 {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,240,138,0.07) 0%, transparent 70%);
  bottom: 5%;
  right: -8%;
  animation: whyGlowDrift2 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes whyGlowDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8%, 6%) scale(1.10); }
}
@keyframes whyGlowDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6%, -8%) scale(1.08); }
}

/* ─── Bento grid ─────────────────────────────────────────────────── */
.why-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
/* Top row — 4 cols each */
.why-card--path,
.why-card--tools,
.why-card--speed   { grid-column: span 4; }
/* Bottom row — 6 cols each */
.why-card--practice,
.why-card--proof   { grid-column: span 6; }

/* ─── Card base ─────────────────────────────────────────────────── */
.why-bento-card {
  position: relative;
  background: rgba(10,15,11,0.90);
  border: 1px solid rgba(72,240,138,0.14);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1),
              box-shadow 280ms ease,
              border-color 280ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Dot-grid texture */
.why-bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(72,240,138,0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
/* Top-edge highlight */
.why-bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72,240,138,0.40), transparent);
  pointer-events: none;
  z-index: 1;
}
.why-bento-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(72,240,138,0.36);
  box-shadow: 0 24px 60px rgba(0,0,0,0.40),
              0 0 32px rgba(72,240,138,0.07) inset;
}

/* ─── Visual area ───────────────────────────────────────────────── */
.why-bento-visual {
  position: relative;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}
.why-bento-visual--wide { height: 160px; }

/* ─── Card body ──────────────────────────────────────────────────── */
.why-bento-body {
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.why-bento-title {
  font-family: var(--ds-font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}
.why-bento-desc {
  font-size: 0.875rem;
  color: #A7B8AE;
  line-height: 1.6;
  margin: 0;
}

/* ─── Card 1: Guided path ────────────────────────────────────────── */
.wbv-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.wbv-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--ds-font-display);
  flex-shrink: 0;
}
.wbv-node--done {
  background: rgba(72,240,138,0.18);
  border: 1.5px solid rgba(72,240,138,0.55);
  color: #48F08A;
}
.wbv-node--active {
  background: #48F08A;
  border: 1.5px solid #48F08A;
  color: #020604;
  box-shadow: 0 0 18px rgba(72,240,138,0.55);
  animation: whyNodePulse 1.8s ease-in-out infinite alternate;
}
.wbv-node--locked {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.28);
}
.wbv-connector {
  width: 2px;
  height: 18px;
  background: linear-gradient(to bottom, rgba(72,240,138,0.55), rgba(72,240,138,0.25));
  flex-shrink: 0;
}
.wbv-connector--dim {
  background: linear-gradient(to bottom, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
}
@keyframes whyNodePulse {
  from { box-shadow: 0 0 10px rgba(72,240,138,0.40); transform: scale(1);    }
  to   { box-shadow: 0 0 22px rgba(72,240,138,0.75); transform: scale(1.10); }
}

/* ─── Card 2: AI tools grid ──────────────────────────────────────── */
.wbv-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 66px);
  grid-template-rows: repeat(2, 34px);
  gap: 7px;
}
.wbv-tool {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.wbv-tool-1 {
  color: rgba(72,240,138,0.85);
  border-color: rgba(72,240,138,0.26);
  background: rgba(72,240,138,0.06);
  animation: whyToolFloat 3.0s 0.0s ease-in-out infinite alternate;
}
.wbv-tool-2 { animation: whyToolFloat 3.5s 0.3s ease-in-out infinite alternate; }
.wbv-tool-3 { animation: whyToolFloat 2.8s 0.6s ease-in-out infinite alternate; }
.wbv-tool-4 { animation: whyToolFloat 3.2s 0.9s ease-in-out infinite alternate; }
.wbv-tool-5 { animation: whyToolFloat 3.7s 0.4s ease-in-out infinite alternate; }
.wbv-tool-6 { animation: whyToolFloat 3.1s 1.1s ease-in-out infinite alternate; }
@keyframes whyToolFloat {
  from { transform: translateY(0px); }
  to   { transform: translateY(-5px); }
}

/* ─── Card 3: Lightning bolt ─────────────────────────────────────── */
.wbv-lightning {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wbv-bolt {
  display: block;
  width: 52px;
  height: 88px;
  background: #48F08A;
  clip-path: polygon(65% 0%, 30% 55%, 52% 55%, 38% 100%, 72% 45%, 50% 45%);
  animation: whyLightningBreath 2.4s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}
.wbv-bolt-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,240,138,0.22) 0%, transparent 70%);
  animation: whyLightningBreath 2.4s ease-in-out infinite alternate;
}
@keyframes whyLightningBreath {
  from { opacity: 0.80; filter: drop-shadow(0 0  8px rgba(72,240,138,0.45)); }
  to   { opacity: 1.00; filter: drop-shadow(0 0 22px rgba(72,240,138,0.90)); }
}

/* ─── Card 4: Infinity loop ──────────────────────────────────────── */
.wbv-loop {
  position: relative;
  width: 160px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wbv-loop-circle {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1.5px solid rgba(72,240,138,0.32);
  box-shadow: 0 0 14px rgba(72,240,138,0.10) inset;
}
.wbv-loop-circle-1 { left:  0; }
.wbv-loop-circle-2 { right: 0; }
.wbv-loop-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #48F08A;
  box-shadow: 0 0 12px rgba(72,240,138,0.85);
  left: 50%;
  top: 50%;
  margin: -5px 0 0 -5px;
  animation: whyOrbit 4s linear infinite;
  z-index: 2;
}
.wbv-loop-label {
  position: absolute;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(72,240,138,0.12);
  line-height: 1;
  font-family: var(--ds-font-display);
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
}
@keyframes whyOrbit {
  from { transform: rotate(0deg)   translateX(38px) rotate(0deg);   }
  to   { transform: rotate(360deg) translateX(38px) rotate(-360deg); }
}

/* ─── Card 5: Certificate ────────────────────────────────────────── */
.wbv-cert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}
.wbv-cert-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(72,240,138,0.24);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 168px;
  animation: whyCertGlow 4s ease-in-out infinite alternate;
}
.wbv-cert-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wbv-cert-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #48F08A;
  color: #020604;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wbv-cert-brand {
  font-size: 0.625rem;
  font-weight: 700;
  color: #48F08A;
  font-family: var(--ds-font-display);
}
.wbv-cert-label {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wbv-cert-course {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--ds-font-display);
}
.wbv-cert-seal { font-size: 1rem; margin-top: 2px; }
.wbv-cert-badge {
  background: rgba(72,240,138,0.10);
  border: 1px solid rgba(72,240,138,0.35);
  color: #48F08A;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}
@keyframes whyCertGlow {
  from { box-shadow: 0 0 14px rgba(72,240,138,0.06); }
  to   { box-shadow: 0 0 32px rgba(72,240,138,0.20); }
}


/* --- YOU Journey: How It Works --------------------------------- */
.how-journey-section {
  background: #030605;
  padding: 0;
  position: relative;
}
.how-journey__intro {
  padding: 72px 0 28px;
}
.how-journey-section .section-label      { color: var(--brand-green, #48F08A); }
.how-journey-section .section-label-dot  { background: var(--brand-green, #48F08A); }
.how-journey-section .section-header h2  { color: #f8fafc; }
.how-journey-section .section-header p   { color: rgba(248,250,252,0.62); }

/* Driver: provides scroll room; shorter than before */
.how-journey__driver {
  position: relative;
  height: 170vh;
}
/* Subtle radial glow behind the image panel */
.how-journey__driver::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 52vw;
  height: 52vw;
  max-width: 680px;
  max-height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,240,138,0.07) 0%, transparent 62%);
  pointer-events: none;
}

/* Sticky stage: 2-column grid */
.how-journey__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  overflow: hidden;
}

/* Left column: rail absolute, steps flex-column */
.how-journey__left {
  position: relative;
  padding-left: 36px;
}

/* Rail: stretches to full height of .how-journey__left */
.how-journey__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22px;
}
.how-journey__line,
.how-journey__progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  border-radius: 2px;
}
.how-journey__line {
  height: 100%;
  background: rgba(72,240,138,0.16);
}
.how-journey__progress {
  height: 0;
  background: #48F08A;
  transition: height 80ms linear;
}
.how-journey__marker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #48F08A;
  box-shadow: 0 0 18px rgba(72,240,138,0.75);
  transition: top 80ms linear;
}

/* Steps: stacked, ALL visible — muted unless active */
.how-journey__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.how-journey-step {
  padding: 22px 0;
  opacity: 0.3;
  transition: opacity 0.32s ease;
  border-bottom: 1px solid rgba(72,240,138,0.08);
}
.how-journey-step:last-child { border-bottom: none; }
.how-journey-step.is-active  { opacity: 1; }

/* Step copy */
.how-journey-step__tag {
  display: inline-block;
  font-family: var(--ds-font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #48F08A;
  margin-bottom: 8px;
}
.how-journey-step__copy h3 {
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
  margin-bottom: 8px;
}
.how-journey-step__copy p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(248,250,252,0.65);
  max-width: 42ch;
}

/* Right column: large image panel, cross-fades */
.how-journey__images {
  position: relative;
  height: clamp(300px, 52vh, 460px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(72,240,138,0.14);
  box-shadow: 0 0 72px rgba(72,240,138,0.09), 0 24px 64px rgba(0,0,0,0.45);
}
.how-journey-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.how-journey-img.is-active { opacity: 1; }

/* Shared image/placeholder styles */
.how-journey-step__placeholder { width: 100%; height: 100%; }
.hj-pl--01 { background: linear-gradient(145deg, rgba(72,240,138,0.18) 0%, rgba(16,185,129,0.06) 100%); }
.hj-pl--02 { background: linear-gradient(145deg, rgba(56,189,248,0.15) 0%, rgba(72,240,138,0.08) 100%); }
.hj-pl--03 { background: linear-gradient(145deg, rgba(167,139,250,0.15) 0%, rgba(72,240,138,0.08) 100%); }
.hj-pl--04 { background: linear-gradient(145deg, rgba(251,191,36,0.15) 0%, rgba(72,240,138,0.10) 100%); }
.how-journey-step__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile: images sticky-top, steps stack below */
@media (max-width: 768px) {
  .how-journey__intro { padding: 60px 0 24px; }
  .how-journey__driver { height: auto; }
  .how-journey__stage {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 20px 56px;
    max-width: none;
    overflow: visible;
  }
  .how-journey__images {
    position: sticky;
    top: 68px;
    height: 240px;
    border-radius: 18px;
    margin-bottom: 20px;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  }
  .how-journey__left { padding-left: 0; }
  .how-journey__rail { display: none; }
  .how-journey-step {
    padding: 20px 0;
    opacity: 0.35;
  }
  .how-journey-step.is-active { opacity: 1; }
  .how-journey-step__copy h3  { font-size: 1.125rem; }
  .how-journey-step__copy p   { font-size: 0.875rem; max-width: none; }
  .how-journey__driver::before { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .how-journey-step,
  .how-journey-img,
  .how-journey__progress,
  .how-journey__marker { transition: none; }
  .how-journey-step    { opacity: 1; }
  .how-journey-img     { opacity: 0; }
  .how-journey-img.is-active { opacity: 1; }
}


/* --- 28-Day Challenge ------------------------------------------ */
.challenge-section {
  background: var(--ds-navy);
  position: relative;
  overflow: hidden;
}
.challenge-bg-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(22,163,74,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.challenge-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-sp-16);
  align-items: center;
}
.challenge-copy { display: flex; flex-direction: column; gap: var(--ds-sp-5); }
.challenge-copy h2 { font-size: clamp(1.75rem,3vw,2.5rem); }
.challenge-copy p  { max-width: 42ch; }

.challenge-milestones { display: flex; flex-direction: column; gap: var(--ds-sp-3); }
.milestone {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-3);
  color: rgba(255,255,255,0.75);
  font-size: .9rem;
}
.ms-badge { font-size: 1.1rem; width: 28px; text-align: center; flex-shrink: 0; }
.milestone strong { color: var(--c-white); }

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--ds-sp-2);
  margin-bottom: var(--ds-sp-4);
}
.day {
  aspect-ratio: 1;
  border-radius: var(--ds-r-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  transition: transform var(--ds-t-fast);
}
.day:hover { transform: scale(1.1); }
.day.done {
  background: rgba(22,163,74,0.25);
  border-color: rgba(22,163,74,0.4);
  color: var(--c-white);
}
.day.active {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  color: white;
  box-shadow: 0 0 12px rgba(22,163,74,0.5);
}
.day.badge-day {
  background: rgba(22,163,74,0.35);
  border-color: rgba(22,163,74,0.5);
  color: var(--c-white);
  font-size: .6rem;
}
.day.unlock-day {
  background: rgba(199,248,79,0.12);
  border-color: rgba(199,248,79,0.25);
  color: var(--c-lime);
  font-size: .6rem;
}
.day.cert-day {
  background: rgba(199,248,79,0.18);
  border-color: rgba(199,248,79,0.35);
  color: var(--c-lime);
  font-size: .6rem;
}
.challenge-progress-row {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-3);
}


/* --- Courses --------------------------------------------------- */
/* ================================================================
   COURSES — Premium editorial card redesign (cc2)
   ================================================================ */

.courses-section { background: var(--section-bg, var(--ds-bg-light)); }

/* Group wrappers */
.cc2-group        { margin-top: var(--ds-sp-12); }
.cc2-group:first-of-type { margin-top: 0; }
.cc2-group--paid  { margin-top: 56px; }
.cc2-group-label  { margin-bottom: var(--ds-sp-6); }

/* Grid — replaces .courses-row / .courses-grid-paid */
.cc2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card shell ──────────────────────────────────────────────────── */
.cc2-card {
  background: var(--c-white);
  border: 1px solid var(--ds-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;                            /* visual area handles its own height */
  gap: 0;
  transition:
    transform     300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow    300ms ease,
    border-color  300ms ease;
  cursor: pointer;
}
.cc2-card:hover {
  transform: translateY(-8px) !important; /* beats .course-card.reveal.revealed specificity */
  box-shadow: 0 28px 64px rgba(0,0,0,0.12), 0 0 0 1px rgba(22,163,74,0.10);
  border-color: rgba(22,163,74,0.16);
}

/* ── Visual top area ─────────────────────────────────────────────── */
.cc2-visual {
  height: 216px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
/* Inner wrapper — scales on hover for the zoom feel */
.cc2-vi {
  position: absolute;
  inset: 0;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cc2-card:hover .cc2-vi { transform: scale(1.06); }

/* ── Card body ───────────────────────────────────────────────────── */
.cc2-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  /* Force dark text — card is always white regardless of page theme */
  --ds-text-heading: #0F172A;
  --ds-text-body:    #475569;
  --ds-text-faint:   #94A3B8;
  --ds-border:       #E5E7EB;
}
.cc2-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cc2-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.cc2-badge--free { background: var(--c-mint);             color: #059669; }
.cc2-badge--paid { background: rgba(22, 163, 74, 0.12);  color: #15803D; font-weight: 600; }
.cc2-badge--cert { background: #FEF3C7;                   color: #92400E; font-weight: 500; }

.cc2-title {
  font-family: var(--ds-font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ds-text-heading);
  line-height: 1.25;
  margin: 0;
}
.cc2-desc {
  font-size: 0.8438rem;
  color: var(--ds-text-body);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.cc2-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--ds-text-faint);
  flex-wrap: wrap;
}
.cc2-sep { color: var(--ds-border); }

.cc2-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.8438rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  margin-top: 2px;
  transition: background var(--ds-t-base), color var(--ds-t-base), border-color var(--ds-t-base);
}
.cc2-cta--free {
  background: var(--brand-green-main);
  color: #fff;
}
.cc2-cta--free:hover { background: var(--brand-green-hover); }
.cc2-cta--paid {
  background: var(--brand-green-main);
  color: #fff;
}
.cc2-cta--paid:hover { background: var(--brand-green-hover); }

/* ── Visual compositions — per course ───────────────────────────── */

/* --- 1. AI Foundations: cool blue neural sphere --- */
.cc2-visual--foundations {
  background: linear-gradient(148deg, #0A1230 0%, #1a3a8f 52%, #0A1230 100%);
}
.cc2-visual--foundations::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 54% 46%, rgba(96,165,250,0.42), transparent 52%);
  z-index: 1;
}
.cc2-orb {
  position: absolute;
  width: 80px; height: 80px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186,220,255,0.90) 0%, rgba(59,130,246,0.35) 60%, transparent 80%);
  box-shadow: 0 0 36px rgba(96,165,250,0.65), 0 0 72px rgba(59,130,246,0.28);
  z-index: 3;
}
.cc2-ring {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(96,165,250,0.22);
  z-index: 2;
}
.cc2-ring-1 { width: 120px; height: 120px; border-color: rgba(96,165,250,0.32); }
.cc2-ring-2 { width: 170px; height: 170px; border-color: rgba(96,165,250,0.18); }
.cc2-ring-3 { width: 230px; height: 230px; border-color: rgba(96,165,250,0.09); }

/* --- 2. ChatGPT for Beginners: deep green + chat bubbles --- */
.cc2-visual--chatgpt {
  background: linear-gradient(148deg, #041409 0%, #05402A 52%, #041409 100%);
}
.cc2-visual--chatgpt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 42% 50%, rgba(52,211,153,0.32), transparent 52%);
  z-index: 1;
}
.cc2-bubble {
  position: absolute;
  border-radius: 999px;
  z-index: 2;
}
.cc2-bubble-1 {
  width: 110px; height: 32px;
  left: 16%; top: 28%;
  background: rgba(52,211,153,0.16);
  border: 1px solid rgba(52,211,153,0.38);
}
.cc2-bubble-2 {
  width: 82px; height: 28px;
  right: 14%; top: 48%;
  background: rgba(16,185,129,0.13);
  border: 1px solid rgba(16,185,129,0.30);
}
.cc2-bubble-3 {
  width: 130px; height: 28px;
  left: 12%; bottom: 24%;
  background: rgba(52,211,153,0.09);
  border: 1px solid rgba(52,211,153,0.20);
}

/* --- 3. Prompting for Work: warm amber + text lines --- */
.cc2-visual--prompting {
  background: linear-gradient(148deg, #160B00 0%, #3D1900 52%, #160B00 100%);
}
.cc2-visual--prompting::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(251,191,36,0.28), transparent 52%);
  z-index: 1;
}
.cc2-line {
  position: absolute;
  left: 18%;
  height: 3px;
  border-radius: 2px;
  background: rgba(251,191,36,0.38);
  z-index: 2;
}
.cc2-line-1 { width: 60%; top: 32%; }
.cc2-line-2 { width: 46%; top: 46%; background: rgba(251,191,36,0.24); }
.cc2-line-3 { width: 36%; top: 60%; background: rgba(251,191,36,0.14); }
.cc2-cursor {
  position: absolute;
  width: 2px; height: 18px;
  left: calc(18% + 60% + 5px);
  top: calc(32% - 7px);
  border-radius: 1px;
  background: rgba(251,191,36,0.80);
  z-index: 3;
  animation: cc2Blink 1.1s ease-in-out infinite alternate;
}
@keyframes cc2Blink {
  from { opacity: 0.80; }
  to   { opacity: 0.08; }
}

/* --- 4. AI for Productivity: deep navy + bar chart --- */
.cc2-visual--productivity {
  background: linear-gradient(148deg, #040D1C 0%, #0B2240 52%, #040D1C 100%);
}
.cc2-visual--productivity::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 56%, rgba(59,130,246,0.28), transparent 52%);
  z-index: 1;
}
.cc2-bar {
  position: absolute;
  bottom: 22%;
  border-radius: 4px 4px 0 0;
  z-index: 2;
}
.cc2-bar-1 { left: 20%; width: 11%; height: 75px;  background: rgba(59,130,246,0.52); }
.cc2-bar-2 { left: 34%; width: 11%; height: 110px; background: rgba(96,165,250,0.68); }
.cc2-bar-3 { left: 48%; width: 11%; height: 60px;  background: rgba(59,130,246,0.46); }
.cc2-bar-4 { left: 62%; width: 11%; height: 130px; background: rgba(147,197,253,0.72); }
.cc2-baseline {
  position: absolute;
  bottom: calc(22% - 1px);
  left: 16%; right: 16%;
  height: 1px;
  background: rgba(96,165,250,0.22);
  z-index: 2;
}

/* --- 5. Canva AI for Design: purple + composition blocks --- */
.cc2-visual--canva {
  background: linear-gradient(148deg, #150328 0%, #3B0764 52%, #150328 100%);
}
.cc2-visual--canva::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 42% 48%, rgba(167,139,250,0.32), transparent 50%),
    radial-gradient(circle at 72% 32%, rgba(251,113,133,0.18), transparent 40%);
  z-index: 1;
}
.cc2-block {
  position: absolute;
  border-radius: 10px;
  z-index: 2;
}
.cc2-block-1 {
  width: 84px; height: 62px;
  left: 16%; top: 22%;
  background: rgba(167,139,250,0.22);
  border: 1px solid rgba(167,139,250,0.42);
}
.cc2-block-2 {
  width: 58px; height: 84px;
  left: 40%; top: 32%;
  background: rgba(251,113,133,0.18);
  border: 1px solid rgba(251,113,133,0.34);
}
.cc2-block-3 {
  width: 72px; height: 52px;
  right: 14%; bottom: 22%;
  background: rgba(196,181,253,0.14);
  border: 1px solid rgba(196,181,253,0.28);
}

/* --- 6. CapCut AI for Video: cinematic dark + timeline --- */
.cc2-visual--capcut {
  background: linear-gradient(148deg, #070707 0%, #17172B 52%, #070707 100%);
}
.cc2-visual--capcut::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.07), transparent 48%),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  z-index: 1;
}
.cc2-tl {
  position: absolute;
  left: 12%; right: 12%;
  height: 2px;
  border-radius: 1px;
  z-index: 2;
}
.cc2-tl-1 { top: 36%; background: rgba(255,255,255,0.22); }
.cc2-tl-2 { top: 52%; background: rgba(255,255,255,0.12); }
.cc2-tl-3 { top: 68%; background: rgba(255,255,255,0.07); }
.cc2-tl-1::before {
  content: '';
  position: absolute;
  left: 28%; top: -5px;
  width: 2px; height: 12px;
  background: rgba(255,255,255,0.55);
  border-radius: 1px;
}
.cc2-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  border: 1.5px solid rgba(255,255,255,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.cc2-play::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent rgba(255,255,255,0.82);
  margin-left: 3px;
}

/* ── "Browse all courses" CTA ────────────────────────────────────── */
.courses-cta { display: flex; justify-content: center; margin-top: var(--ds-sp-10); }


/* --- AI Tools We Teach ----------------------------------------- */
.tools-teach-section { background: var(--c-white); }

.tools-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-sp-3);
  justify-content: center;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-sp-1);
  background: var(--p-bg);
  color: var(--p-c);
  border-radius: var(--ds-r-full);
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 600;
  transition: transform var(--ds-t-fast), box-shadow var(--ds-t-fast);
  cursor: default;
}
.tool-pill:hover { transform: translateY(-2px); box-shadow: var(--ds-shadow-sm); }


/* --- AI Tutor -------------------------------------------------- */
.tutor-section { background: var(--ds-navy); position: relative; overflow: hidden; }
.tutor-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(22,163,74,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.tutor-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-sp-16);
  align-items: center;
}
.tutor-copy { display: flex; flex-direction: column; gap: var(--ds-sp-5); }
.tutor-features {
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-2);
}
.tutor-features li { font-size: .9rem; color: rgba(255,255,255,0.7); }

.chat-window {
  background: var(--ds-glass-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ds-r-xl);
  overflow: hidden;
  box-shadow: var(--ds-shadow-lg);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-3);
  padding: var(--ds-sp-4) var(--ds-sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.chat-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.chat-name   { font-size: .875rem; font-weight: 600; color: var(--c-white); }
.chat-status { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: rgba(255,255,255,0.4); }
.chat-dot    { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; display: inline-block; animation: pulse-dot 2s ease-in-out infinite; }
.chat-body   { padding: var(--ds-sp-5); display: flex; flex-direction: column; gap: var(--ds-sp-3); max-height: 360px; overflow-y: auto; }

.chat-msg {
  padding: var(--ds-sp-3) var(--ds-sp-4);
  border-radius: var(--ds-r-lg);
  font-size: .875rem;
  line-height: 1.55;
  max-width: 85%;
}
.tutor-msg {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.82);
  align-self: flex-start;
  border-radius: var(--ds-r-sm) var(--ds-r-lg) var(--ds-r-lg) var(--ds-r-lg);
}
.user-msg {
  background: var(--ds-primary);
  color: white;
  align-self: flex-end;
  border-radius: var(--ds-r-lg) var(--ds-r-sm) var(--ds-r-lg) var(--ds-r-lg);
}
.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-sp-2);
}
.chat-prompt-btn {
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.3);
  border-radius: var(--ds-r-full);
  color: var(--ds-cyan);
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: all var(--ds-t-fast);
  font-family: var(--ds-font-body);
}
.chat-prompt-btn:hover {
  background: rgba(22,163,74,0.28);
  border-color: var(--ds-cyan);
}


/* --- Dashboard Preview ----------------------------------------- */
.dashboard-section { background: var(--ds-bg-light); }

.dashboard-preview {
  display: flex;
  border-radius: var(--ds-r-xl);
  overflow: hidden;
  box-shadow: var(--ds-shadow-lg), 0 0 0 1px var(--ds-border);
  max-height: 440px;
}
.dp-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--ds-navy);
  padding: var(--ds-sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-6);
}
.dp-brand { display: flex; align-items: center; gap: var(--ds-sp-2); }
.dp-nav   { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dp-nav-item {
  display: block;
  padding: 9px 10px;
  border-radius: var(--ds-r-sm);
  font-size: .8rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--ds-t-fast);
}
.dp-nav-item:hover, .dp-nav-item.active {
  background: rgba(22,163,74,0.25);
  color: var(--c-white);
}
.dp-nav-item.active { color: var(--c-white); }
.dp-user { display: flex; align-items: center; gap: var(--ds-sp-2); }

.dp-main {
  flex: 1;
  background: var(--c-white);
  padding: var(--ds-sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-5);
  overflow-y: auto;
}
.dp-welcome { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--ds-sp-3); }
.dp-welcome-text { font-family: var(--ds-font-display); font-weight: 700; font-size: 1.05rem; color: var(--ds-text-heading); }
.dp-stats-row { display: flex; gap: var(--ds-sp-2); }
.dp-stat-chip {
  background: var(--ds-bg-light);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-full);
  padding: 5px 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ds-text-heading);
}
.dp-lesson-card {
  background: var(--c-sky);
  border: 1px solid var(--ds-primary-light);
  border-radius: var(--ds-r-lg);
  padding: var(--ds-sp-5);
}
.dp-lesson-meta { display: flex; align-items: center; gap: var(--ds-sp-3); margin-bottom: var(--ds-sp-2); }
.dp-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-sp-3); }
.dp-mini-card {
  background: var(--ds-bg-light);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-md);
  padding: var(--ds-sp-4);
}
.dp-mini-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ds-text-faint); margin-bottom: 4px; }
.dp-mini-val   { font-family: var(--ds-font-display); font-size: .9rem; font-weight: 700; color: var(--ds-text-heading); }


/* --- Certification --------------------------------------------- */
.cert-section { background: var(--section-bg, var(--c-white)); }
.cert-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-sp-16);
  align-items: center;
}
.cert-copy { display: flex; flex-direction: column; gap: var(--ds-sp-5); }
.cert-list { display: flex; flex-direction: column; gap: var(--ds-sp-2); }
.cert-list li { font-size: .9rem; color: var(--ds-text-body); }

.cert-card-wrap { display: flex; justify-content: center; align-items: center; }
.cert-preview-img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  display: block;
  object-fit: contain;
}
.cert-card {
  background: var(--c-white);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-xl);
  width: 100%;
  max-width: 360px;
  box-shadow: var(--ds-shadow-lg);
  overflow: hidden;
}
.cert-card-header {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-2);
  padding: var(--ds-sp-5) var(--ds-sp-6);
  background: var(--ds-bg-light);
  border-bottom: 1px solid var(--ds-border);
}
.cert-card-body {
  padding: var(--ds-sp-8) var(--ds-sp-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-sp-2);
}
.cert-card-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ds-text-faint); }
.cert-card-course { font-family: var(--ds-font-display); font-size: 1.35rem; font-weight: 800; color: var(--ds-text-heading); margin: var(--ds-sp-2) 0; }
.cert-card-awarded { font-size: .8rem; color: var(--ds-text-faint); }
.cert-card-name { font-family: var(--ds-font-display); font-size: 1.5rem; font-weight: 700; color: var(--ds-primary); }
.cert-card-date { font-size: .78rem; color: var(--ds-text-faint); margin-top: var(--ds-sp-1); }
.cert-card-footer {
  padding: var(--ds-sp-4) var(--ds-sp-6);
  border-top: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  gap: var(--ds-sp-3);
}
.cert-seal { font-size: 1.5rem; }


/* --- MVP 2 Teaser ---------------------------------------------- */
.mvp2-section { background: var(--c-lavender); }
.mvp2-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-sp-16);
  align-items: center;
}
.mvp2-copy { display: flex; flex-direction: column; gap: var(--ds-sp-5); }
.mvp2-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-sp-2);
  align-content: flex-start;
}
.mvp2-track-pill {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-full);
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ds-text-heading);
  backdrop-filter: blur(8px);
}
.mvp2-track-pill.coming {
  background: var(--ds-primary-light);
  border-color: var(--ds-primary);
  color: var(--ds-primary);
  font-weight: 600;
}


/* --- Pricing (v2 — always dark, 4-plan hybrid model) ----------- */
.pricing-section {
  background: #030605;
  position: relative;
}
.pricing-section::before {
  content: '';
  position: absolute;
  top: 15%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 60%;
  background: radial-gradient(ellipse, rgba(72,240,138,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.pricing-section .section-label     { color: #48F08A; }
.pricing-section .section-label-dot { background: #48F08A; }
.pricing-section .section-header h2 { color: #f8fafc; }
.pricing-section .section-header p  { color: rgba(248,250,252,0.60); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: linear-gradient(160deg, #06120C 0%, #030605 100%);
  border: 1px solid rgba(72,240,138,0.12);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.pricing-card:hover {
  border-color: rgba(72,240,138,0.30);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

.pricing-card-featured {
  background: linear-gradient(160deg, #0c2116 0%, #070f09 100%);
  border: 1.5px solid rgba(72,240,138,0.42);
  box-shadow: 0 0 0 1px rgba(72,240,138,0.14), 0 16px 56px rgba(0,0,0,0.50);
}
.pricing-card-featured:hover {
  border-color: rgba(72,240,138,0.62);
  box-shadow: 0 0 0 1px rgba(72,240,138,0.20), 0 0 60px rgba(72,240,138,0.10), 0 16px 56px rgba(0,0,0,0.55);
}

.pricing-popular {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: #16A34A;
  color: #fff;
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: #48F08A;
}

.pricing-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
  line-height: 1;
}
.pricing-from {
  font-size: 0.8125rem; color: rgba(248,250,252,0.42);
  font-weight: 400; align-self: flex-end; padding-bottom: 2px;
}
.pricing-amount {
  font-family: var(--ds-font-display);
  font-size: 2rem; font-weight: 800; color: #f8fafc; line-height: 1;
}
.pricing-custom { font-size: 1.625rem; }
.pricing-period {
  font-size: 0.8125rem; color: rgba(248,250,252,0.42);
  font-weight: 400; align-self: flex-end; padding-bottom: 2px;
}

.pricing-best-for {
  font-size: 0.75rem; color: rgba(248,250,252,0.48); line-height: 1.4; margin: 0;
}
.pricing-best-for span { color: #48F08A; font-weight: 600; }

.pricing-desc {
  font-size: 0.8125rem; color: rgba(248,250,252,0.55); line-height: 1.65; margin: 0;
}
.pricing-card-featured .pricing-desc { color: rgba(248,250,252,0.70); }

.pricing-features {
  display: flex; flex-direction: column; gap: 9px;
  flex: 1; margin: 0; padding: 0; list-style: none;
}
.pricing-features li {
  font-size: 0.8125rem; color: rgba(248,250,252,0.62);
  display: flex; align-items: flex-start; gap: 9px;
}
.pricing-features li::before {
  content: '';
  flex-shrink: 0; width: 5px; height: 5px;
  border-radius: 50%; background: #48F08A; margin-top: 5px;
}
.pricing-card-featured .pricing-features li { color: rgba(248,250,252,0.82); }

.pricing-cta {
  display: block; text-align: center; margin-top: auto;
  padding: 12px 20px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(248,250,252,0.76);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.pricing-cta:hover {
  border-color: rgba(255,255,255,0.30);
  color: #fff; background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.pricing-cta:focus-visible {
  outline: 2px solid rgba(72,240,138,0.70); outline-offset: 3px;
}
.pricing-cta--primary {
  background: #16A34A; border-color: transparent; color: #fff; font-weight: 700;
}
.pricing-cta--primary:hover {
  background: #15803D; border-color: transparent; color: #fff;
}


/* --- Final CTA ------------------------------------------------- */
.final-cta-section {
  background: var(--brand-dark-2);
  position: relative;
  overflow: hidden;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 20% 50%, rgba(22,163,74,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(56,189,248,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-sp-6);
}
.final-cta-inner h2 { color: var(--c-white); font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.final-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-4);
  flex-wrap: wrap;
  justify-content: center;
}


/* --- Footer ---------------------------------------------------- */
.footer {
  background: var(--brand-dark);
  border-top: 1px solid rgba(72, 240, 138, 0.10);
}
.footer-inner {
  max-width: var(--ds-max-w);
  margin: 0 auto;
  padding: var(--ds-sp-16) var(--ds-sp-8);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--ds-sp-10);
}
.footer-brand-col { display: flex; flex-direction: column; gap: var(--ds-sp-5); }
.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 28ch;
}
.footer-socials { display: flex; gap: var(--ds-sp-3); }
.footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--ds-r-sm);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: .8rem;
  font-weight: 700;
  transition: all var(--ds-t-fast);
}
.footer-social-link:hover { border-color: var(--ds-primary); color: var(--c-white); }
.footer-col { display: flex; flex-direction: column; gap: var(--ds-sp-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--ds-sp-3); }
.footer-col-heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.5);
}
.footer-link {
  font-size: .875rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--ds-t-fast);
}
.footer-link:hover { color: var(--c-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--ds-sp-5) 0;
}
.footer-bottom-inner {
  max-width: var(--ds-max-w);
  margin: 0 auto;
  padding: 0 var(--ds-sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ds-sp-3);
  font-size: .8rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom-tagline { font-style: italic; }


/* ================================================================
   PHASE 2 RESPONSIVE
   ================================================================ */
@media (max-width: 1060px) {
  .steps-grid { gap: var(--ds-sp-4); }
  .courses-row, .courses-grid-paid, .cc2-grid { grid-template-columns: repeat(2, 1fr); }
  .cc2-visual { height: 192px; }
  .challenge-inner, .tutor-inner, .cert-inner, .mvp2-inner { grid-template-columns: 1fr; gap: var(--ds-sp-10); }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: none; margin: 0; }
  .hero-tools-wrap { height: 420px; }
}

@media (max-width: 768px) {
  .steps-grid {
    flex-direction: column;
    gap: var(--ds-sp-3);
  }
  .step-arrow { display: none; }
  .challenge-grid { grid-template-columns: repeat(7, 1fr); font-size: .6rem; }
  .courses-row, .courses-grid-paid, .cc2-grid { grid-template-columns: 1fr; }
  .cc2-visual { height: 176px; }
  .cc2-group--paid { margin-top: 40px; }
  .dp-sidebar { width: 160px; }
  .dp-cards-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--ds-sp-8); }
  .hero-chips { flex-direction: column; }
  .dashboard-preview { flex-direction: column; max-height: none; }
  .dp-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .dp-nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .hero-tools-wrap { display: none; }
  .mvp2-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .final-cta-actions { flex-direction: column; width: 100%; }
  .final-cta-actions .btn { width: 100%; }
  .cert-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-cta { padding: 14px 20px; }
}


/* ================================================================
   PHASE 3 — Interactions, Modal, Animations
   ================================================================ */

/* --- Scroll Progress Bar ---------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ds-primary), var(--ds-cyan));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --- Back to Top ----------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 300;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ds-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(22,163,74,0.4);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--ds-t-base), transform var(--ds-t-base), background var(--ds-t-fast);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--ds-primary-hover);
  transform: translateY(-2px) scale(1);
  box-shadow: 0 8px 24px rgba(22,163,74,0.5);
}

/* --- Typing Indicator ------------------------------------------- */
.typing-indicator {
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 12px 16px !important;
}
.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.18s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* --- Quiz Modal -------------------------------------------------- */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ds-sp-5);
  opacity: 0;
  transition: opacity var(--ds-t-base);
}
.quiz-overlay.open { opacity: 1; }
.quiz-overlay[hidden] { display: none; }

.quiz-modal {
  background: var(--c-white);
  border-radius: var(--ds-r-2xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--ds-t-slow);
  padding: 0 0 var(--ds-sp-8);
}
.quiz-overlay.open .quiz-modal {
  transform: translateY(0) scale(1);
}

.quiz-close {
  position: absolute;
  top: var(--ds-sp-4);
  right: var(--ds-sp-4);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ds-bg-light);
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ds-text-faint);
  transition: all var(--ds-t-fast);
  z-index: 1;
}
.quiz-close:hover { background: var(--ds-border); color: var(--ds-text-heading); }

.quiz-progress-bar {
  height: 4px;
  background: var(--ds-border);
  border-radius: var(--ds-r-full) var(--ds-r-full) 0 0;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ds-primary), var(--ds-cyan));
  border-radius: var(--ds-r-full);
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 0%;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ds-sp-5) var(--ds-sp-8) var(--ds-sp-4);
  border-bottom: 1px solid var(--ds-border);
}
.quiz-logo { display: flex; align-items: center; gap: var(--ds-sp-2); }
.quiz-step-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ds-text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Steps */
.quiz-step {
  display: none;
  padding: var(--ds-sp-6) var(--ds-sp-8);
  animation: quiz-step-in 0.3s ease both;
}
.quiz-step.active { display: block; }

@keyframes quiz-step-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz-question {
  font-family: var(--ds-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ds-text-heading);
  letter-spacing: -0.03em;
  margin-bottom: var(--ds-sp-2);
}
.quiz-sub {
  font-size: .9rem;
  color: var(--ds-text-faint);
  margin-bottom: var(--ds-sp-5);
}

/* Option grid (2×2) */
.quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-sp-3);
}
/* Option list */
.quiz-list {
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-3);
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-3);
  background: var(--ds-bg-light);
  border: 2px solid var(--ds-border);
  border-radius: var(--ds-r-lg);
  padding: var(--ds-sp-4);
  cursor: pointer;
  text-align: left;
  transition: all var(--ds-t-base);
  font-family: var(--ds-font-body);
  position: relative;
  overflow: hidden;
}
.quiz-opt:hover {
  border-color: var(--ds-primary);
  background: var(--ds-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--ds-shadow-sm);
}
.quiz-opt.selected {
  border-color: var(--ds-primary);
  background: var(--ds-primary-light);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}

/* Grid style (no text/desc below icon) */
.quiz-grid .quiz-opt {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ds-sp-2);
  padding: var(--ds-sp-5);
}
.qo-icon  { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.qo-label { font-size: .9rem; font-weight: 700; color: var(--ds-text-heading); display: block; }
.qo-desc  { font-size: .78rem; color: var(--ds-text-faint); display: block; margin-top: 2px; }
.qo-text  { display: flex; flex-direction: column; flex: 1; }
.qo-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: transparent;
  flex-shrink: 0;
  transition: all var(--ds-t-fast);
}
.quiz-opt.selected .qo-check {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  color: white;
}

/* Result step */
.quiz-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--ds-sp-4);
  padding-top: var(--ds-sp-3);
}
.quiz-result-emoji { font-size: 3rem; line-height: 1; animation: float-gentle 4s ease-in-out infinite; }
.quiz-result-title {
  font-family: var(--ds-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ds-text-heading);
}
.quiz-result-desc { font-size: .9rem; color: var(--ds-text-body); max-width: 40ch; }

.quiz-result-courses {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-2);
  text-align: left;
  margin-top: var(--ds-sp-2);
}
.result-course {
  display: flex;
  align-items: center;
  gap: var(--ds-sp-3);
  background: var(--c-sky);
  border: 1px solid var(--ds-primary-light);
  border-radius: var(--ds-r-md);
  padding: var(--ds-sp-3) var(--ds-sp-4);
}
.rc-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ds-primary);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rc-name { flex: 1; font-size: .875rem; font-weight: 600; color: var(--ds-text-heading); }
.rc-badge {
  font-size: .72rem;
  font-weight: 600;
  color: #059669;
  background: var(--c-mint);
  padding: 3px 8px;
  border-radius: var(--ds-r-full);
}

.quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-3);
  width: 100%;
  margin-top: var(--ds-sp-2);
}
.quiz-retake {
  background: none;
  border: none;
  color: var(--ds-text-faint);
  font-size: .875rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--ds-font-body);
  transition: color var(--ds-t-fast);
}
.quiz-retake:hover { color: var(--ds-text-heading); }

/* --- Enhanced reveal pulse on section labels ------------------- */
.section-label {
  animation: none;
}
.section-label.revealed {
  animation: label-glow 2s ease-out 0.3s both;
}
@keyframes label-glow {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Course card perspective container -------------------------- */
.course-card { perspective: 800px; }

/* --- Pricing featured-card ambient glow ------------------------ */
.pricing-card-featured {
  animation: featured-glow 3.5s ease-in-out infinite;
}
@keyframes featured-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(72,240,138,0.14), 0 16px 56px rgba(0,0,0,0.50); }
  50%       { box-shadow: 0 0 0 1px rgba(72,240,138,0.26), 0 0 60px rgba(72,240,138,0.11), 0 16px 56px rgba(0,0,0,0.50); }
}

/* --- Stagger reveal base (applied by JS) ----------------------- */
.why-card.reveal,
.step-card.reveal,
.course-card.reveal,
.cc2-card.reveal,
.pricing-card.reveal,
.tool-pill.reveal,
.mvp2-track-pill.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.why-card.reveal.revealed,
.step-card.reveal.revealed,
.course-card.reveal.revealed,
.cc2-card.reveal.revealed,
.pricing-card.reveal.revealed,
.tool-pill.reveal.revealed,
.mvp2-track-pill.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* cc2 hover beats the revealed transform — !important already on cc2-card:hover */

/* --- cc2 reduced-motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cc2-vi          { transition: none !important; transform: none !important; }
  .cc2-cursor      { animation: none !important; }
  .cc2-card:hover  { transform: none !important; }
}

/* --- Mobile modal adjustments ---------------------------------- */
@media (max-width: 580px) {
  .quiz-modal { border-radius: var(--ds-r-xl) var(--ds-r-xl) 0 0; max-height: 95vh; }
  .quiz-overlay { align-items: flex-end; padding: 0; }
  .quiz-grid { grid-template-columns: 1fr; }
  .quiz-question { font-size: 1.15rem; }
  .back-to-top { bottom: 20px; right: 20px; }
}


/* ================================================================
   PHASE 6 — Accessibility & Polish
   ================================================================ */

/* --- Skip link -------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--ds-primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  padding: .625rem 1.125rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top .15s ease;
  outline: none;
  box-shadow: 0 4px 16px rgba(22,163,74,.4);
}

.skip-link:focus {
  top: 0;
}

/* --- Focus-visible ring ---------------------------------------- */
:focus-visible {
  outline: 2.5px solid var(--ds-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Suppress outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Buttons and links that already have custom hover states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--ds-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dark-background focus ring (sidebar, hero, footer) */
.dash-sidebar a:focus-visible,
.dash-sidebar button:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible,
.footer a:focus-visible,
.navbar-dark a:focus-visible {
  outline-color: var(--c-lime);
}

/* --- High contrast mode ---------------------------------------- */
@media (prefers-contrast: high) {
  :root {
    --c-border: #6B7280;
    --c-text-body: #1E293B;
    --c-text-muted: #374151;
  }

  .btn-primary {
    background: #15803D;
    border: 2px solid #15803D;
  }

  .nav-link { color: var(--ds-text-heading); }

  .progress-fill { background: #15803D; }
}

/* --- Print styles ---------------------------------------------- */
@media print {
  .navbar,
  .scroll-progress,
  .back-to-top,
  .quiz-overlay,
  .mobile-menu-overlay,
  .dash-sidebar,
  .dash-topbar,
  .notes-panel,
  .course-sidebar { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; }

  a { color: #000; text-decoration: underline; }

  .dash-main { margin-left: 0 !important; }
  .course-main { padding: 0; }
}


/* ================================================================
   PHASE 3 NEW SECTIONS — AI Tools Logo Grid + FAQ
   ================================================================ */

/* --- AI Tools Logo Grid ---------------------------------------- */
.tools-logo-section {
  background: var(--ds-navy-2);
  position: relative;
  overflow: hidden;
}
.tools-logo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 15% 40%, rgba(22,163,74,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 85% 60%, rgba(56,189,248,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.tools-logo-section .section-header { position: relative; z-index: 1; }
.tools-logo-section .section-header h2 { color: var(--c-white); }
.tools-logo-section .section-header p  { color: rgba(255,255,255,0.52); }

.tools-categories {
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-10);
  position: relative;
  z-index: 1;
}

.tools-cat-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.28);
  margin-bottom: var(--ds-sp-5);
  padding-bottom: var(--ds-sp-3);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.tools-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-sp-4);
}

.tools-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-sp-2);
}

.tools-logo-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(8,11,32,0.88);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 6px 20px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--ds-t-base), box-shadow var(--ds-t-base), border-color var(--ds-t-base);
  cursor: default;
}
.tools-logo-icon:hover {
  transform: translateY(-4px) scale(1.07);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.60),
    0 0 0 1px rgba(56,189,248,0.25),
    inset 0 1px 0 rgba(255,255,255,0.09);
  border-color: rgba(56,189,248,0.30);
}
.tools-logo-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  border-radius: 18%;
  pointer-events: none;
  user-select: none;
}

.tools-logo-name {
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.36);
  text-align: center;
  line-height: 1.3;
}

.tools-disclaimer {
  margin-top: var(--ds-sp-16);
  font-size: .78rem;
  color: rgba(255,255,255,0.22);
  text-align: center;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}


/* --- FAQ ------------------------------------------------------- */
.faq-section { background: var(--section-bg-soft, var(--ds-bg-light)); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ds-border);
}

.faq-item { border-bottom: 1px solid var(--ds-border); }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-sp-5);
  padding: var(--ds-sp-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--ds-font-body);
}

.faq-q {
  font-family: var(--ds-font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ds-text-heading);
  line-height: 1.4;
  transition: color var(--ds-t-fast);
}
.faq-btn:hover .faq-q { color: var(--ds-primary); }

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ds-text-faint);
  transition: transform var(--ds-t-base), background var(--ds-t-base), border-color var(--ds-t-base), color var(--ds-t-base);
  user-select: none;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--ds-primary-light);
  border-color: var(--ds-primary);
  color: var(--ds-primary);
}

/* Smooth height animation using grid trick */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--ds-t-slow);
}
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body-inner { overflow: hidden; }

.faq-answer {
  padding-bottom: var(--ds-sp-5);
  color: var(--ds-text-body);
  font-size: .9rem;
  line-height: 1.72;
  max-width: 62ch;
}


/* --- Final CTA refinements ------------------------------------- */
.final-cta-inner .section-label { animation: none; }


/* ================================================================
   PHASE 3 RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .tools-logo-grid { gap: var(--ds-sp-3); }
  .tools-logo-icon { width: 58px; height: 58px; }
  .tools-logo-icon img { width: 34px; height: 34px; }
  .tools-logo-name { font-size: .65rem; }

  .faq-q { font-size: .875rem; }
}

@media (max-width: 520px) {
  .tools-logo-grid { gap: var(--ds-sp-2); }
  .tools-logo-icon { width: 52px; height: 52px; }
  .tools-logo-icon img { width: 30px; height: 30px; }
}


/* ================================================================
   PHASE 4 — QA, Proof Section, Challenge Stats, Accessibility
   ================================================================ */

/* ── Proof / "What you'll get" section ──────────────────────────── */
.proof-section { background: var(--c-white); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ds-sp-6);
}

.proof-card {
  background: var(--ds-bg-light);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-lg);
  padding: var(--ds-sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-4);
  transition: box-shadow var(--ds-t-base), transform var(--ds-t-base), border-color var(--ds-t-base);
}
.proof-card:hover {
  box-shadow: var(--ds-shadow-md);
  transform: translateY(-3px);
  border-color: var(--ds-primary-light);
}

.proof-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--ds-r-md);
  background: var(--ds-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-primary);
  flex-shrink: 0;
}

.proof-card h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ds-text-heading);
  margin: 0;
  line-height: 1.3;
}

.proof-card p {
  font-size: .9rem;
  color: var(--ds-text-body);
  line-height: 1.65;
  margin: 0;
}

/* ── Challenge stats row ─────────────────────────────────────────── */
.challenge-stats-row {
  display: flex;
  gap: var(--ds-sp-8);
  margin: var(--ds-sp-6) 0;
}

.challenge-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.challenge-stat-value {
  font-family: var(--ds-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-white);
  line-height: 1;
}

.challenge-stat-label {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Accessibility: dark-bg focus override ──────────────────────── */
.hero *:focus-visible,
.challenge-section *:focus-visible,
.tutor-section *:focus-visible,
.final-cta-section *:focus-visible {
  outline-color: var(--ds-cyan);
}

/* ── Responsive QA: 1024px ──────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Proof grid: 2 columns */
  .proof-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero sub text — let it fill centered container at this width */
  .hero-sub { max-width: none; }
}

/* ── Responsive QA: 768px ───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Proof grid: 1 column */
  .proof-grid { grid-template-columns: 1fr; }

  /* Challenge stats wrap */
  .challenge-stats-row {
    gap: var(--ds-sp-6);
    flex-wrap: wrap;
  }

  /* Hero sub fills centered container at mobile widths */
  .hero-sub { max-width: none; }
}

/* ── Why Bento: 1060px — switch to 2-column ─────────────────────── */
@media (max-width: 1060px) {
  .why-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-card--path,
  .why-card--tools,
  .why-card--speed,
  .why-card--practice,
  .why-card--proof     { grid-column: span 1; }
  .why-bento-visual        { height: 160px; }
  .why-bento-visual--wide  { height: 148px; }
}

/* ── Why Bento: 768px — tighten gap ─────────────────────────────── */
@media (max-width: 768px) {
  .why-bento-grid { gap: 14px; }
}

/* ── Why Bento: 520px — single column ───────────────────────────── */
@media (max-width: 520px) {
  .why-bento-grid          { grid-template-columns: 1fr; }
  .why-bento-visual        { height: 148px; }
  .why-bento-visual--wide  { height: 128px; }
}

/* ── Why Bento: reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .why-bento-glow-1,
  .why-bento-glow-2      { animation: none; }
  .wbv-node--active      { animation: none; box-shadow: 0 0 10px rgba(72,240,138,0.40); }
  .wbv-tool-1, .wbv-tool-2, .wbv-tool-3,
  .wbv-tool-4, .wbv-tool-5, .wbv-tool-6 { animation: none; }
  .wbv-bolt              { animation: none; }
  .wbv-bolt-glow         { animation: none; }
  .wbv-loop-dot          { animation: none; }
  .wbv-cert-card         { animation: none; }
  .why-bento-card:hover  { transform: none !important; }
}

/* ── Responsive QA: 480px ───────────────────────────────────────── */
@media (max-width: 480px) {
  /* Proof cards: reduce padding */
  .proof-card { padding: var(--ds-sp-6); }

  /* Challenge stats wrap with smaller gap */
  .challenge-stats-row { gap: var(--ds-sp-4); }
}


/* ================================================================
   RESTRUCTURE — Paths, Collab, Course Request sections
   ================================================================ */

/* ================================================================
   PC — PATH CARDS CAROUSEL
   ================================================================ */

/* ---- Section ---- */
.pc-section {
  background: #030605;
  position: relative;
  overflow: hidden;
  padding-bottom: 64px;
}

/* Subtle dot grid */
.pc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Ambient orbs ---- */
.pc-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
}
.pc-orb-1 {
  width: 550px; height: 550px;
  top: -120px; left: 50%; transform: translateX(-55%);
  background: radial-gradient(circle, rgba(72,240,138,.22), transparent 70%);
}
.pc-orb-2 {
  width: 420px; height: 420px;
  bottom: 0; right: 5%;
  background: radial-gradient(circle, rgba(109,93,251,.18), transparent 70%);
}
.pc-orb-3 {
  width: 280px; height: 280px;
  bottom: 20%; left: 5%;
  background: radial-gradient(circle, rgba(248,211,75,.1), transparent 70%);
}

/* ---- Carousel shell ---- */
.pc-carousel { position: relative; width: 100%; }

.pc-clip {
  overflow: hidden;
  padding: 52px 0 60px; /* vertical breathing room for scale transforms */
}

.pc-track {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform .65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* ---- Card ---- */
.pc-card {
  flex: 0 0 320px;
  width: 320px;
  height: 560px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transform: scale(.86);
  opacity: .48;
  transition:
    transform  .65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity    .6s  ease,
    box-shadow .6s  ease;
  will-change: transform, opacity;
}
.pc-card:focus-visible {
  outline: 2px solid rgba(72,240,138,.7);
  outline-offset: 4px;
}
.pc-card.is-active  { transform: scale(1);    opacity: 1;   cursor: default; }
.pc-card.is-near    { transform: scale(.925); opacity: .72; }
.pc-card:not(.is-active):hover { transform: scale(.93); opacity: .8; }

/* ---- Image zone ---- */
.pc-img {
  flex: 0 0 320px;
  height: 320px;
  position: relative;
  overflow: hidden;
}

/* Figure — set background-image here when real photo is ready */
.pc-fig {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center 20%;
  transition: transform .55s ease;
}
.pc-card.is-active:hover .pc-fig { transform: scale(1.05); }

/* Decorative silhouette placeholders — hidden now that real photos are set */
.pc-fig-person,
.pc-fig-glow { display: none; }
.pc-fig-person {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 55%; height: 78%;
  background: rgba(255,255,255,.065);
  border-radius: 55% 55% 0 0 / 40% 40% 0 0;
  filter: blur(6px);
}
.pc-fig-glow {
  position: absolute;
  bottom: 55%; left: 50%;
  transform: translateX(-50%);
  width: 36%; height: 36%;
  background: rgba(255,255,255,.09);
  border-radius: 50%;
  filter: blur(5px);
}

/* Image → body gradient bridge */
.pc-img-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--pc-body));
  pointer-events: none;
  z-index: 1;
}

/* ---- Card body ---- */
.pc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 26px 28px;
  gap: 7px;
}

.pc-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.pc-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin: 0; line-height: 1;
}

.pc-title {
  font-family: var(--ds-font-display);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0;
}
.pc-hi { color: var(--pc-accent); }

.pc-desc {
  font-size: .8125rem;
  line-height: 1.65;
  color: rgba(255,255,255,.58);
  margin: 0;
  flex: 1;
}

/* CTA pill */
.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.62);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  margin-top: 4px;
  transition: background .25s ease, gap .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.pc-card:hover .pc-cta,
.pc-card:focus-within .pc-cta {
  background: #F8FAFC;
  border-color: rgba(255,255,255,0.86);
  color: #030605;
  gap: 11px;
  box-shadow: 0 0 16px rgba(255,255,255,0.10);
}

/* ---- Card colour variants ---- */
.pc-card--learn {
  --pc-accent: #48F08A;
  --pc-body:   #0C3A1E;
  border: 1px solid rgba(72,240,138,.2);
}
.pc-card--learn .pc-fig {
  background-color: #0c3a1e;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.04), rgba(12,58,30,0.55)),
    url("assets/path-cards/learn-ai.jpg");
  background-size: cover;
  background-position: center 20%;
}
.pc-card--learn .pc-body { background: #0C3A1E; }
.pc-card--learn.is-active {
  box-shadow: 0 36px 90px rgba(72,240,138,.2), 0 0 0 1px rgba(72,240,138,.22);
}

.pc-card--partner {
  --pc-accent: #9B8FFF;
  --pc-body:   #0E0B34;
  border: 1px solid rgba(109,93,251,.22);
}
.pc-card--partner .pc-fig {
  background-color: #0e0b34;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.04), rgba(14,11,52,0.55)),
    url("assets/path-cards/partner-certifai.jpg");
  background-size: cover;
  background-position: center 20%;
}
.pc-card--partner .pc-body { background: #0E0B34; }
.pc-card--partner.is-active {
  box-shadow: 0 36px 90px rgba(109,93,251,.22), 0 0 0 1px rgba(109,93,251,.28);
}

.pc-card--teach {
  --pc-accent: #F8D34B;
  --pc-body:   #1F1200;
  border: 1px solid rgba(248,211,75,.2);
}
.pc-card--teach .pc-fig {
  background-color: #1f1200;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.04), rgba(31,18,0,0.55)),
    url("assets/path-cards/teach-certifai.jpg");
  background-size: cover;
  background-position: center 20%;
}
.pc-card--teach .pc-body { background: #1F1200; }
.pc-card--teach.is-active {
  box-shadow: 0 36px 90px rgba(248,211,75,.18), 0 0 0 1px rgba(248,211,75,.22);
}

.pc-card--request {
  --pc-accent: #F25F6B;
  --pc-body:   #1E060E;
  border: 1px solid rgba(242,95,107,.2);
}
.pc-card--request .pc-fig {
  background-color: #1e060e;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.04), rgba(30,6,14,0.55)),
    url("assets/path-cards/request-course.jpg");
  background-size: cover;
  background-position: center 20%;
}
.pc-card--request .pc-body { background: #1E060E; }
.pc-card--request.is-active {
  box-shadow: 0 36px 90px rgba(242,95,107,.18), 0 0 0 1px rgba(242,95,107,.22);
}

/* ---- Mini icon system ---- */
.pci {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

/* Box icons (cert, slide, form) */
.pci--cert, .pci--slide, .pci--form {
  width: 38px; height: 30px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  padding: 5px 7px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.pci-bar {
  display: block;
  height: 3px; width: 100%;
  border-radius: 2px;
  background: var(--pc-accent);
}
.pci-bar--s { width: 58%; opacity: .55; }
.pci-bar--m { width: 75%; opacity: .7; }
.pci-dot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pc-accent);
  margin-left: auto;
}
.pci--form { position: relative; }
.pci-dot--big {
  width: 9px; height: 9px;
  position: absolute; top: 5px; right: 6px;
  margin-left: 0;
}

/* Bar chart */
.pci--cols { align-items: flex-end; height: 28px; gap: 4px; }
.pci-col {
  display: block; width: 8px;
  border-radius: 3px 3px 0 0;
  background: var(--pc-accent);
}
.pci-col-1 { height: 11px; opacity: .45; }
.pci-col-2 { height: 20px; }
.pci-col-3 { height: 7px;  opacity: .4; }

/* Network */
.pci--net { position: relative; width: 36px; height: 28px; display: block; }
.pci-hub {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--pc-accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.pci-spoke {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pc-accent);
  opacity: .6;
}
.pci-spoke-1 { top: 1px;  left: 3px; }
.pci-spoke-2 { top: 0;    right: 0; }
.pci-spoke-3 { bottom: 0; left: 50%; transform: translateX(-50%); }

/* People */
.pci--people { position: relative; width: 36px; height: 28px; display: block; }
.pci-head {
  position: absolute;
  width: 15px; height: 15px;
  border-radius: 50% 50% 48% 48% / 52% 52% 48% 48%;
  background: var(--pc-accent);
}
.pci-head-1 { bottom: 0; left: 0;   opacity: .75; }
.pci-head-2 { bottom: 0; left: 10px; opacity: .55; }

/* Star glyph */
.pci--star {
  font-size: 18px; line-height: 1;
  color: var(--pc-accent);
  display: flex; align-items: center;
  height: 28px; width: auto;
}

/* ---- Prev / Next arrows ---- */
.pc-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .15s;
  line-height: 1;
}
.pc-nav:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); }
.pc-nav:active { transform: translateY(-50%) scale(.9); }
.pc-nav:disabled { opacity: .3; cursor: not-allowed; }
.pc-nav--prev { left: 12px; }
.pc-nav--next { right: 12px; }

/* ---- Dots ---- */
.pc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.pc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  padding: 0;
  transition: width .3s ease, border-radius .3s ease, background .3s ease;
}
.pc-dot.is-active { width: 26px; border-radius: 4px; background: rgba(255,255,255,.75); }
.pc-dot:hover:not(.is-active) { background: rgba(255,255,255,.4); }

/* ---- Responsive ---- */
@media (min-width: 1280px) {
  .pc-card { flex: 0 0 350px; width: 350px; height: 590px; }
  .pc-img   { flex: 0 0 345px; height: 345px; }
}
@media (max-width: 900px) {
  .pc-card { flex: 0 0 290px; width: 290px; height: 530px; }
  .pc-img   { flex: 0 0 295px; height: 295px; }
}
@media (max-width: 600px) {
  .pc-card { flex: 0 0 calc(100vw - 72px); width: calc(100vw - 72px); height: 510px; }
  .pc-img   { height: 270px; flex: 0 0 270px; }
  .pc-nav--prev { left: 6px; }
  .pc-nav--next { right: 6px; }
}
@media (max-width: 380px) {
  .pc-card { flex: 0 0 calc(100vw - 48px); width: calc(100vw - 48px); }
}

/* ---- Scroll-driven sticky wrapper (class added by JS when ≥1024px & !noMotion) ---- */
#pcScrollDriver.is-scroll-driven {
  position: relative;
  height: 260vh;
}
#pcScrollDriver.is-scroll-driven > .pc-section {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px !important;
  padding-bottom: 0 !important;
}
#pcScrollDriver.is-scroll-driven > .pc-section .pc-clip {
  padding-top: 24px;
  padding-bottom: 28px;
}
/* At 1024–1279px cards need to be shorter to fit safely in 768px+ viewports */
@media (max-width: 1279px) {
  #pcScrollDriver.is-scroll-driven > .pc-section .pc-card {
    height: 460px;
  }
  #pcScrollDriver.is-scroll-driven > .pc-section .pc-img {
    flex: 0 0 230px;
    height: 230px;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .pc-track { transition: none !important; }
  .pc-card  { transition: opacity .2s ease !important; }
  .pc-card.is-active:hover .pc-fig { transform: none; }
  .pc-card:hover .pc-cta,
  .pc-card:focus-within .pc-cta { gap: 7px; }
}


/* --- How it Works (4-step variant) ----------------------------- */
/* .steps-grid is already flex; .steps-grid--4 has same layout     */
/* No extra rules needed — inherits all existing step-* styles     */


/* ================================================================
   COLLAB SECTION — Premium dark glass cards with splash animation
   ================================================================ */

/* Section shell — always dark regardless of page theme */
.collab-section {
  background: #030605;
  position: relative;
  overflow: hidden;
}
.collab-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw; height: 56vw;
  max-width: 860px; max-height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,240,138,0.055) 0%, transparent 65%);
  pointer-events: none;
}

/* Section header — force light text on dark bg unconditionally */
.collab-section .section-label      { color: #48F08A; }
.collab-section .section-label-dot  { background: #48F08A; }
.collab-section .section-header h2  { color: #f8fafc; }
.collab-section .section-header p   { color: rgba(248,250,252,0.65); }

/* ── Grid ──────────────────────────────────────────────────────── */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
}

/* ── Glass card ────────────────────────────────────────────────── */
.collab-card {
  position: relative;
  background: linear-gradient(155deg, rgba(6,18,12,0.94) 0%, rgba(3,6,5,0.97) 100%);
  border: 1px solid rgba(72,240,138,0.16);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0.80;
  transition:
    transform     0.45s cubic-bezier(0.22,1,0.36,1),
    border-color  0.45s ease,
    box-shadow    0.45s ease,
    opacity       0.35s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.collab-card:focus-visible {
  outline: 2px solid #48F08A;
  outline-offset: 3px;
}

/* Active card */
.collab-card.is-active {
  opacity: 1;
  transform: translateY(-6px);
  border-color: rgba(72,240,138,0.52);
  box-shadow:
    0 0 0 1px rgba(72,240,138,0.20),
    0 20px 56px rgba(0,0,0,0.55),
    0 0 48px rgba(72,240,138,0.07);
}

/* ── Splash element ────────────────────────────────────────────── */
.collab-card__splash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(72,240,138,0.26) 0%,
    rgba(22,163,74,0.14)  36%,
    rgba(245,180,64,0.06) 58%,
    transparent           72%
  );
  opacity: 0;
  transform: translateY(32px) scale(0.65);
  transition:
    opacity   0.65s cubic-bezier(0.22,1,0.36,1),
    transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.collab-card.is-active .collab-card__splash {
  opacity: 1;
  transform: translateY(0) scale(1.25);
}

/* ── Card body (text content) ──────────────────────────────────── */
.collab-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.collab-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #48F08A;
}
.collab-card__title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.25rem, 2vw, 1.5625rem);
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  line-height: 1.2;
}
.collab-card__copy {
  font-size: 0.9375rem;
  color: rgba(248,250,252,0.70);
  line-height: 1.65;
  margin: 0;
}
.collab-card__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.collab-card__benefits li {
  font-size: 0.875rem;
  color: rgba(248,250,252,0.60);
  padding-left: 18px;
  position: relative;
}
.collab-card__benefits li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #48F08A;
  opacity: 0.65;
  transition: opacity 0.35s ease;
}
.collab-card.is-active .collab-card__benefits li::before { opacity: 1; }
.collab-card.is-active .collab-card__benefits li { color: rgba(248,250,252,0.80); }

/* ── CTA ───────────────────────────────────────────────────────── */
.collab-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(72,240,138,0.45);
  text-decoration: none;
  padding: 10px 18px;
  margin-top: auto;
  background: transparent;
  border: 1px solid rgba(72,240,138,0.20);
  border-radius: 8px;
  transition: color 0.25s ease, gap 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.collab-card__cta:hover { color: rgba(72,240,138,0.70); }
.collab-card.is-active .collab-card__cta {
  color: #030605;
  background: #f0fdf4;
  border-color: transparent;
}
.collab-card.is-active .collab-card__cta:hover { color: #030605; background: #ffffff; }
.collab-card__cta:focus-visible {
  outline: 2px solid #48F08A;
  outline-offset: 2px;
  border-radius: 8px;
}
.collab-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.collab-card.is-active .collab-cta-arrow { transform: translateX(4px); }

/* ── Mini visual panel ─────────────────────────────────────────── */
.collab-card__visual {
  position: relative;
  z-index: 1;
  height: 228px;
  background: rgba(2,8,4,0.70);
  border-bottom: 1px solid rgba(72,240,138,0.09);
  overflow: hidden;
  flex-shrink: 0;
  transition: filter 0.45s ease, box-shadow 0.45s ease;
}
.collab-card .collab-card__visual { filter: brightness(0.82); }
.collab-card.is-active .collab-card__visual {
  filter: brightness(1);
  box-shadow: inset 0 0 36px rgba(72,240,138,0.06);
}

/* Window chrome bar */
.cv-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: rgba(6,18,12,0.85);
  border-bottom: 1px solid rgba(72,240,138,0.07);
}
.cv-chrome__dots { display: flex; gap: 5px; }
.cv-chrome__dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.cv-chrome__dots span:nth-child(1) { background: rgba(255,95,87,0.55); }
.cv-chrome__dots span:nth-child(2) { background: rgba(255,189,46,0.55); }
.cv-chrome__dots span:nth-child(3) { background: rgba(40,200,64,0.55); }
.cv-chrome__title {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(248,250,252,0.35);
}

/* Content area */
.cv-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Shared layout helpers */
.cv-row { display: flex; align-items: center; gap: 8px; }
.cv-row--cert { margin-top: 2px; }
.cv-stack { display: flex; flex-direction: column; gap: 3px; flex: 1; }

/* Placeholder lines */
.cv-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(248,250,252,0.10);
}
.cv-line--sm { height: 5px; }
.cv-line--xs { height: 4px; background: rgba(248,250,252,0.06); }

/* Avatar */
.cv-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(72,240,138,0.30);
  flex-shrink: 0;
}
.cv-avatar--a { background: rgba(22,163,74,0.55); }
.cv-avatar--b { background: rgba(13,148,136,0.50); }
.cv-avatar--c { background: rgba(72,240,138,0.18); }

/* Chip/badge */
.cv-chip {
  font-size: 0.5rem;
  font-weight: 700;
  color: #48F08A;
  background: rgba(72,240,138,0.10);
  border: 1px solid rgba(72,240,138,0.22);
  border-radius: 10px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Progress track + fill */
.cv-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(248,250,252,0.08);
  overflow: hidden;
}
.cv-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #48F08A, #16A34A);
}

/* Time tag */
.cv-tag {
  font-size: 0.5rem;
  color: rgba(248,250,252,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Cert mark */
.cv-cert-mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(72,240,138,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: #48F08A;
  flex-shrink: 0;
  transition: border-color 0.35s ease;
}
.collab-card.is-active .cv-cert-mark { border-color: #48F08A; }

/* Stat block */
.cv-stat-block { display: flex; flex-direction: column; gap: 3px; }

/* ── Teach visual: lesson rows ─────────────────────────────────── */
.cv-lessons { display: flex; flex-direction: column; gap: 4px; }
.cv-lesson {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 5px;
  border-radius: 6px;
  transition: background 0.35s ease;
}
.cv-lesson--on { background: rgba(72,240,138,0.07); }
.collab-card.is-active .cv-lesson--on { background: rgba(72,240,138,0.12); }
.cv-lesson-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cv-lesson-icon {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(72,240,138,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.4rem;
  color: #48F08A;
  flex-shrink: 0;
}
.cv-lesson-icon--lock {
  background: rgba(248,250,252,0.05);
  color: rgba(248,250,252,0.25);
}
.cv-lesson-icon--lock::after { content: '■'; font-size: 0.32rem; }

/* ── Partner visual: stats row ─────────────────────────────────── */
.cv-stats-row { display: flex; gap: 6px; }
.cv-stat-mini {
  flex: 1;
  background: rgba(6,18,12,0.65);
  border: 1px solid rgba(72,240,138,0.09);
  border-radius: 6px;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cv-stat-val {
  height: 10px; width: 20px;
  border-radius: 3px;
}

/* ── Partner visual: bar chart ─────────────────────────────────── */
.cv-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 38px;
  padding: 0 2px;
}
.cv-chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(72,240,138,0.16);
  transition: background 0.35s ease;
}
.cv-chart-bar--hi { background: rgba(72,240,138,0.48); }
.collab-card.is-active .cv-chart-bar--hi { background: rgba(72,240,138,0.70); }

/* ── Partner visual: learner rows ──────────────────────────────── */
.cv-learners { display: flex; flex-direction: column; gap: 5px; }
.cv-learner { display: flex; align-items: center; gap: 7px; }
.cv-learner-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }

/* ── Chrome badge ──────────────────────────────────────────────── */
.cv-chrome__badge {
  margin-left: auto;
  font-size: 0.5rem;
  font-weight: 700;
  color: #48F08A;
  background: rgba(72,240,138,0.10);
  border: 1px solid rgba(72,240,138,0.22);
  border-radius: 8px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* ── Teach: module rows ────────────────────────────────────────── */
.cv-modules { display: flex; flex-direction: column; gap: 4px; }
.cv-module {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(6,18,12,0.55);
  border: 1px solid rgba(72,240,138,0.07);
}
.cv-module--active {
  background: rgba(72,240,138,0.08);
  border-color: rgba(72,240,138,0.18);
}
.collab-card.is-active .cv-module--active {
  background: rgba(72,240,138,0.13);
  border-color: rgba(72,240,138,0.30);
}
.cv-module-num {
  font-size: 0.45rem;
  font-weight: 700;
  color: rgba(248,250,252,0.35);
  width: 14px;
  flex-shrink: 0;
}
.cv-module--active .cv-module-num { color: #48F08A; }
.cv-mbadge {
  font-size: 0.45rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cv-mbadge--pub {
  color: #48F08A;
  background: rgba(72,240,138,0.12);
  border: 1px solid rgba(72,240,138,0.20);
}
.cv-mbadge--edit {
  color: rgba(245,158,11,0.90);
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.18);
}
.cv-mbadge--draft {
  color: rgba(248,250,252,0.30);
  background: rgba(248,250,252,0.04);
  border: 1px solid rgba(248,250,252,0.08);
}

/* ── Teach: enrolment footer ───────────────────────────────────── */
.cv-enrol-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 2px;
  border-top: 1px solid rgba(72,240,138,0.07);
  margin-top: 2px;
}
.cv-enrol-text {
  font-size: 0.5rem;
  color: rgba(248,250,252,0.42);
  flex: 1;
}
.cv-publish-btn {
  font-size: 0.45rem;
  font-weight: 700;
  color: rgba(72,240,138,0.50);
  background: rgba(72,240,138,0.07);
  border: 1px solid rgba(72,240,138,0.16);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.collab-card.is-active .cv-publish-btn {
  color: #030605;
  background: #48F08A;
  border-color: transparent;
}

/* ── Partner: stat tiles with real numbers ─────────────────────── */
.cv-ts-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #48F08A;
  line-height: 1;
}
.cv-ts-lbl {
  font-size: 0.42rem;
  color: rgba(248,250,252,0.38);
  margin-top: 1px;
}

/* ── Chip variants ─────────────────────────────────────────────── */
.cv-chip--mid {
  font-size: 0.42rem;
  font-weight: 600;
  color: rgba(245,158,11,0.85);
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.20);
  border-radius: 8px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cv-chip--new {
  font-size: 0.42rem;
  font-weight: 600;
  color: rgba(56,189,248,0.85);
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.16);
  border-radius: 8px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Partner: admin action footer ──────────────────────────────── */
.cv-admin-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px 1px;
  border-top: 1px solid rgba(72,240,138,0.07);
  margin-top: 1px;
}
.cv-admin-btn {
  font-size: 0.42rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cv-admin-btn--primary {
  color: rgba(72,240,138,0.60);
  background: rgba(72,240,138,0.08);
  border: 1px solid rgba(72,240,138,0.16);
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.collab-card.is-active .cv-admin-btn--primary {
  color: #030605;
  background: #48F08A;
  border-color: transparent;
}
.cv-admin-btn--sec {
  color: rgba(248,250,252,0.30);
  background: transparent;
  border: 1px solid rgba(248,250,252,0.08);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .collab-card__title { font-size: 1.25rem; }
}
@media (max-width: 768px) {
  .collab-grid { grid-template-columns: 1fr; gap: 16px; }
  .collab-card.is-active { transform: translateY(-3px); }
  .collab-card__body { padding: 20px 22px 24px; }
  .collab-card__visual { height: 204px; }
}
@media (max-width: 375px) {
  .collab-card__visual { height: 188px; }
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .collab-card,
  .collab-card__splash,
  .collab-card__visual,
  .collab-cta-arrow { transition: none; }
  .collab-card.is-active { transform: none; }
  .collab-card.is-active .collab-card__splash {
    opacity: 1;
    transform: scale(1.1);
  }
}


/* --- Course Request section ------------------------------------- */
.course-req-section { background: var(--section-bg-soft, var(--ds-bg-light)); }

.course-req-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-sp-16);
  align-items: start;
}
.course-req-copy {
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-5);
}
.course-req-copy h2 { font-size: clamp(1.6rem, 2.75vw, 2.25rem); }
.course-req-actions { margin-top: var(--ds-sp-2); }

.course-req-examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-sp-3);
  align-content: flex-start;
}
.course-req-pill {
  appearance: none;
  font-family: inherit;
  background: var(--c-white);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-full);
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ds-text-heading);
  box-shadow: var(--ds-shadow-xs);
  transition: transform var(--ds-t-fast), box-shadow var(--ds-t-fast), border-color var(--ds-t-fast);
  cursor: pointer;
  line-height: 1.4;
}
.course-req-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-sm);
  border-color: rgba(22, 163, 74, 0.35);
}
.course-req-pill:focus-visible {
  outline: 2px solid var(--brand-green-main);
  outline-offset: 2px;
}
.course-req-pill--cta {
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.30);
  color: var(--brand-green-main);
  font-weight: 600;
}

.course-req-right {
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-6);
}

/* ── Course Request Form card ──────────────────────────────────── */
.crf-card {
  background: var(--surface, #fff);
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 24px;
  padding: 28px 28px 32px;
}
.crf-fields {
  display: flex;
  flex-direction: column;
  gap: var(--ds-sp-4);
}
.crf-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-sp-4);
}
.crf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crf-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ds-text-heading);
  letter-spacing: 0.01em;
}
.crf-optional {
  font-weight: 400;
  opacity: 0.6;
}
.crf-input,
.crf-select,
.crf-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  background: #F8FAFC;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ds-text-heading);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.crf-input::placeholder,
.crf-textarea::placeholder { color: rgba(71, 85, 105, 0.5); }
.crf-textarea { resize: vertical; min-height: 80px; }
.crf-input:focus,
.crf-select:focus,
.crf-textarea:focus {
  border-color: var(--brand-green-main);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}
.crf-submit {
  width: 100%;
  margin-top: var(--ds-sp-4);
  background: var(--brand-green-main);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--ds-t-fast), box-shadow var(--ds-t-fast), transform var(--ds-t-fast);
}
.crf-submit:hover {
  background: var(--brand-green-hover);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.28);
}
.crf-submit:active { transform: scale(0.99); }
.crf-submit:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
}
.crf-success {
  padding: 24px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 16px;
  text-align: center;
  color: #15803D;
  font-weight: 500;
}

@media (max-width: 768px) {
  .course-req-inner { grid-template-columns: 1fr; gap: var(--ds-sp-10); }
}
@media (max-width: 640px) {
  .crf-row--2 { grid-template-columns: 1fr; }
  .crf-card { padding: 20px 20px 24px; }
}
@media (max-width: 520px) {
  .course-req-inner { grid-template-columns: 1fr; }
}


/* --- Dark-bg focus overrides for new sections ------------------- */
.collab-section *:focus-visible {
  outline-color: #48F08A;
}


/* ================================================================
   DARK-TO-LIGHT GRADIENT BRIDGE — path carousel → Courses
   Pure gradient spacer. No cards, no animation.
   ================================================================ */

#course-bridge {
  height: 120px;
  background: linear-gradient(to bottom, #030605 0%, #F8FAFC 100%);
  pointer-events: none;
}

@media (max-width: 767px) {
  #course-bridge { height: 80px; }
}


/* ================================================================
   COURSE CARD REAL IMAGES
   Images are set on .cc2-vi (inner wrapper) so the existing
   hover zoom (scale 1.06) applies directly to the photo.
   CSS placeholder shapes are hidden for image-backed cards.
   .cc2-visual--(name) gradient remains as loading fallback.
   ================================================================ */

/* Shared cover properties for all 6 image-backed inner wrappers */
.cc2-visual--foundations  .cc2-vi,
.cc2-visual--chatgpt      .cc2-vi,
.cc2-visual--prompting    .cc2-vi,
.cc2-visual--productivity .cc2-vi,
.cc2-visual--canva        .cc2-vi,
.cc2-visual--capcut       .cc2-vi {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Per-card image URLs */
.cc2-visual--foundations  .cc2-vi { background-image: url('assets/course-cards/ai-foundations.jpg'); }
.cc2-visual--chatgpt      .cc2-vi { background-image: url('assets/course-cards/chatgpt-for-beginners.jpg'); }
.cc2-visual--prompting    .cc2-vi { background-image: url('assets/course-cards/prompting-for-work.jpg'); }
.cc2-visual--productivity .cc2-vi { background-image: url('assets/course-cards/ai-productivity.jpg'); }
.cc2-visual--canva        .cc2-vi { background-image: url('assets/course-cards/canva-ai-design.jpg'); }
.cc2-visual--capcut       .cc2-vi { background-image: url('assets/course-cards/capcut-ai-video.jpg'); }

/* Replace art-direction ::before overlays with a neutral dark gradient
   that reads well over any photo tone */
.cc2-visual--foundations::before,
.cc2-visual--chatgpt::before,
.cc2-visual--prompting::before,
.cc2-visual--productivity::before,
.cc2-visual--canva::before,
.cc2-visual--capcut::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.28) 100%
  ) !important;
}

/* Hide CSS placeholder shapes for cards that now have real images */
.cc2-visual--foundations  .cc2-vi > *,
.cc2-visual--chatgpt      .cc2-vi > *,
.cc2-visual--prompting    .cc2-vi > *,
.cc2-visual--productivity .cc2-vi > *,
.cc2-visual--canva        .cc2-vi > *,
.cc2-visual--capcut       .cc2-vi > * {
  display: none;
}


/* ================================================================
   DARK MODE OVERRIDES — lower page system
   All rules scoped to html[data-theme="dark"] so protected
   dark sections (hero/why/paths) — which have explicit inline
   colours — are unaffected.
   ================================================================ */

/* ── Course bridge: dark-to-dark in dark mode ─────────────────── */
html[data-theme="dark"] #course-bridge {
  background: linear-gradient(to bottom, #030605 0%, #06120C 100%);
}

/* ── Course cards ─────────────────────────────────────────────── */
/* Use hardcoded dark values — var(--surface) resolves to #fff inside
   the courses section because it carries data-theme="light". */
html[data-theme="dark"] .cc2-card {
  background: #0B1A11;
  border-color: rgba(120, 230, 160, 0.14);
}
html[data-theme="dark"] .cc2-card:hover {
  border-color: rgba(72, 240, 138, 0.28);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(72, 240, 138, 0.18);
}
html[data-theme="dark"] .cc2-body { background: #0B1A11; }
html[data-theme="dark"] .cc2-title { color: #F4F7F4; }
html[data-theme="dark"] .cc2-desc  { color: #B8C4BC; }
html[data-theme="dark"] .cc2-meta  { color: #7E8C83; }
html[data-theme="dark"] .cc2-badge--paid { background: rgba(72, 240, 138, 0.14); color: #48F08A; }
html[data-theme="dark"] .cc2-badge--cert { background: rgba(254, 243, 199, 0.10); color: #FCD34D; }
html[data-theme="dark"] .cc2-cta--paid  { background: var(--brand-green-main); color: #fff; }
html[data-theme="dark"] .cc2-cta--paid:hover { background: var(--brand-green-hover); }

/* ── Step cards (How it Works) ────────────────────────────────── */
html[data-theme="dark"] .step-card {
  background: var(--surface);
  border-color: var(--border-subtle);
}
html[data-theme="dark"] .step-arrow { color: var(--text-muted); }

/* ── Certificate card ─────────────────────────────────────────── */
html[data-theme="dark"] .cert-card {
  background: var(--surface);
  border-color: var(--border-subtle);
}
html[data-theme="dark"] .cert-card-header {
  background: var(--section-bg-soft);
  border-color: var(--border-subtle);
}
html[data-theme="dark"] .cert-preview-img {
  box-shadow: 0 8px 48px rgba(0,0,0,0.45), 0 2px 12px rgba(0,0,0,0.3);
}

/* ── Collab / Partner cards ───────────────────────────────────── */
html[data-theme="dark"] .collab-card {
  background: var(--surface);
  border-color: var(--border-subtle);
}
html[data-theme="dark"] .collab-title { color: var(--text-main); }
html[data-theme="dark"] .collab-desc  { color: var(--text-muted); }
html[data-theme="dark"] .collab-list li { color: var(--text-muted); }

/* ── Pricing cards — always dark; no theme override needed ───── */

/* ── FAQ items ────────────────────────────────────────────────── */
html[data-theme="dark"] .faq-item { border-color: var(--border-subtle); }
html[data-theme="dark"] .faq-q    { color: var(--text-main); }
html[data-theme="dark"] .faq-body p { color: var(--text-muted); }

/* ── Course request pills ─────────────────────────────────────── */
html[data-theme="dark"] .course-req-pill {
  background: var(--surface);
  border-color: var(--border-subtle);
  color: var(--text-main);
}
html[data-theme="dark"] .course-req-pill--cta {
  background: rgba(22, 163, 74, 0.18);
  border-color: rgba(72, 240, 138, 0.30);
  color: var(--brand-green);
}

/* ── Course Request Form — dark mode ──────────────────────────── */
html[data-theme="dark"] .crf-card {
  background: rgba(10, 18, 13, 0.92);
  border-color: rgba(72, 240, 138, 0.16);
}
html[data-theme="dark"] .crf-label { color: var(--text-main); }
html[data-theme="dark"] .crf-input,
html[data-theme="dark"] .crf-select,
html[data-theme="dark"] .crf-textarea {
  background: rgba(8, 16, 11, 0.85);
  border-color: rgba(72, 240, 138, 0.14);
  color: var(--text-main);
  color-scheme: dark;
}
html[data-theme="dark"] .crf-input::placeholder,
html[data-theme="dark"] .crf-textarea::placeholder {
  color: rgba(248, 250, 252, 0.32);
}
html[data-theme="dark"] .crf-input:focus,
html[data-theme="dark"] .crf-select:focus,
html[data-theme="dark"] .crf-textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(72, 240, 138, 0.14);
}
html[data-theme="dark"] .crf-success {
  background: rgba(72, 240, 138, 0.10);
  border-color: rgba(72, 240, 138, 0.25);
  color: var(--brand-green);
}

/* ── Section headings/body text (catch-all for lower sections) ── */
html[data-theme="dark"] .courses-section h2,
html[data-theme="dark"] .course-req-section h2,
html[data-theme="dark"] .cert-section h2,
html[data-theme="dark"] .collab-section h2,
html[data-theme="dark"] .faq-section h2 { color: var(--text-main); }

html[data-theme="dark"] .courses-section p:not([style]),
html[data-theme="dark"] .course-req-section p:not([style]),
html[data-theme="dark"] .cert-section p:not([style]),
html[data-theme="dark"] .collab-section p:not([style]),
html[data-theme="dark"] .faq-section p:not([style]) { color: var(--text-muted); }

/* ── Section labels on light bg in dark mode ──────────────────── */
html[data-theme="dark"] .courses-section .section-label:not([style]),
html[data-theme="dark"] .course-req-section .section-label:not([style]),
html[data-theme="dark"] .cert-section .section-label:not([style]),
html[data-theme="dark"] .collab-section .section-label:not([style]),
html[data-theme="dark"] .faq-section .section-label:not([style]) {
  color: var(--brand-green);
}
html[data-theme="dark"] .courses-section .section-label-dot:not([style]),
html[data-theme="dark"] .cert-section .section-label-dot:not([style]),
html[data-theme="dark"] .collab-section .section-label-dot:not([style]),
html[data-theme="dark"] .faq-section .section-label-dot:not([style]) {
  background: var(--brand-green);
}

/* ── Cert card detail text ────────────────────────────────────── */
html[data-theme="dark"] .cert-list li { color: var(--text-muted); }

/* ── Transition: smooth theme swap on lower sections ──────────── */
.courses-section, .course-req-section, .cert-section,
.faq-section,
.cc2-card, .step-card, .cert-card,
.faq-item, .course-req-pill {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}


/* ================================================================
   THEME TOGGLE BUTTON
   ================================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 17px;
  background: rgba(72, 240, 138, 0.10);
  border: 1px solid rgba(72, 240, 138, 0.22);
  cursor: pointer;
  transition: background var(--ds-t-base), border-color var(--ds-t-base), transform var(--ds-t-fast);
  color: var(--brand-green);
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  background: rgba(72, 240, 138, 0.20);
  border-color: rgba(72, 240, 138, 0.45);
  transform: scale(1.08);
}
.theme-toggle:active { transform: scale(0.96); }

/* On light navbar — adjust contrast */
.navbar--light .theme-toggle {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.22);
  color: var(--brand-green-main);
}
.navbar--light .theme-toggle:hover {
  background: rgba(22, 163, 74, 0.16);
  border-color: rgba(22, 163, 74, 0.40);
}

/* Icon visibility by theme */
html[data-theme="light"] .theme-icon--sun  { display: none; }
html[data-theme="dark"]  .theme-icon--moon { display: none; }

/* Mobile toggle inside mobile menu */
.theme-toggle--mobile {
  width: 100%;
  height: 44px;
  border-radius: var(--ds-r-md);
  gap: var(--ds-sp-2);
  font-size: .875rem;
  font-weight: 500;
  background: rgba(72, 240, 138, 0.08);
  border: 1px solid rgba(72, 240, 138, 0.18);
  color: rgba(255, 255, 255, 0.85);
}
.theme-toggle--mobile:hover {
  background: rgba(72, 240, 138, 0.16);
  border-color: rgba(72, 240, 138, 0.35);
  transform: none;
}
.theme-toggle--mobile .theme-icon {
  width: 16px;
  height: 16px;
}


/* ================================================================
   COURSE PREVIEW MODAL
   ================================================================ */
/*
 * INTENTIONALLY DARK — the course preview modal always renders with a
 * dark background and green-accented UI in both light and dark mode.
 * All colours below are hardcoded dark values.
 * Do not add html[data-theme="light"] overrides for .cm-overlay or
 * .cm-dialog — the dark treatment is deliberate and should hold
 * regardless of the page theme.
 */
/* ── Course Preview Modal — overlay / backdrop ─────────────────── */
.cm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(3, 6, 5, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.cm-overlay[hidden] { display: none; }
.cm-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Glass panel */
.cm-dialog {
  background: linear-gradient(180deg, #06120C 0%, #030605 100%);
  border: 1px solid rgba(72, 240, 138, 0.22);
  border-radius: 24px;
  width: 100%;
  max-width: 960px;
  max-height: calc(100svh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.80),
    0 0 0 1px rgba(72, 240, 138, 0.08),
    0 0 80px rgba(72, 240, 138, 0.04);
  transform: translateY(22px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cm-overlay.is-open .cm-dialog { transform: translateY(0); }

/* Close button */
.cm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(72, 240, 138, 0.28);
  background: rgba(3, 6, 5, 0.65);
  color: rgba(248, 250, 252, 0.80);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.cm-close:hover {
  background: rgba(72, 240, 138, 0.18);
  border-color: rgba(72, 240, 138, 0.55);
  color: #48F08A;
}
.cm-close:focus-visible {
  outline: 2px solid rgba(72, 240, 138, 0.70);
  outline-offset: 3px;
}

/* ── Hero area ───────────────────────────────────────────────── */
.cm-hero {
  position: relative;
  height: 210px;
  flex-shrink: 0;
  overflow: hidden;
}
/* Cloned .cc2-visual fills the hero completely */
.cm-hero .cc2-visual {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  border-radius: 0 !important;
  pointer-events: none;
}
.cm-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 18, 12, 0.97) 0%,
    rgba(6, 18, 12, 0.58) 48%,
    rgba(6, 18, 12, 0.16) 100%
  );
  z-index: 5;
}
.cm-hero-info {
  position: absolute;
  bottom: 20px;
  left: 28px;
  right: 56px;
  z-index: 10;
}
.cm-hero-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cm-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.cm-pill--paid {
  background: rgba(72, 240, 138, 0.14);
  border: 1px solid rgba(72, 240, 138, 0.32);
  color: #48F08A;
}
.cm-pill--cert {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.26);
  color: #FBBF24;
}
.cm-title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.40);
}

/* ── Scrollable body ─────────────────────────────────────────── */
.cm-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 240, 138, 0.22) transparent;
}
.cm-body::-webkit-scrollbar        { width: 4px; }
.cm-body::-webkit-scrollbar-track  { background: transparent; }
.cm-body::-webkit-scrollbar-thumb  { background: rgba(72,240,138,0.22); border-radius: 2px; }

/* Stats bar */
.cm-stats {
  display: flex;
  align-items: stretch;
  background: rgba(72, 240, 138, 0.04);
  border: 1px solid rgba(72, 240, 138, 0.10);
  border-radius: 12px;
  padding: 12px 20px;
  flex-wrap: wrap;
  gap: 0;
}
.cm-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 80px;
  padding: 2px 10px;
}
.cm-stat:first-child { padding-left: 0; }
.cm-stat-lbl {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #48F08A;
}
.cm-stat-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.90);
}
.cm-stat-sep {
  width: 1px;
  background: rgba(72, 240, 138, 0.10);
  flex-shrink: 0;
  align-self: stretch;
  margin: 4px 0;
}

/* Description */
.cm-desc {
  font-size: 0.9375rem;
  color: rgba(248, 250, 252, 0.68);
  line-height: 1.65;
  margin: 0;
}

/* Section */
.cm-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cm-sec-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #48F08A;
  margin: 0;
}

/* Module / lesson / quiz row */
.cm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(6, 18, 12, 0.65);
  border: 1px solid rgba(72, 240, 138, 0.08);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cm-row:hover {
  border-color: rgba(72, 240, 138, 0.20);
  background: rgba(72, 240, 138, 0.05);
}
.cm-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(72, 240, 138, 0.10);
  border: 1px solid rgba(72, 240, 138, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #48F08A;
  flex-shrink: 0;
}
.cm-row-body     { flex: 1; min-width: 0; }
.cm-row-title    { font-size: 0.875rem; font-weight: 600; color: rgba(248,250,252,0.90); margin: 0 0 2px; }
.cm-row-sub      { font-size: 0.75rem; color: rgba(248,250,252,0.42); margin: 0; }
.cm-row-end      { font-size: 0.75rem; color: rgba(248,250,252,0.38); white-space: nowrap; flex-shrink: 0; }
.cm-row-chevron  { font-size: 1rem; color: rgba(72,240,138,0.40); flex-shrink: 0; }

/* Outcomes */
.cm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cm-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.5;
}
.cm-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #48F08A;
  margin-top: 6px;
}

/* CTA footer */
.cm-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.cm-enroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #16A34A;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cm-enroll:hover { background: #15803D; transform: translateY(-1px); }
.cm-enroll:focus-visible { outline: 2px solid rgba(72,240,138,0.70); outline-offset: 3px; }
.cm-dismiss {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(248,250,252,0.45);
  background: transparent;
  border: 1px solid rgba(248,250,252,0.12);
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cm-dismiss:hover { color: rgba(248,250,252,0.75); border-color: rgba(248,250,252,0.25); }
.cm-dismiss:focus-visible { outline: 2px solid rgba(72,240,138,0.70); outline-offset: 3px; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cm-overlay { padding: 0; align-items: flex-end; }
  .cm-dialog  { border-radius: 20px 20px 0 0; border-bottom: none; max-height: 92svh; }
  .cm-hero    { height: 165px; }
  .cm-hero-info { left: 20px; }
  .cm-body    { padding: 16px 20px 24px; gap: 16px; }
  .cm-stats   { padding: 10px 14px; }
  .cm-stat    { min-width: 45%; padding: 2px 6px; }
  .cm-stat-sep { display: none; }
}
@media (max-width: 375px) {
  .cm-footer { flex-direction: column; }
  .cm-enroll, .cm-dismiss { width: 100%; justify-content: center; text-align: center; }
}

/* Light-mode guard: prevent any inherited light-mode token from leaking
 * into the modal. The dark values above are the source of truth. */
html[data-theme="light"] .cm-dialog { color-scheme: dark; }

/* --- Early Access — Email interest capture --------------------- */
.early-access-section {
  background: #06120C;
  position: relative;
}
.early-access-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(72,240,138,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.early-access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.early-access-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.early-access-copy h2 {
  font-family: var(--ds-font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.early-access-copy p {
  font-size: 0.9375rem;
  color: rgba(248,250,252,0.55);
  line-height: 1.7;
  max-width: 44ch;
}
.ea-card {
  background: linear-gradient(160deg, #06120C 0%, #030605 100%);
  border: 1px solid rgba(72,240,138,0.16);
  border-radius: 20px;
  padding: 28px 24px 32px;
}
.ea-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.ea-field { display: flex; flex-direction: column; gap: 6px; }
.ea-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(248,250,252,0.58);
  letter-spacing: 0.02em;
}
.ea-input,
.ea-select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(72,240,138,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #f8fafc;
  outline: none;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: var(--ds-font-body);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ea-input::placeholder { color: rgba(248,250,252,0.24); }
.ea-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(72,240,138,0.55)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.ea-select option { background: #06120C; color: #f8fafc; }
.ea-input:focus,
.ea-select:focus {
  border-color: rgba(72,240,138,0.50);
  box-shadow: 0 0 0 3px rgba(72,240,138,0.10);
}
.ea-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  background: #16A34A;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: var(--ds-font-body);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
}
.ea-submit:hover { background: #15803D; transform: translateY(-1px); }
.ea-submit:active { transform: scale(0.99); }
.ea-submit:focus-visible { outline: 2px solid rgba(72,240,138,0.70); outline-offset: 3px; }
.ea-success {
  color: #48F08A;
  background: rgba(72,240,138,0.08);
  border: 1px solid rgba(72,240,138,0.22);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
}
@media (max-width: 960px) {
  .early-access-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 560px;
    margin: 0 auto;
  }
  .early-access-copy p { max-width: none; }
}
@media (max-width: 520px) {
  .ea-card { padding: 22px 18px 26px; }
}


/* ================================================================
   Blog — Preview strip (index.html) + Blog index + Post pages
   All classes prefixed .blog- to avoid collision
   ================================================================ */

/* ── Blog Preview Strip (index.html) ──────────────────────────── */
.blog-preview-section {
  background: #030605;
  padding: 80px 0 88px;
  position: relative;
}
.blog-preview-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(72,240,138,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.blog-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.blog-preview-header-copy {}
.blog-preview-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #48F08A;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 160ms ease;
  white-space: nowrap;
}
.blog-preview-all:hover { gap: 10px; }
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-preview-card {
  background: linear-gradient(160deg, #06120C 0%, #030605 100%);
  border: 1px solid rgba(72,240,138,0.12);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}
.blog-preview-card:hover {
  border-color: rgba(72,240,138,0.32);
  transform: translateY(-3px);
}
.blog-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #48F08A;
}
.blog-card-title {
  font-family: var(--ds-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  margin: 0;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.blog-card-meta {
  font-size: 0.775rem;
  color: #64748B;
  margin-top: 4px;
}
.blog-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #48F08A;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  text-decoration: none;
}
.blog-preview-footer {
  text-align: center;
  margin-top: 48px;
}

/* ── Blog index page: Hero ────────────────────────────────────── */
.blog-hero-section {
  background: #030605;
  padding: 100px 0 72px;
  position: relative;
  overflow: hidden;
}
.blog-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(72,240,138,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.blog-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #48F08A;
  margin-bottom: 20px;
}
.blog-hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #48F08A;
  flex-shrink: 0;
}
.blog-hero-h1 {
  font-family: var(--ds-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.18;
  margin: 0 0 16px;
}
.blog-hero-sub {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.65;
  max-width: 540px;
  margin: 0;
}

/* ── Blog index: Featured card ────────────────────────────────── */
.blog-featured-section {
  background: #030605;
  padding: 0 0 64px;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(72,240,138,0.14);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 180ms ease;
}
.blog-featured-card:hover { border-color: rgba(72,240,138,0.34); }
.blog-featured-visual {
  background: linear-gradient(135deg, #06120C 0%, #0a1f14 50%, #030605 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-featured-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(72,240,138,0.12) 0%, transparent 70%);
}
.blog-featured-visual-icon {
  font-size: 4rem;
  position: relative;
  z-index: 1;
  user-select: none;
}
.blog-featured-body {
  background: linear-gradient(160deg, #06120C 0%, #030605 100%);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-featured-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #48F08A;
}
.blog-featured-title {
  font-family: var(--ds-font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.28;
  margin: 0;
}
.blog-featured-excerpt {
  font-size: 0.925rem;
  color: #94A3B8;
  line-height: 1.65;
  margin: 0;
}
.blog-featured-meta {
  font-size: 0.78rem;
  color: #64748B;
}
.blog-featured-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #48F08A;
  text-decoration: none;
  transition: gap 160ms ease;
}
.blog-featured-link:hover { gap: 10px; }

/* ── Blog index: Card grid ────────────────────────────────────── */
.blog-grid-section {
  background: #030605;
  padding: 0 0 80px;
}
.blog-grid-heading {
  font-family: var(--ds-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 28px;
}
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Blog index: Subscribe strip ──────────────────────────────── */
.blog-sub-section {
  background: #06120C;
  border-top: 1px solid rgba(72,240,138,0.08);
  padding: 72px 0 80px;
}
.blog-sub-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.blog-sub-copy {}
.blog-sub-copy h2 {
  font-family: var(--ds-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  margin: 0 0 12px;
}
.blog-sub-copy p {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.65;
  margin: 0;
}

/* ── Blog post pages: Shell ───────────────────────────────────── */
.blog-post-page {}

.blog-post-hero {
  background: #030605;
  padding: 88px 0 64px;
  position: relative;
}
.blog-post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(72,240,138,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.blog-post-header {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 160ms ease;
}
.blog-back-link:hover { color: #48F08A; }
.blog-post-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #48F08A;
  margin-bottom: 14px;
}
.blog-post-h1 {
  font-family: var(--ds-font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  margin: 0 0 18px;
}
.blog-post-meta-row {
  font-size: 0.8rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.blog-post-meta-row span + span::before {
  content: '·';
  margin-right: 8px;
}
.blog-post-excerpt {
  font-size: 1.075rem;
  color: #94A3B8;
  line-height: 1.65;
  max-width: 620px;
  margin: 0;
}

/* ── Blog post: Article body ──────────────────────────────────── */
.blog-post-body {
  background: #030605;
  padding: 56px 0 72px;
}
.blog-post-content {
  max-width: 740px;
  margin: 0 auto;
}
.blog-post-content h2 {
  font-family: var(--ds-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
  margin: 48px 0 16px;
}
.blog-post-content h2:first-child { margin-top: 0; }
.blog-post-content p {
  font-size: 1rem;
  color: #CBD5E1;
  line-height: 1.78;
  margin: 0 0 20px;
}
.blog-post-content ul,
.blog-post-content ol {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.78;
  margin: 0 0 20px;
  padding-left: 1.4em;
}
.blog-post-content li { margin-bottom: 6px; }
.blog-post-content strong { color: #f8fafc; font-weight: 700; }

.blog-pull {
  border-left: 3px solid #48F08A;
  margin: 36px 0;
  padding: 16px 0 16px 24px;
  font-size: 1.075rem;
  font-style: italic;
  color: #CBD5E1;
  line-height: 1.65;
}

/* ── Blog post: CTA card ──────────────────────────────────────── */
.blog-post-cta-block {
  max-width: 740px;
  margin: 48px auto 0;
}
.blog-cta-card {
  background: linear-gradient(135deg, #06120C 0%, #030605 100%);
  border: 1px solid rgba(72,240,138,0.18);
  border-radius: 18px;
  padding: 36px 32px;
  text-align: center;
}
.blog-cta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #48F08A;
  margin-bottom: 12px;
}
.blog-cta-title {
  font-family: var(--ds-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 10px;
  line-height: 1.3;
}
.blog-cta-desc {
  font-size: 0.925rem;
  color: #94A3B8;
  margin: 0 0 24px;
  line-height: 1.6;
}
.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #16A34A;
  color: #fff;
  font-family: var(--ds-font-display);
  font-size: 0.925rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.blog-cta-btn:hover { background: #15803D; transform: translateY(-2px); }

/* ── Blog post: Related articles ──────────────────────────────── */
.blog-related {
  background: #06120C;
  border-top: 1px solid rgba(72,240,138,0.08);
  padding: 64px 0 80px;
}
.blog-related-heading {
  font-family: var(--ds-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 28px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Blog responsive ──────────────────────────────────────────── */
@media (max-width: 1060px) {
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-visual { min-height: 200px; }
  .blog-index-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-sub-inner { grid-template-columns: 1fr; gap: 36px; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .blog-preview-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-preview-header { flex-direction: column; align-items: flex-start; }
  .blog-index-grid { grid-template-columns: 1fr; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-post-hero { padding: 72px 0 48px; }
  .blog-featured-body { padding: 28px 24px; }
}
@media (max-width: 520px) {
  .blog-hero-section { padding: 80px 0 56px; }
  .blog-post-cta-block { margin-top: 36px; }
  .blog-cta-card { padding: 26px 20px; }
  .blog-post-content h2 { font-size: 1.15rem; margin-top: 36px; }
}

/* ================================================================
   LIGHT-MODE SECTION REFINEMENTS
   Applies only to the four theme-adaptive sections:
   Courses, Certificates, Course Request, FAQ.
   Always-dark sections (Hero, Why, Pricing, Blog Preview, Footer,
   course preview modal, mobile menu) are NOT touched here.
   ================================================================ */

/* ── Courses ────────────────────────────────────────────────────── */
html[data-theme="light"] .courses-section {
  background: #F2FDF6;
}
html[data-theme="light"] .cc2-card {
  background: #FFFFFF;
  border-color: rgba(22, 163, 74, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .cc2-card:hover {
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(22, 163, 74, 0.16);
}
html[data-theme="light"] .cc2-title { color: #0F172A; }
html[data-theme="light"] .cc2-desc  { color: #475569; }
html[data-theme="light"] .cc2-badge--paid { background: rgba(22, 163, 74, 0.10); color: #15803D; }
html[data-theme="light"] .cc2-badge--cert { background: #FEF9C3; color: #854D0E; }

/* ── Certificates ───────────────────────────────────────────────── */
html[data-theme="light"] .cert-section {
  background: #F7FBF8;
}
html[data-theme="light"] .cert-card {
  background: #FFFFFF;
  border-color: rgba(22, 163, 74, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .cert-card-header {
  background: #F2FDF6;
  border-bottom-color: rgba(22, 163, 74, 0.12);
}

/* ── Course Request ─────────────────────────────────────────────── */
html[data-theme="light"] .course-req-section {
  background: #EDFAF4;
}
html[data-theme="light"] .crf-card {
  background: #FFFFFF;
  border-color: rgba(22, 163, 74, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .crf-input,
html[data-theme="light"] .crf-select,
html[data-theme="light"] .crf-textarea {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.14);
  color: #0F172A;
}
html[data-theme="light"] .crf-input:focus,
html[data-theme="light"] .crf-select:focus,
html[data-theme="light"] .crf-textarea:focus {
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
html[data-theme="light"] .course-req-pill {
  background: #FFFFFF;
  border-color: rgba(22, 163, 74, 0.18);
  color: #0F172A;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .course-req-pill:hover {
  border-color: rgba(22, 163, 74, 0.40);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.12);
}

/* ── FAQ ────────────────────────────────────────────────────────── */
html[data-theme="light"] .faq-section {
  background: #F2FDF6;
}
html[data-theme="light"] .faq-list {
  border-top-color: rgba(22, 163, 74, 0.15);
}
html[data-theme="light"] .faq-item {
  border-bottom-color: rgba(22, 163, 74, 0.12);
}
html[data-theme="light"] .faq-icon {
  background: #FFFFFF;
  border-color: rgba(22, 163, 74, 0.18);
}
html[data-theme="light"] .faq-item.open .faq-icon {
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.35);
  color: #16A34A;
}
html[data-theme="light"] .faq-q { color: #0F172A; }
html[data-theme="light"] .faq-btn:hover .faq-q { color: #16A34A; }
html[data-theme="light"] .faq-answer { color: #475569; }


/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cm-overlay,
  .cm-dialog { transition: none !important; }
}
