/* ══ LEARNING PATH ══════════════════════════ */
.ai-learning-path {
  position: relative;
  width: 100%;
  padding: 72px 64px 80px;
  overflow: hidden;
  isolation: isolate;
}
.ai-learning-path::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(108,50,220,0.16) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.ai-lp-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 80px;
}
.ai-lp-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(160,120,255,0.55);
  margin-bottom: 10px;
}
.ai-lp-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ai-lp-meta {
  font-size: 0.78rem;
  color: rgba(170,150,220,0.4);
  letter-spacing: 0.06em;
  padding-bottom: 4px;
}
.ai-lp-track-wrap {
  position: relative;
  z-index: 1;
}
.ai-lp-line {
  position: absolute;
  top: 60px !important;
  left: 48px;
  right: 165px;
  height: 8px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(120,70,255,0.5) 5%, rgba(150,100,255,0.55) 50%, rgba(120,70,255,0.5) 95%, transparent 100%);
  z-index: 0;
}
.ai-lp-line::after {
  content: '';
  position: absolute;
  inset: -1px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(210,180,255,0.8) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3.5s ease-in-out infinite;
  opacity: 0.35;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.ai-lp-steps {
  display: flex;
  align-items: flex-start;
}
.ai-lp-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.7s ease both;
}
.ai-lp-step:nth-child(1){ animation-delay:.05s }
.ai-lp-step:nth-child(2){ animation-delay:.17s }
.ai-lp-step:nth-child(3){ animation-delay:.29s }
.ai-lp-step:nth-child(4){ animation-delay:.41s }
@keyframes rise {
  from { opacity:0; transform:translateY(20px) }
  to   { opacity:1; transform:translateY(0) }
}

/* ── Pin ring ─────────────────────────────── */
.ai-lp-pin-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(140,90,255,0.45);
  background: rgba(100,55,220,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color .3s, background .3s, box-shadow .3s;
  backdrop-filter: blur(4px);
}
.ai-lp-step:hover .ai-lp-pin-ring {
  border-color: rgba(190,155,255,0.85);
  background: rgba(130,75,255,0.18);
}
/* Active */
.ai-lp-step.active .ai-lp-pin-ring {
  border-color: rgba(200,170,255,0.9);
  background: rgba(140,80,255,0.22);
  box-shadow: 0 0 0 6px rgba(140,80,255,0.1), 0 0 24px rgba(160,100,255,0.4);
}
.ai-lp-pin-ring::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(140,90,255,0.18);
  animation: pulse-ring 3s ease-in-out infinite;
}
.ai-lp-step:nth-child(2) .ai-lp-pin-ring::before { animation-delay:.5s }
.ai-lp-step:nth-child(3) .ai-lp-pin-ring::before { animation-delay:1s }
.ai-lp-step:nth-child(4) .ai-lp-pin-ring::before { animation-delay:1.5s }
.ai-lp-step.active .ai-lp-pin-ring::before {
  border-color: rgba(180,130,255,0.5);
  animation: pulse-ring-active 1.8s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%,100% { opacity:.18; transform:scale(1) }
  50%     { opacity:.45; transform:scale(1.15) }
}
@keyframes pulse-ring-active {
  0%,100% { opacity:.35; transform:scale(1); border-color:rgba(180,130,255,0.5); }
  50%     { opacity:.75; transform:scale(1.2); border-color:rgba(200,160,255,0.7); }
}

