/* ═══════════════════════════════════════════════════════════
   AI Citizen Learning Path — Synapxe Purple Theme
   Interactive Explainer style: clean, no side lines,
   gradient cards, presentation-optimized.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ═══ Synapxe Brand ═══ */
  --brand: #5B21B6;
  --brand-light: #7C3AED;
  --brand-bright: #A78BFA;
  --brand-glow: rgba(91,33,182,.08);
  --brand-glow-strong: rgba(91,33,182,.14);
  --brand-magenta: #D946EF;
  --gradient-brand: linear-gradient(135deg, #5B21B6, #7C3AED);
  --gradient-brand-vivid: linear-gradient(135deg, #5B21B6, #D946EF);

  /* ═══ Surfaces ═══ */
  --bg: #F8F7FC;
  --bg-white: #FFFFFF;
  --bg-hero: #0F0A1F;
  --bg-tinted: linear-gradient(145deg, #F5F3FF 0%, #FFFFFF 60%);

  /* ═══ Text ═══ */
  --text: #1E1B2E;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --text-heading: #0F0A1F;

  /* ═══ Accents ═══ */
  --green: #059669;
  --green-bg: #ECFDF5;
  --amber: #D97706;
  --amber-bg: #FFFBEB;
  --blue: #2563EB;
  --blue-bg: #EFF6FF;
  --red: #DC2626;

  /* ═══ Borders & Shadows ═══ */
  --border: #E8E5F0;
  --border-hover: rgba(91,33,182,.35);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 14px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08);
  --shadow-glow: 0 0 30px rgba(91,33,182,.07);

  /* ═══ Layout ═══ */
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* ═══ Atmosphere ═══ */
.noise-overlay {
  position: fixed; inset: 0;
  pointer-events: none; opacity: 0.015; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stem-line { display: none; }
.ambient-glow {
  position: fixed; border-radius: 50%;
  filter: blur(100px); opacity: 0.05;
  pointer-events: none; z-index: 0;
}
.glow-1 { width: 500px; height: 500px; top: -150px; right: -150px; background: var(--brand); }
.glow-2 { width: 350px; height: 350px; bottom: -100px; left: -100px; background: var(--brand-magenta); }

/* ═══ Header ═══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(248,247,252,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-left { display: flex; align-items: center; gap: 0.75rem; }
.header-logo { font-size: 1.5rem; }
.header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-heading);
}
.header-subtitle {
  font-size: 0.8rem; color: var(--text-muted);
  font-weight: 400;
}
.header-right { display: flex; gap: 0.5rem; }
.btn-download {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--gradient-brand);
  color: #fff; border: none; border-radius: 24px;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s var(--ease);
  box-shadow: 0 2px 8px rgba(91,33,182,.2);
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(91,33,182,.3);
}

@media (max-width: 768px) {
  .site-header { flex-wrap: wrap; padding: 0.6rem 1rem; gap: 0.5rem; }
  .header-subtitle { display: none; }
}

/* ═══ Navigation ═══ */
.persona-nav {
  position: sticky; top: 56px; z-index: 90;
  display: flex; gap: 0.4rem;
  padding: 0.6rem 2rem;
  background: rgba(248,247,252,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.nav-btn {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: var(--bg-white);
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500;
  color: var(--text-body);
  cursor: pointer; transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.nav-btn:hover {
  border-color: var(--border-hover);
  background: rgba(91,33,182,.04);
  color: var(--brand);
}
.nav-btn.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(91,33,182,.2);
}
.nav-btn-workshop {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(217,70,239,.06), rgba(91,33,182,.04));
  border-color: rgba(217,70,239,.25);
  color: var(--brand-magenta);
  font-weight: 600;
  margin-left: auto;
}
.nav-btn-workshop:hover {
  background: linear-gradient(135deg, rgba(217,70,239,.12), rgba(91,33,182,.08));
  border-color: rgba(217,70,239,.4);
  color: var(--brand-magenta);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217,70,239,.15);
}

/* ═══ Hero Section (Dark) ═══ */
.hero {
  background: #0B0514;
  padding: 3.5rem 2rem;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91,33,182,0.15) 0%, rgba(217,70,239,0.05) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero canvas { display: none; }
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-icon { font-size: 2.2rem; margin-bottom: 0.6rem; display: block; }
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.hero-title span {
  background: linear-gradient(270deg, #C4B5FD, #E879F9, #A78BFA, #F0ABFC, #C4B5FD);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem; color: rgba(203,213,225,0.85);
  font-weight: 400; max-width: 540px; margin: 0 auto 1.8rem;
  line-height: 1.7;
}

@media (max-width: 1024px) { .hero-title { font-size: 1.8rem; } }
@media (max-width: 480px) { .hero { padding: 2rem 1rem; } .hero-title { font-size: 1.5rem; } }

/* ═══ Stat Cards ═══ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; max-width: 800px; margin: 0 auto;
}
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: var(--radius); padding: 1.3rem;
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute; bottom: -20px; right: -20px;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(91,33,182,.1) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(91,33,182,.12); }
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem; font-weight: 700;
  color: var(--brand-bright);
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 0.3rem; font-weight: 500; }

@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

/* ═══ Content Sections ═══ */
.section {
  padding: 2.5rem 2rem;
  max-width: 1200px; margin: 0 auto;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.7rem;
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--brand) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title .icon {
  font-size: 1.2rem;
  -webkit-text-fill-color: initial;
}

/* ═══ Cards — Explainer Style (no side lines) ═══ */
.card {
  background: var(--bg-tinted);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1.5px solid rgba(91,33,182,.1);
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.card::after {
  content: '';
  position: absolute; bottom: -30px; right: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(91,33,182,.04) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(91,33,182,.08), 0 2px 8px rgba(0,0,0,.03);
  border-color: rgba(91,33,182,.2);
}

/* ═══ Competency Grid — Enhanced Glassmorphism with Animations ═══ */
.competency-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  perspective: 1200px;
}

.competency-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.85) 0%, rgba(245,243,255,0.7) 100%);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1.5px solid rgba(167,139,250,0.2);
  border-radius: 24px;
  padding: 2rem;
  box-shadow:
    0 8px 32px rgba(91,33,182,.06),
    0 2px 8px rgba(0,0,0,.03),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  /* Start hidden — revealed by IntersectionObserver */
  opacity: 0;
  transform: translateY(40px) rotateX(-8deg) scale(0.95);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(-8deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

/* Cards start invisible, animate on scroll reveal */
.competency-card.revealed {
  animation: cardEntrance 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* Animated gradient border on hover */
.competency-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(167,139,250,0.5), rgba(217,70,239,0.4), rgba(91,33,182,0.3), rgba(167,139,250,0.5));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  animation: borderGlow 4s ease infinite;
}
@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.competency-card:hover::before { opacity: 1; }

/* Floating light orb effect */
.competency-card::after {
  content: '';
  position: absolute; top: -40%; right: -40%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, rgba(217,70,239,0.06) 30%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.6s var(--ease);
  opacity: 0;
  transform: scale(0.8);
}
.competency-card:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.competency-card:hover {
  transform: translateY(-8px) rotateX(2deg) scale(1.02);
  box-shadow:
    0 24px 48px rgba(91,33,182,.12),
    0 12px 24px rgba(91,33,182,.08),
    0 4px 8px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,1);
  border-color: rgba(167,139,250,0.4);
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(245,243,255,0.85) 100%);
}

