.integrations-section {
  position: relative;
  background: linear-gradient(180deg, #0a1230 0%, #131f4d 100%);
  padding: 90px 0;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.integrations-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.12) 1.5px,
    transparent 1.5px
  );
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
}

.integrations-section .container {
  position: relative;
  z-index: 1;
}

.integrations-section .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #9db3ff;
  margin-bottom: 14px;
}

.integrations-section h2 {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.integrations-section h2 .accent {
  color: #7fa0ff;
}

.integrations-section .lead {
  color: #aab6d9;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* ---- Hub diagram ----
   Geometry below (circle radii, line endpoints, gradient colors) is
   extracted directly from the real caseeasy-integrations.svg file —
   NOT approximated. The SVG's viewBox is 1056x526 with hub center at
   (528, 270); every coordinate here is that same point expressed as a
   percentage, so the lines (drawn in SVG) and the cards (positioned in
   HTML) share one coordinate system and land in the same place. */
.integrations-hub-wrap {
  position: relative;
  max-width: 1056px;
  margin: 0 auto;
  aspect-ratio: 1056 / 526;
}

.integrations-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.integrations-lines .dashed-circle {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.14;
}

.integrations-lines .dashed-circle.inner {
  stroke-opacity: 0.09;
}

.integrations-lines .spoke-line {
  stroke: url(#integrationsLineGradient);
  stroke-width: 1.5;
  opacity: 0.55;
}

/* Pulsing dots travelling from the hub out along each spoke line.
   Plain CSS animation (transform + custom properties, set inline per
   dot in _Integrations.cshtml as --dx/--dy), not SVG filters or SMIL
   <animate> - matches the reference Illustration.svg's effect with a
   simplified stagger (one shared keyframe + staggered animation-delay
   per dot, instead of ~10 unique multi-breakpoint keyframe blocks).
   Inherits pointer-events:none and the mobile display:none from the
   parent .integrations-lines svg - no extra handling needed here. */
.pulse-dot {
  fill: #8fa8ff;
  filter: blur(1.5px);
  transform-box: fill-box;
  transform-origin: center;
  animation: integrations-pulse-travel 3.5s ease-in-out infinite;
}

@keyframes integrations-pulse-travel {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot {
    animation: none;
    opacity: 0;
  }
}

.integrations-hub {
  position: absolute;
  top: 51.3%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 121px; /* 2x the real SVG's 64px hub radius, i.e. full 128 diameter, scaled proportionally by the container */
  height: 121px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.integrations-hub span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6b7280;
  text-transform: uppercase;
}

.integrations-hub .integration-hub {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integrations-hub .integration-hub img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 50%;
}

/* Card positions match the real SVG's exact line endpoints, expressed
   as % of the 1056x526 viewBox. Each card's OUTER edge (away from
   center) touches its line's endpoint; width is fixed so the inner
   edge extends toward the hub from there. */
.integration-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  background: rgba(6, 11, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ce-radius-sm);
  padding: 12px 14px;
  text-align: left;
}

/* Each card's INNER edge (toward the hub) lands at its real line
   endpoint's X coordinate — not flush against the container edge.
   That was the bug: the exact endpoints were extracted correctly for
   the SVG lines, but discarded for card placement, producing a
   straight column instead of following the arc.
   Left cards: right edge = endpoint X, extending further left from
   there (left = X% minus the card's own width). */
.integration-card.pos-left-1 {
  top: 8.9%;
  left: calc(40.8% - 280px);
}
.integration-card.pos-left-2 {
  top: 31.9%;
  left: calc(32.9% - 280px);
}
.integration-card.pos-left-3 {
  top: 51.3%;
  left: calc(26.3% - 280px);
}
.integration-card.pos-left-4 {
  top: 70%;
  left: calc(33.7% - 280px);
}
.integration-card.pos-left-5 {
  top: 92.6%;
  left: calc(41.1% - 280px);
}

/* Right cards: left edge = endpoint X directly, extending rightward. */
.integration-card.pos-right-1 {
  top: 8.9%;
  left: 59.2%;
}
.integration-card.pos-right-2 {
  top: 31.9%;
  left: 67.1%;
}
.integration-card.pos-right-3 {
  top: 51.3%;
  left: 73.7%;
}
.integration-card.pos-right-4 {
  top: 70%;
  left: 66.3%;
}
.integration-card.pos-right-5 {
  top: 92.6%;
  left: 58.9%;
}

.integration-card.pos-left-1,
.integration-card.pos-left-2,
.integration-card.pos-left-3,
.integration-card.pos-left-4,
.integration-card.pos-left-5,
.integration-card.pos-right-1,
.integration-card.pos-right-2,
.integration-card.pos-right-3,
.integration-card.pos-right-4,
.integration-card.pos-right-5 {
  transform: translateY(-50%);
}

.integration-card .integration-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.integration-card .integration-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.integration-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #fff;
}

.integration-card p {
  font-size: 0.78rem;
  font-weight: 500;
  color: #aab6d9;
  margin: 0;
}

.integrations-section .cta-row {
  margin-top: 40px;
}

.integrations-section .trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: #aab6d9;
}

.integrations-section .trust-row i {
  color: #7fa0ff;
  margin-right: 4px;
}

@media (max-width: 991px) {
  .integrations-hub-wrap {
    aspect-ratio: auto;
    min-height: auto;
  }

  .integrations-hub {
    position: static;
    transform: none;
    margin: 0 auto 32px;
  }

  .integrations-lines {
    display: none;
  }

  .integration-card {
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 16px;
  }
}
