/* 
==================================================
NordSMS Modern Design System
Inspired by Twilio & LabsMobile design patterns
==================================================
*/

/* === CSS VARIABLES === */
:root {
  /* Primary Colors - Professional Blue (from logo) */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #06b6d4;
  --secondary-hover: #0891b2;
  
  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  
  /* Neutral Colors */
  --dark-primary: #121C2D;
  --dark-secondary: #1A2332;
  --gray-900: #0F172A;
  --gray-800: #1E293B;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;
  
  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Spacing */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.375rem; /* 6px */
  --radius-lg: 0.5rem;   /* 8px */
  --radius-xl: 0.75rem;  /* 12px */
  --radius-2xl: 1rem;    /* 16px */
  --radius-3xl: 1.5rem;  /* 24px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* === RESET & BASE STYLES === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
  color: var(--gray-700);
}

.text-lead {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  color: var(--gray-600);
}

.text-muted {
  color: var(--gray-500);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-primary);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

.btn-md {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
  color: var(--white);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: none;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.card-body {
  padding: var(--space-xl);
}

.card-footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* === NAVIGATION === */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(20px);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.navbar-brand {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--gray-700);
  font-weight: var(--font-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  background: var(--gray-100);
}

/* === DROPDOWNS === */
.dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-sm);
  background: var(--white);
  backdrop-filter: blur(20px);
  margin-top: var(--space-sm);
}

.dropdown-item {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: var(--gray-700);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.dropdown-item.active {
  background: var(--primary-color);
  color: var(--white);
}

/* === LANGUAGE SWITCHER === */
.language-switcher {
  position: relative;
}

.language-switcher .dropdown-toggle {
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.language-switcher .dropdown-toggle:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-right: var(--space-sm);
}

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

.section-sm {
  padding: var(--space-3xl) 0;
}

.section-lg {
  padding: var(--space-4xl) 0;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23F22F46" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%232AADAF" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .text-lead {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

/* === FEATURE CARDS === */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--white);
  font-size: var(--text-2xl);
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-md);
  color: var(--gray-900);
}

.feature-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* === STATS SECTION === */
.stats-section {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-4xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--primary-color);
  display: block;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-lg);
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === MODERN FOOTER === */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-4xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  opacity: 0.95;
}

.footer .container {
  position: relative;
  z-index: 1;
}

/* Footer Brand */
.footer-brand {
  margin-bottom: var(--space-lg);
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1); /* Makes SVG white */
  transition: all var(--transition-fast);
}

.footer-logo:hover {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(330deg);
  transform: scale(1.05);
}

.footer-description {
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 300px;
}

/* Footer Titles */
.footer-title {
  color: var(--white);
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: var(--space-md);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  width: 10px;
}

