.features {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 1.25rem;
  background:
    radial-gradient(circle at 8% 15%, rgb(247 185 47 / 16%), transparent 22rem),
    radial-gradient(circle at 92% 85%, rgb(116 37 102 / 12%), transparent 25rem),
    #fffdfb;
}

.features .container {
  display: block;
  width: min(100%, 1200px);
  max-width: none;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}

.section-header {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--vida-purple);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-eyebrow::before,
.section-eyebrow::after {
  width: 1.75rem;
  height: 2px;
  background: var(--vida-yellow);
  content: "";
}

.section-header h2 {
  margin: 0;
  color: #2b1737;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-description {
  max-width: 38rem;
  margin: 1.15rem auto 0;
  color: #695d70;
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;

  padding: 0 0 50px;
}

.feature-card {
  position: relative;
  min-height: 18rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid rgb(116 37 102 / 10%);
  border-radius: 1.35rem;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 1rem 2.5rem rgb(57 23 67 / 7%);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms ease-out var(--reveal-delay, 0ms),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.feature-card::after {
  position: absolute;
  right: -2.8rem;
  bottom: -2.8rem;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  background: rgb(247 185 47 / 13%);
  content: "";
  transition: transform 260ms ease;
}

.feature-card:hover {
  border-color: rgb(116 37 102 / 24%);
  box-shadow: 0 1.5rem 3.5rem rgb(57 23 67 / 14%);
  transform: translateY(-0.45rem);
}

.feature-card:hover::after {
  transform: scale(1.35);
}

.feature-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.35rem;
  height: 3.35rem;
  place-items: center;
  margin-bottom: 1.7rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #8d2f7c, #5e1e67);
  box-shadow: 0 0.75rem 1.5rem rgb(116 37 102 / 22%);
  font-size: 1.65rem;
}

.feature-card__icon-image {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.feature-card:nth-child(3n + 2) .feature-card__icon {
  background: linear-gradient(135deg, #f5bd39, #e79b1e);
}

.feature-card:nth-child(3n) .feature-card__icon {
  background: linear-gradient(135deg, #de6e9e, #aa347f);
}

.feature-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  color: #4d1d54;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.feature-card__description {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #625a68;
  font-family: "Poppins", sans-serif;
  font-size: 0.96rem;
  line-height: 1.7;
}

.animated-button {
  position: relative;
  display: flex;
  width: fit-content;
  margin-inline: auto;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  border-radius: 100px;
  font-weight: 600;
  color: #742566;
  box-shadow: 0 0 0 2px #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 1rem 2.5rem rgb(57 23 67 / 7%);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: #742566;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #f5bd39cb;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #742566;
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}


@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .features {
    padding-inline: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }
}
