/* 
   LendingEdge Master Design System 
   Role: Senior Web Designer (10+ Years Experience)
   Style: Tech-Vibrant Professional
*/

:root {
    /* Core Palette */
    --primary-dark: #020617;
    --primary-indigo: #6366f1;
    --primary-emerald: #10b981;
    --primary-rose: #f43f5e;
    --primary-amber: #f59e0b;
    --primary-blue: #3b82f6;
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-slate: #f8fafc;
    --bg-dark: #020617;
    
    /* Gradients */
    --grad-indigo: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --grad-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --grad-rose: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow-indigo: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Global Reset & Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0f172a; /* Deeper slate for better contrast */
    background-color: var(--bg-white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .fw-black { 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    color: #020617; 
}

/* --- NAVBAR: Interactive --- */
.navbar-custom {
    background-color: transparent;
    padding: 30px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar-custom .navbar-brand {
    font-weight: 900;
    color: #fff;
    font-size: 1.6rem;
    transition: all 0.3s;
}

.navbar-custom.scrolled .navbar-brand {
    color: var(--primary-dark);
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s;
}

.navbar-custom.scrolled .nav-link {
    color: var(--text-color);
}

.navbar-custom .btn-primary-custom {
    background: #ffffff !important;
    color: var(--primary-dark) !important;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.2);
}

.navbar-custom.scrolled .btn-primary-custom {
    background: var(--grad-indigo) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.navbar-custom .nav-link:hover,
.navbar-custom.scrolled .nav-link:hover {
    color: var(--primary-indigo) !important;
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--grad-indigo);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow-indigo);
    cursor: pointer;
    border: none;
    transform: translateY(20px);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--bg-dark);
    color: #fff;
}

/* --- HERO: The Hook --- */
.hero-section {
    background: var(--primary-dark);
    min-height: 100vh;
    padding: 160px 0 100px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-mesh-gradient {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-blob {
    position: absolute;
    width: 500px; height: 500px;
    background: var(--primary-indigo);
    filter: blur(120px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 0;
    animation: floating-blob 20s infinite alternate ease-in-out;
}

@keyframes floating-blob {
    0% { transform: translate(-10%, -10%) scale(1); }
    100% { transform: translate(20%, 20%) scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    background: linear-gradient(to bottom right, #fff 40%, rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

/* --- SECTION GENERAL --- */
.section-padding { padding: 120px 0; }

.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 20px;
}

.tag-indigo { background: rgba(99, 102, 241, 0.1); color: var(--primary-indigo); }
.tag-emerald { background: rgba(16, 185, 129, 0.1); color: var(--primary-emerald); }

/* --- CARDS & INTERACTIVITY --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.icon-circle {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.glass-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

/* --- STATISTICS: The Proof --- */
.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 8px;
}

/* --- ANIMATION UTILITIES --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Text Contrast Utility */
.text-muted { color: #475569 !important; }
.lead { color: #334155; font-weight: 500; }

/* --- BUTTONS --- */
.btn-premium {
    background: var(--grad-indigo);
    color: #fff;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow-indigo);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* Utility Classes */
.bg-dark { background-color: var(--primary-dark) !important; }
.bg-white { background-color: var(--bg-white) !important; }
.bg-slate { background-color: var(--bg-slate) !important; }

.text-white { color: #ffffff !important; }
.text-indigo { color: var(--primary-indigo) !important; }
.text-emerald { color: var(--primary-emerald) !important; }
.text-rose { color: var(--primary-rose) !important; }
.text-amber { color: var(--primary-amber) !important; }
.text-blue { color: var(--primary-blue) !important; }

/* --- FOOTER: The Grand Finale --- */
.footer-master {
    background: #020617;
    color: #f1f5f9;
    padding: 120px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-blob {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: 0;
    animation: floating-blob 15s infinite alternate ease-in-out;
}

.footer-blob-indigo { background: var(--primary-indigo); bottom: -100px; left: -100px; }
.footer-blob-rose { background: var(--primary-rose); top: -100px; right: -100px; animation-delay: -5s; }

.footer-master .container { position: relative; z-index: 10; }

.footer-brand {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--primary-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    margin-bottom: 24px;
    display: inline-block;
    text-decoration: none;
}

.footer-link-group h4 {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 28px;
    position: relative;
}

.footer-link-group h4::after {
    content: '';
    position: absolute;
    width: 30px; height: 3px;
    background: var(--primary-indigo);
    bottom: -10px; left: 0;
    border-radius: 2px;
}

.footer-link {
    color: #e2e8f0 !important;
    text-decoration: none;
    display: block;
    margin-bottom: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.footer-link:hover {
    color: #ffffff !important;
    transform: translateX(10px);
}

.footer-link i {
    color: var(--primary-indigo);
    margin-right: 8px;
    font-size: 0.9rem;
}

.social-pill {
    width: 48px; height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    margin-right: 12px;
    transition: all 0.4s;
}

.social-pill:hover {
    background: var(--primary-indigo);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.newsletter-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 16px;
}

.newsletter-box input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.copyright-bar {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.copyright-bar span {
    color: #ffffff;
    font-weight: 700;
}

.footer-master .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}