/* ==========================================================================
   HEALTECH SYSTEM PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* Theme Variables (HSL Based) */
:root {
  /* Dark Theme Default */
  --bg-primary: hsl(220, 24%, 6%);
  --bg-secondary: hsl(220, 20%, 10%);
  --bg-glass: rgba(15, 22, 36, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  
  --text-primary: hsl(0, 0%, 94%);
  --text-secondary: hsl(220, 12%, 70%);
  --text-muted: hsl(220, 10%, 48%);
  
  --color-primary: hsl(220, 85%, 55%); /* Blue */
  --color-primary-hover: hsl(220, 90%, 62%);
  --color-secondary: hsl(265, 80%, 62%); /* Violet */
  --color-success: hsl(150, 75%, 42%); /* Green */
  --color-orange: hsl(25, 90%, 55%); /* Orange */
  
  /* Design System Spacing (base-8) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Design System Border Radius */
  --radius-btn: 12px;
  --radius-input: 14px;
  --radius-card: 20px;
  --radius-badge: 999px;

  /* Design System Elevation Shadows */
  --shadow-lvl1: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lvl2: 0 4px 6px -1px rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.08);
  --shadow-lvl3: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);

  /* Design System Transitions */
  --transition-fast: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-sm: var(--shadow-lvl1);
  --shadow-md: var(--shadow-lvl2);
  --shadow-lg: var(--shadow-lvl3);
  
  --orb-gradient-1: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  --orb-gradient-2: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  --orb-gradient-3: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

[data-theme="light"] {
  /* Light Theme Premium Refined */
  --bg-primary: hsl(210, 18%, 98%);
  --bg-secondary: hsl(210, 16%, 95%);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --border-glass: rgba(15, 23, 42, 0.06);
  
  --text-primary: hsl(220, 24%, 12%);
  --text-secondary: hsl(215, 15%, 38%);
  --text-muted: hsl(215, 12%, 50%);
  
  --color-primary: hsl(220, 90%, 50%);
  --color-primary-hover: hsl(220, 95%, 44%);
  --color-secondary: hsl(265, 75%, 52%);
  --color-success: hsl(150, 80%, 34%);
  
  --shadow-lvl1: 0 2px 8px rgba(15, 23, 42, 0.02);
  --shadow-lvl2: 0 12px 36px rgba(15, 23, 42, 0.04);
  --shadow-lvl3: 0 32px 64px rgba(15, 23, 42, 0.07);
  
  --shadow-sm: var(--shadow-lvl1);
  --shadow-md: var(--shadow-lvl2);
  --shadow-lg: var(--shadow-lvl3);
  
  --orb-gradient-1: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  --orb-gradient-2: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  --orb-gradient-3: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
}

/* ==========================================================================
   RESET & FOUNDATION
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.625;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.positive { color: var(--color-success) !important; }
.accent-text { color: var(--color-primary); }

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   GLOWING ORBS EFFECTS
   ========================================================================== */
.orb-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--orb-gradient-1);
  top: -100px;
  right: -100px;
  animation: floatOrb1 25s infinite alternate ease-in-out;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--orb-gradient-2);
  top: 300px;
  left: -150px;
  animation: floatOrb2 20s infinite alternate ease-in-out;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--orb-gradient-3);
  bottom: 10%;
  right: 5%;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-80px, 80px); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, -60px); }
}

/* ==========================================================================
   GLASS CARDS
   ========================================================================== */
.glass-card {
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lvl2);
  transform: translateY(-2px);
}

.shadow-deep {
  box-shadow: var(--shadow-lvl3);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  box-shadow: var(--shadow-lvl1);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--shadow-lvl2);
}

.btn-secondary {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-success {
  background-color: var(--color-success);
  color: white;
  box-shadow: var(--shadow-lvl1);
}

.btn-success:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--shadow-lvl2);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  padding: var(--space-base) 0;
  transition: padding var(--transition-medium), background-color var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.navbar--scrolled {
  padding: var(--space-sm) 0;
  background-color: rgba(11, 14, 20, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-lvl2);
}

.navbar--scrolled .brand-logo {
  width: 72px;
  height: 72px;
}

.navbar--scrolled .brand-name {
  font-size: 28px;
}

[data-theme="light"] .navbar--scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width var(--transition-medium), height var(--transition-medium);
}

