/* ═══════════════════════════════════════════════════════
   WORKFLOW SECTION — Premium Step Cards
   ═══════════════════════════════════════════════════════ */

.workflow {
  position: relative;
  background: var(--surface-elevated);
}

.timeline {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: var(--space-16);
  position: relative;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  gap: var(--space-8);
}

/* Connecting line behind the dots */
.timeline::before {
  content: '';
  position: absolute;
  top: 31px; /* 64px/2 - 1px line thickness */
  left: calc((100% - 2 * var(--space-8)) / 6);
  right: calc((100% - 2 * var(--space-8)) / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), rgba(41, 105, 229, 0.2));
  z-index: 0;
  border-radius: 1px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s linear 0s;
}

.timeline.revealed::before {
  transform: scaleX(1);
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #4a8af5);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
  box-shadow: 0 8px 24px rgba(41, 105, 229, 0.25);
}

.timeline-step:hover .timeline-dot {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(41, 105, 229, 0.35);
}

.timeline-step h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-gray-900);
  letter-spacing: -0.01em;
}

.timeline-step p {
  font-size: 15px;
  color: var(--color-gray-500);
  line-height: 1.6;
  max-width: 240px;
}

/* Responsive */
@media (max-width: 768px) {
  .workflow {
    padding: var(--space-12) 0;
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-10);
    padding-left: var(--space-4);
    margin-top: var(--space-10);
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-5);
    row-gap: 4px;
    align-items: start;
    text-align: left;
    padding: 0;
    width: 100%;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .timeline-step h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 4px 0 0 0;
    font-size: 18px;
  }

  .timeline-step p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    max-width: none;
    font-size: 15px;
  }
}
