/* ===== GLOBAL STYLES - BILLION DOLLAR SAAS ===== */

/* Base Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* Section Spacing */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header-left {
    text-align: left;
    margin-bottom: 60px;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

/* Section Subtitle */
.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
    font-weight: 400;
}

/* Gradient Text */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger Animation */
.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 75ms; }
.stagger-3 { transition-delay: 150ms; }
.stagger-4 { transition-delay: 225ms; }
.stagger-5 { transition-delay: 300ms; }
.stagger-6 { transition-delay: 375ms; }
.stagger-7 { transition-delay: 450ms; }
.stagger-8 { transition-delay: 525ms; }

/* Grid Pattern Background */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Radial Fade */
.radial-fade {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 70%);
    pointer-events: none;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(17, 25, 39, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

/* Glow Border Card */
.glow-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.glow-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), transparent, rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-card:hover::after {
    opacity: 1;
}

.glow-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(99, 102, 241, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-up {
        opacity: 1;
        transform: none;
    }
}
