.automation-workflow {
  padding: 34px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(70, 31, 139, 0.22), transparent 48%),
    #020a1d;
  border-bottom: 1px solid #1d2943;
}

.automation-workflow-inner {
  width: min(94%, 1220px);
  margin: 0 auto;
}

.workflow-eyebrow {
  margin: 0 0 8px;
  color: #bc59ed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.automation-workflow h2 {
  margin: 0 0 36px;
  font-size: 28px;
  line-height: 1.25;
  text-align: center;
}

.automation-workflow h2 span,
.workflow-number {
  color: #a85bea;
}

.automation-workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.automation-workflow-steps li {
  position: relative;
  min-width: 0;
  text-align: center;
}

.automation-workflow-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  left: calc(50% + 44px);
  width: calc(100% - 64px);
  border-top: 1px dotted #8e42d1;
  opacity: 0.9;
}

.automation-workflow-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 35px;
  right: -15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9d4be3;
  box-shadow: 0 0 9px #9d4be3;
}

.workflow-icon {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border: 1px solid #9347d8;
  border-radius: 50%;
  color: #c068f0;
  background: radial-gradient(circle, #24115d 0%, #0a1034 70%);
  box-shadow: 0 0 20px rgba(141, 61, 218, 0.42), inset 0 0 16px rgba(112, 51, 194, 0.25);
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 0 12px #963ee5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.workflow-icon-image {
  overflow: hidden;
  text-shadow: none;
}

.workflow-icon-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.automation-workflow-steps li:hover .workflow-icon {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(166, 80, 232, 0.62), inset 0 0 18px rgba(112, 51, 194, 0.32);
}

.workflow-number {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 700;
}

.automation-workflow-steps h3 {
  margin: 0 0 9px;
  font-size: 13px;
}

.automation-workflow-steps p {
  max-width: 190px;
  margin: 0 auto;
  color: #c2c7d3;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .automation-workflow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .automation-workflow-steps li:last-child {
    grid-column: 1 / -1;
  }

  .automation-workflow-steps li::before,
  .automation-workflow-steps li::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .automation-workflow h2 {
    margin-bottom: 28px;
    font-size: 24px;
  }

  .automation-workflow-steps {
    grid-template-columns: 1fr;
  }

  .automation-workflow-steps li:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-icon {
    transition: none;
  }
}
