/* TECNOMEDIA NETWORKS Custom Design Styles */
/* Synchronized with official brand theme: #1743A6 (logoBlue), #3366FF (Primary Indigo), #14B8A6 (Brand Teal) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /*--bg-dark: #0a0f1d;*/
  --bg-dark: #2c3e50;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(51, 102, 255, 0.35);

  /* Official Brand Colors from Tecnomedia Opencode */
  --logo-blue: #1743A6;
  --indigo-50: #EEF3FF;
  --indigo-100: #DEE9FF;
  --indigo-200: #BFD2FF;
  --indigo-300: #9AB8FF;
  --indigo-400: #6E96FF;
  --indigo-500: #4379FF;
  --indigo-600: #3366FF;
  /* Primary Action Blue */
  --indigo-700: #1E4FD9;
  /* Primary Hover Blue */
  --indigo-800: #1B3FAE;
  --indigo-900: #17388B;
  --brand-teal: #14B8A6;
  /* Signature Gradient Cyan/Teal */

  --accent-blue: #3366FF;
  --accent-teal: #14B8A6;
  --accent-indigo: #1743A6;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: #f1f5f9;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background: #3366FF;
  color: #ffffff;
}

/* Glowing Ambient Orbs (Brand Indigo & Teal) */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 0.5s ease, background 0.5s ease;
}

.ambient-blue {
  background: radial-gradient(circle, rgba(51, 102, 255, 0.35) 0%, rgba(51, 102, 255, 0) 70%);
}

.ambient-purple,
.ambient-indigo {
  background: radial-gradient(circle, rgba(23, 67, 166, 0.35) 0%, rgba(23, 67, 166, 0) 70%);
}

.ambient-cyan,
.ambient-teal {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28) 0%, rgba(20, 184, 166, 0) 70%);
}

/* Glassmorphism Containers */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover:hover {
  border-color: rgba(51, 102, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(51, 102, 255, 0.2);
}

/* Gradient Text - Brand Cobalt #3366FF to Teal #14B8A6 */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, #6E96FF 55%, #14B8A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan,
.gradient-text {
  background: linear-gradient(135deg, #3366FF 0%, #14B8A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accent Glow Buttons */
.btn-glow-accent {
  background: linear-gradient(135deg, #3366FF 0%, #1E4FD9 100%);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  color: #ffffff !important;
}

.btn-glow-accent svg,
.btn-glow-accent span {
  color: #ffffff !important;
  stroke: currentColor;
}

.btn-glow-accent::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, #3366FF, #14B8A6);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.btn-glow-accent:hover::before {
  opacity: 0.85;
}

.btn-glow-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(51, 102, 255, 0.45);
}

/* Amber Glow Button (Hero Calculator Action - Amber-300) */
.btn-glow-amber {
  background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%);
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #0a0f1d !important;
}

.btn-glow-amber svg,
.btn-glow-amber span {
  color: #0a0f1d !important;
  stroke: currentColor;
}

.btn-glow-amber::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, #FEF3C7, #FCD34D);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.btn-glow-amber:hover::before {
  opacity: 0.9;
}

.btn-glow-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(252, 211, 77, 0.65);
}

/* Custom Range Input */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #1e293b;
  outline: none;
  position: relative;
  transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3366FF;
  border: 3px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(51, 102, 255, 0.85);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #6E96FF;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3366FF;
  border: 3px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(51, 102, 255, 0.85);
}

/* Radar Pulse / Voice Node Animation */
@keyframes radar-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.pulse-ring-1 {
  animation: radar-pulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.pulse-ring-2 {
  animation: radar-pulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 1s;
}

.pulse-ring-3 {
  animation: radar-pulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 2s;
}

/* Sound Bar Animation */
@keyframes soundwave {

  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 28px;
  }
}

.sound-bar {
  animation: soundwave 1.2s ease-in-out infinite;
}

.sound-bar:nth-child(1) {
  animation-delay: 0.1s;
}

.sound-bar:nth-child(2) {
  animation-delay: 0.3s;
}

.sound-bar:nth-child(3) {
  animation-delay: 0.5s;
}

.sound-bar:nth-child(4) {
  animation-delay: 0.2s;
}

