/* ===== Integrations Page Styles ===== */

/* Page background */
.integ-page {
  background: var(--bg);
}

/* Hero */
.integ-hero {
  padding: calc(var(--nav) + 72px) 0 56px;
  background: var(--bg);
  position: relative;
}
.integ-hero-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Green badge */
.integ-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .2);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}
.integ-badge svg {
  flex-shrink: 0;
}

.integ-hero-title {
  font-family: var(--font);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.047em;
  margin-bottom: 16px;
  color: var(--text);
}
.integ-hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text3);
  max-width: 600px;
  margin: 0 auto 36px;
}
.integ-hero-subtitle span {
  color: var(--text4);
  margin: 0 4px;
}

/* Hero logo strip */
.integ-hero-logos {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.integ-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s cubic-bezier(.27, 0, .51, 1);
}
.integ-hero-logo:hover {
  transform: scale(1.08);
}
.integ-hero-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.integ-hero-logo svg {
  width: 32px;
  height: 32px;
}

/* ===== Sticky Category Nav ===== */
.integ-category-nav {
  position: sticky;
  top: var(--nav);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s cubic-bezier(.27, 0, .51, 1);
}
.integ-category-nav.shadow {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.integ-category-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 52px;
  gap: 0;
}
.integ-cat-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.integ-cat-links::-webkit-scrollbar {
  display: none;
}
.integ-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text3);
  white-space: nowrap;
  cursor: pointer;
  transition: all .25s cubic-bezier(.27, 0, .51, 1);
  text-decoration: none;
  border: none;
  background: none;
  font-family: var(--font);
}
.integ-cat-link:hover {
  color: var(--text);
  background: var(--bg);
}
.integ-cat-link.active {
  color: var(--text);
  font-weight: 600;
}
.integ-cat-link svg {
  flex-shrink: 0;
  opacity: .7;
}
.integ-cat-link.active svg {
  opacity: 1;
}

/* Search toggle */
.integ-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--text3);
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
}
.integ-search-toggle:hover {
  background: var(--bg);
  color: var(--text);
}

/* Search overlay (hidden by default) */
.integ-search-bar {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--white);
  z-index: 2;
  padding: 0 24px;
  align-items: center;
  gap: 12px;
}
.integ-search-bar.open {
  display: flex;
}
.integ-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  max-width: var(--max);
}
.integ-search-bar input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.integ-search-bar input::placeholder {
  color: var(--text4);
}
.integ-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: var(--bg);
  color: var(--text3);
  cursor: pointer;
  font-size: 18px;
  transition: all .2s;
}
.integ-search-close:hover {
  background: var(--border);
  color: var(--text);
}

/* ===== Integration Sections ===== */
.integ-sections {
  padding: 40px 0 60px;
  background: var(--bg);
}
.integ-section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--nav) + 64px);
}
.integ-section:last-child {
  margin-bottom: 0;
}
.integ-section-title {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

/* Cards Grid (within each section) */
.integ-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Individual Card */
.integ-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: none;
  border-radius: 16px;
  padding: 24px;
  box-shadow: rgba(103, 103, 103, 0.08) 0px 0px 0px 1px, rgba(103, 103, 103, 0.08) 0px 2px 4px 0px;
  transition: all .3s cubic-bezier(.27, 0, .51, 1);
  text-decoration: none;
  color: inherit;
}
.integ-card:hover {
  box-shadow: rgba(103, 103, 103, 0.12) 0px 0px 0px 1px, rgba(103, 103, 103, 0.12) 0px 4px 12px 0px;
}

/* Card Icon (no border container) */
.integ-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.integ-card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.integ-card-icon svg {
  width: 36px;
  height: 36px;
}

/* Card Name */
.integ-card-name {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Card Description */
.integ-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text3);
}

/* ===== CTA Section (Aurora) ===== */
.integ-cta {
  background: var(--dark);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background-image: none;
}
.integ-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, .08), transparent 65%);
  pointer-events: none;
}
.integ-cta::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, .06), transparent 60%);
  pointer-events: none;
}
.integ-cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.integ-cta-title {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.integ-cta-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.integ-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--text);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.27, 0, .51, 1);
  text-decoration: none;
}
.integ-cta-btn:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.integ-cta-btn svg {
  flex-shrink: 0;
  transition: transform .2s;
}
.integ-cta-btn:hover svg {
  transform: translateX(2px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .integ-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .integ-hero {
    padding: calc(var(--nav) + 48px) 0 40px;
  }
  .integ-hero-title {
    font-size: clamp(28px, 7vw, 40px);
  }
  .integ-hero-logos {
    gap: 16px;
  }
  .integ-hero-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .integ-hero-logo img {
    width: 30px;
    height: 30px;
  }
  .integ-category-nav-inner {
    height: 48px;
  }
  .integ-cat-link {
    padding: 6px 12px;
    font-size: 13px;
  }
  .integ-section-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .integ-card {
    padding: 22px 20px;
  }
  .integ-sections {
    padding: 28px 0 48px;
  }
  .integ-section {
    margin-bottom: 40px;
  }
  .integ-cta {
    padding: 72px 0 60px;
  }
}

@media (max-width: 480px) {
  .integ-hero-subtitle {
    font-size: 13px;
  }
  .integ-hero-logo {
    width: 48px;
    height: 48px;
  }
  .integ-hero-logo img {
    width: 28px;
    height: 28px;
  }
  .integ-cat-link {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }
}

/* ===== Premium Hover Polish ===== */
@media (prefers-reduced-motion: no-preference) {
  .integ-card {
    transition: all .35s cubic-bezier(.27, 0, .51, 1);
  }
  .integ-card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(103, 103, 103, 0.12) 0px 0px 0px 1px, rgba(103, 103, 103, 0.06) 0px 8px 24px 0px;
  }

  .integ-card-icon img,
  .integ-card-icon svg {
    transition: transform .35s cubic-bezier(.27, 0, .51, 1);
  }
  .integ-card:hover .integ-card-icon img,
  .integ-card:hover .integ-card-icon svg {
    transform: scale(1.1);
  }

  /* Hero logo hover glow */
  .integ-hero-logo {
    transition: transform .3s cubic-bezier(.27, 0, .51, 1), box-shadow .3s cubic-bezier(.27, 0, .51, 1);
  }
  .integ-hero-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  }

  /* Category link active underline */
  .integ-cat-link.active {
    position: relative;
  }
  .integ-cat-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
  }
}
