/* ==========================================================================
   CRITICAL CSS - ABOVE THE FOLD STYLES
   Load immediately, other styles can be deferred
   ========================================================================== */

/* Minimal reset for immediate display */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a192f;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Critical colors */
:root {
    --primary-dark: #0a192f;
    --primary-medium: #172a45;
    --accent-blue: #007acc;
    --accent-blue-light: #4f96d8;
    --white: #ffffff;
    --text-primary: #ffffff;
    --text-primary-light: #ffffff;
    --text-muted: #495670;
    --text-light: #cbd5e1;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --container-width: 1200px;
    --container-padding: 2rem;

    --border-radius-lg: 12px;
    --transition-normal: 0.3s ease;
}

/* Critical layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Critical hero styles for immediate display */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    padding: 8rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-left h1 {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Critical mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .hero-left h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
}

/* Hide content until fonts load */
.wf-loading body {
    visibility: hidden;
}

.wf-active body,
.wf-inactive body {
    visibility: visible;
}