/* Integrations — scoped under .ints. Same :root tokens as the rest of the
   site (site.css), same dark/geo-grid language as everything else, so this
   reads as one more room in the same building rather than a bolted-on
   microsite borrowed from somewhere else. */

.ints { background: var(--chart); }
.ints .wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- hero ---------- */
.ints-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--basemap);
  padding: 88px 0 64px;
}
.ints-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url(/assets/img/integrations-hero-1920.jpg);
  background-image: image-set(
    url(/assets/img/integrations-hero-1920.webp) type("image/webp"),
    url(/assets/img/integrations-hero-1920.jpg) type("image/jpeg")
  );
  background-size: cover;
  background-position: 78% 50%;
  background-repeat: no-repeat;
  animation: ints-hero-drift 44s ease-in-out infinite alternate;
}
@keyframes ints-hero-drift {
  from { background-position: 74% 46%; }
  to   { background-position: 82% 54%; }
}
@media (prefers-reduced-motion: reduce) { .ints-hero::before { animation: none; } }
.ints-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(8,14,16,.94) 0%, rgba(8,14,16,.8) 32%, rgba(8,14,16,.42) 58%, rgba(8,14,16,.7) 100%);
}
.ints-hero__in { position: relative; z-index: 1; max-width: 820px; }
.ints-hero__eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: #8FD9D2; margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.ints-hero__eyebrow::before { content: ""; width: 22px; height: 1.5px; background: #8FD9D2; display: inline-block; }
.ints-hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.08;
  font-size: clamp(30px, 5vw, 50px); color: #fff; margin: 0 0 20px; max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.ints-hero p.lede { font-size: 18px; line-height: 1.6; color: #D7E4E2; margin: 0; max-width: 62ch; }

/* stat strip */
.ints-stats {
  position: relative; z-index: 1;
  display: flex; gap: 34px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16);
}
.ints-stats div b {
  display: block; font-family: var(--display); font-weight: 800; font-size: 28px;
  color: #fff; letter-spacing: -.02em; line-height: 1;
}
.ints-stats div span {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: #9FB4B1; margin-top: 6px;
}

/* ---------- active/native section ---------- */
.ints-active { padding: 60px 0 8px; }
.ints-active h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(22px,3vw,28px);
  letter-spacing: -.015em; margin: 0 0 8px; color: var(--ink);
}
.ints-active > .wrap > p { font-size: 16px; color: var(--ink-soft); margin: 0 0 30px; max-width: 68ch; }
.ints-active__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .ints-active__grid { grid-template-columns: 1fr; } }
.ints-card {
  border: 1.5px solid var(--rule-hard); background: #fff; padding: 26px 24px; position: relative;
}
.ints-card__badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--beacon-lo); border: 1px solid var(--beacon); padding: 3px 9px; display: inline-block; margin-bottom: 16px;
}
.ints-card__mark {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid var(--rule-hard); padding: 7px; margin-bottom: 14px;
}
.ints-card__mark img { width: 100%; height: 100%; object-fit: contain; }
.ints-card__mark--dual { width: auto; gap: 6px; padding: 7px 9px; }
.ints-card__mark--dual img { width: 30px; height: 30px; }
.ints-card h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.ints-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ---------- library ---------- */
.ints-lib { padding: 56px 0 80px; }
.ints-lib__head { max-width: 680px; margin: 0 0 28px; }
.ints-lib__head h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(22px,3vw,28px);
  letter-spacing: -.015em; margin: 0 0 10px; color: var(--ink);
}
.ints-lib__head p { font-size: 16px; color: var(--ink-soft); margin: 0; }

.ints-search { position: relative; margin: 26px 0 24px; max-width: 420px; }
.ints-search input {
  width: 100%; font-family: var(--body); font-size: 16px; padding: 13px 16px 13px 40px;
  border: 1.5px solid var(--rule-hard); background: #fff; color: var(--ink);
}
.ints-search input:focus { outline: none; border-color: var(--beacon); }
.ints-search::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 15px; height: 15px;
  transform: translateY(-50%); border: 2px solid var(--ink-faint); border-radius: 50%;
  box-shadow: 5px 5px 0 -3px var(--ink-faint); pointer-events: none;
}

.ints-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 30px; }
.ints-tabs button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 15px; border: 1.5px solid var(--rule-hard); background: #fff; color: var(--ink-soft);
  cursor: pointer; transition: background .14s, border-color .14s, color .14s;
}
.ints-tabs button:hover { border-color: var(--beacon); color: var(--ink); }
.ints-tabs button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.ints-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .ints-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .ints-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .ints-grid { grid-template-columns: 1fr; } }

.ints-tool {
  border: 1px solid var(--rule-hard); background: #fff; padding: 16px 16px 15px;
  transition: border-color .14s, transform .14s;
}
.ints-tool:hover { border-color: var(--beacon); transform: translateY(-2px); }
.ints-tool__mark {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--rule-hard); padding: 5px; margin-bottom: 10px;
}
.ints-tool__mark img { width: 100%; height: 100%; object-fit: contain; }
.ints-tool h4 { font-family: var(--display); font-weight: 700; font-size: 14.5px; margin: 0 0 4px; color: var(--ink); letter-spacing: -.005em; }
.ints-tool p { font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); margin: 0; }
.ints-tool.hide { display: none; }

.ints-empty { display: none; padding: 40px 0; text-align: center; color: var(--ink-soft); font-size: 15px; }
.ints-empty.show { display: block; }

/* ---------- custom dev CTA ---------- */
.ints-custom {
  border: 1.5px dashed var(--rule-hard); background: var(--beacon-wash); padding: 34px 30px;
  margin-top: 46px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.ints-custom__text { max-width: 56ch; }
.ints-custom h3 { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.ints-custom p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---------- CTA band ---------- */
.ints-cta {
  background: var(--basemap); color: #fff; padding: 52px 0; text-align: center;
  position: relative; isolation: isolate; overflow: hidden;
}
.ints-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(ellipse 70% 90% at 12% 20%, rgba(13,110,110,.34) 0%, transparent 62%),
    radial-gradient(ellipse 65% 85% at 88% 82%, rgba(184,74,51,.22) 0%, transparent 62%);
}
.ints-cta__eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #8FD9D2; margin: 0 0 12px; }
.ints-cta h3 {
  font-family: var(--display); font-weight: 800; font-size: clamp(22px,3.4vw,32px); letter-spacing: -.02em;
  color: #fff; margin: 0 0 16px; max-width: 30ch; margin-inline: auto;
}
.ints-cta p { color: #C7D6D4; font-size: 16px; margin: 0 0 26px; max-width: 56ch; margin-inline: auto; }
.ints-cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ints .btn {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: 15px 26px; text-decoration: none; display: inline-block; border: 1.5px solid #fff;
  transition: background .15s ease, color .15s ease; cursor: pointer;
}
.ints .btn--go { background: var(--beacon); border-color: var(--beacon); color: #fff; }
.ints .btn--go:hover { background: var(--beacon-lo); border-color: var(--beacon-lo); }
.ints .btn--ghost { color: #fff; background: none; }
.ints .btn--ghost:hover { background: rgba(255,255,255,.12); }