.sound-bar:nth-child(5) {
  animation-delay: 0.4s;
}

/* Smooth transcript chat bubble transitions */
.transcript-bubble {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar for transcripts */
.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(51, 102, 255, 0.35);
  border-radius: 9999px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 102, 255, 0.6);
}

/* ==========================================================================
   INTERACTIVE TABS & PILLS (Default / Dark Mode)
   ========================================================================== */

/* Scenario Switcher Tabs */
body:not(.light-theme) .scenario-tab-btn {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94A3B8 !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

body:not(.light-theme) .scenario-tab-btn:hover {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

body:not(.light-theme) .scenario-tab-btn.active {
  background: linear-gradient(135deg, rgba(51, 102, 255, 0.25) 0%, rgba(30, 79, 217, 0.35) 100%) !important;
  border-color: #3366FF !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(51, 102, 255, 0.4) !important;
}

body:not(.light-theme) .scenario-tab-btn.active span {
  color: #ffffff !important;
}

/* Industry Filter Pills */
body:not(.light-theme) .industry-filter-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94A3B8 !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

body:not(.light-theme) .industry-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

body:not(.light-theme) .industry-filter-btn.active {
  background: linear-gradient(135deg, rgba(51, 102, 255, 0.25) 0%, rgba(30, 79, 217, 0.35) 100%) !important;
  border-color: #3366FF !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(51, 102, 255, 0.35) !important;
}

/* Calculator Presets */
body:not(.light-theme) .calc-preset-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94A3B8 !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

body:not(.light-theme) .calc-preset-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

body:not(.light-theme) .calc-preset-btn.active {
  background: linear-gradient(135deg, rgba(51, 102, 255, 0.25) 0%, rgba(30, 79, 217, 0.35) 100%) !important;
  border-color: #3366FF !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(51, 102, 255, 0.35) !important;
}

/* ==========================================================================
   MODERN LIGHT THEME (Synchronized with Tecnomedia Opencode Design System)
   ========================================================================== */

body.light-theme {
  background-color: #ffffff !important;
  color: #0F172A !important;
}

body.light-theme ::selection {
  background: #3366FF;
  color: #ffffff;
}

/* Alternating Section Background Colors (Matched to Tecnomedia Opencode) */
body.light-theme #hero,
body.light-theme .hero-section {
  background: linear-gradient(160deg, #EEF2FF 0%, #F8FAFC 40%, #F0FDFA 100%) !important;
}

body.light-theme #voice-demo {
  background-color: #FFFFFF !important;
}

body.light-theme #calculator {
  background-color: #F8FAFC !important;
}

body.light-theme #services {
  background-color: #FFFFFF !important;
}

body.light-theme #use-cases {
  background-color: #F8FAFC !important;
}

body.light-theme #roadmap {
  background-color: #FFFFFF !important;
}

body.light-theme #testimonials {
  background-color: #F8FAFC !important;
}

body.light-theme #cta-final {
  background-color: #FFFFFF !important;
}

body.light-theme footer {
  background-color: #F1F5F9 !important;
  border-top-color: #E2E8F0 !important;
}

/* Bottom Conversion Banner in Light Theme (Opencode signature indigo gradient) */
body.light-theme #cta-final .glass-panel {
  background: linear-gradient(135deg, #1E4FD9 0%, #3366FF 100%) !important;
  border: 1px solid rgba(51, 102, 255, 0.4) !important;
  box-shadow: 0 20px 40px -10px rgba(30, 79, 217, 0.3) !important;
}

body.light-theme #cta-final .glass-panel h3 {
  color: #FFFFFF !important;
}

body.light-theme #cta-final .glass-panel p {
  color: #E0E7FF !important;
}

body.light-theme #cta-final .glass-panel .text-slate-400 {
  color: #C7D2FE !important;
}

body.light-theme #cta-final .open-booking-modal {
  background: #FFFFFF !important;
  color: #1E4FD9 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme #cta-final .open-booking-modal:hover {
  background: #EEF3FF !important;
  color: #163bb0 !important;
}

