.three-steps {
  border-top: 1px solid var(--border);
  background: rgb(241 243 248 / 0.4);
}

.three-steps__wrapper {
  width: min(100%, 1152px);
  margin-inline: auto;
  padding: 96px 24px;
}

.three-steps__title {
  max-width: 672px;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1;
  text-wrap: balance;
}

.three-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.three-steps__item {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.three-steps__visual {
  display: flex;
  height: 256px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 16px;
  padding-inline: 16px;
}

.three-steps__name-field {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--background);
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgb(15 18 29 / 0.1), 0 1px 2px -1px rgb(15 18 29 / 0.1);
  animation: three-steps-float 4s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.three-steps__typed-name {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.three-steps__typed-name span {
  display: inline-block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  clip-path: inset(0 0 0 0);
  animation: three-steps-type 5s steps(6, end) infinite;
}

.three-steps__typed-name i {
  display: inline-block;
  width: 2px;
  height: 24px;
  margin-left: 4px;
  background: var(--primary);
  animation: three-steps-caret 0.85s step-end infinite;
}

.three-steps__magic-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: rgb(45 79 227 / 0.1);
  color: var(--primary);
  animation: three-steps-pulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.three-steps__magic-button svg,
.three-steps__type-chip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.three-steps__brand-system {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.three-steps__mini-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.three-steps__mini-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 16px;
  background: #3157e1;
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgb(15 18 29 / 0.12);
  animation: three-steps-pop 5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.three-steps__mini-mark svg {
  width: 36px;
  height: 36px;
  fill: none;
}

.three-steps__mini-mark path {
  fill: currentcolor;
  fill-opacity: 0.95;
}

.three-steps__mini-wordmark {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  animation: three-steps-reveal 5s cubic-bezier(0.22, 1, 0.36, 1) infinite 150ms;
}

.three-steps__palette {
  display: flex;
  align-items: center;
  gap: 8px;
}

.three-steps__chip,
.three-steps__type-chip {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(15 18 29 / 0.05);
  animation: three-steps-reveal 5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.three-steps__chip--blue {
  background: #3157e1;
  animation-delay: 300ms;
}

.three-steps__chip--bright {
  background: #2f6bff;
  animation-delay: 380ms;
}

.three-steps__chip--ink {
  background: #101828;
  animation-delay: 460ms;
}

.three-steps__chip--mist {
  background: #eef2f7;
  animation-delay: 540ms;
}

.three-steps__type-chip {
  display: grid;
  place-items: center;
  margin-left: 6px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  animation-delay: 650ms;
}

.three-steps__tile-grid {
  display: grid;
  width: 100%;
  max-width: 240px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.three-steps__tile {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(226 228 232 / 0.6);
  border-radius: 12px;
  animation: three-steps-reveal 5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.three-steps__tile--one {
  background: rgb(45 79 227 / 0.15);
}

.three-steps__tile--two {
  background: rgb(5 104 233 / 0.2);
  animation-delay: 100ms;
}

.three-steps__tile--three {
  background: rgb(15 18 29 / 0.1);
  animation-delay: 200ms;
}

.three-steps__tile--four {
  background: var(--secondary);
  animation-delay: 300ms;
}

.three-steps__tile--wand {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
  animation-delay: 400ms;
}

.three-steps__tile--six {
  background: rgb(45 79 227 / 0.1);
  animation-delay: 500ms;
}

.three-steps__tile svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.three-steps__copy {
  padding-top: 4px;
}

.three-steps__number {
  display: block;
  color: var(--primary);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.three-steps__copy h3 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 28px;
}

.three-steps__copy p {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 26px;
}

@keyframes three-steps-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes three-steps-type {
  0%,
  10% {
    clip-path: inset(0 100% 0 0);
  }

  28%,
  82% {
    clip-path: inset(0 0 0 0);
  }

  96%,
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes three-steps-caret {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes three-steps-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.92);
    opacity: 0.72;
  }
}

@keyframes three-steps-pop {
  0%,
  8% {
    transform: scale(0.86);
    opacity: 0;
  }

  25%,
  82% {
    transform: scale(1);
    opacity: 1;
  }

  94%,
  100% {
    transform: scale(0.96);
    opacity: 0;
  }
}

@keyframes three-steps-reveal {
  0%,
  10% {
    transform: translateY(10px);
    opacity: 0;
  }

  28%,
  82% {
    transform: translateY(0);
    opacity: 1;
  }

  94%,
  100% {
    transform: translateY(-3px);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .three-steps__wrapper {
    padding: 80px 16px;
  }

  .three-steps__title {
    font-size: 36px;
    letter-spacing: -0.9px;
  }

  .three-steps__list {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .three-steps__name-field,
  .three-steps__typed-name span,
  .three-steps__typed-name i,
  .three-steps__magic-button,
  .three-steps__mini-mark,
  .three-steps__mini-wordmark,
  .three-steps__chip,
  .three-steps__type-chip,
  .three-steps__tile {
    animation: none;
  }
}
