/* ==========================================================================
   REVOPS BENTO DESIGN SYSTEM (ai-rop.ru) — ДВУСТОРОННЯЯ СИСТЕМА ТЕМ
   Светлая тема (чистый FinTech Slate #f8fafc / #ffffff) — по умолчанию.
   Тёмная тема (глубокий обсидиановый #09090b) включается через data-theme="dark"
   (переключатель в шапке, синхронизируется с ЛК через revops-store).
   ========================================================================== */

:root {
  --bg-void: #090714;
  --bg-canvas: #090714;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.075);
  --bg-card-featured: linear-gradient(145deg, rgba(168, 85, 247, 0.18), rgba(56, 189, 248, 0.08));
  --bg-glass: rgba(255, 255, 255, 0.05);
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-subtle-hover: rgba(192, 132, 252, 0.48);
  --border-glow-p50: linear-gradient(135deg, rgba(192, 132, 252, 0.55), rgba(56, 189, 248, 0.35), rgba(168, 85, 247, 0.55));
  
  /* Spatial Aurora Accent Palette (Arc / Framer) */
  --accent-purple: #c084fc;
  --accent-purple-deep: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.35);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.28);
  --accent-emerald: #34d399;
  --accent-rose: #f472b6;
  --accent-amber: #fbbf24;
  
  --text-primary: #faf5ff;
  --text-secondary: #d8cef0;
  --text-muted: #a79bc8;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Body & Layout Overrides */

