/* =========================
   DESIGN TOKENS
   Modern, warm, inspiring design system
   ========================= */

:root {
  /* === INSPIRING COLOR PALETTE === */
  /* Warm, energizing backgrounds */
  --surface-primary: #fefcfa;
  --surface-warm: #fdf8f3;
  --surface-elevated: #fcf5ee;
  --surface-accent: #f9f0e7;
  
  /* Text colors - approachable yet professional */
  --text-primary: #2d1810;
  --text-secondary: #5d4a3a;
  --text-muted: #8b7355;
  --text-on-color: #ffffff;
  
  /* Motivational brand colors - energizing but warm */
  --energy-primary: #f2994a;    /* Warm orange - enthusiasm */
  --energy-secondary: #eb8f47;  /* Deeper orange */
  --energy-light: #fff2e6;      /* Light orange background */
  
  --wisdom-primary: #6b73ff;    /* Inspiring blue - trust */
  --wisdom-secondary: #5a63f0;  /* Deeper blue */
  --wisdom-light: #f0f1ff;      /* Light blue background */
  
  --growth-primary: #27d897;    /* Encouraging green - growth */
  --growth-secondary: #20c287;  /* Deeper green */
  --growth-light: #e6fdf5;      /* Light green background */
  
  --warmth-primary: #ff6b8a;    /* Warm pink - connection */
  --warmth-secondary: #ff5577;  /* Deeper pink */
  --warmth-light: #fff0f3;      /* Light pink background */
  
  /* === UNIFIED SPECTRUM PALETTE === */
  /* Full emotional spectrum: spark → warmth → energy → clarity → momentum */
  
  /* Spark (violet) - Internal ignition, potential */
  --spark-primary: #7c4dff;
  --spark-secondary: #6a47d6;
  --spark-light: #f3f0ff;
  
  /* Warmth (pink) - Connection, care */  
  --warmth-primary: #ff6b8a;
  --warmth-secondary: #ff5577;
  --warmth-light: #fff0f3;
  
  /* Energy (orange) - Enthusiasm, action */
  --energy-primary: #f2994a;
  --energy-secondary: #eb8f47;
  --energy-light: #fff2e6;
  
  /* Wisdom (blue) - Trust, insight */
  --wisdom-primary: #6b73ff;
  --wisdom-secondary: #5a63f0;
  --wisdom-light: #f0f1ff;
  
  /* Flow (teal) - Momentum, clarity */
  --flow-primary: #26a69a;
  --flow-secondary: #2db3a5;
  --flow-light: #e8f5f4;
  
  /* Growth (green) - Progress, emergence */
  --growth-primary: #27d897;
  --growth-secondary: #20c287;
  --growth-light: #e6fdf5;
  
  /* === UNIFIED GRADIENT SYSTEM === */
  /* Core duo-tone gradients (135° diagonal) */
  --gradient-energy: linear-gradient(135deg, 
    var(--energy-primary) 0%, 
    #f29d5a 50%, 
    var(--energy-secondary) 100%);
  --gradient-wisdom: linear-gradient(135deg, 
    var(--wisdom-primary) 0%, 
    #6a7aff 50%, 
    var(--wisdom-secondary) 100%);
  --gradient-growth: linear-gradient(135deg, 
    var(--growth-primary) 0%, 
    #2ada99 50%, 
    var(--growth-secondary) 100%);
  --gradient-warmth: linear-gradient(135deg, 
    var(--warmth-primary) 0%, 
    #ff6080 50%, 
    var(--warmth-secondary) 100%);
  
  /* Spectrum flow gradients (90° left-to-right) */
  --gradient-pulse: linear-gradient(90deg, 
    var(--spark-primary) 0%, 
    var(--spark-secondary) 35%,
    var(--flow-secondary) 65%,
    var(--flow-primary) 100%);
  --gradient-full-spectrum: linear-gradient(90deg, 
    var(--spark-primary) 0%,
    var(--warmth-primary) 25%,
    var(--energy-primary) 50%,
    var(--flow-primary) 75%,
    var(--growth-primary) 100%);
  
  /* Blended cross-spectrum gradients */
  --gradient-sunrise: linear-gradient(135deg, 
    var(--energy-primary) 0%, 
    #f97f69 50%, 
    var(--warmth-primary) 100%);
  --gradient-sky: linear-gradient(135deg, 
    var(--wisdom-primary) 0%, 
    #49b8c8 50%, 
    var(--flow-primary) 100%);
  --gradient-spark-flow: linear-gradient(135deg, 
    var(--spark-primary) 0%, 
    #5179d0 50%, 
    var(--flow-primary) 100%);
  --gradient-warm-energy: linear-gradient(135deg, 
    var(--warmth-primary) 0%, 
    #f98269 50%, 
    var(--energy-primary) 100%);
  
  /* === INSPIRING TYPOGRAPHY === */
  /* Fluid, impactful type scale */
  --text-xs: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-sm: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.3rem);
  --text-xl: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --text-2xl: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --text-3xl: clamp(2.2rem, 1.8rem + 2vw, 3.5rem);
  --text-4xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);
  --text-hero: clamp(3.5rem, 3rem + 2.5vw, 6rem);
  
  /* Line heights for readability and impact */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.8;
  
  /* Font weights for hierarchy */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;
  
  /* === WARM SPACING === */
  /* Generous, breathable spacing */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --space-2xl: clamp(2.5rem, 2rem + 2.5vw, 5rem);
  --space-3xl: clamp(3rem, 2.5rem + 2.5vw, 6rem);
  
  /* === PROFESSIONAL LAYOUT === */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --content-width: min(1380px, 94vw);
  --hero-width: min(1500px, 95vw);
  
  /* === WARM SHADOWS === */
  --shadow-soft: 0 2px 8px rgba(242, 153, 74, 0.08);
  --shadow-warm: 0 4px 16px rgba(242, 153, 74, 0.12);
  --shadow-inspiring: 0 8px 32px rgba(242, 153, 74, 0.15);
  --shadow-bold: 0 16px 48px rgba(242, 153, 74, 0.2);
  
  /* Colored shadows for brand elements */
  --shadow-energy: 0 8px 24px rgba(242, 153, 74, 0.25);
  --shadow-wisdom: 0 8px 24px rgba(107, 115, 255, 0.2);
  --shadow-growth: 0 8px 24px rgba(39, 216, 151, 0.2);
  --shadow-pulse: 0 8px 24px rgba(124, 77, 255, 0.2);
  --shadow-pulse-teal: 0 8px 24px rgba(38, 166, 154, 0.2);
  
  /* === INSPIRING BORDERS === */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;
  --radius-full: 9999px;
  
  /* === SMOOTH MOTION === */
  --duration-quick: 150ms;
  --duration-smooth: 300ms;
  --duration-gentle: 500ms;
  --duration-inspiring: 800ms;
  
  --ease-inspiring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  
  /* === Z-INDEX SCALE === */
  --z-behind: -1;
  --z-base: 0;
  --z-elevated: 10;
  --z-sticky: 100;
  --z-modal: 1000;
  
  /* === ENHANCED SHADOWS === */
  --shadow-hover: 0 12px 40px rgba(242, 153, 74, 0.18);
  --shadow-focus: 0 0 0 3px rgba(242, 153, 74, 0.3);
  
  /* === ENHANCED CONTRAST === */
  --text-strong: #1a0f08;
  --border-subtle: rgba(242, 153, 74, 0.12);
  --border-medium: rgba(242, 153, 74, 0.25);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  :root {
    --content-width: 92vw;
    --hero-width: 92vw;
  }
}