/* Icon with animated pulse */
.competency-card .card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(91,33,182,.1), rgba(217,70,239,.08));
  border-radius: 16px; font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(91,33,182,.08);
  transition: all 0.4s var(--ease);
  position: relative;
}
.competency-card .card-icon::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(91,33,182,.15), rgba(217,70,239,.1));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
  animation: iconPulse 2.5s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.15); opacity: 0.6; }
}
.competency-card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
  background: linear-gradient(135deg, rgba(91,33,182,.15), rgba(217,70,239,.12));
  box-shadow: 0 6px 20px rgba(91,33,182,.15);
}
.competency-card:hover .card-icon::after { opacity: 1; }

/* Domain title with gradient on hover */
.competency-card .domain {
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 0.6rem; color: var(--text-heading);
  transition: all 0.3s var(--ease);
}
.competency-card:hover .domain {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-magenta) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Level badge with shimmer */
.competency-card .level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight: 500;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  display: inline-block; margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(91,33,182,.1), rgba(167,139,250,.08));
  color: var(--brand);
  border: 1px solid rgba(91,33,182,.12);
  position: relative; overflow: hidden;
  transition: all 0.3s var(--ease);
}
.competency-card .level::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s var(--ease);
}
.competency-card:hover .level::after { left: 100%; }
.competency-card:hover .level {
  background: linear-gradient(135deg, rgba(91,33,182,.15), rgba(167,139,250,.12));
  border-color: rgba(91,33,182,.25);
  box-shadow: 0 2px 8px rgba(91,33,182,.1);
}

