/* ============================================
   WORKFLOW SECTION
   ============================================ */
.workflow-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.workflow-hook {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}
.workflow-hook .hook-fear {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hook-fear::before, .hook-fear::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--red);
  opacity: .5;
}
.workflow-hook h2 { margin-bottom: 16px; }
.workflow-hook .hook-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 0;
}
.hook-sub strong { color: var(--text); font-weight: 600; }

/* ── Steps ── */
.workflow-steps {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical connector line */
.workflow-steps::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--border-h) 10%,
    var(--border-h) 90%,
    transparent 100%
  );
}

.workflow-step {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 48px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.workflow-step.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Alternate: even steps flip content */
.workflow-step.even .step-content { order: 3; text-align: left; }
.workflow-step.even .step-center { order: 2; }
.workflow-step.even .step-spacer { order: 1; }
.workflow-step.odd .step-content { order: 1; text-align: right; }
.workflow-step.odd .step-center { order: 2; }
.workflow-step.odd .step-spacer { order: 3; }

.step-content {
  padding: 0 28px;
}
.step-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}
.step-spacer { /* empty balancing column */ }

/* Step number bubble */
.step-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-h);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.workflow-step.visible .step-bubble {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,212,255,.25);
}
.step-bubble-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.step-bubble::after {
  content: attr(data-num);
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Connector dot between bubble and line */
.step-connector {
  width: 1px;
  flex: 1;
  min-height: 48px;
  background: linear-gradient(to bottom, var(--border-h), transparent);
}
.workflow-step:last-child .step-connector { display: none; }

/* Content */
.step-tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.step-tag.fear { color: var(--red); }
.step-tag.relief { color: var(--green); }
.step-tag.neutral { color: var(--cyan); }

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text);
}
.step-content p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.step-content .step-detail {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.step-detail span { color: var(--cyan); }

/* Relief close section */
.workflow-relief {
  margin-top: 72px;
  text-align: center;
  padding: 56px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.workflow-relief::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,229,160,.08) 0%, transparent 70%);
  pointer-events: none;
}
.workflow-relief .relief-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}
.workflow-relief h3 {
  color: var(--green);
  margin-bottom: 12px;
}
.workflow-relief p {
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.8;
}
.workflow-relief .relief-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.relief-stat { text-align: center; }
.relief-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: block;
}
.relief-stat-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

/* Animated scan line on relief card */
@keyframes relief-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.workflow-relief::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: relief-scan 3s ease-in-out infinite;
}

/* Pulsing risk badge */
@keyframes risk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.05); }
}
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,59,92,.1);
  border: 1px solid rgba(255,59,92,.3);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  animation: risk-pulse 2s ease-in-out infinite;
  margin-bottom: 16px;
}
.risk-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: risk-pulse 2s ease-in-out infinite;
}

/* Mobile */
@media (max-width: 768px) {
  .workflow-steps::before { left: 32px; transform: none; }
  .workflow-step {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }
  .workflow-step.odd .step-content,
  .workflow-step.even .step-content { order: 2; text-align: left; }
  .workflow-step.odd .step-center,
  .workflow-step.even .step-center { order: 1; }
  .workflow-step.odd .step-spacer,
  .workflow-step.even .step-spacer { display: none; }
  .workflow-relief { padding: 36px 20px; }
  .workflow-relief .relief-stats { gap: 24px; }
}
