#how-it-works {
  height: calc(100vh - 114px);
  color: var(--primary-color);
}

/* How It Works Section */
.how-it-works {
  padding: var(--spacing-xl) 0;
  background-color: hsl(0, 0%, 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

/* Enhanced floating tile design with depth and elevation */
.step {
  text-align: center;
  padding: 4rem;
  background-color: hsl(0, 0%, 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.step:hover {
  transform: translateY(-12px);
  /* box-shadow: 0 12px 40px rgba(193, 122, 79, 0.2); */
}

.step:hover::before {
  transform: scaleX(1);
}

.step-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--primary-bg), var(--text-muted));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step:hover .step-icon {
  background: linear-gradient(135deg, var(--primary-bg), var(--text-muted));
  color: var(--primary-light);
  transform: scale(1.1) rotate(5deg);
  /* box-shadow: 0 8px 24px rgba(193, 122, 79, 0.3); */
}

.step:hover .design-step-icon {
  background: linear-gradient(135deg, var(--primary-bg), var(--text-muted));
  color: var(--primary-light);
  transform: scale(1.1) rotate(-5deg);
  /* box-shadow: 0 8px 24px rgba(193, 122, 79, 0.3); */
}

.step:hover .produce-step-icon {
  background: linear-gradient(135deg, var(--primary-bg), var(--text-muted));
  color: var(--primary-light);
  transform: scale(1.1);
  /* box-shadow: 0 8px 24px rgba(193, 122, 79, 0.3); */
}

.step-title {
  /* color: var(--color-dark); */
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.step-description {
  color: var(--primary-hover);
  line-height: 1.7;
}

/* End of floating tile enhancements */

#how-it-works .container h2 {
  text-align: center;
}

@media screen and (max-width: 1332px) {
  #how-it-works {
    height: auto;
  }

  .how-it-works {
    padding: 50px;
  }

  #how-it-works .container h2 {
    text-align: center;
  }
}

@media screen and (max-width: 469px) {
  .step {
    width: 60vw;
  }

  .how-it-works>.container {
    /* width: 100vw; */
    padding: 0;
    margin: 0;
  }

  .how-it-works {
    /* width: 10vw; */
    padding: 50px 0;
    margin: 0;
  }

  .steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-height: 900px) {
  #how-it-works {
    height: fit-content;
  }
}