/* Hero Gradient from Tecnomedia Opencode */
body.light-theme .hero-gradient,
body.light-theme .hero-section-bg {
  background: linear-gradient(160deg, #EEF2FF 0%, #F8FAFC 40%, #F0FDFA 100%) !important;
}

/* Ambient glow in light mode */
body.light-theme .ambient-blue {
  background: radial-gradient(circle, rgba(51, 102, 255, 0.14) 0%, rgba(51, 102, 255, 0) 70%);
}

body.light-theme .ambient-purple,
body.light-theme .ambient-indigo {
  background: radial-gradient(circle, rgba(23, 67, 166, 0.12) 0%, rgba(23, 67, 166, 0) 70%);
}

body.light-theme .ambient-cyan,
body.light-theme .ambient-teal {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0) 70%);
}

/* Light Mode Glassmorphism & Cards */
body.light-theme .glass-panel {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .glass-panel-hover:hover {
  border-color: rgba(51, 102, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(51, 102, 255, 0.12);
}

/* ==========================================================================
   GLASSMORPHIC NAVIGATION SYSTEM (High-Fidelity Acrylic Glass)
   ========================================================================== */

/* Dark Mode Glassmorphic Navbar */
body:not(.light-theme) #navbar {
  background: rgba(10, 15, 29, 0.68) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 4px 20px -2px rgba(0, 0, 0, 0.35) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body:not(.light-theme) #navbar.scrolled {
  background: rgba(10, 15, 29, 0.82) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 12px 36px -4px rgba(0, 0, 0, 0.6) !important;
}

/* Dark Mode Navigation Controls Glass Accents */
body:not(.light-theme) #navbar .theme-toggle-btn,
body:not(.light-theme) #navbar #mobile-menu-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

body:not(.light-theme) #navbar .theme-toggle-btn:hover,
body:not(.light-theme) #navbar #mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Dark Mode Mobile Drawer Glassmorphism */
body:not(.light-theme) #mobile-menu {
  background: rgba(10, 15, 29, 0.85) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
}

/* Light Mode Glassmorphic Navbar */
body.light-theme #navbar {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.85), 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme #navbar.scrolled {
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom-color: rgba(226, 232, 240, 0.85) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 10px 30px -5px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme #navbar nav a {
  color: #475569 !important;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

body.light-theme #navbar nav a:hover {
  color: #1E4FD9 !important;
  background-color: rgba(238, 243, 255, 0.75) !important;
  border-color: rgba(191, 210, 255, 0.6) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(51, 102, 255, 0.08) !important;
}

/* Light Mode Navigation Controls Glass Accents */
body.light-theme #navbar .theme-toggle-btn,
body.light-theme #navbar #mobile-menu-btn {
  background-color: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  color: #334155 !important;
}

body.light-theme #navbar .theme-toggle-btn:hover,
body.light-theme #navbar #mobile-menu-btn:hover {
  background-color: rgba(238, 243, 255, 0.9) !important;
  border-color: #BFD2FF !important;
  color: #1E4FD9 !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 4px 12px rgba(51, 102, 255, 0.12) !important;
}

/* Light Mode Mobile Drawer Glassmorphism */
body.light-theme #mobile-menu {
  background-color: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.9) !important;
}

body.light-theme #mobile-menu a {
  color: #334155;
}

body.light-theme #mobile-menu a:hover {
  background-color: rgba(238, 243, 255, 0.8);
  color: #3366FF;
}

body.light-theme #mobile-menu .theme-toggle-btn {
  background-color: rgba(248, 250, 252, 0.8) !important;
  border-color: #E2E8F0 !important;
  color: #334155 !important;
}

body.light-theme #mobile-menu .theme-toggle-btn:hover {
  background-color: #EEF3FF !important;
  border-color: #BFD2FF !important;
}

body.light-theme #mobile-menu .border-t {
  border-color: rgba(226, 232, 240, 0.7) !important;
}

/* Light Mode Text Overrides */
body.light-theme .text-white {
  color: #0F172A !important;
}

body.light-theme .text-slate-100 {
  color: #0F172A !important;
}

body.light-theme .text-slate-200 {
  color: #1E293B !important;
}

body.light-theme .text-slate-300 {
  color: #334155 !important;
}

body.light-theme .text-slate-400 {
  color: #64748B !important;
}

