/* Design System Variables */
:root {
  /* Colors */
  --color-primary: #36e27b;
  --color-primary-hover: #2eb865;
  --color-primary-glow: rgba(54, 226, 123, 0.3);
  --color-primary-subtle: rgba(54, 226, 123, 0.1);
  
  /* Background */
  --bg-light: #f6f8f7;
  --bg-dark: #0c120f;
  --surface-light: #ffffff;
  --surface-dark: #1c2620;
  --surface-dark-hover: #243028;
  
  /* Text */
  --text-light: #111714;
  --text-dark: #ffffff;
  --text-muted-light: #6b7280;
  --text-muted-dark: #9eb7a8;
  --text-dimmed-dark: #5a6b61;
  
  /* Borders */
  --border-light: #e5e8eb;
  --border-dark: #29382f;
  
  /* Inputs */
  --input-bg-light: #e8ebe9;
  --input-bg-dark: #151c18;
  
  /* Typography */
  --font-display: 'Spline Sans', system-ui, -apple-system, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 3rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 700ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 50;
  --z-modal: 100;
}

/* Dark mode is default */
[data-theme="dark"], .dark, :root {
  --bg: var(--bg-dark);
  --bg-surface: var(--surface-dark);
  --bg-surface-hover: var(--surface-dark-hover);
  --text: var(--text-dark);
  --text-muted: var(--text-muted-dark);
  --text-dimmed: var(--text-dimmed-dark);
  --border: var(--border-dark);
  --input-bg: var(--input-bg-dark);
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --bg-surface: var(--surface-light);
  --bg-surface-hover: #f3f4f6;
  --text: var(--text-light);
  --text-muted: var(--text-muted-light);
  --text-dimmed: #9ca3af;
  --border: var(--border-light);
  --input-bg: var(--input-bg-light);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px var(--color-primary-glow); }
  50% { box-shadow: 0 0 16px var(--color-primary-glow); }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}
