/* SignalCue Landing Page Styles */

/* Mobile-First Critical Styles */
html {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Global Variables - Aligned with SignalCue Design System */
:root {
  --primary-color: #7495b6;
  --primary-dark: #5c7a99;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --background-dark: #181a1b;
  --background-darker: #0f1011;
  --surface-dark: #23272b;
  --surface-light: #31343b;
  --text-primary: #e4e6eb;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #31343b;
  --gradient-primary: linear-gradient(135deg, #7495b6 0%, #5c7a99 50%, #4a6580 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --card-shadow: 0 2px 16px 0 rgba(33,150,243,0.08), 0 1.5px 16px 0 rgba(0,0,0,0.10);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.container {
  max-width: 1200px;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation - Matches existing SignalCue navbar */
.navbar {
  background: linear-gradient(135deg, #7495b6 0%, #5c7a99 50%, #4a6580 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  padding: 2px 20px !important;
  backdrop-filter: blur(10px);
  min-height: auto !important;
}

.navbar > .container {
  padding: 0 !important;
}

.navbar.scrolled {
  background: linear-gradient(135deg, #5c7a99 0%, #4a6580 50%, #3d5066 100%) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.navbar .container {
  padding-left: 0px !important;
  padding-right: 15px !important;
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: white !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-left: -20px !important;
}

.navbar-brand img {
  filter: brightness(1.2) contrast(1.1);
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  filter: brightness(1.3) contrast(1.2);
  transform: scale(1.05);
}

.brand-text {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  border: none;
  text-transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #7495b6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: #5c7a99;
}

.navbar .btn-primary {
  padding: 8px 20px;
  font-size: 0.95rem;
}

.btn-outline-light {
  border: 2px solid var(--text-secondary);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--text-primary);
  color: var(--background-dark);
  border-color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #f8f9fa;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  opacity: 1;
  z-index: -2;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  z-index: -1;
}

.hero-logo-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.logo-watermark {
  width: 600px;
  height: auto;
  opacity: 0.15;
  filter: brightness(1.2);
}

/* Integrated Avatar Styles */
.integrated-avatar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.avatar-video-container {
  position: relative;
  width: 200px;
  height: 250px;
}

#avatarVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Fallback Animated Avatar */
.avatar-fallback {
  width: 200px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.avatar-circle-animated {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  border-radius: 50%;
  position: relative;
  animation: gentleBob 3s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.avatar-face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}

.avatar-eyes {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 0 15px;
}

.eye {
  width: 12px;
  height: 12px;
  background: #333;
  border-radius: 50%;
  animation: blink 4s ease-in-out infinite;
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.avatar-mouth {
  width: 30px;
  height: 15px;
  background: #333;
  border-radius: 0 0 30px 30px;
  margin: 0 auto;
  animation: talk 2s ease-in-out infinite;
}

@keyframes talk {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.7); }
}

.speaking-indicator {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 3px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Avatar Speech Bubble */
.avatar-speech-bubble {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 20px;
  border-radius: 20px 20px 5px 20px;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.5s ease-out;
}

.speech-pointer {
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(0, 0, 0, 0.9);
}

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

/* Avatar Controls */
.avatar-controls {
  position: absolute;
  top: -60px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 16px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.integrated-avatar:hover .avatar-controls {
  opacity: 1;
}

.playback-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.volume-slider-container {
  display: flex;
  align-items: center;
  margin-left: 5px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  border: none;
}

/* Avatar Side Tab (when dismissed) */
.avatar-side-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
}

.side-tab-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: 50% 0 0 50%;
  color: white;
  padding: 15px 20px 15px 15px;
  cursor: pointer;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 50px;
  height: 50px;
}

.side-tab-button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateX(-5px);
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.4);
}

.side-tab-button i {
  font-size: 18px;
}

.tab-text {
  display: none;
}

.pulse-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: var(--secondary-color);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.5; 
    transform: scale(1.2); 
  }
}

