/**
 * ============================================================================
 * STARTEMPIRE WIRE DESIGN SYSTEM - CSS CUSTOM PROPERTIES
 * Version 2.0 - CORRECT BRAND COLORS (From Figma)
 * ============================================================================
 * 
 * PRIMARY BRAND: Coral Pink #FF6A70
 * DARK: Black #000000 / Near-Black #1A1A1A
 * NEUTRAL: Warm Cream #f5f5f5
 * TEXT: Dark Gray #2D2D2D
 * 
 * NO BLUE, NO PURPLE - Those were wrong
 * ============================================================================
 */

:root {
  /* ==========================================================================
     BRAND COLORS - STARTEMPIRE WIRE (FROM FIGMA)
     ========================================================================== */
  
  /* Primary - Coral Pink (THE main brand color) */
  --sew-primary-50: #FFF5F5;
  --sew-primary-100: #FFE5E6;
  --sew-primary-200: #FFCBCD;
  --sew-primary-300: #FFB1B4;
  --sew-primary-400: #FF8D92;
  --sew-primary-500: #FF6A70;   /* MAIN BRAND COLOR */
  --sew-primary-600: #E65056;
  --sew-primary-700: #CC3640;
  --sew-primary-800: #B31C2B;
  --sew-primary-900: #990215;
  
  /* Dark - Black/Near-Black for headers, footers, dark sections */
  --sew-dark-50: #F5F5F5;
  --sew-dark-100: #E0E0E0;
  --sew-dark-200: #C2C2C2;
  --sew-dark-300: #A3A3A3;
  --sew-dark-400: #6B6B6B;
  --sew-dark-500: #2D2D2D;    /* Body text color */
  --sew-dark-600: #1A1A1A;    /* Near-black backgrounds */
  --sew-dark-700: #141414;
  --sew-dark-800: #0D0D0D;
  --sew-dark-900: #000000;    /* Pure black */
  
  /* Neutral/Background - Warm cream/off-white */
  --sew-neutral-50: #FFFFFF;
  --sew-neutral-100: #FFFFFF;
  --sew-neutral-200: #FFFFFF;  /* White - decided bg */
  --sew-neutral-300: #f5f5f5;
  --sew-neutral-400: #E8E4DD;
  --sew-neutral-500: #D1CCC3;
  --sew-neutral-600: #B8B3AA;
  --sew-neutral-700: #9F9A91;
  --sew-neutral-800: #868178;
  --sew-neutral-900: #6D685F;
  
  /* Grayscale for text and UI elements - SOPHISTICATED PALETTE */
  --sew-gray-50: #FAFAFA;
  --sew-gray-100: #F5F5F5;
  --sew-gray-200: #EEEEEE;
  --sew-gray-300: #E0E0E0;
  --sew-gray-400: #BDBDBD;
  --sew-gray-500: #9E9E9E;
  --sew-gray-600: #757575;
  --sew-gray-700: #666666;    /* Muted secondary text - sophisticated */
  --sew-gray-800: #424242;
  --sew-gray-900: #212121;
  
  /* Professional muted tones for sophisticated design */
  --sew-text-muted: #666666;        /* Secondary text */
  --sew-text-muted-light: #B0B0B0;  /* Tertiary text on dark backgrounds */
  
  /* Semantic Colors (for alerts, status, etc.) */
  --sew-success-50: #ECFDF5;
  --sew-success-500: #10B981;
  --sew-success-900: #064E3B;
  
  --sew-warning-50: #FFFBEB;
  --sew-warning-500: #F59E0B;
  --sew-warning-900: #78350F;
  
  --sew-error-50: #FEF2F2;
  --sew-error-500: #EF4444;
  --sew-error-900: #7F1D1D;
  
  --sew-info-50: #EFF6FF;
  --sew-info-500: #3B82F6;
  --sew-info-900: #1E3A8A;
  
n  /* Missing intermediate shades for semantic colors */
  --sew-success-600: #059669;
  --sew-error-600: #DC2626;
  /* Background & Surface Colors */
  --sew-bg-primary: #FFFFFF;
  --sew-bg-secondary: #FFFFFF;
  --sew-bg-tertiary: #f5f5f5;
  --sew-bg-dark: #000000;
  --sew-bg-dark-alt: #1A1A1A;
  --sew-bg-overlay: rgba(0, 0, 0, 0.7);
  
  /* ==========================================================================
     TYPOGRAPHY SYSTEM
     ========================================================================== */
  
  /* Font Families */
  --sew-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --sew-font-display: 'Archivo Black', 'Inter', sans-serif;
  --sew-font-mono: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', monospace;
  
  /* Type Scale (Perfect Fourth - 1.333 ratio) */
  --sew-text-xs: 0.75rem;      /* 12px */
  --sew-text-sm: 0.875rem;     /* 14px */
  --sew-text-base: 1rem;       /* 16px */
  --sew-text-lg: 1.125rem;     /* 18px */
  --sew-text-xl: 1.333rem;     /* 21.33px */
  --sew-text-2xl: 1.777rem;    /* 28.43px */
  --sew-text-3xl: 2.369rem;    /* 37.90px */
  --sew-text-4xl: 3.157rem;    /* 50.52px */
  --sew-text-5xl: 4.209rem;    /* 67.34px */
  
  /* Line Heights */
  --sew-leading-none: 1;
  --sew-leading-tight: 1.25;
  --sew-leading-snug: 1.375;
  --sew-leading-normal: 1.5;
  --sew-leading-relaxed: 1.625;
  --sew-leading-loose: 2;
  
  /* Font Weights */
  --sew-font-light: 300;
  --sew-font-normal: 400;
  --sew-font-medium: 500;
  --sew-font-semibold: 600;
  --sew-font-bold: 700;
  --sew-font-black: 900;
  
  /* Letter Spacing */
  --sew-tracking-tighter: -0.05em;
  --sew-tracking-tight: -0.025em;
  --sew-tracking-normal: 0;
  --sew-tracking-wide: 0.025em;
  --sew-tracking-wider: 0.05em;
  --sew-tracking-widest: 0.1em;
  
  /* ==========================================================================
     SPACING SYSTEM (8px base grid) - Generous for sophisticated feel
     ========================================================================== */
  
  --sew-space-0: 0;
  --sew-space-1: 0.25rem;   /* 4px */
  --sew-space-2: 0.5rem;    /* 8px */
  --sew-space-3: 0.75rem;   /* 12px */
  --sew-space-4: 1rem;      /* 16px */
  --sew-space-5: 1.25rem;   /* 20px */
  --sew-space-6: 1.5rem;    /* 24px */
  --sew-space-8: 2rem;      /* 32px */
  --sew-space-10: 2.5rem;   /* 40px */
  --sew-space-12: 3rem;     /* 48px - generous breathing room */
  --sew-space-16: 4rem;     /* 64px */
  --sew-space-20: 5rem;     /* 80px */
  --sew-space-24: 6rem;     /* 96px */
  --sew-space-32: 8rem;     /* 128px */
  --sew-space-40: 10rem;    /* 160px */
  --sew-space-48: 12rem;    /* 192px */
  --sew-space-56: 14rem;    /* 224px */
  --sew-space-64: 16rem;    /* 256px */
  
  /* ==========================================================================
  --sew-shadow-primary: 0 10px 15px -3px rgba(255, 106, 112, 0.3), 0 4px 6px -4px rgba(255, 106, 112, 0.2);
  --sew-shadow-success: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -4px rgba(16, 185, 129, 0.2);
  
  /* ==========================================================================
    
  /* ==========================================================================
     ELEVATION SYSTEM (Shadows) - Subtle, modern shadows instead of borders
     ========================================================================== */
  
  /* Subtle shadows for cards (replaces borders) */
  --sew-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sew-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --sew-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --sew-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --sew-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --sew-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Card shadows - very subtle */
  --sew-shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  --sew-shadow-card-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 6px -2px rgba(0, 0, 0, 0.08);
  
  /* Colored Shadows - using Coral Pink (subtle) */
  --sew-shadow-primary: 0 4px 12px -2px rgba(255, 106, 112, 0.15), 0 2px 6px -2px rgba(255, 106, 112, 0.1);
  --sew-shadow-primary-strong: 0 10px 24px -6px rgba(255, 106, 112, 0.25), 0 4px 12px -4px rgba(255, 106, 112, 0.15);
  --sew-shadow-success: 0 4px 12px -2px rgba(16, 185, 129, 0.15), 0 2px 6px -2px rgba(16, 185, 129, 0.1);
MOTION SYSTEM
     ========================================================================== */
  
  /* Timing Functions */
  --sew-ease-linear: linear;
  --sew-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --sew-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --sew-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --sew-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --sew-ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Duration Scale */
  --sew-duration-instant: 50ms;
  --sew-duration-fast: 100ms;
  --sew-duration-normal: 200ms;
  --sew-duration-slow: 300ms;
  --sew-duration-slower: 500ms;
  
  /* Transitions */
  --sew-transition-all: all 200ms var(--sew-ease-out);
  --sew-transition-colors: color 200ms var(--sew-ease-out), 
                           background-color 200ms var(--sew-ease-out), 
                           border-color 200ms var(--sew-ease-out);
  --sew-transition-transform: transform 200ms var(--sew-ease-out);
  --sew-transition-opacity: opacity 200ms var(--sew-ease-out);
  
  /* ==========================================================================
     BORDER RADIUS SYSTEM
     ========================================================================== */
  
  --sew-radius-none: 0;
  --sew-radius-sm: 2px;
  --sew-radius-base: 5px;
  --sew-radius-md: 5px;
  --sew-radius-lg: 5px;
  --sew-radius-xl: 8px;
  --sew-radius-2xl: 12px;
  --sew-radius-3xl: 16px;
  --sew-radius-full: 9999px;
  
  /* ==========================================================================
     GRADIENT SYSTEM - Using CORAL PINK
     ========================================================================== */
  
  --sew-gradient-primary: linear-gradient(135deg, #FF6A70 0%, #E65056 100%);
  --sew-gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #000000 100%);
  --sew-gradient-light: linear-gradient(135deg, #FFFFFF 0%, #f5f5f5 100%);
  
  /* Overlay Gradients */
  --sew-gradient-overlay-dark: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
  --sew-gradient-overlay-light: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  
  /* ==========================================================================
     BREAKPOINTS & CONTAINERS
     ========================================================================== */
  
  --sew-screen-sm: 640px;
  --sew-screen-md: 768px;
  --sew-screen-lg: 1024px;
  --sew-screen-xl: 1280px;
  --sew-screen-2xl: 1536px;
  
  --sew-container-sm: 640px;
  --sew-container-md: 768px;
  --sew-container-lg: 1024px;
  --sew-container-xl: 1280px;
  --sew-container-2xl: 1400px;
  
  /* ==========================================================================
     Z-INDEX SYSTEM
     ========================================================================== */
  
  --sew-z-base: 0;
  --sew-z-dropdown: 1000;
  --sew-z-sticky: 1020;
  --sew-z-fixed: 1030;
  --sew-z-modal-backdrop: 1040;
  --sew-z-modal: 1050;
  --sew-z-popover: 1060;
  --sew-z-tooltip: 1070;
}

/**
 * Load Google Fonts for optimal typography
 */

/**
 * Global resets and base styles
 */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sew-font-primary);
  font-size: var(--sew-text-base);
  line-height: var(--sew-leading-normal);
  color: var(--sew-dark-500);
  background: #FFFFFF;
  margin: 0;
  padding: 0;
}

/**
 * Accessibility: Focus visible for keyboard navigation
 * Using CORAL PINK for focus
 */
*:focus-visible {
  outline: 3px solid var(--sew-primary-500);
  outline-offset: 2px;
}

  scroll-behavior: smooth;
}

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