/* ==========================================================================
   Section: integracoes — huge glossy sphere (Three.js, CSS fallback) behind the
   heading + two opposite ticker rows of 70×70 app tiles + WhatsApp CTA.
   Every rule is scoped under .section--integracoes (see _build/CONTRACT.md).
   ========================================================================== */
.section--integracoes {
  --orb: 400px;          /* sphere diameter */
  --int-tile: 70px;
  --int-gap: 50px;
  --int-fade: 140px;
}
@media (max-width: 1199px) {
  .section--integracoes { --orb: 350px; --int-fade: 110px; }
}
@media (max-width: 809px) {
  .section--integracoes { --orb: min(290px, 76vw); --int-tile: 60px; --int-gap: 30px; --int-fade: 56px; }
}

/* ---- Ambient glows (orange left / blue right) ----------------------------- */
.section--integracoes .int-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.section--integracoes .int-bg__glow {
  --glow-w: 520px;
  --glow-h: 420px;
  --glow-opacity: .22;
  --glow-blur: 120px;
  top: 60px;
}
.section--integracoes .int-bg__glow--l { left: calc(50% - 700px); }
.section--integracoes .int-bg__glow--r { right: calc(50% - 700px); }
@media (max-width: 809px) {
  .section--integracoes .int-bg__glow { --glow-w: 300px; --glow-h: 280px; --glow-opacity: .2; top: 40px; }
  .section--integracoes .int-bg__glow--l { left: -170px; }
  .section--integracoes .int-bg__glow--r { right: -170px; }
}

.section--integracoes .int-inner { position: relative; z-index: 1; }

/* ---- Sphere -------------------------------------------------------------- */
.section--integracoes .int-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section--integracoes .int-orb {
  position: relative;
  z-index: 0;
  width: var(--orb);
  height: var(--orb);
  pointer-events: none;
}
/* 144% box: room for the rim bloom; the sphere itself is 1/1.44 of it (matches the Three.js framing).
   Two masks intersected: a soft radial edge (no hard box around the bloom) + the bottom fade behind the heading. */
.section--integracoes .int-orb__inner {
  position: absolute;
  inset: -22%;
  -webkit-mask-image:
    radial-gradient(closest-side, #000 70%, rgba(0, 0, 0, .55) 82%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 50%, rgba(0, 0, 0, .55) 64%, rgba(0, 0, 0, .18) 76%, transparent 88%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(closest-side, #000 70%, rgba(0, 0, 0, .55) 82%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 50%, rgba(0, 0, 0, .55) 64%, rgba(0, 0, 0, .18) 76%, transparent 88%);
  mask-composite: intersect;
}
/* soft rim bloom behind the sphere: blue left, orange right (3D art direction) */
.section--integracoes .int-orb__halo {
  position: absolute;
  inset: 19%;
}
.section--integracoes .int-orb__halo::before,
.section--integracoes .int-orb__halo::after {
  content: "";
  position: absolute;
  top: 10%;
  width: 58%;
  height: 72%;
  border-radius: 50%;
  filter: blur(calc(var(--orb) * .13));
  opacity: .42;
}
.section--integracoes .int-orb__halo::before {
  left: -8%;
  background: radial-gradient(closest-side, #1F77F6 0%, rgba(0, 152, 243, .55) 55%, rgba(0, 152, 243, 0) 100%);
}
.section--integracoes .int-orb__halo::after {
  right: -8%;
  background: radial-gradient(closest-side, #FF8918 0%, rgba(218, 78, 36, .55) 55%, rgba(218, 78, 36, 0) 100%);
}
.section--integracoes .int-orb__css {
  --size: var(--orb);
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}
.section--integracoes .int-orb__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
}

/* ---- Heading overlapping the lower half of the sphere --------------------- */
.section--integracoes .int-head {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--orb) * -.33);
}
.section--integracoes .int-title { max-width: 15em; }
.section--integracoes .int-head p { text-shadow: 0 1px 18px rgba(0, 0, 0, .9); }

/* ---- Ticker rows ------------------------------------------------------------ */
.section--integracoes .int-rows {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 1100px;
  margin-inline: auto;
}
.section--integracoes .int-row {
  --gap: var(--int-gap);
  --fade: var(--int-fade);
  padding-block: 14px;
}
.section--integracoes .int-row.is-static { --gap: 18px; }
.section--integracoes .int-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--int-tile);
  height: var(--int-tile);
  border-radius: var(--r-12);
  color: rgba(255, 255, 255, .86);
  background: linear-gradient(180deg, #111112 0%, #070707 100%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 14px 28px -16px rgba(0, 0, 0, .9);
  transition:
    color .35s var(--ease-out),
    border-color .35s var(--ease-out),
    box-shadow .45s var(--ease-out);
}
.section--integracoes .int-tile .icon { --size: calc(var(--int-tile) * .42); }
.section--integracoes .int-tile.is-hover {
  color: var(--brand, #fff);
  border-color: color-mix(in srgb, var(--brand, #fff) 50%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 0 18px -6px color-mix(in srgb, var(--brand, #fff) 45%, transparent),
    0 10px 30px -8px color-mix(in srgb, var(--brand, #fff) 55%, transparent);
}

/* single floating tooltip (JS positions it over the hovered tile, clones included) */
.section--integracoes .int-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  transform: translate(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 100% - 9px));
  padding: 6px 10px;
  border-radius: var(--r-8);
  background: rgba(16, 16, 17, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .9);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease-out);
}
.section--integracoes .int-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: rgb(16, 16, 17);
  border-right: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transform: translateX(-50%) rotate(45deg);
}
.section--integracoes .int-tip.is-on { opacity: 1; }

/* ---- CTA ---------------------------------------------------------------------- */
.section--integracoes .int-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
}
.section--integracoes .int-cta__q {
  display: none;
  color: var(--text-2);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.section--integracoes .int-cta__btn--short { display: none; }
@media (max-width: 559px) {
  .section--integracoes .int-cta { margin-top: 32px; gap: 12px; }
  .section--integracoes .int-cta__q { display: block; }
  .section--integracoes .int-cta__btn--short { display: inline-flex; }
  .section--integracoes .int-cta__btn--full { display: none; }
}