.brand-logo:hover {
  transform: scale(1.08) rotate(3deg);
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  transition: font-size var(--transition-medium);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--color-primary) !important;
  font-weight: 700;
}

/* Solutions Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  outline: none;
}

.dropdown-chevron-svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-medium);
  stroke: currentColor;
}

.nav-dropdown.open .dropdown-chevron-svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px;
  min-width: 290px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity var(--transition-medium), transform var(--transition-medium), visibility var(--transition-medium);
}

.nav-dropdown.open .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  text-align: left;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  display: block;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  outline: none;
}

[data-theme="light"] .dropdown-item:hover,
[data-theme="light"] .dropdown-item:focus {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Keyboard accessibility focus ring */
.nav-dropdown-toggle:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.sun-icon { display: none; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 160px 0 var(--space-4xl);
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tagline-container {
  margin-bottom: 20px;
}

.tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-badge);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.badge {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-icon {
  color: var(--color-success);
  font-weight: 800;
}

/* Hero Windows Simulation */
.hero-graphic {
  position: relative;
}

.premium-window {
  background-color: hsl(220, 20%, 8%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.window-header {
  background-color: hsl(220, 20%, 5%);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.window-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 12px;
  font-weight: 500;
}

.window-body {
  padding: 0;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 140px 1fr;
  height: 380px;
}

.db-sidebar {
  background-color: hsl(220, 20%, 6%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-item {
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.db-item.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
}

.db-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.db-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.db-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.db-card-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.db-card-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.db-card-trend {
  font-size: 10px;
  color: var(--text-muted);
}

.db-card-trend.positive {
  color: var(--color-success);
}

.db-chart-container {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  flex-grow: 1;
}

.db-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 20px;
}

.badge-active {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  font-weight: 600;
}

.db-chart-mock {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  padding: 0 10px;
}

.chart-bar {
  width: 12%;
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(37, 99, 235, 0.1) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 1s ease;
}

/* ==========================================================================
   ECOSYSTEM VISUAL FLOW DIAGRAM
   ========================================================================== */
.ecosystem-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 64px;
}

/* Ecosystem Flowchart */
.ecosystem-flow-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0 140px;
}

.eco-node {
  background-color: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  width: 280px;
  text-align: center;
  position: relative;
  z-index: 5;
  transition: all 0.4s ease;
}

.eco-node.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.25);
  transform: translateY(-8px);
}

.eco-node-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.eco-node h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.eco-node p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.eco-connector {
  flex-grow: 1;
  height: 2px;
  background-color: var(--border-glass);
  position: relative;
  z-index: 1;
}