/* ── Pin core ─────────────────────────────── */
.ai-lp-pin-core {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #b580ff 0%, #6c30dd 100%);
  box-shadow: 0 0 14px rgba(150,80,255,0.6);
  transition: box-shadow .3s, transform .3s;
}
.ai-lp-step:hover .ai-lp-pin-core { box-shadow: 0 0 22px rgba(180,120,255,0.85); }
.ai-lp-step.active .ai-lp-pin-core {
  background: radial-gradient(circle at 38% 30%, #dbbfff 0%, #8b3fff 100%);
  box-shadow: 0 0 28px rgba(180,120,255,0.9), 0 0 8px rgba(220,180,255,0.5);
  transform: scale(1.12);
}

/* ── Pin tail ─────────────────────────────── */
.ai-lp-pin-tail {
  width: 1.5px;
  height: 14px;
  background: linear-gradient(180deg, rgba(160,110,255,0.65), transparent);
}
.ai-lp-step.active .ai-lp-pin-tail {
  background: linear-gradient(180deg, rgba(200,160,255,0.9), rgba(160,110,255,0.2));
}

/* ── Dot ──────────────────────────────────── */
.ai-lp-dot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.18), 0 0 14px rgba(139,92,246,0.55);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: box-shadow .3s, transform .3s;
}
.ai-lp-step:hover .ai-lp-dot {
  box-shadow: 0 0 0 5px rgba(139,92,246,0.28), 0 0 22px rgba(139,92,246,0.75);
}
.ai-lp-step.active .ai-lp-dot {
  background: #c084fc;
  box-shadow:
    0 0 0 4px rgba(192,132,252,0.25),
    0 0 0 8px rgba(192,132,252,0.08),
    0 0 20px rgba(192,132,252,0.7);
  transform: scale(1.3);
}

/* ── Label ────────────────────────────────── */
.ai-lp-label {
  margin-top: 20px;
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(210,200,240,0.7);
  text-align: center;
  letter-spacing: 0.01em;
  transition: color .2s;
  white-space: nowrap;
}
.ai-lp-step:hover .ai-lp-label { color: #fff; }
.ai-lp-step.active .ai-lp-label { color: #fff; font-weight: 500; }

.ai-lp-step-num {
  margin-top: 7px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140,110,210,0.3);
}

/* ── Status tag (active only) ─────────────── */
.ai-lp-status-tag {
  display: none;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(192,132,252,0.35);
  background: rgba(140,80,255,0.12);
  color: rgba(210,175,255,0.8);
  align-items: center;
  gap: 5px;
}
.ai-lp-step.active .ai-lp-status-tag {
  display: inline-flex;
}
.ai-lp-status-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 5px rgba(192,132,252,0.9);
  animation: tag-blink 1.8s ease-in-out infinite;
}
@keyframes tag-blink {
  0%,100%{ opacity:1; }
  50%    { opacity:0.3; }
}

/* ── End badge ────────────────────────────── */
.ai-lp-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 0 8px;
  animation: rise 0.7s .53s ease both;
}
.ai-lp-end-spacer { height: calc(30px + 2px)!important; }
.ai-lp-end-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(76,29,149,0.14));
  border: 1px solid rgba(167,139,250,0.35);
  box-shadow: 0 0 28px rgba(120,70,255,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  transition: all .3s;
  cursor: default;
}
.ai-lp-end-badge:hover {
  border-color: rgba(192,168,255,0.6);
  box-shadow: 0 0 40px rgba(140,90,255,0.38), inset 0 1px 0 rgba(255,255,255,0.1);
}
.ai-lp-end-gem {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d4b8ff 0%, #a855f7 100%);
  box-shadow: 0 0 8px rgba(167,139,250,0.9);
  flex-shrink: 0;
}
.ai-lp-end-text {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c4b5fd;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 700px) {
  .ai-learning-path { padding: 48px 24px 60px; }
  .ai-lp-header { flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 56px; }
  .ai-lp-title { font-size: 2rem; }
  .ai-lp-label { font-size: 0.75rem; white-space: normal; }
  .ai-lp-pin-ring { width: 34px; height: 34px; }
  .ai-lp-pin-core { width: 13px; height: 13px; }
  .ai-lp-line { right: 120px; }
}
@media (max-width: 480px) {
  .ai-learning-path { padding: 40px 16px 52px; }
  .ai-lp-label { font-size: 0.68rem; }
  .ai-lp-meta { display: none; }
}