/* ============================================================================
   PREMIUM DESIGN SYSTEM - MoneyFlowUSA
   Professional, Modern, Designer-Built
   ============================================================================ */

/* ============================================================================
   1. DESIGN TOKENS & VARIABLES
   ============================================================================ */

:root {
    /* Primary Brand Colors */
    --brand-navy: #0A1628;
    --brand-blue: #1E40AF;
    --brand-blue-light: #3B82F6;
    --brand-gold: #F59E0B;
    --brand-gold-light: #FCD34D;
    
    /* Neutral Palette */
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-400: #9CA3AF;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;
    
    /* Semantic Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    
    /* Font Weights */
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    
    /* Spacing Scale */
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;        /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================================================
   2. GLOBAL RESETS & BASE STYLES
   ============================================================================ */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--neutral-800);
    background: var(--neutral-50);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-4xl); }
h4 { font-size: var(--text-3xl); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-xl); }

p {
    line-height: 1.7;
    color: var(--neutral-600);
}

a {
    color: var(--brand-blue-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-blue);
}

/* ============================================================================
   3. PREMIUM BUTTON SYSTEM
   ============================================================================ */

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.btn-premium:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.btn-premium:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Primary Button */
.btn-premium-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.btn-premium-primary:active {
    transform: translateY(0);
}

/* Gold/CTA Button */
.btn-premium-gold {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
    color: var(--brand-navy);
    box-shadow: var(--shadow-md), 0 0 30px rgba(245, 158, 11, 0.3);
    font-weight: var(--fw-bold);
}

.btn-premium-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(245, 158, 11, 0.5);
}

/* Outline Button */
.btn-premium-outline {
    background: transparent;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.btn-premium-outline:hover {
    background: var(--brand-blue);
    color: white;
}

/* Ghost Button */
.btn-premium-ghost {
    background: transparent;
    color: var(--neutral-700);
}

.btn-premium-ghost:hover {
    background: var(--neutral-100);
}

/* Button Sizes */
.btn-premium-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-premium-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-premium-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
}

/* ============================================================================
   4. PREMIUM CARD SYSTEM
   ============================================================================ */

.card-premium {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-blue-light);
}

.card-premium-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
}

.card-premium-body {
    padding: var(--space-6);
}

.card-premium-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

/* Gradient Card */
.card-premium-gradient {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
    color: white;
    border: none;
}

.card-premium-gradient .card-premium-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.card-premium-gradient .card-premium-footer {
    background: rgba(0, 0, 0, 0.1);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Glass Card */
.card-premium-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   5. PREMIUM SECTION LAYOUTS
   ============================================================================ */

.section-premium {
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.section-premium-sm {
    padding: var(--space-12) 0;
}

.section-premium-lg {
    padding: var(--space-32) 0;
}

/* Section Headers */
.section-header-premium {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.section-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid var(--brand-blue-light);
    border-radius: var(--radius-full);
    color: var(--brand-blue);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.section-title-premium {
    font-size: var(--text-5xl);
    font-weight: var(--fw-extrabold);
    color: var(--brand-navy);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description-premium {
    font-size: var(--text-xl);
    color: var(--neutral-600);
    line-height: 1.8;
}

/* ============================================================================
   6. PREMIUM HERO SECTION
   ============================================================================ */

.hero-premium {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #0f172a 50%, var(--brand-blue) 100%);
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}

.hero-content-premium {
    position: relative;
    z-index: 2;
}

.hero-title-premium {
    font-size: var(--text-7xl);
    font-weight: var(--fw-extrabold);
    color: white;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
}

.hero-description-premium {
    font-size: var(--text-2xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-stats-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.hero-stat-item {
    text-align: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-stat-value {
    font-size: var(--text-4xl);
    font-weight: var(--fw-extrabold);
    color: var(--brand-gold-light);
    margin-bottom: var(--space-1);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================================
   7. PREMIUM GRID SYSTEM
   ============================================================================ */

.grid-premium {
    display: grid;
    gap: var(--space-6);
}

.grid-premium-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-premium-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-premium-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================================================
   8. PREMIUM ANIMATIONS
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Stagger Animation Delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ============================================================================
   9. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }
    
    .section-premium {
        padding: var(--space-16) 0;
    }
}

@media (max-width: 768px) {
    :root {
        --text-7xl: 2.5rem;
        --text-6xl: 2rem;
        --text-5xl: 1.875rem;
        --text-4xl: 1.5rem;
    }
    
    .section-premium {
        padding: var(--space-12) 0;
    }
    
    .hero-title-premium {
        font-size: var(--text-5xl);
    }
    
    .hero-description-premium {
        font-size: var(--text-lg);
    }
}

@media (max-width: 640px) {
    .btn-premium {
        width: 100%;
    }
    
    .grid-premium-2,
    .grid-premium-3,
    .grid-premium-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   10. UTILITY CLASSES
   ============================================================================ */

.text-gradient-premium {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern-premium {
    background-image: 
        linear-gradient(30deg, var(--neutral-100) 12%, transparent 12.5%, transparent 87%, var(--neutral-100) 87.5%, var(--neutral-100)),
        linear-gradient(150deg, var(--neutral-100) 12%, transparent 12.5%, transparent 87%, var(--neutral-100) 87.5%, var(--neutral-100));
    background-size: 80px 140px;
}

.shadow-premium-sm { box-shadow: var(--shadow-sm); }
.shadow-premium-md { box-shadow: var(--shadow-md); }
.shadow-premium-lg { box-shadow: var(--shadow-lg); }
.shadow-premium-xl { box-shadow: var(--shadow-xl); }
.shadow-premium-2xl { box-shadow: var(--shadow-2xl); }

.rounded-premium-sm { border-radius: var(--radius-sm); }
.rounded-premium-md { border-radius: var(--radius-md); }
.rounded-premium-lg { border-radius: var(--radius-lg); }
.rounded-premium-xl { border-radius: var(--radius-xl); }
.rounded-premium-2xl { border-radius: var(--radius-2xl); }
.rounded-premium-full { border-radius: var(--radius-full); }
