/* ============================================================
   AUDIT CYCLE
   ============================================================ */
.audit-cycle {
  padding: var(--section-y) 0;
  background: linear-gradient(175deg, #f8faff 0%, var(--white) 45%, var(--bg-page) 100%);
  position: relative;
  overflow: hidden;
}
.audit-cycle::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 450px at 85% 20%, rgba(37,99,235,.10), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(99,102,241,.08), transparent),
    radial-gradient(ellipse 300px 300px at 50% 50%, rgba(16,185,129,.05), transparent);
  pointer-events: none;
}

.cycle-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  position: relative; margin-bottom: 40px;
}
.cycle-steps::before {
  content: ''; position: absolute; top: 38px;
  left: calc(10% + 10px); right: calc(10% + 10px);
  height: 2px; background: var(--border-200); z-index: 0;
}

.cycle-line {
  position: absolute; top: 38px;
  left: calc(10% + 10px); height: 2px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 4px; z-index: 0;
  transition: width 0.65s cubic-bezier(.4,0,.2,1);
  width: 0;
}

.c-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; cursor: pointer; position: relative; z-index: 1;
  transition: all 0.3s;
}
.c-step:hover { transform: translateY(-3px); }

.c-ring {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border-200);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; transition: all 0.4s; box-shadow: var(--shadow-sm);
}
.c-step.active .c-ring {
  border-color: #2563eb; background: #eff6ff;
  box-shadow: 0 0 0 5px rgba(37,99,235,.1), var(--shadow-md);
}
.c-ring svg { width: 28px; height: 28px; stroke: var(--text-400); stroke-width: 1.5; transition: 0.3s; }
.c-step.active .c-ring svg { stroke: #1d4ed8; }

/* Done state — passed steps keep blue tint */
.c-step.done .c-ring {
  border-color: #bfdbfe; background: #eff6ff;
  box-shadow: var(--shadow-sm);
}
.c-step.done .c-ring svg { stroke: #2563eb; }
.c-step.done .c-badge { opacity: 1; transform: scale(1); background: #60a5fa; }
.c-step.done .c-label { color: #3b82f6; }
.c-step.done h4 { color: #1e3a8a; }

.c-badge {
  position: absolute; top: -4px; right: calc(50% - 42px);
  width: 20px; height: 20px; border-radius: 50%;
  background: #2563eb; color: #fff;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; opacity: 0; transform: scale(0);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.c-step.active .c-badge { opacity: 1; transform: scale(1); }

.c-label {
  font-size: 10.5px; font-weight: 600; color: var(--text-400);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px;
}
.c-step.active .c-label { color: #2563eb; }
.c-step h4 { font-size: 13px; font-weight: 700; color: var(--text-900); margin-bottom: 4px; }
.c-step p { font-size: 11.5px; color: var(--text-400); line-height: 1.45; max-width: 130px; }

/* Demo panel */
.cycle-panel {
  background: var(--white); border: 1.5px solid var(--border-200);
  border-radius: var(--radius-lg); padding: 36px 40px; text-align: center;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.3s;
}
.cycle-panel:hover { box-shadow: var(--shadow-md); }
.cycle-panel h3 { font-size: 20px; font-weight: 700; color: var(--text-900); margin-bottom: 8px; }
.cycle-panel p { font-size: 14.5px; color: var(--text-500); max-width: 520px; margin: 0 auto 24px; line-height: 1.75; }

.btn-demo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  background: #eff6ff; color: #1d4ed8;
  border: 1px solid #dbeafe;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all 0.25s; font-family: var(--font);
}
.btn-demo:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-demo svg { width: 14px; height: 14px; fill: currentColor; }

/* Responsive */
@media (max-width: 768px) {
  .cycle-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cycle-steps::before { display: none; }
  .cycle-line { display: none; }
  .cycle-steps .c-step:last-child { grid-column: span 2; }
}
@media (max-width: 480px) {
  .cycle-steps { grid-template-columns: 1fr; }
  .cycle-steps .c-step:last-child { grid-column: span 1; }
}