/* Dark-mode adaptation for the aionui product page.
   Maps aionui tokens and surfaces onto the site dark palette
   (gray-950 canvas / gray-900 surfaces, matching mybase dark classes). */
html.dark {
  --canvas: #030712;
  --ink: #f9fafb;
  --ink-70: #d1d5db;
  --ink-50: #9ca3af;
  --ink-30: #6b7280;
  --line: rgba(249, 250, 251, .08);
}

html.dark body {
  background: #030712;
}

html.dark body#app {
  background: #030712 !important;
}

/* aionui style.css sets html background via :root; keep it dark */
html.dark {
  background: #030712;
}

/* App-mockup surfaces (cron / dispatch demo frames) */
html.dark .cron-app { background: #111827; border-color: rgba(249,250,251,.1); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
html.dark .cron-app-titlebar { background: #0b0f19; border-bottom-color: rgba(249,250,251,.08); }
html.dark .cron-app-body { background: #0b0f19; }

/* Hero glow: dim the light-mode radial gradients */
html.dark .hero::before { opacity: .35; }

/* AIPC UP Top Slogan Banner Dark Theme */
html.dark .aipc-top-banner {
  background: rgba(22, 20, 34, 0.78);
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 2px 14px -2px rgba(0, 0, 0, 0.5), 0 0 12px -2px rgba(139, 92, 246, 0.15);
  color: #ede9fe;
}
html.dark .aipc-top-banner-tag {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.45);
}
html.dark .aipc-top-banner-text {
  color: #f3f0ff;
}

/* Hero Secondary Button (Docs) Dark Theme */
html.dark .btn-secondary {
  background: rgba(26, 23, 40, 0.78);
  border-color: rgba(139, 92, 246, 0.32);
  color: #e2ddf7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
html.dark .btn-secondary:hover {
  background: rgba(38, 34, 58, 0.95);
  border-color: rgba(167, 139, 250, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.25);
}

/* Wechat modal */
html.dark .wechat-modal-card { background: #111827; }
html.dark .wechat-modal-card p { color: var(--ink-50); }
html.dark .wechat-modal-close { background: rgba(249,250,251,.08); color: var(--ink-70); }

/* Scroll reveal sections keep transparent backgrounds */
html.dark .reveal { background: transparent; }

/* Remote features bar dark mode */
html.dark .rf-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
html.dark .rf-icon {
  background: rgba(147, 112, 219, 0.15);
  color: #c4b5fd;
}
html.dark .rf-title {
  color: #f3f4f6;
}
html.dark .rf-desc {
  color: #9ca3af;
}
html.dark .rd-pill-stream {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

