/* --- Integrations Page Scoped CSS --- */

/* Page Variables */
:root {
  --int-bg-dark: #050810;
  --int-card-bg: #0F1629;
  --int-card-border: rgba(255, 255, 255, 0.08);
  --int-primary: #4C86FF;
  --int-text-main: #FFFFFF;
  --int-text-muted: #94A3B8;
  --int-badge-avail-bg: rgba(16, 185, 129, 0.15);
  --int-badge-avail-text: #34D399;
  --int-badge-soon-bg: rgba(251, 191, 36, 0.15);
  --int-badge-soon-text: #FBBF24;
}

/* Hero Section */
.int-hero {
  position: relative;
  padding: 180px 0 100px;
  text-align: center;
  background: radial-gradient(circle at top center, #1B2438 0%, #050810 80%);
  overflow: hidden;
}

.int-hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  z-index: 0;
}

.int-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.int-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.int-subtitle {
  font-size: 20px;
  color: var(--int-text-muted);
  line-height: 1.6;
}

/* Integrations Grid */
.int-grid-section {
  padding: 80px 0 160px;
  background: var(--int-bg-dark);
}

.int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.int-card {
  background: var(--int-card-bg);
  border: 1px solid var(--int-card-border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  min-height: 320px; /* Increased height for more space */
}

.int-card:hover {
  transform: translateY(-8px);
  border-color: rgba(76, 134, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.int-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.int-card:hover::before {
  opacity: 1;
}

.int-logo-box {
  min-width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px; /* Increased spacing */
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 20px; /* Added padding for text logos */
}

.int-logo-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.int-card-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: flex-start;
  margin-bottom: 16px;
}

.int-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--int-text-main);
  margin: 0 0 24px 0; /* Added bottom margin */
  line-height: 1.3;
}

.int-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-available {
  background: var(--int-badge-avail-bg);
  color: var(--int-badge-avail-text);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-soon {
  background: var(--int-badge-soon-bg);
  color: var(--int-badge-soon-text);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.int-desc {
  font-size: 16px;
  color: var(--int-text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.int-link {
  margin-top: auto;
  color: var(--int-primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.int-link:hover {
  gap: 12px;
}

/* CTA Section */
.int-cta {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--int-card-border);
  background: linear-gradient(180deg, var(--int-bg-dark) 0%, #0F1629 100%);
}

.int-cta h3 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--int-text-main);
}

.int-cta p {
  color: var(--int-text-muted);
  margin-bottom: 32px;
}

.btn-int-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.btn-int-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .int-title { font-size: 40px; }
  .int-grid { grid-template-columns: 1fr; }
}

/* Section Titles */
.int-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--int-text-main);
  margin-bottom: 12px;
}

.int-section-subtitle {
  font-size: 18px;
  color: var(--int-text-muted);
  margin-bottom: 48px;
}

/* Text Logo Placeholder */
.text-logo {
  font-weight: 700;
  color: var(--int-text-main);
  font-size: 15px; /* Slightly larger */
  text-align: center;
  line-height: 1.2;
  width: auto; /* Allow width to grow */
  min-width: 64px;
}

/* Spacing adjustments */
.int-grid-section + .int-grid-section {
  padding-top: 0;
}

/* Bottom aligned badge */
.int-card > .int-badge:last-child {
  margin-top: auto;
}

/* Adjust logo box margin if not in header */
.int-card > .int-logo-box {
  margin-bottom: 24px;
}

.int-group-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--int-text-main);
  margin-bottom: 24px;
  margin-top: 64px;
  border-bottom: 1px solid var(--int-card-border);
  padding-bottom: 16px;
}
.int-group-title:first-of-type {
  margin-top: 0;
}

