/* ============================================================
   MIGRATELY — Marketing Site Styles
   ============================================================ */

/* ── Variables ── */
:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-secondary: #8b5cf6;
  --color-accent: #10b981;
  --color-accent-dark: #059669;

  --color-bg-dark: #0f0f1a;
  --color-bg-dark-2: #13131f;
  --color-bg-light: #f8f9ff;
  --color-bg-white: #ffffff;

  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-light: #f1f5f9;
  --color-text-light-muted: #94a3b8;

  --color-border: rgba(99, 102, 241, 0.15);
  --color-border-light: #e2e8f0;

  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-hero: linear-gradient(160deg, #0f0f1a 0%, #1a1030 60%, #0f0f1a 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 40px rgba(99, 102, 241, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --nav-height: 68px;
  --container-max: 1180px;
  --section-pad: 100px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--color-text-light);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-label-light {
  color: var(--color-secondary);
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.text-light { color: var(--color-text-light); }
.text-light-sub { color: var(--color-text-light-muted); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.badge-live {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

.badge-soon {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }

.nav-cta { margin-left: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  background: rgba(15, 15, 26, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  padding: 20px 24px 28px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu a:hover { color: white; }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  bottom: -50px;
  right: -80px;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

.hero-headline {
  color: white;
  margin-bottom: 22px;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* ── Connector Picker ── */
.connector-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  backdrop-filter: blur(12px);
}

.picker-select-wrap {
  flex: 1;
  min-width: 0;
}

.picker-select-wrap label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.custom-select-wrap {
  position: relative;
}

.custom-select {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: 12px 40px 12px 16px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.custom-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
}

.custom-select option {
  background: #1a1030;
  color: white;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* ── Flow Visual ── */
.picker-flow-visual {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  flex-shrink: 0;
}

.flow-source-node,
.flow-dest-node {
  background: rgba(99, 102, 241, 0.12);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.4s ease;
  white-space: nowrap;
}

.flow-source-node.active,
.flow-dest-node.active {
  border-color: var(--color-primary);
  color: white;
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.flow-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-line {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 48px;
}

.flow-dot {
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.2;
}

.flow-active .flow-dot {
  animation: flow-pulse 1.5s ease infinite;
}

.flow-dot-1 { animation-delay: 0s; }
.flow-dot-2 { animation-delay: 0.2s; }
.flow-dot-3 { animation-delay: 0.4s; }
.flow-dot-4 { animation-delay: 0.1s; }
.flow-dot-5 { animation-delay: 0.3s; }
.flow-dot-6 { animation-delay: 0.5s; }

@keyframes flow-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.flow-ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: all 0.4s ease;
}

.flow-active .flow-ai-badge {
  border-color: var(--color-primary);
  color: white;
  background: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.flow-ai-badge svg { width: 18px; height: 18px; }

/* ── Pair CTA ── */
.pair-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pair-cta.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

#pairCtaText {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.pair-count {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  min-height: 20px;
}
.pair-count a {
  color: #c7d2fe;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(199, 210, 254, 0.4);
  transition: text-decoration-color 0.18s;
}
.pair-count a:hover { text-decoration-color: #c7d2fe; }

/* ============================================================
   DEMO
   ============================================================ */
#demo {
  padding: 60px 0 var(--section-pad);
  background: var(--color-bg-light);
}

.demo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-dark);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 100px rgba(99, 102, 241, 0.2);
}

.demo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  z-index: 1;
}

.demo-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 2;
}

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: play-pulse 2.5s ease infinite;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 48px rgba(99, 102, 241, 0.7);
  animation: none;
}

.play-btn svg { width: 32px; height: 32px; margin-left: 4px; }

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5); }
  50% { box-shadow: 0 8px 48px rgba(99, 102, 241, 0.7), 0 0 0 16px rgba(99, 102, 241, 0.08); }
}

.demo-caption {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.demo-code-bg {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 0;
  opacity: 0.15;
}

.demo-code-line {
  height: 10px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.6) 0%, transparent 100%);
  border-radius: 4px;
  width: var(--w);
}

/* ============================================================
   INTEGRATIONS
   ============================================================ */
#integrations {
  padding: var(--section-pad) 0;
  background: var(--color-bg-white);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  background: var(--color-bg-white);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.integration-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
}

.integration-card.live:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.12);
}

.integration-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border-radius: 14px;
  padding: 10px;
}
.integration-icon svg { width: 32px; height: 32px; }

.integration-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ============================================================
   MIGRATION PAIRS
   ============================================================ */
#pairs {
  padding: var(--section-pad) 0;
  background: var(--color-bg-light);
}

