/* =========================================================
   Integrations page
   ========================================================= */

/* ---- Bubbles confined to the hero section ---- */
.int-page {
  position: relative;
  isolation: isolate;
}

.int-bubbles-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.int-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.int-bubble {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(280px, 42vw);
  padding: 10px 14px 10px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow:
    0 4px 16px rgba(20, 24, 33, 0.08),
    0 0 0 1px rgba(20, 24, 33, 0.03);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-2);
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  contain: layout paint style;
}

/* Fade-in state, applied once a bubble appears */
.int-bubble.is-in {
  opacity: 0.8;
}

.int-bubble__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bubble-accent) 14%, white);
  color: var(--bubble-accent);
  font-size: 13px;
  flex-shrink: 0;
}

.int-bubble__text {
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Hero content sits above the bubble layer */
.int-hero .container {
  position: relative;
  z-index: 2;
}

/* ---- Hero ---- */
.int-hero {
  position: relative;
  padding-block: clamp(28px, 3.5vw, 52px) clamp(56px, 8vw, 100px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-softer), var(--bg));
}

.int-hero h1 {
  font-size: clamp(36px, 5.8vw, 68px);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.int-hero .lead {
  margin-top: 22px;
  max-width: 58ch;
}

.int-hero__note {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
}

.int-hero__note i {
  font-size: 15px;
}

/* ---- Category grid ---- */
.int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.int-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.int-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.int-card__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.int-card__icons span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 17px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.int-card:hover .int-card__icons span {
  transform: translateY(-2px);
}

.int-card__icons .ico--whatsapp { color: #25D366; }
.int-card__icons .ico--google { color: #4285F4; }
.int-card__icons .ico--gdrive { color: #1FA463; }
.int-card__icons .ico--microsoft { color: #0078D4; }
.int-card__icons .ico--quickbooks { color: #2CA01C; }
.int-card__icons .ico--salesforce { color: #00A1E0; }
.int-card__icons .ico--hubspot { color: #FF7A59; }
.int-card__icons .ico--dropbox { color: #0061FF; }
.int-card__icons .ico--excel { color: #217346; }
.int-card__icons .ico--csv { color: #1D8A4E; }
.int-card__icons .ico--mail { color: var(--accent); }
.int-card__icons .ico--calendar { color: #d65a4a; }
.int-card__icons .ico--calc { color: var(--accent-ink); }
.int-card__icons .ico--telegram { color: #229ED9; }
.int-card__icons .ico--slack { color: #611f69; }
.int-card__icons .ico--stripe { color: #635BFF; }
.int-card__icons .ico--paypal { color: #0070BA; }
.int-card__icons .ico--shopify { color: #5E8E3E; }

.int-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.int-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- Anti-pitch grid ---- */
.int-nope {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.int-nope__item {
  display: flex;
  gap: 14px;
  padding: 22px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.int-nope__item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
}

.int-nope__item i {
  color: #e3c06a;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.int-nope__item p {
  margin: 0;
  font-size: 15.5px;
  color: #c4c9d6;
  line-height: 1.5;
}

.int-nope__item em {
  color: #fff;
  font-style: normal;
  font-weight: 600;
}

/* ---- Hub visual ---- */
.int-hub {
  position: relative;
  margin-top: 56px;
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.int-hub__ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.int-hub.is-live .int-hub__ring {
  opacity: 1;
  animation: int-hub-ring 3s ease-out infinite;
}

@keyframes int-hub-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(199, 154, 59, 0.35);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(199, 154, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(199, 154, 59, 0);
  }
}

.int-hub__core {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 32px;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--accent-2), var(--accent-ink));
  box-shadow: 0 18px 40px rgba(199, 154, 59, 0.28);
  margin-bottom: 28px;
}

.int-hub__core i {
  font-size: 28px;
  color: #2a2008;
}

.int-hub__core b {
  font-family: var(--font-display);
  font-size: 22px;
  color: #2a2008;
  letter-spacing: -0.02em;
}

.int-hub__core small {
  font-size: 12px;
  color: rgba(42, 32, 8, 0.72);
  font-weight: 600;
}

.int-hub__orbit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin-inline: auto;
}

.int-hub__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: #e9eaef;
  animation: int-chip-float 5s ease-in-out infinite;
}

.int-hub__chip:nth-child(2n) {
  animation-delay: -1.2s;
  animation-duration: 6.5s;
}

.int-hub__chip:nth-child(3n) {
  animation-delay: -2.4s;
  animation-duration: 7s;
}

.int-hub__chip i {
  font-size: 14px;
  color: var(--accent-2);
}

@keyframes int-chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* ---- Process steps ---- */
.int-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 52px;
  counter-reset: intstep;
}

.int-step {
  position: relative;
  padding: 28px 24px 0 0;
}

.int-step::before {
  counter-increment: intstep;
  content: counter(intstep, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--accent-soft);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
}

.int-step__ico {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
}

.int-step h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.int-step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 26ch;
}

/* ---- Quote ---- */
.int-quote {
  margin-top: 48px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.int-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 430;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--ink);
}

.int-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-sans);
}

@media (max-width: 980px) {
  .int-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .int-step {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .int-bubble {
    max-width: min(220px, 58vw);
    font-size: 11.5px;
  }

  .int-bubble.is-in {
    opacity: 0.72;
  }

  .int-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .int-hub__chip {
    animation: none !important;
  }

  .int-hub.is-live .int-hub__ring {
    animation: none !important;
    opacity: 0.5;
  }
}
