/* ============================================
   INSIGHT PIPE — Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-400: #60a5fa;
  --deep-slate: #151e2e;
  --slate-950: #020617;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --bg: #ffffff;
  --muted-bg: #f8fafc;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;

  /* Typography */
  --font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tracking-tight: -0.02em;
  --line-height-body: 1.625;

  /* Spacing */
  --section-gap: 128px;
  --grid-unit: 40px;
  --container-max: 1152px;

  /* Borders & Radius */
  --radius-card: 12px;
  --radius-btn: 8px;
  --border-color: #e2e8f0;
  --border: 1px solid var(--border-color);

  /* Transitions */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav */
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--slate-600);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-950);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}

h1 {
  font-size: 72px;
  font-weight: 800;
}

h2 {
  font-size: 48px;
  font-weight: 700;
}

h3 {
  font-size: 24px;
  font-weight: 700;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

p {
  color: var(--slate-500);
  line-height: var(--line-height-body);
}

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

.section {
  padding: var(--section-gap) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--slate-500);
  max-width: 640px;
  margin: 0 auto 56px;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all 0.25s var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg);
  color: var(--slate-700);
  border: var(--border);
}

.btn-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--slate-950);
  color: #fff;
}

.btn-dark:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

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

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-section.visible .stagger-child {
  animation: fadeInUp 0.6s ease-out both;
}
.fade-section.visible .stagger-child:nth-child(1) { animation-delay: 0s; }
.fade-section.visible .stagger-child:nth-child(2) { animation-delay: 0.1s; }
.fade-section.visible .stagger-child:nth-child(3) { animation-delay: 0.2s; }
.fade-section.visible .stagger-child:nth-child(4) { animation-delay: 0.3s; }
.fade-section.visible .stagger-child:nth-child(5) { animation-delay: 0.4s; }
.fade-section.visible .stagger-child:nth-child(6) { animation-delay: 0.5s; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border);
  transition: background 0.3s var(--transition-smooth);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-950);
  letter-spacing: var(--tracking-tight);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--slate-950);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all 0.3s var(--transition-smooth);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding-top: calc(var(--nav-height) + 128px);
  padding-bottom: var(--section-gap);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--slate-200) 1px, transparent 1px),
    linear-gradient(to bottom, var(--slate-200) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-light);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 32px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: var(--line-height-body);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   SCHEME / ARCHITECTURE SECTION
   ============================================ */
.scheme {
  background: var(--muted-bg);
}

.scheme-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.scheme-sources {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scheme-source-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
  transition: all 0.25s var(--transition-smooth);
}

.scheme-source-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.scheme-source-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scheme-source-icon svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.scheme-center {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.scheme-flow-svg {
  width: 100px;
  height: 100%;
  flex-shrink: 0;
}

.scheme-api-box {
  padding: 24px 32px;
  background: var(--primary);
  border-radius: var(--radius-card);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}

.scheme-api-box h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 4px;
}

.scheme-api-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.scheme-output {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scheme-output-preview {
  background: var(--deep-slate);
  border-radius: var(--radius-card);
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  color: var(--primary-400);
  line-height: 1.6;
  overflow-x: auto;
}

.scheme-output-preview .json-key {
  color: var(--primary-400);
}

.scheme-output-preview .json-string {
  color: #34d399;
}

.scheme-output-preview .json-number {
  color: #fbbf24;
}

.scheme-output-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  text-align: center;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  background: var(--slate-950);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background:
    radial-gradient(circle, transparent 80px, rgba(255,255,255,0.03) 81px, transparent 82px),
    radial-gradient(circle, transparent 160px, rgba(255,255,255,0.03) 161px, transparent 162px),
    radial-gradient(circle, transparent 240px, rgba(255,255,255,0.03) 241px, transparent 242px),
    radial-gradient(circle, transparent 320px, rgba(255,255,255,0.04) 321px, transparent 322px);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.kpi-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary-400);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
}

/* ============================================
   DATA EXAMPLES SECTION
   ============================================ */
.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.data-card {
  padding: 32px;
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius-card);
  transition: all 0.35s var(--transition-smooth);
}

.data-card:hover {
  background: var(--bg);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
  border-color: var(--slate-300);
  transform: translateY(-2px);
}

.data-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.data-card-icon svg {
  width: 24px;
  height: 24px;
}

.data-card-icon.blue { background: var(--primary-light); color: var(--primary); }
.data-card-icon.emerald { background: #ecfdf5; color: #059669; }
.data-card-icon.amber { background: #fffbeb; color: #d97706; }
.data-card-icon.purple { background: #f5f3ff; color: #7c3aed; }
.data-card-icon.rose { background: #fff1f2; color: #e11d48; }
.data-card-icon.teal { background: #f0fdfa; color: #0d9488; }

.data-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.data-card-count {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 8px;
}

.data-card p {
  font-size: 14px;
  color: var(--slate-500);
}

/* ============================================
   DATASOURCE CLOUD SECTION
   ============================================ */
.cloud {
  background: var(--muted-bg);
}

.cloud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.cloud-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg);
  border: var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-600);
  transition: all 0.25s var(--transition-smooth);
  white-space: nowrap;
}

.cloud-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.cloud-tag svg {
  width: 14px;
  height: 14px;
  color: var(--slate-400);
}

.cloud-tag:hover svg {
  color: var(--primary);
}

/* ============================================
   API DOCS PREVIEW SECTION
   ============================================ */
.api-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.api-preview-text .section-label {
  margin-bottom: 16px;
}

.api-preview-text h2 {
  margin-bottom: 20px;
}

.api-preview-text p {
  margin-bottom: 24px;
  font-size: 16px;
}

.api-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.api-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--slate-600);
}

