.features-section {
  background-color: #000;
  color: #fff;
  padding: 4rem 4rem;
  font-family: sans-serif;
}

.features-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.features-header h1 {
  font-size: 2rem;
  line-height: 1.4;
}

.features-header h1 span {
  font-weight: 600;
  color: white;
}

.features-header p {
  margin-top: 1.5rem;
  color: #a1a1aa;
  font-size: 1.125rem;
}

/* Grid for desktop */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 5rem;
}

.feature-card {
  background: linear-gradient(to bottom right, #1e1e2f, #1c1c2b);
  border: 2px solid #9333ea;
  border-radius: 1.5rem;
  padding: 1.5rem;
  height: 420px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px 2px rgba(168, 85, 247, 0.3);
}

.feature-card.highlight {
  background: linear-gradient(to bottom right, #2a2a3e, #252535);
  backdrop-filter: blur(8px);
  border-color: #a855f7;
  box-shadow: 0 0 20px 5px rgba(168, 85, 247, 0.6);
  height: 480px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #a1a1aa;
  margin-bottom: 1rem;
}

.feature-card button {
  padding: 0.5rem 1rem;
  border: 1px solid #9333ea;
  border-radius: 9999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}

.feature-card button:hover {
  background-color: #9333ea;
  color: #fff;
}

.feature-icon {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.feature-icon img {
  width: 13rem;
  height: 13rem;
  object-fit: contain;
}

/* Mobile Scrollable Cards */
.features-carousel {
  display: none;
}

/* Responsive for Mobile */
@media screen and (max-width: 768px) {
  .features-section {
    padding: 0;
  }

  .features-grid {
    display: none;
  }

  .features-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 1.5rem;
    padding: 1.5rem;
    height: 480px;
    background: linear-gradient(to bottom right, #1e1e2f, #1c1c2b);
    border: 2px solid #9333ea;
    box-shadow: 0 0 10px 2px rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
  }

  .carousel-item.highlight {
    background: linear-gradient(to bottom right, #2a2a3e, #252535);
    backdrop-filter: blur(8px);
    border-color: #a855f7;
    box-shadow: 0 0 20px 5px rgba(168, 85, 247, 0.6);
    height: 520px;
  }

  .carousel-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .carousel-item p {
    color: #a1a1aa;
    margin-bottom: 1rem;
  }

  .carousel-item button {
    padding: 0.5rem 1rem;
    border: 1px solid #9333ea;
    border-radius: 9999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: 0.3s ease;
  }

  .carousel-item button:hover {
    background-color: #9333ea;
    color: #fff;
  }

  .carousel-item .feature-icon {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
  }

  .carousel-item .feature-icon img {
    width: 13rem;
    height: 13rem;
    object-fit: contain;
  }
}