html[data-theme="dark"] {
  background-color: var(--bg-void) !important;
  color-scheme: dark;
}
html[data-theme="dark"] body,
html[data-theme="dark"] body {
  background-color: var(--bg-void) !important;
  color: var(--text-primary) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Smooth Spatial Aurora Background (no distracting dot grid) */

html[data-theme="dark"] .bg-dot-pattern {
  background-image: none !important;
}


/* Sections Background Harmonization */

html[data-theme="dark"] section.bg-white,
html[data-theme="dark"] div.bg-white,
html[data-theme="dark"] header.bg-white:not(:has(#theme-toggle)),
html[data-theme="dark"] header.bg-white\/95:not(:has(#theme-toggle)) {
  background-color: var(--bg-void) !important;
}
html[data-theme="dark"] section.bg-slate-50,
html[data-theme="dark"] section.bg-slate-50\/80,
html[data-theme="dark"] section.bg-slate-100 {
  background-color: var(--bg-canvas) !important;
  border-color: var(--border-subtle) !important;
}


/* Fixed Header in Deep Frosted Dark Glass (Linear / Vercel style) */

html[data-theme="dark"] header:not(:has(#theme-toggle)) {
  background: rgba(9, 9, 11, 0.78) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}


/* Bento Cards & Glass Panels (Arc / Framer Spatial Aurora Glass) */

html[data-theme="dark"] .bento-card,
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .rounded-3xl.bg-slate-50,
html[data-theme="dark"] .rounded-2xl.bg-slate-50,
html[data-theme="dark"] .rounded-3xl.bg-white,
html[data-theme="dark"] .rounded-2xl.bg-white {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 24px 60px -24px rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  transition: border-color 0.22s var(--ease-smooth), background-color 0.22s var(--ease-smooth), transform 0.22s var(--ease-spring) !important;
}
html[data-theme="dark"] .bento-card:hover,
html[data-theme="dark"] .glass-card:hover,
html[data-theme="dark"] .rounded-3xl.bg-slate-50:hover,
html[data-theme="dark"] .rounded-2xl.bg-slate-50:hover,
html[data-theme="dark"] .rounded-3xl.bg-white:hover,
html[data-theme="dark"] .rounded-2xl.bg-white:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-subtle-hover) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 28px 64px -22px rgba(168, 85, 247, 0.25) !important;
  transform: translateY(-2px) !important;
}
html[data-theme="dark"] .glass-panel {
  background: rgba(10, 12, 16, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6) !important;
}


/* Featured / Highlighted Tier Cards (Comparison & Pricing) */

html[data-theme="dark"] .bg-violet-100\/50,
html[data-theme="dark"] .bg-violet-50\/70,
html[data-theme="dark"] .bg-violet-100\/70 {
  background: var(--bg-card-featured) !important;
  border-color: #5932c4 !important;
  box-shadow: 0 0 35px rgba(89, 50, 196, 0.35), 0 12px 32px -4px rgba(0, 0, 0, 0.5) !important;
}


/* Typography Overrides */

html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800 {
  color: var(--text-primary) !important;
}
html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-600 {
  color: var(--text-secondary) !important;
}
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-slate-400 {
  color: var(--text-muted) !important;
}


/* High-Contrast Violet Glowing Text */

html[data-theme="dark"] .text-violet-600,
html[data-theme="dark"] .text-violet-700 {
  color: #a78bfa !important;
}
html[data-theme="dark"] .text-violet-800,
html[data-theme="dark"] .text-violet-900,
html[data-theme="dark"] .text-violet-950 {
  color: #c4b5fd !important;
}


/* Borders */

html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-300,
html[data-theme="dark"] .border-slate-800 {
  border-color: var(--border-subtle) !important;
}
html[data-theme="dark"] .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html[data-theme="dark"] .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--border-subtle) !important;
}


/* Badges & Chip Components */

html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .bg-slate-200 {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--border-subtle) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .bg-violet-50,
html[data-theme="dark"] .bg-violet-50\/50,
html[data-theme="dark"] .bg-violet-50\/80,
html[data-theme="dark"] .bg-violet-50\/90 {
  background-color: rgba(89, 50, 196, 0.15) !important;
  border-color: rgba(89, 50, 196, 0.35) !important;
  color: #c4b5fd !important;
}
html[data-theme="dark"] .bg-sky-50 {
  background-color: rgba(155, 123, 255, 0.12) !important;
  border-color: rgba(155, 123, 255, 0.3) !important;
  color: #38bdf8 !important;
}
html[data-theme="dark"] .bg-purple-50 {
  background-color: rgba(168, 85, 247, 0.12) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
  color: #c084fc !important;
}
html[data-theme="dark"] .bg-red-50,
html[data-theme="dark"] .bg-red-50\/20,
html[data-theme="dark"] .bg-red-50\/50,
html[data-theme="dark"] .bg-red-100 {
  background-color: rgba(244, 63, 94, 0.12) !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
}
html[data-theme="dark"] .text-red-600,
html[data-theme="dark"] .text-red-700 {
  color: #fb7185 !important;
}
html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-50\/15,
html[data-theme="dark"] .bg-amber-50\/70,
html[data-theme="dark"] .bg-amber-100 {
  background-color: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
html[data-theme="dark"] .text-amber-700,
html[data-theme="dark"] .text-amber-800 {
  color: #fbbf24 !important;
}
html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-emerald-50\/10,
html[data-theme="dark"] .bg-emerald-100 {
  background-color: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}
html[data-theme="dark"] .text-emerald-700,
html[data-theme="dark"] .text-emerald-800,
html[data-theme="dark"] .text-emerald-600 {
  color: #34d399 !important;
}


/* Primary Neon Buttons */

html[data-theme="dark"] .bg-violet-500 {
  background: linear-gradient(135deg, #5932c4 0%, #6038f7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 24px rgba(89, 50, 196, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] .bg-violet-500:hover,
html[data-theme="dark"] .hover\:bg-violet-400:hover {
  background: linear-gradient(135deg, #8466ff 0%, #714af9 100%) !important;
  box-shadow: 0 0 36px rgba(89, 50, 196, 0.65) !important;
}


/* Form Inputs & Interactive Controls */

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: rgba(14, 17, 24, 0.95) !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0.75rem !important;
}
html[data-theme="dark"] input[type="text"]:focus,
html[data-theme="dark"] input[type="tel"]:focus,
html[data-theme="dark"] input[type="email"]:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: #5932c4 !important;
  box-shadow: 0 0 0 3px rgba(89, 50, 196, 0.3) !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #64748b !important;
}


/* Range Sliders with Cyber Glow */

html[data-theme="dark"] input[type=range] {
  background: #181c28 !important;
}
html[data-theme="dark"] input[type=range]::-webkit-slider-runnable-track {
  background: #181c28 !important;
}
html[data-theme="dark"] input[type=range]::-webkit-slider-thumb {
  background: #5932c4 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 16px rgba(89, 50, 196, 0.8) !important;
}
html[data-theme="dark"] input[type=range]::-moz-range-track {
  background: #181c28 !important;
}
html[data-theme="dark"] input[type=range]::-moz-range-thumb {
  background: #5932c4 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 16px rgba(89, 50, 196, 0.8) !important;
}


/* Audio Player Waveform in Cyber Cyan / Violet */

html[data-theme="dark"] .wave-bar {
  background: linear-gradient(180deg, #00d4ff 0%, #5932c4 100%) !important;
  border-radius: 9999px !important;
}


/* FAQ Accordion Details / Summary */

html[data-theme="dark"] details {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 1rem !important;
  transition: all 0.25s ease !important;
}
html[data-theme="dark"] details:hover {
  border-color: rgba(89, 50, 196, 0.35) !important;
}
html[data-theme="dark"] details[open] {
  border-color: rgba(89, 50, 196, 0.5) !important;
  box-shadow: 0 8px 24px -2px rgba(89, 50, 196, 0.15) !important;
}


/* CTA Bottom Section */

html[data-theme="dark"] #cta {
  background: radial-gradient(circle at 50% 0%, rgba(89, 50, 196, 0.24) 0%, rgba(6, 7, 10, 1) 75%) !important;
  border-top: 1px solid var(--border-subtle) !important;
}


/* Custom Scrollbar */

html[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #06070a !important;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(89, 50, 196, 0.5) !important;
}


/* Glow Utilities */

html[data-theme="dark"] .glow-emerald {
  box-shadow: 0 0 40px -5px rgba(89, 50, 196, 0.35) !important;
}
html[data-theme="dark"] .glow-cyan {
  box-shadow: 0 0 40px -5px rgba(155, 123, 255, 0.35) !important;
}
html[data-theme="dark"] .glow-rose {
  box-shadow: 0 0 40px -5px rgba(244, 63, 94, 0.35) !important;
}
/* ==========================================================================
   UI / UX CONTRAST & BUTTON POLISH (HIGH READABILITY GUARDS)
   ========================================================================== */

/* Secondary ghost buttons (Hero & modals) in Obsidian Dark Mode */
html[data-theme="dark"] a.bg-white,
html[data-theme="dark"] button.bg-white:not(.track-btn):not([class*="niche-btn"]) {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fafafa !important;
}
html[data-theme="dark"] a.bg-white:hover,
html[data-theme="dark"] button.bg-white:not(.track-btn):not([class*="niche-btn"]):hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
html[data-theme="dark"] a.bg-white span,
html[data-theme="dark"] button.bg-white:not(.track-btn):not([class*="niche-btn"]) span {
  color: #fafafa !important;
}
html[data-theme="dark"] a.bg-white i,
html[data-theme="dark"] button.bg-white i {
  color: #a78bfa !important;
}

/* Audio Demo Unselected Track Tabs & Niche Tabs */
html[data-theme="dark"] .track-btn:not(.active),
html[data-theme="dark"] .niche-btn:not(.active) {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}
html[data-theme="dark"] .track-btn:not(.active):hover,
html[data-theme="dark"] .niche-btn:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
}

/* Audio Player Progress Container & Dialogue Speech Bubbles */
html[data-theme="dark"] #progressContainer {
  background-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] .rounded-xl.bg-slate-50 {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Pain Points / Revenue Leak Cards (Spatial Aurora Glass) */
html[data-theme="dark"] #pain-points .bento-card {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 20px 50px -22px rgba(0, 0, 0, 0.75) !important;
}
html[data-theme="dark"] #pain-points .bento-card:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(244, 114, 182, 0.45) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18), 0 24px 56px -20px rgba(244, 63, 94, 0.25) !important;
  transform: translateY(-2px) !important;
}
html[data-theme="dark"] #pain-points .font-mono.text-red-500,
html[data-theme="dark"] #pain-points .font-mono.text-red-600 {
  color: #fb7185 !important;
  white-space: nowrap !important;
  letter-spacing: -0.02em !important;
}

