/*
  Bento 02 — 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;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-50: #f8fafc;
  --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(--slate-900);
  background-color: var(--white);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

.bento {
  padding: clamp(3rem, 2.5rem + 2vw, 5rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.bento__inner {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.hero__photo {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.6) 55%, transparent);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
}

.hero__heading {
  margin: 0;
  max-width: 32rem;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero__description {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate-200);
}

.button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 150ms ease;
}

.button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.button--primary {
  margin-top: 1.25rem;
  padding: 0.625rem 1.25rem;
  color: var(--slate-950);
  background-color: var(--white);
}

.button--primary:hover {
  background-color: var(--slate-200);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  background-color: var(--slate-50);
  padding: 1.5rem;
}

.card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
}

.card__text {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-600);
}

@media (min-width: 640px) {
  .hero__photo {
    height: 20rem;
  }

  .hero__content {
    padding: 2.25rem;
  }

  .support-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-bento02-wipe {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }

  @keyframes al-bento02-fade {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .wipe {
    animation: al-bento02-wipe 900ms cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .fade {
    animation: al-bento02-fade 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
