/**
 * Design System - Core Variables & Tokens
 * All color, spacing, typography, and effect definitions
 */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&family=Heebo:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ===== Typography - Fonts ===== */
  --font-primary: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-headings: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  
  /* ===== Primary Colors - Navy Deep (Premium) ===== */
  --primary-50: #f8fafc;
  --primary-100: #f1f5f9;
  --primary-200: #e2e8f0;
  --primary-300: #cbd5e1;
  --primary-400: #94a3b8;
  --primary-500: #0F172A;
  --primary-600: #0c1220;
  --primary-700: #080d16;
  --primary-800: #05080d;
  --primary-900: #020305;
  
  /* ===== Secondary Colors - Indigo Bright (CTA) ===== */
  --secondary-50: #eef2ff;
  --secondary-100: #e0e7ff;
  --secondary-200: #c7d2fe;
  --secondary-300: #a5b4fc;
  --secondary-400: #818cf8;
  --secondary-500: #6366F1;
  --secondary-600: #4f46e5;
  --secondary-700: #4338ca;
  --secondary-800: #3730a3;
  --secondary-900: #312e81;
  
  /* ===== Accent Color - Main Interactive (Buttons, Active States) ===== */
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-primary-light: rgba(99, 102, 241, 0.1);
  --accent-primary-border: rgba(99, 102, 241, 0.2);
  
  /* ===== Semantic Colors ===== */
  --success-light: #d1fae5;
  --success: #10b981;
  --success-dark: #059669;
  
  --error-light: #fee2e2;
  --error: #ef4444;
  --error-dark: #dc2626;
  
  --warning-light: #fef3c7;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  
  --info-light: #dbeafe;
  --info: #0ea5e9;
  --info-dark: #0284c7;
  
  /* ===== Neutral Colors ===== */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* ===== Text Colors ===== */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  
  /* ===== Background Colors ===== */
  --bg-primary: #ffffff;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #f1f5f9;
  --bg-app: #f8fafc;
  --bg-white: #ffffff;
  --bg-navy: #0F172A;
  --bg-navy-light: #1e293b;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --bg-input-focus: #ffffff;
  
  /* ===== Border Colors ===== */
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --border-dark: #d1d5db;
  
  /* ===== Legacy Compatibility (for gradual migration) ===== */
  --primary-color: #6366f1;
  --secondary-color: var(--secondary-400);
  --primary-dark: #4f46e5;
  
  /* ===== Gradients ===== */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --gradient-secondary: linear-gradient(135deg, #6366F1 0%, #818cf8 100%);
  --gradient-primary-dark: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1e293b 50%, #334155 100%);
  --gradient-mesh: 
    radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(99, 102, 241, 0.1) 0px, transparent 50%);
  
  /* ===== Shadows (Premium Depth) ===== */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.15);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.2);
  --shadow-2xl: 0 25px 50px rgba(15, 23, 42, 0.25);
  
  --shadow-primary: 0 8px 25px rgba(15, 23, 42, 0.3);
  --shadow-secondary: 0 8px 25px rgba(99, 102, 241, 0.4);
  --shadow-success: 0 8px 25px rgba(16, 185, 129, 0.3);
  --shadow-danger: 0 8px 25px rgba(239, 68, 68, 0.3);
  
  /* Floating Effect */
  --shadow-float: 0 12px 30px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  
  /* ===== Spacing Scale ===== */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  
  /* ===== Border Radius ===== */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* ===== Typography Scale ===== */
  --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 */
  
  /* ===== Font Weights ===== */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* ===== Transitions ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ===== Z-Index Scale ===== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: #475569;
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: var(--font-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin-bottom: 0.5em;
}

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); }

/* Links */
a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-600);
}

/* Paragraphs and Lists - Enhanced Readability */
p {
  line-height: 1.6;
  color: #475569;
  font-size: 1.05rem;
}

li {
  line-height: 1.6;
  color: #475569;
  font-size: 1.05rem;
}

/* Buttons base */
button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  outline: none;
}

/* Inputs base */
input, textarea, select {
  font-family: var(--font-primary);
}