/* Footer Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer-contact li:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-contact i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-md);
  color: var(--primary-color);
  font-size: var(--text-sm);
  background: rgba(46, 204, 113, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.footer-contact span {
  flex: 1;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--gray-400);
  text-decoration: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-xl);
  margin-top: var(--space-2xl);
}

.footer-copyright,
.footer-powered {
  color: var(--gray-500);
  font-size: var(--text-sm);
  margin: 0;
}

.footer-brand-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-semibold);
  transition: all var(--transition-fast);
}

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

/* Footer Responsive */
@media (max-width: 767.98px) {
  .footer {
    padding: var(--space-3xl) 0 var(--space-lg);
  }
  
  .footer-title::after {
    width: 20px;
  }
  
  .social-links {
    justify-content: center;
    margin-top: var(--space-lg);
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-bottom .col-md-6:first-child {
    margin-bottom: var(--space-md);
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;    /* 40px */
    --text-5xl: 2rem;      /* 32px */
    --text-4xl: 1.75rem;   /* 28px */
    --space-4xl: 3rem;     /* 48px */
  }
  
  .hero h1 {
    font-size: var(--text-5xl);
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .feature-card {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
  }
  
  .btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
.btn:focus,
.dropdown-toggle:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* === UTILITIES === */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
}

/* === MODERN HOMEPAGE STYLES === */

/* Hero Section Enhanced */
.hero-badge .badge {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: 0.025em;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-bold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-indicators {
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.trust-item {
  display: flex;
  align-items: center;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.trust-item:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.hero-cta .btn {
  min-width: 200px;
}

.hero-cta .btn small {
  font-size: 0.75rem;
  margin-top: 2px;
}

.customer-logos {
  gap: var(--space-lg);
}

.customer-logo {
  font-weight: var(--font-semibold);
  color: var(--gray-400);
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--gray-100);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.customer-logo:hover {
  color: var(--gray-600);
  background: var(--gray-200);
}

/* Dashboard Preview */
.hero-visual {
  position: relative;
  padding: var(--space-2xl);
}

.dashboard-preview {
  position: relative;
  z-index: 2;
}

.dashboard-mockup {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
  transition: all var(--transition-normal);
}

.dashboard-mockup:hover {
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.dashboard-header {
  background: var(--gray-100);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
}

.dashboard-dots {
  display: flex;
  gap: var(--space-xs);
  margin-right: var(--space-md);
}

.dashboard-dots span {
  width: 8px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 50%;
}

.dashboard-dots span:first-child {
  background: #ff5f57;
}

.dashboard-dots span:nth-child(2) {
  background: #ffbd2e;
}

.dashboard-dots span:last-child {
  background: #28ca42;
}

.dashboard-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--gray-700);
}

.dashboard-content {
  padding: var(--space-lg);
}

.stat-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-lg);
}

.stat-icon.bg-primary {
  background: var(--primary-color);
}

.stat-icon.bg-secondary {
  background: var(--secondary-color);
}

.stat-number {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-area {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--gray-200);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.chart-header h6 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--gray-700);
  margin: 0;
}

.chart-visual {
  height: 60px;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
  top: 20%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card-2 {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.floating-card-3 {
  top: 40%;
  left: -5%;
  animation-delay: 4s;
}

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

/* Modern Stats Section */
.stats-section {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  opacity: 0.9;
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
  z-index: 1;
}

.stat-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.stat-item:hover .stat-icon-wrapper {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
  font-size: var(--text-3xl);
}

.stat-content .stat-number {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--white);
  display: block;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.stat-content .stat-label {
  font-size: var(--text-lg);
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-medium);
}

/* Enhanced Features Section */
.features-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.section-badge .badge {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: 0.025em;
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--white);
  font-size: var(--text-2xl);
  position: relative;
  z-index: 2;
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-md);
  color: var(--gray-900);
}

.feature-description {
  color: var(--gray-600);
  line-height: 1.6;
  flex-grow: 1;
}

.feature-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 1;
}

.feature-card:hover .feature-hover-effect {
  opacity: 0.05;
}

.features-cta {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

/* RESPONSIVE DESIGN - Mobile First */
@media (max-width: 575.98px) {
  .hero {
    padding: var(--space-3xl) 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    min-width: auto;
    width: 100%;
  }
  
  .trust-indicators {
    text-align: center;
  }
  
  .customer-logos {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .dashboard-mockup {
    transform: none;
    margin-top: var(--space-xl);
  }
  
  .floating-card {
    display: none;
  }
  
  .stats-section {
    padding: var(--space-3xl) 0;
  }
  
  .stat-item {
    padding: var(--space-lg) var(--space-md);
  }
  
  .stat-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .stat-icon {
    font-size: var(--text-2xl);
  }
  
  .stat-content .stat-number {
    font-size: var(--text-4xl);
  }
  
  .feature-card {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
  }
  
  .features-cta .btn {
    width: 100%;
    margin-bottom: var(--space-md);
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .dashboard-mockup {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-visual {
    margin-top: var(--space-2xl);
  }
  
  .floating-card {
    font-size: var(--text-xs);
    padding: var(--space-sm);
  }
}

@media (min-width: 992px) {
  .hero-content {
    padding-right: var(--space-2xl);
  }
  
  .dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  }
}

/* === LOADING STATES === */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}