:root {
    /* Global Variables - Switched to SaaS Purple */
    --global-primary: #7c3aed;
    --global-text-main: #0F172A;
    --global-text-secondary: #475569;
    --global-border: #E2E8F0;
    --global-light-bg: #F8FAFC;
    
    /* Footer Specific Variables */
    --footer-bg: #FFFFFF;
    --footer-bg-start: #F5F3FF; /* Very light purple tint */
    --footer-bg-end: #FFFFFF; 
    --footer-primary: var(--global-primary);
    --footer-gradient-start: #a855f7;
    --footer-gradient-end: #7c3aed;
    --footer-cta-bg: var(--global-light-bg);
}

/* -------------------------------------------------------------------
 * HEADER
 * ------------------------------------------------------------------- */
.main-header {
    background: #ffffff;
    border-bottom: none; 
    padding: 20px 0;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-wrapper {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: nowrap;
}

.nav-brand { 
    font-size: 1.25rem; 
    font-weight: 800; 
    color: var(--global-text-main); 
    display: flex; 
    align-items: center; 
    padding: 0; 
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--global-primary);
}

.nav-menu { display: none; }
@media (min-width: 992px) {
    .nav-menu {
        display: flex;
        align-items: center;
        margin: 0 auto;
        gap: 40px;
    }
}

.nav-link { 
    color: var(--global-text-secondary); 
    font-size: 0.95rem; 
    font-weight: 600;
    position: relative;
    padding: 5px 0; 
    opacity: 0.9;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--global-primary);
    opacity: 1;
}

.header-actions {
    display: flex; 
    align-items: center; 
    gap: 15px;
    flex-shrink: 0; 
}

.btn-login-minimal {
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    background: var(--global-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
}

.btn-login-minimal:hover {
    background: #111827; 
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(17, 24, 39, 0.2);
}

/* -------------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------------- */
.footer-premium-section {
    padding-top: 60px; 
    padding-bottom: 20px;
    background: linear-gradient(to bottom, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%); 
    border-top: 1px solid var(--global-border);
}

/* --- CTA Bar --- */
.footer-cta-bar {
    background: #ffffff;
    border: 1px solid var(--global-border);
    border-radius: 20px;
    padding: 40px 50px;
    margin-bottom: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--global-text-main);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--global-text-secondary);
    margin: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--footer-gradient-start) 0%, var(--footer-primary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary-gradient i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}
.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(124, 58, 237, 0.4);
    color: #fff;
}
.btn-primary-gradient:hover i {
    transform: translateX(4px);
}

/* --- Main Grid --- */
.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--global-text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--footer-primary);
    margin-right: 10px;
    font-size: 1.8rem;
}

.branding-text {
    font-size: 1rem;
    color: var(--global-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    color: var(--global-text-secondary);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--global-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.social-links a:hover {
    color: #fff;
    background: var(--footer-primary);
    border-color: var(--footer-primary);
    transform: translateY(-2px);
}

/* Navigation Columns */
.col-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--global-text-main);
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--global-text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--footer-primary);
}

/* --- Bottom Bar --- */
.footer-bottom-bar {
    border-top: 1px solid var(--global-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--global-text-secondary);
    font-weight: 500;
}
.active-purple { color: #8b5cf6 !important; }
    .nav-link:hover { color: #8b5cf6 !important; }
    .btn-purple-nav {
        background-color: #8b5cf6;
        color: white !important;
        padding: 10px 24px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-block;
    }
    .btn-purple-nav:hover {
        background-color: #7c3aed;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    }
/* -------------------------------------------------------------------
 * RESPONSIVE ADJUSTMENTS
 * ------------------------------------------------------------------- */
@media (max-width: 992px) {
    .nav-menu { display: none !important; }
    
    .footer-cta-bar {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px;
    }
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-branding {
        grid-column: span 2;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .branding-text {
        margin: 0 auto 30px auto;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-branding {
        grid-column: span 1;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 15px;
    }
}