/* ============================================
   ALIEN-OPERATIONS.AI — How It Works Timeline
   ============================================ */

.process-section {
  border-top: 1px solid rgba(57, 255, 20, 0.08);
}

.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--scan-teal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.process-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
}

.process-title em {
  font-style: normal;
  color: var(--alien-green);
  text-shadow: 0 0 10px var(--glow-green);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(57, 255, 20, 0.4),
    rgba(57, 255, 20, 0.15),
    rgba(57, 255, 20, 0.4)
  );
}

/* Animated fill line (GSAP drives scaleY) */
.timeline-progress {
  position: absolute;
  left: 15px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--alien-green);
  box-shadow: 0 0 8px var(--alien-green);
  transform-origin: top;
  transform: scaleY(0);
}

/* Step */
.timeline-step {
  position: relative;
  padding-bottom: 3.5rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

/* Node dot */
.timeline-node {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--space-black);
  border: 2px solid rgba(57, 255, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--alien-green);
  z-index: 2;
  transition: all 0.5s ease;
}

.timeline-step.active .timeline-node {
  border-color: var(--alien-green);
  box-shadow: 0 0 16px var(--alien-green);
  background: rgba(57, 255, 20, 0.1);
}

/* Step content */
.timeline-content {
  background: var(--surface);
  border: 1px solid rgba(57, 255, 20, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-step.active .timeline-content {
  border-color: rgba(57, 255, 20, 0.25);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.05);
}

.timeline-step-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-amber);
  margin-bottom: 0.5rem;
}

.timeline-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.timeline-step-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.timeline-step-time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--scan-teal);
  margin-top: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Responsive */
@media (min-width: 768px) {
  .timeline {
    padding-left: 3.5rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-progress {
    left: 20px;
  }

  .timeline-node {
    left: -3.5rem;
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .timeline-content {
    padding: 2rem;
  }
}
