/* ══ SECTION ════════════════════════════════ */
.block-ailcp {
  background: #06040e;
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Deep space background */
.block-ailcp::before {
  content: '';
  position: absolute;
  inset: 0;
   background:
    radial-gradient(
      ellipse 75% 100% at 72% 50%, 
      rgba(192,109,234,0.55) 0%, 
      rgba(192,109,234,0.3) 30%, 
      rgba(192,109,234,0.12) 50%, 
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 70% at 90% 20%, 
      rgba(192,109,234,0.15) 0%, 
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 50% at 55% 90%, 
      rgba(192,109,234,0.15) 0%, 
      transparent 60%
    );
  z-index: 0;
}

/* Noise grain overlay */
.block-ailcp::after {
  content: '';
  position: absolute;
  inset: 0;
  // background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.038'/%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}

/* ══ INNER GRID ═════════════════════════════ */
.block-ailcp-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 80px;
  gap: 40px;
}

/* ══ LEFT ═══════════════════════════════════ */
.ailcp-left {
  display: flex;
  flex-direction: column;
}

/* Eyebrow */
.ailcp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(192 109 234);
  margin-bottom: 10px;
}
.ailcp-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: rgba(180,145,255,0.4);
}

.ailcp-course-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 40px;
}

/* Progress pill */
.ailcp-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.ailcp-progress-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(192 109 234);
}

.ailcp-progress-bar-wrap {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.ailcp-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9d60ff, #c49aff);
  box-shadow: 0 0 10px rgba(180,130,255,0.6);
  animation: bar-grow 1.4s cubic-bezier(.4,0,.2,1) both;
}
@keyframes bar-grow {
  from { width: 0; opacity: 0; }
  to   { width: 35%; opacity: 1; }
}

.ailcp-progress-pct {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #c4a8ff;
  white-space: nowrap;
}

/* Modules section */
.ailcp-modules-heading {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(192 109 234);
  margin-bottom: 16px;
}

.ailcp-modules {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ailcp-module {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: background 0.2s;
  cursor: default;
  animation: fade-up 0.5s ease both;
}
.ailcp-module:nth-child(1){ animation-delay:.05s }
.ailcp-module:nth-child(2){ animation-delay:.10s }
.ailcp-module:nth-child(3){ animation-delay:.15s }
.ailcp-module:nth-child(4){ animation-delay:.20s }
.ailcp-module:nth-child(5){ animation-delay:.25s }
.ailcp-module:nth-child(6){ animation-delay:.30s }

@keyframes fade-up {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

.ailcp-module:hover {
  background: rgba(160,120,255,0.07);
}

.ailcp-module-num {
  font-weight: 500;
  color: rgb(192 109 234);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ailcp-module-name {
  font-weight: 400;
  color: rgba(247, 245, 255, 0.82);
  transition: color .2s;
}
.ailcp-module:hover .ailcp-module-name {
  color: #fff;
}

/* Status dot */
.ailcp-module-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(200,180,255,0.18);
  border: 1px solid rgba(180,150,255,0.2);
  flex-shrink: 0;
  transition: background .2s;
}
.ailcp-module.done .ailcp-module-status {
  background: rgba(140,100,255,0.7);
  border-color: rgba(180,150,255,0.5);
  box-shadow: 0 0 6px rgba(150,100,255,0.5);
}
.ailcp-module.done .ailcp-module-name {
  color: rgba(190,170,230,0.5);
}

/* CTA */
.ailcp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ce6cff, #5b21b6);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  width: fit-content;
  box-shadow: 0 4px 24px rgba(100,50,220,0.4);
  transition: all .25s cubic-bezier(.22,.6,.36,1);
}
.ailcp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(120,60,240,0.55);
  color: #fff;
  text-decoration: none;
}
.ailcp-cta-arrow {
  transition: transform .2s;
}
.ailcp-cta:hover .ailcp-cta-arrow {
  transform: translateX(4px);
}

/* ══ RIGHT: Ring ════════════════════════════ */
.ailcp-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.ailcp-ring-wrap {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer ambient glow */
.ailcp-ring-wrap::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160,100,255,0.2) 0%, transparent 65%);
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100%{ opacity:.7; transform:scale(1); }
  50%    { opacity:1;  transform:scale(1.06); }
}

.ailcp-ring-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

/* Track */
.ring-track {
  stroke: rgb(228 218 255);
  stroke-width: 22;
  fill: transparent;
}

/* Secondary decorative track (inner, thinner) */
.ring-track-inner {
  stroke: rgba(160,120,255,0.07);
  stroke-width: 8;
  fill: transparent;
}

/* Progress */
.ring-progress {
  stroke: url(#pg);
  stroke-width: 22;
  stroke-linecap: round;
  fill: transparent;
  filter: url(#glow-filter);
  /* circumference for r=126: 2π×126 ≈ 791.7 */
  /* 35% offset: 791.7 × 0.65 ≈ 514.6 */
  stroke-dasharray: 791.7;
  stroke-dashoffset: calc(791.7 * (1 - var(--percent) / 100));
  animation: ring-draw 1.6s cubic-bezier(.4,0,.2,1) both;
}
@keyframes ring-draw {
  from { stroke-dashoffset: 791.7; opacity:0; }
  to   { stroke-dashoffset: calc(791.7 * (1 - var(--percent) / 100)); }
}

/* Inner circle */
.ailcp-ring-inner {
  position: absolute;
  width: calc(100% - 180px);
  height: calc(100% - 180px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 38% 32%, rgba(255,252,255,0.97) 0%, rgba(225,215,250,0.9) 100%);
  box-shadow:
    inset 0 2px 12px rgba(255,255,255,0.5),
    inset 0 -4px 20px rgba(180,140,255,0.12),
    0 0 0 1px rgba(200,175,255,0.15);
}

.ring-center-pct {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: #4c1d95;
  line-height: 1;
  letter-spacing: -0.04em;
}
.ring-center-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(100,60,180,0.55);
  margin-top: 4px;
}

/* ══ RESPONSIVE ═════════════════════════════ */
@media (max-width: 860px) {
  .block-ailcp-inner {
    grid-template-columns: 1fr;
    padding: 60px 32px;
  }
  .ailcp-right { order: -1; }
  .ailcp-ring-wrap { width: 220px; height: 220px; }
  .ring-center-pct { font-size: 1.8rem; }
}