/* ------------------------------------------------------------------
   /features/integrations

   Loaded after feature-page.css, which supplies the dark hero band,
   breadcrumb, title and intro styles. Everything specific to this page
   carries an `ix-` prefix.
   ------------------------------------------------------------------ */

/* ---------- Hero: text left, orbiting logos right ---------- */

.ix-hero {
  overflow: hidden;
}

.ix-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 48px;
}

.ix-jump {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
}

.ix-jump a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ix-jump a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--primary);
}

/* The orbit. Each logo is placed by rotating to its angle (--a) and
   pushing out to the ring's radius (--r); two inner wrappers undo that
   angle and the ring's own spin, so the logo stays upright. */
.ix-orbit {
  position: relative;
  width: 440px;
  height: 440px;
}

.ix-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  animation: ix-spin var(--spin) linear infinite;
}

.ix-ring-outer {
  --r: 205px;
  --spin: 120s;
  --tile: 52px;
  width: 410px;
  height: 410px;
}

.ix-ring-inner {
  --r: 120px;
  --spin: 80s;
  --tile: 58px;
  width: 240px;
  height: 240px;
  animation-direction: reverse;
}

.ix-orbiter {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--tile);
  height: var(--tile);
  margin: calc(var(--tile) / -2) 0 0 calc(var(--tile) / -2);
  transform: rotate(var(--a)) translateX(var(--r));
}

.ix-orbiter-upright {
  width: 100%;
  height: 100%;
  transform: rotate(calc(-1 * var(--a)));
}

.ix-orbiter-counter {
  width: 100%;
  height: 100%;
  padding: 10px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ix-spin var(--spin) linear infinite reverse;
}

.ix-ring-inner .ix-orbiter-counter {
  animation-direction: normal;
}

.ix-orbiter-counter img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ix-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(162, 185, 100, 0.18), 0 0 0 22px rgba(162, 185, 100, 0.08),
    0 0 60px rgba(162, 185, 100, 0.45);
}

.ix-core img {
  width: 56px;
  height: 56px;
}

@keyframes ix-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ix-ring,
  .ix-orbiter-counter {
    animation: none;
  }
}

/* ---------- Category bands ---------- */

.ix-group {
  --accent: var(--green);
  --accent-soft: rgba(162, 185, 100, 0.16);
  --accent-ink: #5d7230;
  padding: 88px 0;
  background: white;
  scroll-margin-top: var(--header-height);
}

.ix-group:nth-of-type(odd) {
  background: var(--bg);
}

.ix-accent-purple {
  --accent: var(--purple);
  --accent-soft: rgba(181, 164, 203, 0.22);
  --accent-ink: #6d5a8a;
}

.ix-accent-yellow {
  --accent: var(--yellow);
  --accent-soft: rgba(245, 204, 75, 0.22);
  --accent-ink: #8a6a07;
}

.ix-group-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.ix-group-flip .ix-group-text {
  order: 2;
}

.ix-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink, #5d7230);
  margin: 0 0 14px;
}

.ix-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, var(--green));
}

.ix-group-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin: 0 0 16px;
  text-wrap: balance;
}

.ix-group-body {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #46585e;
  margin: 0 0 22px;
}

.ix-flows {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ix-flows li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--primary);
  line-height: 1.5;
}

.ix-flows svg {
  flex: none;
  margin-top: 2px;
  padding: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.ix-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
}

.ix-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--accent, var(--green));
  padding-bottom: 2px;
}

.ix-more svg {
  transition: transform 0.2s ease;
}

.ix-more:hover svg,
.ix-build-card:hover .ix-more svg {
  transform: translateX(3px);
}

/* The partner panel: a card of logo tiles. */
.ix-panel {
  background: white;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 48px rgba(34, 54, 60, 0.1);
  border: 1px solid rgba(34, 54, 60, 0.06);
  position: relative;
}

.ix-group:nth-of-type(even) .ix-panel {
  background: var(--bg);
  box-shadow: none;
}

.ix-partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.ix-partners-solo {
  grid-template-columns: 1fr;
}

.ix-partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(34, 54, 60, 0.08);
  text-decoration: none;
  color: var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ix-partner:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(34, 54, 60, 0.12);
}

.ix-partner-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.ix-partner-logo svg {
  color: var(--primary);
}

.ix-partners-solo .ix-partner-logo {
  width: 64px;
  height: 64px;
}

.ix-partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ix-partner-name {
  font-weight: 700;
  font-size: 1rem;
}

.ix-partner-role {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ---------- Build your own ---------- */

.ix-build {
  background: var(--primary);
  color: white;
  padding: 96px 0;
  scroll-margin-top: var(--header-height);
}

.ix-eyebrow-light {
  color: #cfe0a0;
}

.ix-build-title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  color: white;
  margin: 0 0 14px;
}

.ix-build-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 40em;
  margin: 0 0 40px;
}

.ix-build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ix-build-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ix-build-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(162, 185, 100, 0.6);
}

.ix-build-card-feature {
  background: linear-gradient(160deg, rgba(162, 185, 100, 0.22), rgba(181, 164, 203, 0.14));
  border-color: rgba(162, 185, 100, 0.4);
}

.ix-build-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(162, 185, 100, 0.2);
  color: #cfe0a0;
  margin-bottom: 6px;
}

.ix-build-card h3 {
  font-size: 1.25rem;
  color: white;
  margin: 0;
}

.ix-build-card p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  flex: 1;
}

.ix-code {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #cfe0a0;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ix-ai-logos {
  display: flex;
  gap: 8px;
}

.ix-ai-logos img {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 9px;
  background: white;
  object-fit: contain;
}

.ix-more-light {
  color: white;
  margin-top: 6px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .ix-hero-inner {
    grid-template-columns: 1fr;
  }

  .ix-orbit {
    margin: 0 auto;
  }

  .ix-build-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .ix-group {
    padding: 64px 0;
  }

  .ix-group-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ix-group-flip .ix-group-text {
    order: 0;
  }
}

@media (max-width: 560px) {
  /* Scale the whole orbit rather than re-deriving every radius. */
  .ix-orbit {
    zoom: 0.7;
  }

  .ix-partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ix-build-card {
    padding: 22px;
  }
}
