/* SMMBOXD PANEL - Optimized Performance CSS */
/* Critical CSS for above-the-fold content - Inline for faster loading */

:root {
  /* Primary colors - Sophisticated teal */
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --primary-gradient: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
  --primary-glow: rgba(16, 185, 129, 0.3);
  
  /* Secondary colors - Modern purple accent */
  --secondary: #8B5CF6;
  --secondary-dark: #7C3AED;
  --secondary-light: #A78BFA;
  --secondary-gradient: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  
  /* Dark theme colors - Rich and sophisticated */
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --bg-card: #1E293B;
  --bg-surface: #475569;
  --bg-glass: rgba(30, 41, 59, 0.8);
  
  /* Text colors */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-accent: #10B981;
  
  /* Status colors */
  --success: #00D4AA;
  --warning: #FFB800;
  --error: #FF4757;
  --info: #3742FA;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-primary: 0 4px 20px rgba(0, 212, 170, 0.3);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: 
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Performance optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Critical above-the-fold styles */
.hero-section-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  z-index: 2;
}

.hero-particles-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content-new {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-title-new {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.text-gradient-new {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description-new {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions-new {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary-new {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline-new {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--bg-surface);
}

.btn-outline-new:hover {
  background: var(--bg-surface);
  transform: translateY(-2px);
}

/* Stats section */
.hero-stats-new {
  position: relative;
  z-index: 3;
  margin-top: 4rem;
}

.stats-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card-new {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.stat-card-new:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.stat-icon-new {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.stat-number-new {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label-new {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-content-new {
    padding: 1rem;
  }
  
  .hero-title-new {
    font-size: 2.5rem;
  }
  
  .hero-description-new {
    font-size: 1.1rem;
  }
  
  .hero-actions-new {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-new {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .stats-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card-new {
    padding: 1.5rem;
  }
  
  .stat-number-new {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .stats-grid-new {
    grid-template-columns: 1fr;
  }
  
  .hero-title-new {
    font-size: 2rem;
  }
}

/* Performance optimizations */
.hero-section-new,
.hero-background-new,
.hero-overlay-new,
.hero-particles-new {
  will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-particles-new {
    display: none;
  }
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Lazy loading support */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-new:hover {
    transform: none;
  }
  
  .stat-card-new:hover {
    transform: none;
  }
}
