/* 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-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; }

/* Grid Line Background Overlay */
.grid-bg-overlay {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  transition: background-image 0.3s ease;
}

/* 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;
}

/* 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 Grid Overlay */
body.light-theme .grid-bg-overlay {
  background-image: 
    linear-gradient(to right, rgba(51, 102, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 102, 255, 0.035) 1px, transparent 1px);
}

/* 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);
}

/* Light Mode Navigation */
body.light-theme #navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

body.light-theme #navbar nav a {
  color: #475569;
}

body.light-theme #navbar nav a:hover {
  color: #3366FF;
  background-color: #EEF3FF;
}

body.light-theme #mobile-menu {
  background-color: rgba(255, 255, 255, 0.98);
  border-color: #E2E8F0;
}

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

body.light-theme #mobile-menu a:hover {
  background-color: #EEF3FF;
  color: #3366FF;
}

body.light-theme #mobile-menu-btn {
  color: #0F172A !important;
}

body.light-theme #mobile-menu-btn:hover {
  background-color: #F1F5F9 !important;
}

body.light-theme #mobile-menu .theme-toggle-btn {
  background-color: #F8FAFC !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: #E2E8F0 !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;
}

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 */
body.light-theme footer {
  background-color: #F8FAFC !important;
  border-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: all 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg);
}