/* Opencode Signature Text Gradient */
body.light-theme .text-gradient {
  background: linear-gradient(135deg, #3366FF 0%, #14B8A6 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Brand Logo Mark & Typography */
.brand-logo-img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.body-theme-logo,
.body-theme-networks {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

/* Light Theme Logo Overrides */
body.light-theme .brand-logo-img {
  filter: none;
}

body.light-theme .body-theme-logo,
body.light-theme .body-theme-networks {
  color: #1e4fd9 !important;
  /* Brand Indigo-700 */
}

/* Buttons in Light Mode */
body.light-theme .btn-glow-accent {
  background: #3366FF !important;
  color: #ffffff !important;
}

body.light-theme .btn-glow-accent svg,
body.light-theme .btn-glow-accent span {
  color: #ffffff !important;
  stroke: currentColor !important;
}

body.light-theme .btn-glow-accent:hover {
  background: #1E4FD9 !important;
  box-shadow: 0 10px 25px -5px rgba(51, 102, 255, 0.35) !important;
}

/* Hero Right Column Avatar Icon & Text (Keep White in Both Themes) */
.hero-avatar-icon,
.hero-avatar-icon *,
#hero-agent-icon-text,
body.light-theme .hero-avatar-icon,
body.light-theme .hero-avatar-icon *,
body.light-theme #hero-agent-icon-text,
body:not(.light-theme) .hero-avatar-icon,
body:not(.light-theme) .hero-avatar-icon *,
body:not(.light-theme) #hero-agent-icon-text {
  color: #FFFFFF !important;
  fill: #FFFFFF !important;
}

/* Hero Right Column Action Button (#hero-test-trigger) Icon & Text */
#hero-test-trigger,
#hero-test-trigger svg,
#hero-test-trigger span,
body.light-theme #hero-test-trigger,
body.light-theme #hero-test-trigger svg,
body.light-theme #hero-test-trigger span,
body:not(.light-theme) #hero-test-trigger,
body:not(.light-theme) #hero-test-trigger svg,
body:not(.light-theme) #hero-test-trigger span {
  color: #FFFFFF !important;
  stroke: currentColor !important;
}

body.light-theme .btn-glow-amber {
  background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%) !important;
  color: #0a0f1d !important;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4) !important;
}

body.light-theme .btn-glow-amber svg,
body.light-theme .btn-glow-amber span {
  color: #0a0f1d !important;
  stroke: currentColor !important;
}

body.light-theme .btn-glow-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(252, 211, 77, 0.65) !important;
}

/* Sub-containers & panels in light mode */
body.light-theme .bg-slate-950,
body.light-theme .bg-slate-950\/70,
body.light-theme .bg-slate-950\/60,
body.light-theme .bg-slate-950\/85,
body.light-theme .bg-slate-950\/95,
body.light-theme .bg-slate-900,
body.light-theme .bg-slate-900\/70,
body.light-theme .bg-slate-900\/80,
body.light-theme .bg-slate-900\/90,
body.light-theme .bg-slate-900\/60 {
  background-color: #ffffff !important;
}

body.light-theme .border-white\/10,
body.light-theme .border-white\/15,
body.light-theme .border-white\/5 {
  border-color: #E2E8F0 !important;
}

/* Hero Simulator in light mode */
body.light-theme .bg-sky-500\/5 {
  background-color: #EEF3FF !important;
  border-color: #DEE9FF !important;
}

body.light-theme .text-sky-300 {
  color: #1E4FD9 !important;
}

body.light-theme .pulse-ring-1,
body.light-theme .pulse-ring-2,
body.light-theme .pulse-ring-3 {
  border-color: rgba(51, 102, 255, 0.2);
}

/* Voice Demo Simulator in light mode */
body.light-theme .scenario-tab-btn {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  color: #475569 !important;
  box-shadow: none !important;
}

body.light-theme .scenario-tab-btn:hover {
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}

body.light-theme .scenario-tab-btn.active {
  background: #3366FF !important;
  border-color: #3366FF !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(51, 102, 255, 0.3) !important;
}

body.light-theme .scenario-tab-btn.active span {
  color: #ffffff !important;
}

