/*
  Bento 06 — 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-400: #94a3b8;
  --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(--slate-950);
  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: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  border-radius: 1rem;
}

.card--headline {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.75rem;
}

.card__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);
}

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

.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.5rem;
  padding: 0.625rem 1.25rem;
  color: var(--slate-950);
  background-color: var(--white);
}

.button--primary:hover {
  background-color: #e2e8f0;
}

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

.card--object {
  position: relative;
  display: flex;
  min-height: 10rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--slate-900);
}

.object {
  width: 6rem;
  height: 6rem;
  border-radius: 38%;
  background: conic-gradient(from 140deg, #38bdf8, #818cf8 35%, #0f172a 75%, #38bdf8);
  box-shadow: 0 20px 60px -15px rgba(56, 189, 248, 0.5);
  transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px));
}

.card__caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-400);
}

.card--precision {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
}

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

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

.card--stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--white);
  padding: 1.5rem;
}

.card__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--slate-950);
}

.card__stat-label {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--slate-600);
}

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

/* Motion — disabled entirely under reduced motion; every card already
   renders at its final, fully visible state outside this media query with
   no pointer-tracked movement. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-bento06-fade {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .object {
    transition: transform 300ms ease-out;
  }

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