
    /* ===== CSS VARIABLES & THEME ===== */
    :root {
        /* Primary Colors */
        --primary: #6c5ce7;
        --primary-hover: #  ;
        --primary-light: rgba(108, 92, 231, 0.1);
        
        /* Text Colors */
        --text-primary: #1e293b;
        --text-secondary: #64748b;
        --text-muted: #94a3b8;
        --text-inverse: #ffffff;
        
        /* Backgrounds */
        --bg-footer: #ffffff;
        --bg-bottom: #f8fafc;
        --bg-input: #f1f5f9;
        --bg-social: #f1f5f9;
        
        /* Borders & Shadows */
        --border-color: #e2e8f0;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.25);
        
        /* Spacing & Radius */
        --radius-pill: 9999px;
        --radius-md: 12px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Dark Mode Support */
    @media (prefers-color-scheme: dark) {
        :root {
            --bg-footer: #0f172a;
            --bg-bottom: #1e293b;
            --bg-input: #334155;
            --bg-social: #334155;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --border-color: #334155;
        }
    }

    /* ===== BASE RESET & TYPOGRAPHY ===== */
    .footer-wrapper *,
    .footer-wrapper *::before,
    .footer-wrapper *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .footer-wrapper {
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        background: var(--bg-footer);
        color: var(--text-secondary);
        line-height: 1.6;
        overflow: hidden;
    }

    /* ===== MAIN FOOTER AREA ===== */
    .footer-main {
        padding: 72px 0 48px;
        position: relative;
    }

    /* Subtle decorative background element */
    .footer-main::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        z-index: 0;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px 24px;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
        position: relative;
        z-index: 1;
    }

    /* ===== BRAND SECTION ===== */
    .footer-brand {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-primary);
        text-decoration: none;
        margin-bottom: 20px;
        transition: var(--transition);
    }

    .footer-brand:hover {
        transform: translateX(3px);
        color: var(--primary);
    }

    .footer-brand span {
        color: var(--primary);
        background: linear-gradient(135deg, var(--primary), #a29bfe);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .footer-brand-icon {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, var(--primary), var(--primary-hover));
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 14px;
        font-weight: 700;
    }

    .footer-description {
        font-size: 0.9375rem;
        color: var(--text-secondary);
        margin-bottom: 28px;
        max-width: 280px;
    }

    /* ===== NEWSLETTER FORM ===== */
    .newsletter-form {
        position: relative;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .newsletter-input {
        width: 100%;
        padding: 14px 110px 14px 20px;
        background: var(--bg-input);
        border: 2px solid transparent;
        border-radius: var(--radius-pill);
        font-size: 0.875rem;
        color: var(--text-primary);
        transition: var(--transition);
        outline: none;
    }

    .newsletter-input::placeholder {
        color: var(--text-muted);
    }

    .newsletter-input:focus {
        background: var(--bg-footer);
        border-color: var(--primary);
        box-shadow: 0 0 0 4px var(--primary-light);
    }

    .newsletter-input:invalid:not(:placeholder-shown) {
        border-color: #ef4444;
        animation: shake 0.3s ease;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }

    .newsletter-btn {
        position: absolute;
        right: 6px;
        top: 6px;
        padding: 10px 20px;
        background: linear-gradient(135deg, var(--primary), var(--primary-hover));
        color: white;
        border: none;
        border-radius: var(--radius-pill);
        font-size: 0.8125rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .newsletter-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .newsletter-btn:active {
        transform: translateY(0);
    }

    .newsletter-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    .form-message {
        font-size: 0.8125rem;
        margin-top: 10px;
        min-height: 20px;
        color: var(--text-muted);
    }

    .form-message.success { color: #10b981; }
    .form-message.error { color: #ef4444; }

    /* ===== SOCIAL LINKS ===== */
    .social-links {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-social);
        color: var(--text-primary);
        border-radius: 50%;
        text-decoration: none;
        transition: var(--transition);
        position: relative;
        overflow: hidden;
    }

    .social-link::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--primary), var(--primary-hover));
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }

    .social-link:hover {
        color: white;
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .social-link:hover::before {
        opacity: 1;
    }

    .social-link:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    /* ===== FOOTER COLUMNS ===== */
    .footer-column h4 {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 24px;
        position: relative;
        padding-bottom: 12px;
    }

    .footer-column h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), transparent);
        border-radius: 3px;
    }

    .footer-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .footer-link {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.9375rem;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: relative;
        padding-left: 0;
    }

    .footer-link::before {
        content: '→';
        opacity: 0;
        transform: translateX(-8px);
        transition: var(--transition);
        color: var(--primary);
        font-weight: 600;
    }

    .footer-link:hover {
        color: var(--primary);
        padding-left: 16px;
    }

    .footer-link:hover::before {
        opacity: 1;
        transform: translateX(0);
    }

    .footer-link:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* ===== BOTTOM BAR ===== */
    .footer-bottom {
        background: var(--bg-bottom);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
    }

    .footer-bottom-content {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .copyright {
        font-size: 0.875rem;
        color: var(--text-muted);
    }

    .copyright a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: var(--transition);
    }

    .copyright a:hover {
        color: var(--primary);
    }

    .footer-legal {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
    }

    .footer-legal a {
        font-size: 0.875rem;
        color: var(--text-muted);
        text-decoration: none;
        transition: var(--transition);
        position: relative;
        padding-bottom: 2px;
    }

    .footer-legal a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--primary);
        transition: var(--transition);
    }

    .footer-legal a:hover {
        color: var(--primary);
    }

    .footer-legal a:hover::after {
        width: 100%;
    }

    /* ===== BACK TO TOP BUTTON ===== */
    .back-to-top {
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: var(--transition);
    }

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, var(--primary), var(--primary-hover));
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        text-decoration: none;
        box-shadow: var(--shadow-lg), var(--shadow-glow);
        transition: var(--transition);
        font-size: 1.125rem;
    }

    .back-to-top-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), var(--shadow-glow);
    }

    .back-to-top-btn:active {
        transform: translateY(-1px);
    }

    .back-to-top-btn:focus-visible {
        outline: 3px solid white;
        outline-offset: 3px;
    }

    /* ===== RESPONSIVE DESIGN ===== */
    @media (max-width: 1024px) {
        .footer-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 40px 32px;
        }
        
        .footer-brand { font-size: 1.375rem; }
    }

    @media (max-width: 768px) {
        .footer-main {
            padding: 56px 0 40px;
        }
        
        .footer-grid {
            grid-template-columns: 1fr;
            text-align: center;
        }
        
        .footer-column h4::after {
            left: 50%;
            transform: translateX(-50%);
        }
        
        .footer-links {
            align-items: center;
        }
        
        .footer-link:hover {
            padding-left: 0;
        }
        
        .footer-link::before {
            display: none;
        }
        
        .newsletter-form {
            max-width: 320px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .social-links {
            justify-content: center;
        }
        
        .footer-bottom-content {
            flex-direction: column;
            text-align: center;
        }
        
        .footer-legal {
            justify-content: center;
        }
    }

    @media (max-width: 480px) {
        .footer-main { padding: 48px 0 32px; }
        
        .newsletter-btn {
            padding: 10px 16px;
            font-size: 0.75rem;
        }
        
        .newsletter-input {
            padding: 12px 95px 12px 16px;
            font-size: 0.8125rem;
        }
        
        .footer-legal {
            gap: 16px;
            font-size: 0.8125rem;
        }
    }

    /* ===== ACCESSIBILITY & REDUCED MOTION ===== */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }

    .footer-wrapper :focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    /* Screen reader only class */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }