/* ========================================
   Harjun Raskaskone v4.0 - Design Tokens
   Apple/Tesla-grade Industrial Finance
   ======================================== */

:root {
    /* Light Industrial Finance Palette */
    --color-bg-primary: #fafbfc;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f5f7fa;
    --color-bg-card: #ffffff;
    
    /* Text Colors - Ink tones */
    --color-text-primary: #0f1419;
    --color-text-secondary: #4a5568;
    --color-text-muted: #6b7280;
    --color-text-inverse: #ffffff;
    
    /* Steel & Graphite */
    --color-steel-50: #f8fafc;
    --color-steel-100: #f1f5f9;
    --color-steel-200: #e2e8f0;
    --color-steel-300: #cbd5e1;
    --color-steel-400: #94a3b8;
    --color-steel-500: #64748b;
    --color-steel-600: #475569;
    --color-steel-700: #334155;
    --color-steel-800: #1e293b;
    --color-steel-900: #0f172a;
    
    /* Accent - Refined Blue */
    --color-accent-primary: #2563eb;
    --color-accent-secondary: #3b82f6;
    --color-accent-light: #dbeafe;
    --color-accent-dark: #1e40af;
    
    /* Success & Status */
    --color-success: #10b981;
    --color-success-bg: #d1fae5;
    --color-success-text: #065f46;
    --color-success-border: #6ee7b7;
    
    --color-warning: #f59e0b;
    --color-warning-bg: #fef3c7;
    --color-warning-text: #92400e;
    --color-warning-border: #fcd34d;
    
    --color-error: #ef4444;
    --color-error-bg: #fee2e2;
    --color-error-text: #991b1b;
    --color-error-border: #fca5a5;
    
    --color-info: #3b82f6;
    
    /* Border & Dividers */
    --color-border-primary: #e5e7eb;
    --color-border-secondary: #f3f4f6;
    --color-border-accent: #e0e7ff;
    
    /* Shadows - Layered depth */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    /* Glow effects for hover states */
    --shadow-glow-sm: 0 0 0 3px rgba(37, 99, 235, 0.1);
    --shadow-glow-md: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.15);
    --shadow-glow-lg: 0 0 30px rgba(37, 99, 235, 0.2);
    
    /* Typography Scale - Large & Premium */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    --font-size-7xl: 4.5rem;      /* 72px */
    
    /* Line Heights */
    --line-height-tight: 1.15;
    --line-height-snug: 1.3;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 1.75;
    
    /* Letter Spacing */
    --letter-spacing-tighter: -0.05em;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing Scale */
    --spacing-0: 0;
    --spacing-px: 1px;
    --spacing-0_5: 0.125rem;  /* 2px */
    --spacing-1: 0.25rem;     /* 4px */
    --spacing-1_5: 0.375rem;  /* 6px */
    --spacing-2: 0.5rem;      /* 8px */
    --spacing-2_5: 0.625rem;  /* 10px */
    --spacing-3: 0.75rem;     /* 12px */
    --spacing-4: 1rem;        /* 16px */
    --spacing-5: 1.25rem;     /* 20px */
    --spacing-6: 1.5rem;      /* 24px */
    --spacing-7: 1.75rem;     /* 28px */
    --spacing-8: 2rem;        /* 32px */
    --spacing-10: 2.5rem;     /* 40px */
    --spacing-12: 3rem;       /* 48px */
    --spacing-16: 4rem;       /* 64px */
    --spacing-20: 5rem;       /* 80px */
    --spacing-24: 6rem;       /* 96px */
    --spacing-32: 8rem;       /* 128px */
    --spacing-40: 10rem;      /* 160px */
    
    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.375rem;    /* 6px */
    --radius-base: 0.5rem;    /* 8px */
    --radius-md: 0.75rem;     /* 12px */
    --radius-lg: 1rem;        /* 16px */
    --radius-xl: 1.5rem;      /* 24px */
    --radius-2xl: 2rem;       /* 32px */
    --radius-full: 9999px;
    
    /* Layout */
    --container-max-width: 1280px;
    --container-padding: var(--spacing-6);
    --header-height: 80px;
    --section-spacing: var(--spacing-24);
    --section-spacing-mobile: var(--spacing-16);
    
    /* Transitions - Smooth & purposeful */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Easing curves */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Motion durations (for JS animations) */
    --dur-1: 160ms;
    --dur-2: 220ms;
    --dur-3: 260ms;
    --dur-4: 420ms;
    --dur-5: 600ms;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Bento Grid */
    --bento-gap: var(--spacing-6);
    --bento-gap-mobile: var(--spacing-4);
    
    /* Gradient Backgrounds */
    --gradient-mesh: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(100, 116, 139, 0.02) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.02) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(100, 116, 139, 0.03) 0px, transparent 50%);
    
    --gradient-accent: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    --gradient-steel: linear-gradient(135deg, var(--color-steel-600) 0%, var(--color-steel-700) 100%);
    
    /* Noise texture (for subtle industrial feel) */
    --noise-opacity: 0.015;
}

/* Responsive Typography Adjustments */
@media (max-width: 768px) {
    :root {
        --font-size-6xl: 2.625rem;  /* 42px on mobile */
        --font-size-5xl: 2.25rem;   /* 36px on mobile */
        --font-size-4xl: 1.875rem;  /* 30px on mobile */
        --font-size-3xl: 1.5rem;    /* 24px on mobile */
        --section-spacing: var(--section-spacing-mobile);
    }
}