/* Definition text */
.competency-card .definition {
  font-size: 0.88rem; color: var(--text-body);
  margin-bottom: 0.8rem; line-height: 1.75;
  transition: color 0.3s var(--ease);
}

/* Outcome with animated arrow */
.competency-card .outcome {
  font-size: 0.82rem; color: var(--text-muted);
  font-style: italic;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(91,33,182,.08);
  transition: all 0.3s var(--ease);
  position: relative;
  padding-left: 0;
}
.competency-card:hover .outcome {
  color: var(--brand);
  border-top-color: rgba(91,33,182,.15);
}

/* Staggered entrance for grid items */
.competency-card:nth-child(1) { --d: 0.05s; }
.competency-card:nth-child(2) { --d: 0.12s; }
.competency-card:nth-child(3) { --d: 0.19s; }
.competency-card:nth-child(4) { --d: 0.26s; }
.competency-card:nth-child(5) { --d: 0.33s; }
.competency-card:nth-child(6) { --d: 0.40s; }
.competency-card:nth-child(7) { --d: 0.47s; }
.competency-card:nth-child(8) { --d: 0.54s; }
.competency-card:nth-child(9) { --d: 0.61s; }

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

/* ═══ Competency Section Header Animation ═══ */
.competency-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.competency-section-header .section-title {
  justify-content: center;
  margin-bottom: 0.5rem;
}
.competency-section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ═══ Course Offerings — Enhanced Visual Layout ═══ */
.offerings-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
}
.offering-section {
  position: relative;
}
.offering-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-heading);
}
.offering-section h3 .offering-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 600;
  padding: 0.2rem 0.6rem; border-radius: 12px;
  background: rgba(91,33,182,0.06);
  color: var(--brand);
}

/* Separator line between sections */
.offering-section + .offering-section::before {
  content: '';
  position: absolute;
  top: -1.25rem; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,33,182,0.12), transparent);
}

