* {
  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;
}

.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;
  gap: 1rem;
}

.card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  padding: 1.25rem;
}

.card__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

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

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

.card__desc {
  margin: 0.25rem 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__grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 3rem;
  }
}

/*
 * Logos 14 — "stagger fade-up + hover border-draw" animation identity.
 * Same canonical keyframes/transitions as `Logos14.tailwind.css`. The draw
 * lines are separate child elements with their own `transform`, never the
 * card's own, so the card's entrance animation and the hover draw never
 * compete for the same property. Scoped so this never collides with
 * another Resource's own animation layer. Entirely disabled under reduced
 * motion: the draw lines never render at all, so hover never implies
 * missing content.
 */
@keyframes al-logos14-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes al-logos14-text-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .draw {
    position: absolute;
    background: #39ff14;
    pointer-events: none;
    transition: transform 280ms ease;
  }

  .draw--top {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform-origin: left;
    transform: scaleX(0);
  }

  .draw--right {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    transform-origin: top;
    transform: scaleY(0);
    transition-delay: 140ms;
  }

  .draw--bottom {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    transform-origin: right;
    transform: scaleX(0);
    transition-delay: 280ms;
  }

  .draw--left {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100%;
    transform-origin: bottom;
    transform: scaleY(0);
    transition-delay: 420ms;
  }

  .card:hover .draw {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw {
    display: none;
  }
}