/* Solution Framework (4 Pillars) Spatial Aurora Glass */
html[data-theme="dark"] #solution-framework .glass-card {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 20px 50px -22px rgba(0, 0, 0, 0.75) !important;
}
html[data-theme="dark"] #solution-framework .glass-card:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(192, 132, 252, 0.48) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 24px 56px -20px rgba(168, 85, 247, 0.25) !important;
  transform: translateY(-2px) !important;
}
html[data-theme="dark"] #solution-framework .w-12.h-12 {
  background: rgba(168, 85, 247, 0.16) !important;
  border: 1px solid rgba(192, 132, 252, 0.35) !important;
  color: #e9d5ff !important;
}
html[data-theme="dark"] #solution-framework .w-12.h-12.bg-red-50 {
  background: rgba(244, 63, 94, 0.14) !important;
  border: 1px solid rgba(244, 114, 182, 0.35) !important;
  color: #fda4af !important;
}

/* Spatial Glass Secondary CTA Buttons */
html[data-theme="dark"] a.bg-slate-900,
html[data-theme="dark"] button.bg-slate-900 {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #faf5ff !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] a.bg-slate-900:hover,
html[data-theme="dark"] button.bg-slate-900:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(192, 132, 252, 0.42) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.16) !important;
}

/* Form Unselected Tariff Buttons */
html[data-theme="dark"] button[id^="tariffBtn_"]:not([class*="border-violet-500"]) {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--border-subtle) !important;
  color: #cbd5e1 !important;
}