@media (max-width: 480px) {
  :root {
    --text-hero: clamp(1.75rem, 1.35rem + 2.5vw, 2.25rem);
    --text-4xl: clamp(1.5rem, 1.2rem + 2vw, 2rem);
    --text-3xl: clamp(1.375rem, 1.15rem + 1.8vw, 1.75rem);
    --text-2xl: clamp(1.25rem, 1.05rem + 1.5vw, 1.5rem);
    --text-xl: clamp(1.125rem, 1rem + 1vw, 1.375rem);
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    --space-2xl: 1.5rem;
    
    --content-width: 96vw;
    --hero-width: 96vw;
  }
}

@media (max-width: 360px) {
  :root {
    --text-hero: clamp(1.6rem, 1.2rem + 2.5vw, 2rem);
    --text-4xl: clamp(1.375rem, 1.15rem + 2vw, 1.75rem);
    --text-3xl: clamp(1.25rem, 1.1rem + 1.6vw, 1.5rem);
    
    --space-lg: 0.875rem;
    --space-md: 0.625rem;
    --space-sm: 0.5rem;
    
    --content-width: 98vw;
    --hero-width: 98vw;
  }
}

/* === ACCESSIBILITY PREFERENCES === */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-quick: 0ms;
    --duration-smooth: 0ms;
    --duration-gentle: 0ms;
    --duration-inspiring: 0ms;
  }
}

@media (prefers-contrast: high) {
  :root {
    /* Increase contrast for accessibility */
    --text-primary: #1a0f08;
    --text-secondary: #3d2418;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-warm: 0 4px 16px rgba(0, 0, 0, 0.25);
  }
}
