/**
 * Money Map - Landing Page Custom Styling & Glassmorphism
 * Enhances Tailwind CSS with custom backdrop filters, animated mesh gradients,
 * typography gradients, and custom keyframes.
 */

/* ==========================================================================
   1. Root Variables & Theme Overrides
   ========================================================================== */
:root {
    --color-teal-glow: rgba(13, 148, 136, 0.4);
    --color-emerald-glow: rgba(16, 185, 129, 0.3);
    --color-indigo-glow: rgba(99, 102, 241, 0.25);
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Base Body Optimizations */
body {
    background-color: #090d16;
    color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

/* Heading Font Binding */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   2. Glassmorphism Components
   ========================================================================== */
.glass-nav {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.15);
}

.glass-button {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   3. Visual Effects, Gradients & Glows
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, #2dd4bf 0%, #10b981 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-glow {
    position: relative;
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #0d9488, #10b981);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 0.8;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.4);
}

/* ==========================================================================
   4. Feature & Testimonial Card Styling
   ========================================================================== */
.feature-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 148, 136, 0.3);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.feature-icon-wrapper {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(3deg);
}

.testimonial-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   5. Custom Keyframe Animations
   ========================================================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 8s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   6. Custom Scrollbar for Landing Page
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #090d16;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #090d16;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* ==========================================================================
   7. Responsive Overrides
   ========================================================================== */
@media (max-width: 640px) {
    .glass-nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-headline {
        font-size: 2.25rem;
        line-height: 1.2;
    }
}