/* Course cards within sections */
.course-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.8rem;
}
.course-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.2rem; border-radius: 14px;
  border: 1.5px solid rgba(91,33,182,0.06);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  transition: all 0.35s var(--ease);
  position: relative;
}
.course-item:hover {
  border-color: rgba(91,33,182,.18);
  background: rgba(255,255,255,1);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(91,33,182,.07), 0 2px 6px rgba(0,0,0,.02);
}
.course-icon {
  font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(91,33,182,0.04);
  border-radius: 10px;
}
.course-info { flex: 1; min-width: 0; }
.course-name {
  font-weight: 600; font-size: 0.85rem; color: var(--text);
  text-decoration: none; display: block;
  line-height: 1.4;
}
a.course-name { color: var(--brand); }
a.course-name:hover { color: var(--brand-light); text-decoration: underline; }
.course-meta {
  display: flex; gap: 0.4rem; margin-top: 0.4rem; flex-wrap: wrap;
}
.course-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 500;
  padding: 0.2rem 0.55rem; border-radius: 8px;
  letter-spacing: 0.01em;
}
.badge-duration { background: rgba(30,27,46,0.05); color: var(--text-muted); }
.badge-level { background: rgba(91,33,182,.06); color: var(--brand); }
.badge-free { background: rgba(5,150,105,.08); color: var(--green); border: 1px solid rgba(5,150,105,.12); }
.badge-paid { background: rgba(124,58,237,.08); color: var(--brand-light); border: 1px solid rgba(124,58,237,.12); }
.badge-ilt { background: rgba(220,38,38,.08); color: var(--red); border: 1px solid rgba(220,38,38,.12); }

/* Offerings summary bar */
.offerings-summary {
  display: flex; gap: 1.5rem; margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(91,33,182,0.03);
  border-radius: 14px;
  border: 1px solid rgba(91,33,182,0.06);
}
.offerings-summary-item {
  display: flex; align-items: center; gap: 0.5rem;
}
.offerings-summary-item .summary-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.offerings-summary-item .summary-dot.dot-free { background: var(--green); }
.offerings-summary-item .summary-dot.dot-paid { background: var(--brand-light); }
.offerings-summary-item .summary-dot.dot-ilt { background: var(--red); }
.offerings-summary-item span {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 500;
}

@media (max-width: 768px) {
  .course-list { grid-template-columns: 1fr; }
  .offerings-summary { flex-wrap: wrap; gap: 0.8rem; }
}

/* ═══ Learning Journey — Interactive Pipeline ═══ */
.journey-container { position: relative; }

/* SVG Pipeline Visualization */
.journey-pipeline {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  position: relative;
}
.journey-pipeline svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG Node Styles */
.journey-node { cursor: pointer; transition: all 0.3s var(--ease); }
.journey-node .node-bg {
  fill: rgba(255,255,255,0.9);
  stroke: rgba(91,33,182,0.2);
  stroke-width: 2;
  transition: all 0.4s var(--ease);
  filter: drop-shadow(0 2px 6px rgba(91,33,182,0.06));
}
.journey-node:hover .node-bg {
  stroke: rgba(91,33,182,0.5);
  filter: drop-shadow(0 4px 12px rgba(91,33,182,0.12));
}
.journey-node.active .node-bg {
  stroke: var(--brand);
  stroke-width: 2.5;
  fill: rgba(245,243,255,0.95);
  filter: drop-shadow(0 0 16px rgba(91,33,182,0.25));
}
.journey-node.done .node-bg {
  stroke: var(--brand-bright);
  fill: rgba(245,243,255,0.7);
}
.journey-node .node-icon { font-size: 22px; pointer-events: none; }
.journey-node .node-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600;
  fill: var(--text-heading);
  pointer-events: none;
}
.journey-node .node-hours {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; font-weight: 500;
  fill: var(--text-muted);
  pointer-events: none;
}

/* Edge lines */
.journey-edge {
  stroke: rgba(91,33,182,0.15);
  stroke-width: 2;
  fill: none;
  transition: all 0.4s var(--ease);
}
.journey-edge.active {
  stroke: var(--brand);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(91,33,182,0.3));
}
.journey-edge.done {
  stroke: var(--brand-bright);
  stroke-width: 2;
}

/* Flow particles */
.journey-particle {
  fill: var(--brand);
  opacity: 0;
  r: 3;
}
.journey-particle.flowing {
  animation: journeyFlowPulse 1s ease-in-out;
}
@keyframes journeyFlowPulse {
  0%   { opacity: 0; r: 2; }
  15%  { opacity: 1; r: 4; }
  85%  { opacity: 0.8; r: 3.5; }
  100% { opacity: 0; r: 2; }
}