.pairs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pair-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border: 1.5px solid var(--color-border-light);
  border-radius: 100px;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.pair-chip:hover {
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.pair-chip:hover .pair-arrow {
  color: var(--color-primary);
  transform: translateX(2px);
}

.pair-source { color: var(--color-text-primary); }

.pair-arrow {
  color: var(--color-text-secondary);
  transition: color 0.2s, transform 0.2s;
  font-size: 1rem;
}

.pair-dest { color: var(--color-primary); }

.pair-tooltip {
  position: fixed;
  background: var(--color-bg-dark);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 999;
  white-space: nowrap;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.pair-tooltip.visible { opacity: 1; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how-it-works {
  padding: var(--section-pad) 0;
  background: var(--color-bg-white);
}

.steps-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 20px;
}

.steps-track {
  position: absolute;
  top: 52px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.25;
  z-index: 0;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step.animated {
  opacity: 1;
  transform: translateY(0);
}

.step[data-step="1"] { transition-delay: 0s; }
.step[data-step="2"] { transition-delay: 0.15s; }
.step[data-step="3"] { transition-delay: 0.3s; }
.step[data-step="4"] { transition-delay: 0.45s; }

.step-number {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}

.step-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: white;
}

.step-body h3 {
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.step-body p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================================
   FEATURES
   ============================================================ */
#features {
  padding: var(--section-pad) 0;
  background: var(--color-bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: white;
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.08);
  border: 1.5px solid rgba(99, 102, 241, 0.15);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.2s, border-color 0.2s;
}

.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--color-text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================================
   ARCHITECTURE
   ============================================================ */
#architecture {
  padding: var(--section-pad) 0;
  background: var(--color-bg-dark);
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.arch-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.arch-col-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.arch-col-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arch-col-icon svg { width: 20px; height: 20px; color: white; }

.arch-col h3 {
  font-size: 1.05rem;
  color: white;
  font-weight: 700;
}

.arch-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.arch-list li {
  display: flex;
  gap: 14px;
}

.arch-dot {
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.arch-list li div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.arch-list li strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.arch-list li span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* ── Code Preview ── */
.code-preview {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

.code-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-dots { display: flex; gap: 7px; }
.code-dot-red { width: 12px; height: 12px; background: #ff5f57; border-radius: 50%; }
.code-dot-yellow { width: 12px; height: 12px; background: #febc2e; border-radius: 50%; }
.code-dot-green { width: 12px; height: 12px; background: #28c840; border-radius: 50%; }

.code-filename {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.35);
  margin-left: 4px;
}

.code-body {
  padding: 24px 28px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
}

.code-body code { white-space: pre; display: block; }

.ct-bracket { color: rgba(255, 255, 255, 0.5); }
.ct-key { color: #7dd3fc; }
.ct-str { color: #86efac; }
.ct-str.ct-green { color: #34d399; }
.ct-str.ct-yellow { color: #fbbf24; }
.ct-str.ct-orange { color: #fb923c; }
.ct-punct { color: rgba(255, 255, 255, 0.35); }

/* ============================================================
   STATS
   ============================================================ */
#stats {
  padding: var(--section-pad) 0;
  background: var(--color-bg-white);
}

.stats-eyebrow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 36px 28px;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: white;
  box-shadow: var(--shadow-card-hover);
}

.stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.stat-icon svg { width: 24px; height: 24px; color: var(--color-primary); }

.stat-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* ============================================================
   CTA
   ============================================================ */
#cta {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.cta-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  left: -100px;
  top: -100px;
}
.cta-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  right: -80px;
  bottom: -80px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

#cta h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.cta-form { max-width: 480px; margin: 0 auto; }

.cta-input-wrap {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  transition: border-color 0.2s;
}

.cta-input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.cta-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 0.95rem;
  min-width: 0;
}

.cta-input-wrap input::placeholder { color: rgba(255, 255, 255, 0.3); }

.cta-fine {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--color-bg-dark-2);
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.footer-inner {
  display: flex;
  gap: 60px;
  padding: 60px 24px 48px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.footer-logo { margin-bottom: 12px; }
.footer-logo span { color: white; }

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-left: auto;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  font-size: 0.7rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--color-bg-dark);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: white; }

.modal-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.modal-card h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.modal-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: white;
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .integrations-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: 1fr; gap: 16px; }

  .steps-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .steps-track { display: none; }

  .connector-picker { flex-direction: column; align-items: stretch; gap: 20px; }
  .picker-flow-visual { justify-content: center; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }

  .steps-timeline { grid-template-columns: 1fr; gap: 32px; }

  .pairs-grid { gap: 8px; }
  .pair-chip { font-size: 0.875rem; padding: 10px 16px; }

  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-brand { max-width: 100%; }
  .footer-links { gap: 36px; }

  .cta-input-wrap { flex-direction: column; padding: 12px 16px; }
  .cta-input-wrap .btn { justify-content: center; }

  .connector-picker { padding: 20px; }
  .picker-flow-visual { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .modal-card { padding: 36px 24px; }
  .toast { right: 16px; bottom: 16px; left: 16px; }
}

/* ============================================================
   CUSTOM DROPDOWN (replaces native select rendering)
   ============================================================ */
.cs-enhanced .custom-select,
.cs-enhanced > .select-arrow {
  display: none;
}
.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.cs-trigger:hover { background: rgba(255, 255, 255, 0.09); }
.cs-trigger:focus-visible,
.cs-open .cs-trigger {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.10);
}
.cs-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-value.cs-placeholder { color: rgba(255, 255, 255, 0.45); font-weight: 500; }
.cs-arrow {
  width: 10px; height: 6px; flex: none;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease;
}
.cs-open .cs-arrow { transform: rotate(180deg); }

.cs-badge {
  width: 24px; height: 24px; flex: none;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800;
  color: white;
}

.cs-panel {
  /* Lives on <body>: the picker's backdrop-filter would otherwise make it
     the containing block for position:fixed, and #hero would clip it. */
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: max-content;
  max-width: min(320px, 84vw);
  background: #17102e;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.cs-panel.cs-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.cs-options { max-height: 264px; overflow-y: auto; padding: 6px; }
.cs-options::-webkit-scrollbar { width: 8px; }
.cs-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14); border-radius: 4px;
}

.cs-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.94rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}
.cs-option:hover,
.cs-option.cs-active { background: rgba(99, 102, 241, 0.18); color: white; }
.cs-option[aria-selected="true"] { color: white; }
.cs-option[aria-disabled="true"] {
  opacity: 0.32; cursor: not-allowed; background: none;
}
.cs-option-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-check { width: 14px; height: 11px; flex: none; opacity: 0; color: var(--color-primary-light, #a5b4fc); }
.cs-option[aria-selected="true"] .cs-check { opacity: 1; }

.cs-more {
  display: flex; align-items: baseline; gap: 6px;
  white-space: nowrap;
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(99, 102, 241, 0.07);
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.15s, background 0.15s;
}
.cs-more:hover { color: white; background: rgba(99, 102, 241, 0.14); }
.cs-more strong { color: #a5b4fc; font-weight: 700; }

@media (max-width: 640px) {
  .cs-options { max-height: 220px; }
}

/* ============================================================
   CTA ACTIONS + CONTACT
   ============================================================ */
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

#contact {
  padding: var(--section-pad) 0;
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-inner {
  text-align: center;
}
#contact h2 {
  color: white;
  margin-bottom: 14px;
}
.contact-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border-radius: var(--radius-lg, 14px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.contact-card:hover {
  background: rgba(99, 102, 241, 0.09);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}
.contact-icon {
  font-size: 1.15rem;
  color: #a5b4fc;
  margin-bottom: 6px;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  word-break: break-word;
}
.contact-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.contact-address {
  margin-top: 36px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
}
.contact-address strong {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* ============================================================
   PAIR CHIPS AS LINKS
   The chips now point at the per-pair coverage pages, so they
   need the anchor defaults stripped back to the chip's own look.
   ============================================================ */
a.pair-chip {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   FAQ
   Answers live in the markup, not behind JS — an answer engine
   that never runs the toggle still reads every one of them.
   ============================================================ */
#faq {
  padding: var(--section-pad) 0;
  background: var(--color-bg-light);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border-light);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover h3 { color: var(--color-primary-dark); }

.faq-item h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  transition: color 0.18s;
}

.faq-chevron {
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.65;
  transition: transform 0.22s ease, opacity 0.18s;
}
.faq-item[open] .faq-chevron {
  transform: rotate(-135deg) translate(-3px, -3px);
  opacity: 1;
}

.faq-answer {
  padding: 0 44px 24px 4px;
}
.faq-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--color-text-secondary);
}

.faq-more {
  max-width: 760px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.faq-more a,
#faq .section-sub a {
  color: var(--color-primary-dark);
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(99, 102, 241, 0.4);
}
.faq-more a:hover,
#faq .section-sub a:hover { text-decoration-color: var(--color-primary); }

@media (max-width: 640px) {
  .faq-item summary { padding: 19px 2px; gap: 14px; }
  .faq-item h3 { font-size: 1rem; }
  .faq-answer { padding: 0 30px 20px 2px; }
}