body.light-theme #demo-waveform,
body.light-theme #hero-waveform {
  background-color: transparent;
}

body.light-theme #demo-progress-track {
  background-color: #E2E8F0 !important;
}

body.light-theme .bg-sky-950\/20 {
  background-color: #EEF3FF !important;
  border-color: #DEE9FF !important;
}

body.light-theme .transcript-bubble.opacity-60 {
  opacity: 0.75;
}

body.light-theme .custom-scroll::-webkit-scrollbar-track {
  background: #F1F5F9;
}

body.light-theme .custom-scroll::-webkit-scrollbar-thumb {
  background: #CBD5E1;
}

/* Calculator in light mode */
body.light-theme input[type="range"] {
  background: #E2E8F0 !important;
}

body.light-theme input[type="range"]::-webkit-slider-thumb {
  border: 3px solid #ffffff !important;
  background: #3366FF !important;
  box-shadow: 0 2px 6px rgba(51, 102, 255, 0.4) !important;
}

body.light-theme .calc-preset-btn {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  color: #475569 !important;
  box-shadow: none !important;
}

body.light-theme .calc-preset-btn:hover {
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .calc-preset-btn.active {
  background: #3366FF !important;
  border-color: #3366FF !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(51, 102, 255, 0.25) !important;
}

body.light-theme .from-slate-900\/90.to-slate-950 {
  background: linear-gradient(to bottom, #ffffff, #F8FAFC) !important;
  border-color: #DEE9FF !important;
  box-shadow: 0 20px 40px -15px rgba(51, 102, 255, 0.12) !important;
}

body.light-theme .bg-white\/\[0\.03\],
body.light-theme .bg-white\/\[0\.02\] {
  background-color: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

/* Filter pills in light mode */
body.light-theme .industry-filter-btn {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  color: #475569 !important;
  box-shadow: none !important;
}

body.light-theme .industry-filter-btn:hover {
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .industry-filter-btn.active {
  background: #3366FF !important;
  border-color: #3366FF !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(51, 102, 255, 0.25) !important;
}

/* Modal in light mode */
body.light-theme #booking-modal .glass-panel {
  background-color: #ffffff !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2) !important;
}

body.light-theme input,
body.light-theme select {
  background-color: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme input::placeholder {
  color: #94A3B8 !important;
}

body.light-theme #booking-modal label.p-2 {
  background-color: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme #booking-modal label.p-2:hover {
  border-color: #3366FF !important;
}

/* Footer in light mode (Matched to Opencode bg-slate-100) */
body.light-theme footer,
body.light-theme footer.bg-slate-950 {
  background-color: #F1F5F9 !important;
  border-top-color: #E2E8F0 !important;
}

body.light-theme footer a:hover {
  color: #3366FF !important;
}

/* Toast in light mode */
body.light-theme #toast-notification {
  background-color: #ffffff !important;
  border-color: #DEE9FF !important;
  color: #0F172A !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  transform: none;
  -webkit-tap-highlight-color: transparent;
}

/* Only rotate on desktop devices that truly support hover with a fine pointer */
@media (hover: hover) and (pointer: fine) {
  .theme-toggle-btn:hover {
    transform: rotate(15deg);
  }
}

/* Tactile feedback on press that automatically springs back upon release */
.theme-toggle-btn:active {
  transform: scale(0.92);
}

/* Mobile & touch devices: strictly prevent sticky hover rotation and ensure button always returns to original position */
@media (hover: none), (pointer: coarse) {
  .theme-toggle-btn,
  .theme-toggle-btn:hover,
  .theme-toggle-btn:focus {
    transform: none !important;
  }
  .theme-toggle-btn:active {
    transform: scale(0.92) !important;
  }
}

/* ==========================================================================
   Duvo-style Animated Grid Mesh (Hero & Pre-Footer)
   ========================================================================== */
.grid-mesh-container {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  overflow: hidden;
}

.grid-mesh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
}

/* Hero Section Grid Mask - Smooth bottom fade like Duvo.ai */
.hero-grid-mesh {
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 65%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 65%, rgba(0, 0, 0, 0) 100%);
}

/* Pre-Footer Grid Mask - Subtle top & bottom blending */
.prefooter-grid-mesh {
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}