.eco-node.active + .eco-connector,
.eco-connector.active {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.pulse {
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 0;
  box-shadow: 0 0 10px var(--color-primary);
  animation: pulseFlow 4s infinite linear;
}

@keyframes pulseFlow {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.service-bridge-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  text-align: left;
}

.service-bridge-icon {
  font-size: 32px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-orange);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.service-bridge-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.service-bridge-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   TABS & MÓDULOS DE SISTEMAS
   ========================================================================== */
.features-section {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.tabs-header-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 8px;
  margin-bottom: 40px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.pane-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  margin-bottom: 16px;
  display: inline-block;
}

.pane-tag.text-purple { color: var(--color-secondary); }
.pane-tag.text-pink { color: hsl(330, 85%, 60%); }
.pane-tag.text-blue { color: var(--color-primary); }
.pane-tag.text-green { color: var(--color-success); }
.pane-tag.text-orange { color: var(--color-orange); }

.tab-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.tab-text p {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  margin-bottom: 14px;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "✓";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-weight: 800;
}

.feature-list li strong {
  color: var(--text-primary);
}

/* Feature Preview Visuals */
.border-purple { border-color: rgba(124, 58, 237, 0.2) !important; }
.border-pink { border-color: rgba(244, 63, 94, 0.2) !important; }
.border-blue { border-color: rgba(37, 99, 235, 0.2) !important; }
.border-green { border-color: rgba(16, 185, 129, 0.2) !important; }
.border-orange { border-color: rgba(249, 115, 22, 0.2) !important; }

.feature-card {
  padding: 36px;
  text-align: center;
}

.feature-card .card-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.mini-table {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-table .tr {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-table .tr:last-child {
  border-bottom: none;
}

.mini-stat-card {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-stat-card span {
  font-size: 11px;
  color: var(--text-muted);
}

.mini-stat-card strong {
  font-size: 22px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.invoice-box-preview {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  border-left: 4px solid var(--color-success);
}

.invoice-box-preview .title {
  font-size: 12px;
  font-weight: 700;
  display: block;
}

.invoice-box-preview .cuit {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.invoice-box-preview .total {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.guarantee-box {
  background-color: rgba(249, 115, 22, 0.1);
  border: 1px dashed var(--color-orange);
  border-radius: 12px;
  padding: 16px;
}

.guarantee-box strong {
  color: var(--color-orange);
  font-size: 16px;
  display: block;
}

.guarantee-box span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Tasteful Tab Image Container */
.tab-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/9;
  width: 100%;
}

.tab-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.9) contrast(1.02);
}

[data-theme="dark"] .tab-image-container img {
  filter: brightness(0.75) contrast(1.08) saturate(0.85);
}

.tab-image-container:hover img {
  transform: scale(1.06);
}

/* Mini Cyber 3D Stack */
.cyber-stack {
  position: relative;
  height: 290px;
  width: 100%;
  margin-bottom: 24px;
}
.cyber-stack-card {
  position: absolute;
  width: 82%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cyber-stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.csc-1 {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-3deg);
}
.csc-2 {
  top: 15px;
  left: 6%;
  z-index: 2;
  transform: rotate(2deg);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}
.csc-3 {
  top: 30px;
  left: 12%;
  z-index: 3;
  transform: rotate(-1deg);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.25);
}

/* Hover effects to expand the stack */
.cyber-stack:hover .csc-1 {
  transform: translate(-30px, -15px) rotate(-6deg) scale(0.95);
  z-index: 1;
}
.cyber-stack:hover .csc-2 {
  transform: translate(0, -5px) rotate(0deg) scale(1.02);
  z-index: 4; /* slides into middle-front */
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 20px 45px rgba(59, 130, 246, 0.35);
}
.cyber-stack:hover .csc-3 {
  transform: translate(30px, 15px) rotate(4deg) scale(0.95);
  z-index: 2;
}

/* ==========================================================================
   SUPPORT SECTION
   ========================================================================== */
.support-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(20, 28, 47, 0.3) 100%);
  position: relative;
  border-top: 1px solid var(--border-glass);
}

/* ==========================================================================
   ROI CALCULATOR
   ========================================================================== */
.calculator-section {
  padding: var(--space-4xl) 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.calc-selector {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.calc-type-btn {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-badge);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.calc-type-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lvl1);
}

.calc-card {
  padding: 40px;
}

.calc-card h3 {
  font-size: 20px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.badge-value {
  background-color: rgba(37, 99, 235, 0.15);
  color: var(--color-primary);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

/* Slider Custom Styling */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: var(--border-glass);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
}

.result-item {
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.result-value {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 4px;
}

.result-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   ROADMAPS
   ========================================================================== */
.roadmaps-section {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.roadmap-card {
  text-align: left;
  padding: 36px;
  position: relative;
}

.roadmap-badge-active {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: rgba(37, 99, 235, 0.15);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.roadmap-badge-active.bg-green {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.roadmap-card h3 {
  font-size: 18px;
  margin-bottom: 24px;
}

.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roadmap-list li {
  padding-left: 28px;
  position: relative;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.roadmap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--border-glass);
  border: 2px solid var(--bg-secondary);
}

.roadmap-list li.done {
  color: var(--text-primary);
}

.roadmap-list li.done::before {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.roadmap-list li.active {
  color: var(--text-primary);
  font-weight: 600;
}

.roadmap-list li.active::before {
  background-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.roadmap-list li.pending {
  color: var(--text-muted);
}

.roadmap-list li.pending::before {
  background-color: var(--border-glass);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: var(--space-4xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.info-blocks {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-block {
  display: flex;
  gap: 16px;
  align-items: center;
}

.info-icon {
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-block strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.info-block span,
.contact-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.form-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.lead-form input,
.lead-form select {
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Premium micro-interaction highlight */
.lead-form input.premium-highlight {
  animation: premiumPulseGlow 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes premiumPulseGlow {
  0% {
    border-color: var(--border-glass);
    box-shadow: none;
  }
  30% {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.3);
  }
  70% {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.3);
  }
  100% {
    border-color: var(--border-glass);
    box-shadow: none;
  }
}


.form-group-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px !important;
}

/* Form Success State */
.hidden { display: none !important; }

.form-success-state {
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.4s ease;
}

.success-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-success);
  color: white;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success-state h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.form-success-state p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: hsl(220, 24%, 3%);
  border-top: 1px solid var(--border-glass);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FLAWLESS VIEW ON ALL SCREEN SIZES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-title { font-size: 40px; }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  
  .ecosystem-flow-container {
    flex-direction: column;
    gap: 40px;
    padding-bottom: 180px;
  }
  
  .eco-connector {
    width: 2px;
    height: 40px;
  }
  
  .pulse {
    top: 0;
    left: -4px;
    animation: pulseFlowVertical 4s infinite linear;
  }
  
  @keyframes pulseFlowVertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  
  .tab-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Mobile Menu will handle this in JS */
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
  
  .brand-name {
    font-size: 22px;
  }
  
  .service-bridge-card {
    width: calc(100% - 48px);
  }
  
  .tabs-header-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title { 
    font-size: 26px; 
    line-height: 1.25;
  }
  .hero-title br {
    display: none;
  }
  .hero-actions { flex-direction: column; }
  .form-group-2 { grid-template-columns: 1fr; }
  
  .brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 10px;
  }
  
  .brand-name {
    font-size: 20px;
  }
  
  .service-bridge-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
    padding: 20px;
  }
  
  .service-bridge-icon {
    margin: 0 auto;
  }
  
  .tabs-header-container {
    grid-template-columns: 1fr;
  }
  
  .calc-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-graphic {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .premium-window {
    width: 100% !important;
    max-width: 100% !important;
  }
  .dashboard-preview {
    grid-template-columns: 1fr !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .db-sidebar {
    display: none !important;
  }
  .db-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .db-main {
    padding: 16px !important;
  }

  /* Roadmap badge overlap fix */
  .roadmap-badge-active {
    position: static !important;
    display: inline-block !important;
    margin-bottom: 12px !important;
  }

  /* Ecosystem layout overlap fix */
  .ecosystem-flow-container {
    padding-bottom: 40px !important;
  }
  .service-bridge-card {
    position: static !important;
    transform: none !important;
    margin: 40px auto 0 !important;
    width: 100% !important;
  }

  /* Force Text Centering on Mobile Section Headers */
  .container.text-center {
    text-align: center !important;
  }
  .container.text-center .section-tag,
  .container.text-center .section-title,
  .container.text-center .section-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Mobile Menu Styles (Full Screen Overlay V2) */
.nav-menu.mobile-active {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #0b0e14 !important; /* Completely opaque */
  padding: var(--space-4xl) var(--space-lg) !important;
  gap: var(--space-lg) !important;
  z-index: 999999 !important;
  opacity: 0;
  animation: mobileMenuFadeIn var(--transition-slow) forwards !important;
}

[data-theme="light"] .nav-menu.mobile-active {
  background-color: #ffffff !important;
}

@keyframes mobileMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu.mobile-active .nav-link {
  font-size: 24px !important;
  font-weight: 600 !important;
  width: auto !important;
  padding: var(--space-sm) 0 !important;
  border-bottom: none !important;
  color: var(--text-primary) !important;
  opacity: 0;
  transform: translateY(15px);
  animation: mobileMenuItemFadeIn var(--transition-slow) forwards !important;
}

/* Stagger animations for menu items */
.nav-menu.mobile-active .nav-link:nth-child(1) { animation-delay: 100ms; }
.nav-menu.mobile-active .nav-link:nth-child(2) { animation-delay: 150ms; }
.nav-menu.mobile-active .nav-link:nth-child(3) { animation-delay: 200ms; }
.nav-menu.mobile-active .nav-link:nth-child(4) { animation-delay: 250ms; }
.nav-menu.mobile-active .nav-cta { animation-delay: 300ms; }

@keyframes mobileMenuItemFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu.mobile-active .nav-cta {
  width: 100% !important;
  max-width: 320px !important;
  margin-top: var(--space-md) !important;
  font-size: 18px !important;
  padding: 16px var(--space-xl) !important;
  opacity: 0;
  transform: translateY(15px);
  animation: mobileMenuItemFadeIn var(--transition-slow) forwards !important;
}

/* Hamburger transition to close icon (X) */
.mobile-menu-btn {
  position: relative !important;
  z-index: 1000000 !important;
}
.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg) !important;
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0 !important;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg) !important;
}

/* Mobile responsive accordion for dropdown */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
    text-align: center;
  }
  
  .nav-dropdown-toggle {
    width: auto;
    margin: 0 auto;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
  }
  
  .dropdown-chevron-svg {
    width: 18px;
    height: 18px;
  }
  
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    backdrop-filter: none !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all var(--transition-medium);
    pointer-events: none;
  }
  
  .nav-dropdown.open .dropdown-menu {
    visibility: visible;
    opacity: 1;
    height: auto;
    padding: var(--space-sm) 0 !important;
    pointer-events: auto;
  }
  
  .dropdown-item {
    font-size: 18px !important;
    padding: 8px 12px !important;
    text-align: center !important;
    color: var(--text-secondary) !important;
  }
  
  .dropdown-item:hover,
  .dropdown-item:focus {
    color: var(--text-primary) !important;
    background: none !important;
  }
}

/* Premium Title Focal Animation on Arrival */
.solution-title-highlight {
  animation: premiumTitleArrival 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes premiumTitleArrival {
  0% {
    opacity: 0.6;
    transform: translateY(3px);
  }
  30% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.35);
    color: var(--text-primary);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: none;
  }
}

/* ==========================================================================
   LIGHT THEME PERCEPTUAL REFINEMENTS (AUDIT COMPLIANT)
   ========================================================================== */

/* 1. Hero Simulated System Window (Light Mode) */
[data-theme="light"] .premium-window {
  background-color: hsl(210, 16%, 97%);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .window-header {
  background-color: hsl(210, 14%, 93%);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .window-title {
  color: hsl(215, 12%, 42%);
}

[data-theme="light"] .db-sidebar {
  background-color: hsl(210, 14%, 95%);
  border-right-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .db-item {
  color: hsl(215, 12%, 46%);
}

[data-theme="light"] .db-item.active {
  background-color: rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
}

[data-theme="light"] .db-card {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.05);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

[data-theme="light"] .db-card-label {
  color: hsl(215, 12%, 48%);
}

[data-theme="light"] .db-card-value {
  color: var(--text-primary);
}

[data-theme="light"] .db-chart-mock {
  background-color: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .chart-bar {
  background-color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .chart-bar:hover {
  background-color: var(--color-primary);
}

/* 2. Form Inputs & Selectors (Mud-color prevention) */
[data-theme="light"] .lead-form input,
[data-theme="light"] .lead-form select {
  background-color: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
}

[data-theme="light"] .lead-form input::placeholder {
  color: hsl(215, 12%, 55%);
}

[data-theme="light"] .lead-form input:hover,
[data-theme="light"] .lead-form select:hover {
  border-color: rgba(15, 23, 42, 0.16);
}

[data-theme="light"] .lead-form input:focus,
[data-theme="light"] .lead-form select:focus {
  background-color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* 3. Interaction badges & tags visibility */
[data-theme="light"] .pane-tag {
  background-color: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .tagline {
  background-color: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .badge {
  background-color: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
}

/* 4. Calculator Range Sliders & Theme consistency */
[data-theme="light"] .calc-card {
  background-color: var(--bg-glass);
  border-color: var(--border-glass);
}

[data-theme="light"] .slider {
  background-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .slider::-webkit-slider-runnable-track {
  background-color: rgba(15, 23, 42, 0.08);
}

/* 5. Mobile Navigation & Overlays warm background override */
[data-theme="light"] .nav-menu.mobile-active {
  background-color: hsl(210, 18%, 98%) !important;
}

[data-theme="light"] .mobile-menu-btn span {
  background-color: var(--text-primary) !important;
}

/* 6. Tabs layout active buttons details */
[data-theme="light"] .tab-btn.active {
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

/* 7. Footer warm tone */
[data-theme="light"] .footer {
  background-color: hsl(210, 15%, 94%);
  border-top-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(15, 23, 42, 0.04);
}


