/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
/* Non-color tokens only — no theme colors here */
:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --blue-400: #60A5FA;
    --blue-500: #4A6CF7;
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-900: #1E3A5F;

    --accent-gradient: linear-gradient(135deg, #4A6CF7, #3B5DE8);
    --accent-gradient-2: linear-gradient(135deg, #06B6D4, #4A6CF7);
    --accent-gradient-3: linear-gradient(135deg, #4A6CF7, #1D4ED8);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #0A0A0F;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.05);

    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(74, 108, 247, 0.3);

    --shadow-glow: 0 0 30px rgba(74, 108, 247, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(74, 108, 247, 0.25);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(241, 245, 249, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);
    --bg-input: rgba(0, 0, 0, 0.04);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(74, 108, 247, 0.3);

    --shadow-glow: 0 0 30px rgba(74, 108, 247, 0.1);
    --shadow-glow-strong: 0 0 60px rgba(74, 108, 247, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--blue-500); }

img { max-width: 100%; display: block; }

/* ============================================
   ANIMATED GRID BACKGROUND
   ============================================ */
.grid-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(74, 108, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 108, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
}

[data-theme="light"] .grid-bg {
    background-image:
        linear-gradient(rgba(74, 108, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 108, 247, 0.06) 1px, transparent 1px);
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

.glow-orb-1 {
    width: 600px; height: 600px;
    background: rgba(74, 108, 247, 0.08);
    top: -200px; right: -200px;
}

.glow-orb-2 {
    width: 400px; height: 400px;
    background: rgba(59, 93, 232, 0.06);
    bottom: -100px; left: -100px;
    animation-delay: -10s;
}

[data-theme="light"] .glow-orb-1 { background: rgba(74, 108, 247, 0.05); }
[data-theme="light"] .glow-orb-2 { background: rgba(59, 93, 232, 0.04); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-400);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