/* Side tab entrance animation */
.avatar-side-tab.show {
  animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
  from {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
}

/* Responsive Avatar */
@media (max-width: 768px) {
  .integrated-avatar {
    bottom: 15px;
    right: 15px;
    transform: scale(0.8);
  }
  
  .avatar-speech-bubble {
    max-width: 200px;
    font-size: 12px;
  }
  
  .avatar-side-tab {
    top: auto;
    bottom: 20px;
    right: 0;
    transform: none;
  }
  
  .side-tab-button {
    width: 45px;
    height: 45px;
    padding: 12px;
  }
  
  .side-tab-button i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .integrated-avatar {
    bottom: 10px;
    right: 10px;
    transform: scale(0.7);
  }
  
  .side-tab-button {
    width: 40px;
    height: 40px;
    padding: 10px;
  }
  
  .side-tab-button i {
    font-size: 14px;
  }
}

.hero-content {
  padding: 2rem 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: #000000;
}

.hero-slogan {
  font-size: 1.1rem;
  font-weight: 500;
  color: #7495b6;
  font-style: italic;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  text-align: left;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #333333;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333333;
  font-weight: 500;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: #555555;
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  padding: 2rem 0;
}

.avatar-container {
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
}

.avatar-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.avatar-icon {
  font-size: 3rem;
  color: white;
}

.pulse-ring, .pulse-ring-2 {
  position: absolute;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s ease-out infinite;
}

.pulse-ring {
  width: 140px;
  height: 140px;
  top: -10px;
  left: -10px;
}

.pulse-ring-2 {
  width: 160px;
  height: 160px;
  top: -20px;
  left: -20px;
  animation-delay: 1s;
}

.chat-bubble {
  background: var(--surface-dark);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.chat-bubble::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-bottom-color: var(--surface-dark);
}

.avatar-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.trading-dashboard {
  background: var(--surface-dark);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.signal-card {
  background: var(--background-darker);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.signal-card:last-child {
  margin-bottom: 0;
}

.signal-pair {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.signal-action {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.signal-action.buy {
  background: var(--gradient-secondary);
  color: white;
}

.signal-action.sell {
  background: var(--gradient-accent);
  color: white;
}

.signal-confidence {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.signal-price {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.6; }
  100% { opacity: 0; transform: scale(1.2); }
}

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

/* Features Section - Light theme to match hero */
.features-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.section-title {
  color: #1f2937;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #6b7280;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: #ffffff !important;
  border: 1px solid rgba(116, 149, 182, 0.2) !important;
  border-radius: 16px !important;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #7495b6 0%, #5c7a99 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(116, 149, 182, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  border-color: #7495b6;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7495b6 0%, #5c7a99 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #ffffff;
}

.feature-card h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* How It Works Section - Light theme to match hero */
.how-it-works-section {
  padding: 5rem 0;
  background: #ffffff;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7495b6 0%, #5c7a99 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 auto 1.5rem;
}

.step-content h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.step-content p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Reviews Section - Light theme to match hero */
.reviews-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.review-card {
  background: #ffffff;
  border: 1px solid rgba(116, 149, 182, 0.2);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(116, 149, 182, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  border-color: #7495b6;
}

.review-stars {
  margin-bottom: 1rem;
  color: #f59e0b;
}

.review-text {
  color: #6b7280;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #7495b6 0%, #5c7a99 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
}

.author-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* CTA Section - Light theme to match hero */
.cta-section {
  padding: 5rem 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(116, 149, 182, 0.05) 0%, transparent 50%);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: linear-gradient(135deg, #7495b6 0%, #5c7a99 100%);
  color: #ffffff;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  box-shadow: 0 8px 25px rgba(116, 149, 182, 0.3);
  border: none;
}

.cta-section .btn-primary:hover {
  background: linear-gradient(135deg, #5c7a99 0%, #4a6580 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(116, 149, 182, 0.4);
}

.cta-note {
  color: #6b7280;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Footer */
.footer-section {
  padding: 3rem 0 2rem;
  background: var(--background-darker);
  border-top: 1px solid var(--border-color);
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-brand .brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-description {
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.footer-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-divider {
  border-color: var(--border-color);
  margin: 2rem 0 1rem;
}

.footer-copyright {
  color: var(--text-muted);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-dark);
  color: var(--text-muted);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* AI Avatar Overlay */
.ai-avatar-overlay {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
}

.ai-avatar-container {
  background: var(--surface-dark);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 15px;
  box-shadow: var(--shadow-xl);
  width: 280px;
  position: relative;
}

.ai-avatar-video {
  width: 100%;
  height: 200px;
  background: var(--background-darker);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

.synthesia-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
}

.avatar-loading {
  text-align: center;
  color: white;
}

.avatar-loading i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  animation: pulse 2s infinite;
}

.avatar-loading p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.ai-avatar-controls {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.ai-avatar-minimized {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.ai-avatar-minimized .btn {
  background: var(--primary-color);
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.ai-avatar-minimized .btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Hide avatar on mobile devices */
@media (max-width: 768px) {
  .ai-avatar-overlay {
    display: none;
  }
}

/* Modern Auth Modal */
.modern-auth-modal .modal-dialog {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  max-width: 420px;
  width: 100%;
}

@media (max-width: 768px) {
  .modern-auth-modal .modal-dialog {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    margin: 1rem auto;
    max-width: 95%;
    width: 100%;
  }
}

.modern-auth-modal .modal-content {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-close-modern {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-modern:hover {
  background: #f3f4f6;
  color: #374151;
}

.auth-container {
  padding: 40px 32px;
  position: relative;
}

.auth-form-wrapper {
  display: none;
  animation: fadeInUp 0.3s ease-out;
}

.auth-form-wrapper.active {
  display: block;
}

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

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.modern-auth-form {
  width: 100%;
}

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

.input-container {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7495b6;
  font-size: 16px;
  z-index: 2;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 48px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  font-size: 16px;
  color: #1f2937;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #7495b6;
  box-shadow: 0 0 0 3px rgba(116, 149, 182, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  accent-color: #7495b6;
}

.checkbox-label {
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.forgot-password {
  color: #7495b6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #5c7a99;
  text-decoration: underline;
}

.auth-button {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #7495b6 0%, #5c7a99 100%);
  border: none;
  border-radius: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(116, 149, 182, 0.3);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-button.loading .button-text {
  opacity: 0;
}

.auth-button.loading .button-loader {
  display: block !important;
}

.button-loader {
  position: absolute;
  color: #ffffff;
}

.auth-footer {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.footer-text {
  color: #6b7280;
}

.switch-form {
  color: #7495b6;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.switch-form:hover {
  color: #5c7a99;
  text-decoration: underline;
}

.terms-link {
  color: #7495b6;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.terms-link:hover {
  color: #5c7a99;
  text-decoration: underline;
}

/* Form Validation Styles */
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  margin-left: 4px;
}

.form-input.success {
  border-color: #a7c6e0 !important;
  box-shadow: 0 0 0 3px rgba(167, 198, 224, 0.1) !important;
  background: #f0f7ff !important;
}

/* Enhanced Form Validation and Loading States */
.auth-form-wrapper {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-form-wrapper.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.form-input.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
  background: #fef2f2 !important;
}

.form-input.success {
  border-color: #a7c6e0 !important;
  box-shadow: 0 0 0 3px rgba(167, 198, 224, 0.1) !important;
  background: #f0f7ff !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  animation: slideDown 0.3s ease;
}

.error-message::before {
  content: '⚠';
  font-size: 1rem;
}

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

/* Enhanced Button Loading States */
.auth-button.loading {
  pointer-events: none;
}

.auth-button.loading .button-text {
  opacity: 0;
}

.button-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
}

.auth-button.loading .button-loader {
  display: block !important;
}

.button-loader i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form switch links enhancement */
.form-switch-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.form-switch-link:hover {
    color: #5b21b6;
    text-decoration: underline;
}

/* Two-Factor Authentication Specific Styles */
#twoFactorForm .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

#twoFactorForm .form-help {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 3px solid #7495b6;
}

#totpCode {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace !important;
    font-weight: 600;
}

#totpCode:focus {
    background: #f0f7ff !important;
}

/* Loading state for auth buttons */
.auth-button.loading .button-text {
    opacity: 0;
}

.auth-button.loading .button-loader {
    display: block !important;
    opacity: 1;
}.login-modal .btn-close {
  filter: invert(1);
}

.nav-pills .nav-link {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  margin: 0;
}

.nav-pills .nav-link.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.auth-form .form-label {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.auth-form .form-control {
  background: var(--background-darker);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.auth-form .form-control:focus {
  background: var(--background-darker);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.auth-form .form-check-label {
  color: var(--text-secondary);
}

.auth-form .text-primary {
  color: var(--primary-color) !important;
}

.auth-form .text-muted {
  color: var(--text-muted) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
    margin-left: -5px;
  }
  
  .navbar-brand img {
    height: 54px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    justify-content: space-between;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .feature-card,
  .review-card {
    padding: 1.5rem;
  }
}

/* Profitability Panel */
.profitability-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: fit-content;
  max-height: 650px;
  position: sticky;
  top: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-header {
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.panel-title i {
  color: #059669;
}

.panel-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.5rem 0 0 0;
}

.table-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.table-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  color: #6b7280;
}

.table-loading i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #7c3aed;
  animation: spin 1s linear infinite;
}

#profitabilityTableContainer {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.table-responsive {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  position: relative;
}

.performance-table {
  width: 100%;
  font-size: 0.875rem;
  margin: 0;
  background: #ffffff;
  table-layout: fixed;
}

.performance-table th {
  padding: 0.5rem 0.5rem;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 10;
}

.performance-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #f8fafc;
  box-shadow: 1px 0 0 #e5e7eb;
  z-index: 11;
  width: 50%;
}

.performance-table th:nth-child(2),
.performance-table th:nth-child(3) {
  width: 25%;
}

.performance-table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  font-weight: 500;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #374151;
}

.performance-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  position: sticky;
  left: 0;
  background: white;
  box-shadow: 1px 0 0 #e5e7eb;
  z-index: 1;
  width: 50%;
  font-size: 0.75rem;
}

.performance-table tbody tr {
  transition: background-color 0.15s ease;
}

.performance-table tbody tr:hover {
  background-color: #f8fafc;
}

/* P&L Styling */
.pnl-positive {
  color: #059669 !important;
  font-weight: 600;
}

.pnl-negative {
  color: #dc2626 !important;
  font-weight: 600;
}

.pnl-neutral {
  color: #6b7280 !important;
}

.win-rate-high {
  color: #059669 !important;
  font-weight: 600;
}

.win-rate-medium {
  color: #d97706 !important;
  font-weight: 600;
}

.win-rate-low {
  color: #dc2626 !important;
}

.table-footer {
  padding: 0.75rem 1rem;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 0 0 12px 12px;
  position: relative;
}

.load-more-btn {
  background: linear-gradient(135deg, #7495b6 0%, #5c7a99 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 120px;
  margin: 0 auto 0.5rem auto;
}

.load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(116, 149, 182, 0.3);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.table-stats {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.performance-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.75rem;
}

.stat-box {
  text-align: center;
  padding: 0.5rem;
}

.stat-value {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  color: #9ca3af;
}

.stat-label {
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Hero Section Updates for Two-Column Layout */
.hero-content {
  text-align: left;
  max-width: none;
  margin: 0;
}

.hero-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  text-align: left;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

/* Responsive Design for Profitability Panel */
@media (max-width: 991.98px) {
  .hero-content {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .hero-title,
  .hero-subtitle {
    text-align: center;
  }
  
  .hero-subtitle {
    max-width: 100%;
    margin: 0 auto 2rem auto;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .profitability-panel {
    margin-top: 2rem;
    position: static;
  }
}

@media (max-width: 767.98px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .performance-table {
    font-size: 0.75rem;
  }
  
  .performance-table th,
  .performance-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .performance-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .stat-box {
    padding: 0.25rem;
  }
  
  .stat-value {
    font-size: 0.9rem;
  }
}

/* Smooth scrolling enhancements */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .review-card,
  .process-step {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
  }
  
  .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .feature-card:nth-child(2) { animation-delay: 0.2s; }
  .feature-card:nth-child(3) { animation-delay: 0.3s; }
  .feature-card:nth-child(4) { animation-delay: 0.4s; }
  .feature-card:nth-child(5) { animation-delay: 0.5s; }
  .feature-card:nth-child(6) { animation-delay: 0.6s; }
}

/* Terms Modal Styling */
#termsModal .modal-content {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#termsModal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem 2rem 1rem;
  background: transparent;
}

#termsModal .modal-title {
  color: #1f2937;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
}

#termsModal .btn-close-modern {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

#termsModal .btn-close-modern:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1f2937;
  transform: scale(1.1);
}

#termsModal .modal-body {
  padding: 1rem 2rem 2rem;
  color: #374151;
  background: transparent;
  max-height: 60vh;
  overflow-y: auto;
}

#termsModal .modal-body h1,
#termsModal .modal-body h2,
#termsModal .modal-body h3,
#termsModal .modal-body h4,
#termsModal .modal-body h5,
#termsModal .modal-body h6 {
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#termsModal .modal-body p {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
}

#termsModal .modal-body ul,
#termsModal .modal-body ol {
  color: #374151;
  padding-left: 1.5rem;
}

#termsModal .modal-body li {
  margin-bottom: 0.5rem;
}

#termsModal .spinner-border {
  color: #7495b6;
}

#termsModal .text-muted {
  color: #6b7280 !important;
}

#termsModal .text-danger {
  color: #ef4444 !important;
}

/* ========================================
   MOBILE-SPECIFIC IMPROVEMENTS
   ======================================== */

/* Global Mobile Container Fix */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .col, .col-md-6, .col-lg-4, .col-lg-6, [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Hero Section Mobile Fixes */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 80px 0 60px;
  }
  
  .hero-content {
    padding: 0 15px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 2rem;
    padding: 0 10px;
  }
  
  .hero-slogan {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column !important;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    min-width: auto;
    font-size: 1.1rem;
    padding: 12px 20px;
  }
  
  .hero-stats {
    flex-direction: row !important;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .hero-stats .stat-item {
    min-width: auto;
    text-align: center;
  }
  
  .hero-features {
    flex-direction: column !important;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .feature-item {
    padding: 1rem;
    text-align: center;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem !important;
    padding: 0 5px;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  .hero-stats {
    flex-direction: column !important;
    gap: 1rem;
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Performance/Stats Section Mobile */
@media (max-width: 768px) {
  .performance-section,
  .stats-section {
    padding: 60px 0 40px;
  }
  
  .performance-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem;
    text-align: center;
  }
}

/* Features Section Mobile */
@media (max-width: 768px) {
  .features-section {
    padding: 60px 0 40px;
  }
  
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

/* Navbar Mobile Improvements */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 15px;
  }
  
  .navbar-brand {
    font-size: 1.3rem !important;
  }
  
  .navbar-brand img {
    height: 48px !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
}