/* ═══════════════════════════════════════════
   INTEGRATIONS PAGE — LOCAL STYLES
═══════════════════════════════════════════ */

/* ── PAGE HERO ─────────────────────────────── */
.int-hero {
  position: relative;
  padding: 116px var(--px) 90px;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}
.int-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--cta-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cta-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 20%, transparent 100%);
}
.int-hero-glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(100px);
}
.int-hero-glow-1 { width: 700px; height: 350px; background: rgba(105,125,251,0.14); top: -60px; left: 50%; transform: translateX(-50%); }
.int-hero-glow-2 { width: 250px; height: 250px; background: rgba(34,197,94,0.09); bottom: 20px; left: 10%; }
.int-hero-glow-3 { width: 250px; height: 250px; background: rgba(251,191,36,0.08); bottom: 20px; right: 10%; }
.int-hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.int-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); background: rgba(105,125,251,0.1); border: 1px solid rgba(105,125,251,0.25);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
[data-theme="light"] .int-eyebrow { color: #2563eb; background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.2); }
.int-hero h1 {
  font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; letter-spacing: -2px; line-height: 1.05;
  background: var(--h1-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 22px;
}
.int-hero-sub {
  font-size: clamp(15px, 2vw, 18px); line-height: 1.7; color: var(--text-secondary);
  max-width: 580px; margin: 0 auto 40px;
}
.int-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* Floating logo marquee */
.int-logo-strip {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.int-logo-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.int-logo-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.int-logo-chip {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 16px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  flex-shrink: 0;
}
[data-theme="light"] .int-logo-chip { background: rgba(255,255,255,0.8); }
.int-logo-chip i { font-size: 14px; }

/* ── STATS BAR ─────────────────────────────── */
.int-stats {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px var(--px);
}
[data-theme="light"] .int-stats { background: rgba(255,255,255,0.7); }
.int-stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.ist-item { text-align: center; padding: 8px 24px; border-right: 1px solid var(--border); }
.ist-item:last-child { border-right: none; }
.ist-num { font-size: 38px; font-weight: 900; letter-spacing: -1.2px; color: var(--blue); line-height: 1; margin-bottom: 4px; }
[data-theme="light"] .ist-num { color: #2563eb; }
.ist-lbl { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

/* ── INTEGRATION GRID ──────────────────────── */
.int-grid-section {
  padding: 80px var(--px);
  background: var(--cap-section-bg);
}
.int-grid-header { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.int-grid-title { font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; letter-spacing: -1.2px; color: var(--text-primary); margin-bottom: 12px; }
.int-grid-sub { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }

/* Category tabs */
.int-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.int-tab {
  font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border); background: transparent; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.int-tab:hover { border-color: var(--border-hover); color: var(--text-primary); }
.int-tab.active {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
[data-theme="light"] .int-tab.active { background: #2563eb; border-color: #2563eb; }

/* Cards */
.int-cards {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.int-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.int-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
[data-theme="light"] .int-card { background: rgba(255,255,255,0.75); }
[data-theme="light"] .int-card:hover { box-shadow: 0 8px 24px rgba(22,50,91,0.08); }
.int-card[data-hidden="true"] { display: none; }

.int-card-head { display: flex; align-items: center; justify-content: space-between; }
.int-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
[data-theme="light"] .int-card-icon { background: rgba(255,255,255,0.9); }
.int-card-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
}
.int-card-badge--live { background: rgba(34,197,94,0.12); color: #16a34a; border: 1px solid rgba(34,197,94,0.25); }
.int-card-badge--beta { background: rgba(251,191,36,0.12); color: #b45309; border: 1px solid rgba(251,191,36,0.3); }
.int-card-badge--soon { background: rgba(148,163,184,0.12); color: var(--text-muted); border: 1px solid var(--border); }
[data-theme="light"] .int-card-badge--live { color: #15803d; }
[data-theme="light"] .int-card-badge--beta { color: #92400e; }
.int-card-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.int-card-cat { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 1px; }
.int-card-desc { font-size: 12px; line-height: 1.6; color: var(--text-secondary); }

/* ── FEATURED INTEGRATIONS ─────────────────── */
.featured-section {
  padding: 90px var(--px);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.featured-header { text-align: center; max-width: 520px; margin: 0 auto 60px; }
.featured-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
[data-theme="light"] .featured-eyebrow { color: #2563eb; }
.featured-title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; letter-spacing: -1px; color: var(--text-primary); margin-bottom: 12px; }
.featured-sub { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }

.featured-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.featured-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.featured-row:hover { border-color: var(--border-hover); }
[data-theme="light"] .featured-row { background: rgba(255,255,255,0.8); }
[data-theme="light"] .featured-row:hover { background: rgba(255,255,255,0.98); }
.featured-row-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
[data-theme="light"] .featured-row-icon { background: rgba(255,255,255,0.9); }
.featured-row-body { min-width: 0; }
.featured-row-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.featured-row-desc { font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.featured-row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.feat-tag {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  background: var(--border); border-radius: 100px; padding: 2px 8px;
}
[data-theme="light"] .feat-tag { background: rgba(22,50,91,0.07); }
.featured-row-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.feat-docs-btn {
  font-size: 12px; font-weight: 600; color: var(--blue); background: transparent;
  border: 1px solid rgba(105,125,251,0.3); border-radius: 8px;
  padding: 7px 14px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.feat-docs-btn:hover { background: rgba(105,125,251,0.1); border-color: var(--blue); }
[data-theme="light"] .feat-docs-btn { color: #2563eb; border-color: rgba(37,99,235,0.25); }
[data-theme="light"] .feat-docs-btn:hover { background: rgba(37,99,235,0.07); }

/* ── API / BUILD YOUR OWN ──────────────────── */
.api-section {
  padding: 90px var(--px);
  background: var(--cap-section-bg);
  border-top: 1px solid var(--border);
}
.api-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.api-text { }
.api-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
[data-theme="light"] .api-eyebrow { color: #2563eb; }
.api-title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; letter-spacing: -1px; color: var(--text-primary); margin-bottom: 14px; }
.api-desc { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 28px; }
.api-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.api-feat-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-secondary);
}
.api-feat-row::before {
  content: '';
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  background: rgba(105,125,251,0.12) url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23697dfb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px no-repeat;
}
[data-theme="light"] .api-feat-row::before {
  background-color: rgba(37,99,235,0.09);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%232563eb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}

/* Code block */
.api-code-wrap {
  background: #0d1117; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden;
}
[data-theme="light"] .api-code-wrap { border-color: rgba(22,50,91,0.12); }
.api-code-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
}
[data-theme="light"] .api-code-bar { border-color: rgba(22,50,91,0.1); background: rgba(0,0,0,0.03); }
.api-code-dot { width: 10px; height: 10px; border-radius: 50%; }
.api-code-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); margin-left: 4px; font-family: 'SF Mono', 'Fira Code', monospace; }
[data-theme="light"] .api-code-label { color: rgba(13,21,39,0.4); }
.api-code-body { padding: 24px; font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace; font-size: 13px; line-height: 1.8; overflow-x: auto; }
.code-line { display: block; }
.c-kw  { color: #ff7b72; }
.c-str { color: #a5d6ff; }
.c-key { color: #79c0ff; }
.c-val { color: #d2a8ff; }
.c-cmt { color: #8b949e; }
.c-fn  { color: #ffa657; }
.c-num { color: #b3f0a0; }
[data-theme="light"] .c-kw  { color: #d63031; }
[data-theme="light"] .c-str { color: #0969da; }
[data-theme="light"] .c-key { color: #0550ae; }
[data-theme="light"] .c-val { color: #6f42c1; }
[data-theme="light"] .c-cmt { color: #6e7781; }
[data-theme="light"] .c-fn  { color: #953800; }
[data-theme="light"] .c-num { color: #2da44e; }

/* ── CTA ───────────────────────────────────── */
.int-cta {
  padding: 100px var(--px); text-align: center;
  background: var(--bg); position: relative; overflow: hidden;
}
.int-cta-glow {
  position: absolute; width: 600px; height: 300px; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
  background: rgba(105,125,251,0.12); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
[data-theme="light"] .int-cta-glow { background: rgba(37,99,235,0.07); }
.int-cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.int-cta-title {
  font-size: clamp(28px, 4vw, 50px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.1;
  background: var(--h1-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}
.int-cta-sub { font-size: 16px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 36px; }
.int-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .int-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .api-inner { grid-template-columns: 1fr; gap: 40px; }
  .featured-row { grid-template-columns: 48px 1fr; }
  .featured-row-actions { grid-column: 1 / -1; }
  .int-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ist-item { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 0; }
  .ist-item:nth-child(2n) { border-right: none; }
  .ist-item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .int-hero { padding: 100px 20px 72px; }
  .int-stats { padding: 20px 20px; }
  .int-grid-section { padding: 56px 20px; }
  .featured-section { padding: 64px 20px; }
  .api-section { padding: 64px 20px; }
  .int-cta { padding: 72px 20px; }
  .int-hero-ctas { gap: 10px; margin-bottom: 36px; }
  .ist-num { font-size: 28px; }
  .int-grid-header { margin-bottom: 32px; }
  .featured-header { margin-bottom: 40px; }
  .featured-row { padding: 18px 16px; gap: 14px; }
  .featured-row-icon { width: 44px; height: 44px; font-size: 18px; }
  .featured-row-name { font-size: 14px; }
  .api-code-body { padding: 18px; font-size: 12px; }
  .int-cta-actions { flex-direction: column; align-items: center; gap: 10px; }
  .int-cta-actions .btn-primary,
  .int-cta-actions .btn-secondary { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .int-cards { grid-template-columns: repeat(2, 1fr); }
  .int-hero { padding: 96px 16px 60px; }
  .int-grid-section { padding: 48px 16px; }
  .featured-section { padding: 52px 16px; }
  .api-section { padding: 52px 16px; }
  .int-cta { padding: 56px 16px; }
  .int-card { padding: 18px; border-radius: 12px; }
  .int-card-icon { width: 36px; height: 36px; font-size: 16px; }
  .api-inner { gap: 28px; }
  .api-code-wrap { border-radius: 12px; }
}
@media (max-width: 420px) {
  .int-cards { grid-template-columns: 1fr; }
  .int-hero { padding: 88px 14px 52px; }
  .int-grid-section { padding: 40px 14px; }
  .featured-section { padding: 44px 14px; }
  .api-section { padding: 44px 14px; }
  .int-cta { padding: 48px 14px; }
  .int-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .ist-num { font-size: 24px; }
  .ist-lbl { font-size: 12px; }
}

/* ── EXTRACTED INLINE STYLES FOR INTEGRATIONS.HTML ── */
.js-integrations-style-1 { color:#ff9900; }
.js-integrations-style-2 { color:#0078d4; }
.js-integrations-style-3 { color:#4285f4; }
.js-integrations-style-4 { color:#62d84e; }
.js-integrations-style-5 { color:#0052cc; }
.js-integrations-style-6 { color:#7b4fff; }
.js-integrations-style-7 { color:#06ac38; }
.js-integrations-style-8 { color:#4a154b; }
.js-integrations-style-9 { color:#6264a7; }
.js-integrations-style-10 { color:#00a1e0; }
.js-integrations-style-11 { color:#ff7a59; }
.js-integrations-style-12 { color:#008fd3; }
.js-integrations-style-13 { color:#f00; }
.js-integrations-style-14 { color:#e00; }
.js-integrations-style-15 { color:#00297a; }
.js-integrations-style-16 { color:#03363d; }
.js-integrations-style-17 { font-size:14px;font-weight:800;color:var(--text-primary); }
.js-integrations-style-18 { font-size:14px;font-weight:800;color:#f87171; }
.js-integrations-style-19 { font-size:12px;font-weight:800;color:#e6522c; }
.js-integrations-style-20 { color:#0072c6; }
.js-integrations-style-21 { font-size:12px;font-weight:800;color:#8b5cf6; }
.js-integrations-style-22 { font-size:12px;font-weight:800;color:#6b7280; }
.js-integrations-style-23 { color:#2d8cff; }
.js-integrations-style-24 { font-size:14px;font-weight:800;color:#0f172a; }
.js-integrations-style-25 { font-size:14px;font-weight:800;color:#049fd9; }
.js-integrations-style-26 { font-size:14px;font-weight:800;color:#c71e22; }
.js-integrations-style-27 { font-size:14px;font-weight:800;color:#cd040b; }
.js-integrations-style-28 { font-size:14px;font-weight:800;color:#009fdb; }
.js-integrations-style-29 { font-size:14px;font-weight:800;color:#f7a800; }
.js-integrations-style-30 { font-size:14px;font-weight:800;color:#00938f; }
.js-integrations-style-31 { font-size:14px;font-weight:800;color:#a21caf; }
.js-integrations-style-32 { font-size:14px;font-weight:800;color:#00bcd4; }
.js-integrations-style-33 { font-size:14px;font-weight:800;color:#0ea5e9; }
.js-integrations-style-34 { margin-top:8px; }
.js-integrations-style-35 { background:#ff5f57; }
.js-integrations-style-36 { background:#febc2e; }
.js-integrations-style-37 { background:#28c840; }
