/* ==========================================================================
   06 Process — 4-step timeline (vertical on mobile, horizontal on desktop)
   ========================================================================== */

/* Timeline --------------------------------------------------------------- */
.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 var(--space-7);
  padding: 0;
  list-style: none;
}

.process__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-5);
}

.process__step:last-child { padding-bottom: 0; }

/* Connecting line segment (node -> next node) */
.process__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 64px;
  bottom: 8px;
  width: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.9) 0%, rgba(34, 211, 238, 0.9) 50%, rgba(124, 92, 255, 0.9) 100%);
  background-size: 100% 200%;
  opacity: 0.7;
  animation: process-flow 5s linear infinite;
}

@keyframes process-flow {
  to { background-position: -200% -200%; }
}

/* Node ------------------------------------------------------------------- */
.process__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  color: var(--secondary);
  box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.08), 0 8px 28px rgba(124, 92, 255, 0.3);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.process__icon { display: grid; place-items: center; }
.process__icon svg { width: 24px; height: 24px; }

.process__step:hover .process__node {
  transform: scale(1.06);
  color: var(--text);
  box-shadow: 0 0 0 8px rgba(124, 92, 255, 0.12), var(--glow);
}

/* Step body -------------------------------------------------------------- */
.process__body {
  position: relative;
  padding: var(--space-5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.process__step:hover .process__body {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: var(--shadow);
}

.process__num {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.process__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.process__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--secondary);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-full);
}

.process__chip-icon { display: grid; place-items: center; }
.process__chip-icon svg { width: 14px; height: 14px; }

/* CTA -------------------------------------------------------------------- */
.process__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.process__cta-icon { display: grid; place-items: center; transition: transform 0.25s var(--ease); }
.process__cta-icon svg { width: 18px; height: 18px; }
.process__cta .btn:hover .process__cta-icon { transform: translateX(3px); }

.process__cta-note {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* Desktop: horizontal timeline ------------------------------------------- */
@media (min-width: 960px) {
  .process__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: var(--space-8);
  }

  .process__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--space-3);
    text-align: center;
  }

  .process__step:last-child { padding-bottom: 0; }

  .process__step:not(:last-child)::before {
    left: calc(50% + 36px + 12px);
    top: 35px;
    bottom: auto;
    width: calc(100% - 72px - 24px);
    height: 2px;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.9) 0%, rgba(34, 211, 238, 0.9) 50%, rgba(124, 92, 255, 0.9) 100%);
    background-size: 200% 100%;
  }

  .process__node {
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-5);
  }

  .process__icon svg { width: 28px; height: 28px; }

  .process__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    padding: var(--space-6) var(--space-5);
  }

  .process__chip { margin-top: auto; }
}

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .process__step::before { animation: none; }
}
