/*
  Features 08 — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy these three
  files into any project and open index.html as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--white);
  background-color: var(--white);
  line-height: 1.5;
}

.features {
  padding: clamp(4rem, 3.5rem + 2vw, 6rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.features__inner {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.strip {
  border-radius: 1.5rem;
  padding: clamp(3.5rem, 3rem + 2vw, 5rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  text-align: center;
  background-image: linear-gradient(115deg, #f59e0b 0%, #f43f5e 50%, #d946ef 100%);
  background-size: 220% 220%;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.heading {
  margin: 0.75rem 0 0;
  font-weight: 600;
  font-size: clamp(1.875rem, 1.5rem + 1.9vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

.lede {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.cards {
  margin: 2.5rem auto 0;
  max-width: 48rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
}

.card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  padding: 1.25rem;
}

.card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}

.card__text {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Motion — the gradient drift and entrance keyframes are fully gated
   under reduced motion; the gradient holds still at its starting
   position and every element already renders at its final, fully
   visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-features08-drift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  @keyframes al-features08-panel {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes al-features08-card {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .strip {
    animation:
      al-features08-drift 14000ms ease-in-out infinite,
      al-features08-panel 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .card {
    animation: al-features08-card 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