/* Autoplay button */
.journey-autoplay {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 24px;
  border: 2px solid rgba(91,33,182,0.25);
  background: rgba(91,33,182,0.04);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--brand);
  cursor: pointer; transition: all 0.3s var(--ease);
  box-shadow: 0 2px 8px rgba(91,33,182,0.06);
  margin: 0 auto;
  display: flex;
}
.journey-autoplay:hover {
  background: rgba(91,33,182,0.08);
  border-color: rgba(91,33,182,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91,33,182,0.12);
}
.journey-autoplay.playing {
  background: var(--gradient-brand);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 20px rgba(91,33,182,0.3);
}

/* Narrator bar */
.journey-narrator {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(145deg, rgba(245,243,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
  border: 1.5px solid rgba(91,33,182,0.12);
  border-radius: 16px;
  font-size: 14px; color: var(--text-body);
  min-height: 80px;
  transition: all 0.4s var(--ease);
  box-shadow: 0 4px 16px rgba(91,33,182,0.04);
  margin-top: 1.5rem;
  animation: narratorFadeIn 0.4s var(--ease);
}
@keyframes narratorFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.journey-narrator .narrator-icon {
  font-size: 28px; flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(91,33,182,0.08), rgba(217,70,239,0.06));
  border-radius: 12px;
}
.journey-narrator .narrator-content { flex: 1; }
.journey-narrator .narrator-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.journey-narrator .narrator-text {
  line-height: 1.7; color: var(--text-body);
  font-size: 0.88rem;
}
.journey-narrator .narrator-hours {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; color: var(--brand);
  margin-top: 6px;
  display: inline-block;
  padding: 2px 8px;
  background: rgba(91,33,182,0.06);
  border-radius: 10px;
}

/* Journey controls row */
.journey-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.5rem;
}

/* Progress dots */
.journey-progress {
  display: flex; align-items: center; gap: 6px;
  margin-top: 1rem;
  justify-content: center;
}
.journey-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(91,33,182,0.15);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.journey-dot.active {
  background: var(--brand);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(91,33,182,0.3);
}
.journey-dot.done {
  background: var(--brand-bright);
}

@media (max-width: 768px) {
  .journey-pipeline svg { min-height: 200px; }
  .journey-narrator { flex-direction: column; gap: 10px; }
}

/* ═══ Certifications ═══ */
.cert-card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.5rem;
}
.cert-badge {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 16px; overflow: hidden;
  background: rgba(91,33,182,.06);
  display: flex; align-items: center; justify-content: center;
}
.cert-badge img { width: 56px; height: 56px; object-fit: contain; }
.cert-badge .cert-placeholder { font-size: 2.2rem; }
.cert-info { flex: 1; }
.cert-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 1.05rem; color: var(--text-heading);
  margin-bottom: 0.3rem;
}
.cert-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; padding: 0.2rem 0.6rem;
  border-radius: 6px; display: inline-block;
  background: rgba(91,33,182,.06); color: var(--brand);
  margin-bottom: 0.4rem;
}
.cert-notes { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ═══ Animations ═══ */
.stagger-item {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ═══ Overview Page ═══ */
.overview-purpose {
  font-size: 1.05rem; color: var(--text-body);
  max-width: 700px; margin: 0 auto 2rem;
  text-align: center; line-height: 1.8;
}
.tier-visual {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin: 2rem 0;
}
.tier-badge {
  padding: 0.6rem 1.4rem; border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  background: rgba(91,33,182,.06); color: var(--brand);
  border: 2px solid rgba(91,33,182,.2);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.tier-badge:hover {
  background: rgba(91,33,182,.1);
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(91,33,182,.12);
  transform: translateY(-2px);
}

/* ═══ Touch-Friendly ═══ */
@media (hover: none) and (pointer: coarse) {
  .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .stat-card:hover { transform: none; }
  .course-item:hover { transform: none; }
  * { -webkit-tap-highlight-color: transparent; }
}
