* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #ffffff;
  color: #171717;
}

.integrations {
  padding: 4rem 1rem;
}

.integrations__inner {
  max-width: 64rem;
  margin: 0 auto;
}

.integrations__text {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

.integrations__heading {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
}

.integrations__copy {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #737373;
}

.integrations__grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2rem;
  row-gap: 1.75rem;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.item__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 200ms ease;
}

.item__glyph {
  width: 1rem;
  height: 1rem;
}

.item:hover .item__icon {
  transform: scale(1.12) rotate(-4deg);
}

.item__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
}

.item__desc {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #737373;
}

@media (min-width: 640px) {
  .integrations__heading {
    font-size: 1.875rem;
  }

  .integrations__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .integrations__heading {
    font-size: 2.25rem;
  }

  .integrations__grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 3rem;
  }
}

/*
 * Logos 11 — "stagger fade-up + icon hover pop" animation identity. Same
 * canonical keyframe as `Logos11.tailwind.css`. Hovering a row only ever
 * transforms its icon tile (`.item__icon`) — a different element than the
 * one carrying the entrance animation (`.item`) — so the entrance's
 * `fill-mode: both` hold can never block the icon's own hover transform.
 * Scoped so this never collides with another Resource's own animation
 * layer. Entirely disabled under reduced motion.
 */
@keyframes al-logos11-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .item {
    animation: al-logos11-reveal 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
