/* Integração — visual tech referência: fundo #000, eyebrow verde, gradiente ciano → lima, chips com fade */

.home-integ {
  padding: clamp(3rem, 6.5vw, 4.5rem) 0;
  position: relative;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.home-integ::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -10%,
      rgba(34, 211, 238, 0.09),
      transparent 50%);
  pointer-events: none;
}

.home-integ .container {
  position: relative;
  z-index: 1;
}

.home-integ-head {
  max-width: 42rem;
  margin: 0 auto clamp(1.35rem, 2.8vw, 1.85rem);
  text-align: center;
}

.home-integ-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(22, 101, 52, 0.55);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.home-integ-title {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.home-integ-title span {
  background: linear-gradient(318deg, #1dd1a1 25%, #54a0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-integ-lead {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.68;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

.home-integ-doc-cta--footer {
  margin-top: clamp(1.75rem, 3.5vw, 2.35rem);
  text-align: center;
}

.home-integ-doc-btn--hero {
  padding: 0.88rem 1.45rem;
  font-size: 0.95rem;
}

/* Dois carrosséis (stack + LGPD / integrações) */
.home-integ-marquees {
  margin-bottom: clamp(1.35rem, 2.8vw, 1.85rem);
}

.home-integ-marquees:hover .home-integ-tagtrack {
  animation-play-state: paused;
}

.home-integ-marquee-label {
  margin: 0 0 0.45rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.home-integ-marquee-label span {
  color: rgba(134, 239, 172, 0.95);
}

.home-integ-marquee-label--trust {
  margin-top: 1.1rem;
}

.home-integ-marquees .home-integ-tagstrip {
  margin-bottom: 0;
}

/* Chips: marquee + máscara nas bordas */
.home-integ-tagstrip {
  position: relative;
  margin: 0 -0.5rem 0;
  padding: 0.35rem 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%);
}

.home-integ-tagtrack {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  width: max-content;
  animation: home-integ-marquee 40s linear infinite;
  padding: 0 0.75rem;
}

.home-integ-tagtrack--reverse {
  animation-duration: 48s;
  animation-direction: reverse;
}

.home-integ-tag {
  flex-shrink: 0;
  font-family: ui-sans-serif, system-ui, "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(51, 65, 85, 0.5);
}

.home-integ-tag--trust {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(29, 209, 161, 0.28);
  background: linear-gradient(135deg, rgba(29, 209, 161, 0.14) 0%, rgba(84, 160, 255, 0.1) 100%);
}

@keyframes home-integ-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-integ-marquees:hover .home-integ-tagtrack {
    animation-play-state: running;
  }

  .home-integ-tagtrack {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }

  .home-integ-marquee-label {
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Grid de painéis */
.home-integ-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-integ-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-integ-panel {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(0, 0, 0, 0.5) 100%);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.home-integ-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(29, 209, 161, 0.35),
      rgba(84, 160, 255, 0.3),
      transparent);
  opacity: 0.85;
  pointer-events: none;
}

.home-integ-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.home-integ-method {
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7cffb8;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(124, 255, 184, 0.12);
  border: 1px solid rgba(124, 255, 184, 0.22);
}

.home-integ-method--hook {
  color: #ffd78c;
  background: rgba(255, 215, 140, 0.12);
  border-color: rgba(255, 215, 140, 0.25);
}

.home-integ-path {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.home-integ-path--plain {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
}

.home-integ-badge {
  margin-left: auto;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 237, 247, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.home-integ-code {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: clamp(0.65rem, 1.1vw + 0.55rem, 0.78rem);
  line-height: 1.5;
  color: #c8d0dc;
}

.home-integ-code--dense {
  font-size: 0.72rem;
}

.home-integ-code .tok-k {
  color: #79c0ff;
}

.home-integ-code .tok-s {
  color: #a5d6ff;
}

.home-integ-code .tok-c {
  color: #8b949e;
}

.home-integ-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(230, 237, 247, 0.55);
}

.home-integ-eco {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: rgba(230, 237, 247, 0.85);
  font-size: 0.9rem;
  line-height: 1.65;
}

.home-integ-eco li {
  margin-bottom: 0.35rem;
}

.home-integ-eco strong {
  color: #fff;
  font-weight: 600;
}

.home-integ-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: #0a1628;
  background: linear-gradient(318deg, #1dd1a1 25%, #54a0ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(84, 160, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-integ-doc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 209, 161, 0.3);
  color: #061018;
}

.home-integ-doc-btn:focus-visible {
  outline: 2px solid rgba(124, 255, 184, 0.85);
  outline-offset: 3px;
}

/* Tema claro: secção branca, tipografia e chips legíveis (painéis claros; código continua escuro) */
html:not([data-theme="dark"]) .home-integ {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

html:not([data-theme="dark"]) .home-integ::before {
  background: radial-gradient(ellipse 78% 50% at 50% -8%, rgba(29, 209, 161, 0.08), transparent 52%);
}

html:not([data-theme="dark"]) .home-integ-eyebrow {
  color: #0f766e;
  background: #ecfdf5;
  border-color: rgba(13, 148, 136, 0.35);
}

html:not([data-theme="dark"]) .home-integ-title {
  color: #0f172a;
}

html:not([data-theme="dark"]) .home-integ-lead {
  color: #475569;
}

html:not([data-theme="dark"]) .home-integ-marquee-label {
  color: #64748b;
}

html:not([data-theme="dark"]) .home-integ-marquee-label span {
  color: #0d9488;
}

html:not([data-theme="dark"]) .home-integ-tag {
  color: #1e293b;
  border-color: rgba(148, 163, 184, 0.45);
  background: #f1f5f9;
}

html:not([data-theme="dark"]) .home-integ-tag--trust {
  color: #0f172a;
  border-color: rgba(29, 209, 161, 0.32);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98) 0%, rgba(224, 242, 254, 0.95) 100%);
}

html:not([data-theme="dark"]) .home-integ-panel {
  border-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.07),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

html:not([data-theme="dark"]) .home-integ-method {
  color: #047857;
  background: #d1fae5;
  border-color: rgba(16, 185, 129, 0.35);
}

html:not([data-theme="dark"]) .home-integ-method--hook {
  color: #b45309;
  background: #fef3c7;
  border-color: rgba(245, 158, 11, 0.35);
}

html:not([data-theme="dark"]) .home-integ-path {
  color: #0f172a;
}

html:not([data-theme="dark"]) .home-integ-badge {
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.4);
}

html:not([data-theme="dark"]) .home-integ-note {
  color: #64748b;
}

html:not([data-theme="dark"]) .home-integ-doc-btn:focus-visible {
  outline-color: rgba(13, 148, 136, 0.65);
}