/* ============================================================
   CloudVein - Landing Sections Dark Mode
   Triggered by: html.dark (set by Vue app toggle)
   Unified palette: only two backgrounds
     section/page = #0f172a   card = #1e293b
   ============================================================ */

/* ── CSS variable overrides ──────────────────────────────── */
html.dark {
  --text-dark:    #f1f5f9;
  --text-gray:    #94a3b8;
  --text-light:   #64748b;
  --bg-page:      #0f172a;
  --bg-card:      #1e293b;
  --border-light: #334155;
  --border-accent:#134e4a;
}

/* ── ALL section-level backgrounds → unified #0f172a ───── */
html.dark .top-banner,
html.dark .stats-section,
html.dark .features-section,
html.dark .container,
html.dark .integration-section,
html.dark .redefine-section,
html.dark .comparison-section,
html.dark .vision-section,
html.dark .consulting-section,
html.dark .steps-section,
html.dark .code-demo-section,
html.dark .footer {
  background: #0f172a;
}

/* ── ALL card-level backgrounds → unified #1e293b ──────── */
html.dark .stat-card,
html.dark .feature-card,
html.dark .integration-card,
html.dark .redefine-card,
html.dark .comparison-card,
html.dark .comparison-card.is-featured,
html.dark .consulting-card,
html.dark .step-card,
html.dark .footer-tag,
html.dark .card-diagram,
html.dark .diagram-node,
html.dark .diagram-gateway,
html.dark .diagram-target {
  background: #1e293b;
  border-color: #334155;
}

/* ── Borders / dividers ─────────────────────────────────── */
html.dark .top-banner {
  border-bottom-color: #334155;
}

html.dark .bottom-features {
  border-top-color: #334155;
}

html.dark .footer {
  border-top-color: #334155;
}

html.dark .footer-bottom {
  border-top-color: #334155;
}

/* Featured comparison card: distinguish via border, not background */
html.dark .comparison-card.is-featured {
  border-color: var(--primary);
}

/* ── Secondary elements ─────────────────────────────────── */
html.dark .btn-secondary {
  color: #94a3b8;
  border-color: #334155;
}

html.dark .comparison-mark.negative {
  color: #475569;
}

html.dark .card-number {
  color: #475569;
}

html.dark .card-icon {
  background: rgba(20, 184, 166, 0.15) !important;
  color: var(--primary) !important;
}

html.dark .diagram-node {
  border-color: #2d4a60;
  color: #7dbfb8;
}

html.dark .diagram-gateway {
  border-color: #1a5550;
}

html.dark .footer-tag {
  color: #64748b;
}

/* ── Unified icon backgrounds ──────────────────────────── */
html.dark .integration-icon.purple,
html.dark .integration-icon.cyan,
html.dark .integration-icon.orange,
html.dark .redefine-icon,
html.dark .consulting-icon {
  background: rgba(20, 184, 166, 0.15);
}

/* ── Buttons ────────────────────────────────────────────── */
html.dark .btn-outline {
  background: transparent;
  color: #f1f5f9;
  border-color: #334155;
}

html.dark .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Code demo block (code editor, intentionally darker) ── */
html.dark .code-demo-block {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.40);
}

/* ── Unified hover states ───────────────────────────────── */
html.dark .stat-card:hover,
html.dark .feature-card:hover,
html.dark .integration-card:hover,
html.dark .redefine-card:hover,
html.dark .comparison-card:hover,
html.dark .consulting-card:hover,
html.dark .step-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.12);
  transform: translateY(-2px);
}
