/* Integration hub page */

.intg-hub-hero {
  max-width: 1280px;
  margin: 0 auto;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.intg-hub-hero-inner {
  margin: 0 auto;
  padding: 6rem var(--pad3);
}

.intg-hub-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.94;
}

.intg-hub-hero p {

  margin: 0 auto;
  font-size: 1.15rem;
}

.intg-hub-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem var(--pad3);
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.intg-hub-sidebar {
  position: relative;
}

.intg-hub-nav {
  position: sticky;
  top: 6rem;
}

.intg-hub-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.intg-hub-nav li {
  margin-bottom: 0.25rem;
}

.intg-hub-nav a {
  display: block;
  padding: 0.5rem 0.5rem;

  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
}

.intg-hub-nav a:hover {
  background: var(--surface);
  color: var(--heading);
}

.intg-hub-category {
  margin-bottom: 5rem;
  scroll-margin-top: 6rem;
}

.intg-hub-category:last-child {
  margin-bottom: 0;
}

.intg-hub-category h2,
.intg-hub-empty h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.intg-hub-category-desc {
  max-width: 560px;
  margin-bottom: 2.25rem;
  font-size: 1rem;
}

.intg-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intg-hub-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.intg-hub-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.intg-hub-card-icon {
  display: flex;
  width: 112px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.intg-hub-card-icon img {
  display: block;
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.intg-hub-card-icon img.intg-logo-horizontal {
  width: 96px;
  height: 24px;
  max-width: 96px;
  max-height: 24px;
}

.intg-hub-card h3 {
  margin-bottom: 0.4rem;
  color: var(--heading);
  font-size: 1.1rem;
  font-weight: 500;
}

.intg-hub-card p {
  margin-bottom: 0.9rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.intg-hub-price {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.intg-hub-empty {
  max-width: 680px;
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

@media (max-width: 1024px) {
  .intg-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .intg-hub-hero-inner {
    padding: 4rem var(--pad2);
  }

  .intg-hub-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem var(--pad2);
  }

  .intg-hub-sidebar {
    position: static;
  }

  .intg-hub-nav {
    position: static;
  }

  .intg-hub-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .intg-hub-nav li {
    margin-bottom: 0;
  }

  .intg-hub-nav a {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .intg-hub-grid {
    grid-template-columns: 1fr;
  }
}
