
/* Critical above-the-fold styles */
:root {
    --primary-cyan: #00f5ff;
    --primary-blue: #0066ff;
    --primary-purple: #8b5cf6;
    --accent-teal: #14b8a6;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-cyan: rgba(0, 245, 255, 0.4);
    --neon-blue: rgba(0, 102, 255, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    background: radial-gradient(ellipse at top, #1a1a2e 0%, #16213e 25%, #0f0f23 50%, #000000 100%);
    color: white;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Loading spinner for better perceived performance */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-bg);
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Essential glassmorphism effect */
.glassmorphism {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Critical typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 35%, var(--primary-purple) 70%, var(--accent-teal) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button styles */
button, .btn {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

/* Hide non-critical content during load */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}


/* Preload optimization */
.preload-image {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
}

/* Better image loading */
img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Reduce layout shift */
img[width][height] {
    height: auto;
}