.api-feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.api-preview-card {
  background: var(--deep-slate);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.api-preview-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.api-preview-card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.api-preview-card-dot:nth-child(1) { background: #ef4444; }
.api-preview-card-dot:nth-child(2) { background: #eab308; }
.api-preview-card-dot:nth-child(3) { background: #22c55e; }

.api-preview-card-url {
  margin-left: 12px;
  font-size: 12px;
  font-family: monospace;
  color: var(--slate-400);
}

.api-preview-card-body {
  padding: 24px;
}

.api-endpoint {
  margin-bottom: 20px;
}

.api-method {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  margin-right: 8px;
}

.api-method.get { background: #dcfce7; color: #166534; }
.api-method.post { background: #dbeafe; color: #1e40af; }

.api-path {
  font-size: 13px;
  font-family: monospace;
  color: var(--slate-300);
}

.api-desc {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 4px;
  padding-left: 4px;
}

/* ============================================
   USAGE EXAMPLE SECTION
   ============================================ */
.usage {
  background: var(--muted-bg);
}

.usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.usage-text h2 {
  margin-bottom: 20px;
}

.usage-text p {
  font-size: 16px;
  margin-bottom: 16px;
}

.code-block {
  background: var(--deep-slate);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-400);
  font-family: monospace;
}

.code-block-copy {
  font-size: 12px;
  color: var(--slate-500);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
}

.code-block-copy:hover {
  color: var(--primary-400);
}

.code-block pre {
  padding: 24px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-300);
  tab-size: 2;
}

.code-block .token-comment { color: var(--slate-500); }
.code-block .token-string { color: #34d399; }
.code-block .token-command { color: var(--primary-400); }
.code-block .token-flag { color: #fbbf24; }
.code-block .token-url { color: #f472b6; }
.code-block .token-key { color: var(--primary-400); }
.code-block .token-number { color: #fbbf24; }

/* ============================================
   CLIENTS CAROUSEL SECTION
   ============================================ */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 24px;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.carousel-track {
  display: flex;
  gap: 24px;
  animation: scroll-carousel 30s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-card {
  flex-shrink: 0;
  width: 340px;
  padding: 32px;
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius-card);
  transition: all 0.3s var(--transition-smooth);
}

.client-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--slate-300);
}

.client-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.client-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.client-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.client-info span {
  font-size: 13px;
  color: var(--slate-400);
}

.client-card-quote {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
  font-style: italic;
}

.client-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.client-stars svg {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  fill: #fbbf24;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  background: var(--muted-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--transition-smooth);
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-950);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 32px;
}

.pricing-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--slate-950);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.pricing-amount .currency {
  font-size: 28px;
  font-weight: 700;
  vertical-align: top;
  margin-right: 2px;
}

.pricing-period {
  font-size: 15px;
  color: var(--slate-400);
  margin-left: 4px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--slate-600);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--slate-950);
  color: var(--slate-400);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--slate-400);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--slate-500);
}

.footer-location svg {
  width: 16px;
  height: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--slate-400);
  transition: all 0.2s var(--transition-smooth);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-column a {
  font-size: 14px;
  color: var(--slate-400);
  transition: color 0.2s var(--transition-smooth);
}

.footer-column a:hover {
  color: var(--slate-200);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-400);
}

.footer-status .status-dot {
  width: 8px;
  height: 8px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 4px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  .section { padding: 96px 0; }
  .section-subtitle { margin-bottom: 40px; }
  
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .kpi-number { font-size: 44px; }
  
  .api-preview-grid { grid-template-columns: 1fr; gap: 40px; }
  .usage-grid { grid-template-columns: 1fr; gap: 40px; }
  .scheme-diagram { grid-template-columns: 1fr; gap: 24px; }
  
  .scheme-flow-svg { display: none; }
  .scheme-center { justify-content: center; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
  .section { padding: 64px 0; }
  .section-subtitle { font-size: 16px; margin-bottom: 32px; }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: var(--border);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta .btn {
    font-size: 13px;
    padding: 10px 16px;
  }

  /* Hero mobile */
  .hero {
    padding-top: calc(var(--nav-height) + 64px);
    padding-bottom: 64px;
  }

  .hero-subtitle { font-size: 16px; }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Stats mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .kpi-number { font-size: 36px; }

  /* Data grid mobile */
  .data-grid { grid-template-columns: 1fr; }

  /* Pricing mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .scheme-diagram {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .scheme-source-item { font-size: 12px; padding: 8px 12px; }
  
  .api-preview-grid { grid-template-columns: 1fr; gap: 32px; }
  .usage-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .data-card-count { font-size: 24px; }
  
  .carousel-wrapper::before,
  .carousel-wrapper::after { width: 40px; }
  
  .client-card { width: 280px; padding: 24px; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  
  .pricing-amount { font-size: 40px; }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .kpi-number { font-size: 30px; }
  
  .cloud-tags { gap: 8px; }
  .cloud-tag { font-size: 12px; padding: 6px 12px; }
}

/* ============================================
   MOBILE HAMBURGER ANIMATION
   ============================================ */
body.nav-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
