/* 
   ==========================================================================
   DEFINITIVE PREMIUM SAAS DESIGN SYSTEM v7.5 (ULTRA-UX & FINAL FIX)
   ========================================================================== 
*/

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --primary-rgb: 79, 70, 229;
    --secondary: #0f172a;
    --surface: #ffffff;
    --body-bg: #fcfdfe;
    --text-main: #111827;
    --text-muted: #6b7280;
    --nav-height: 90px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-luxe: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 
   ==========================================================================
   FLOATING NAVBAR ARCHITECTURE
   ========================================================================== 
*/

.glass-navbar {
    height: var(--nav-height);
    background: transparent;
    transition: var(--transition);
    border: none;
    z-index: 1050;
    display: flex;
    align-items: center;
}

.navbar-scrolled {
    height: 80px;
}

.navbar-auth-style .nav-link,
.navbar-auth-style .navbar-brand {
    color: #fff !important;
}

.navbar-auth-style.navbar-scrolled .nav-link,
.navbar-auth-style.navbar-scrolled .navbar-brand {
    color: var(--secondary) !important;
}

.navbar-scrolled .container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px;
    padding: 8px 30px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar-brand img {
    height: 36px;
    transition: transform 0.3s;
}

.nav-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary) !important;
    padding: 10px 18px !important;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-light);
}

/* 
   ==========================================================================
   MEGA MENU v3 (ULTRA CLEAN)
   ========================================================================== 
*/

.dropdown-mega {
    position: static;
}

.dropdown-mega .dropdown-menu {
    width: 100%;
    max-width: 1140px;
    left: 50% !important;
    transform: translateX(-50%) translateY(30px);
    border-radius: 40px;
    padding: 35px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    background: #fff;
}

.dropdown-mega:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mega-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 24px;
    text-decoration: none !important;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mega-item:hover {
    background: #f8fafc;
    border-color: #f1f5f9;
    transform: translateY(-3px);
}

.mega-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.mega-item:hover .mega-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.mega-text .title {
    display: block;
    font-weight: 800;
    color: var(--secondary) !important;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.mega-text .desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

/* 
   ==========================================================================
   HERO ENGINE v7.5
   ========================================================================== 
*/

.hero-slider {
    padding-top: 150px;
    padding-bottom: 120px;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 40%);
}

.hero-pill {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-title {
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--secondary);
}

.mockup-img {
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: var(--transition);
}

.mockup-img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* 
   ==========================================================================
   FOOTER ENGINE v7.5
   ========================================================================== 
*/

.premium-footer {
    background: #090e1a;
    padding: 100px 0 50px;
    color: #fff;
}

.footer-head {
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 30px;
}

.newsletter-form-group {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 5px;
    display: flex;
}

.newsletter-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding-left: 25px !important;
    height: 50px;
    box-shadow: none !important;
    flex-grow: 1;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* 
   ==========================================================================
   UTILITIES & SECTION ENGINE
   ========================================================================== 
*/

.section-padding {
    padding: 120px 0;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px;
}

.text-gradient {
    color: var(--primary);
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 35px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

/* Auth Specifics */
.auth-type-pill {
    background: #f1f5f9;
    padding: 6px;
    border-radius: 100px;
    display: inline-flex;
}

.auth-type-btn {
    padding: 10px 24px;
    border-radius: 100px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    color: #64748b;
    background: transparent;
}

.auth-type-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .mega-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .dropdown-mega .dropdown-menu {
        position: relative !important;
        transform: none !important;
        margin-top: 20px;
    }
}

/* 
   ==========================================================================
   ANIMATION & UTILITY ADDONS (Added for Landing Sections)
   ========================================================================== 
*/

.shadow-premium {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.group-hover-effect:hover .icon-wrapper span {
    background-color: var(--primary);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.fs-xs {
    font-size: 0.75rem;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.lh-tight {
    line-height: 1.1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

.absolute-bg {
    pointer-events: none;
}