/**
 * Canonical cinematic SaaS marketing footer — shared across public pages.
 * Matches index-alternative.php (ms-footer) design.
 */
.ms-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 64px 0 32px;
    background: #0e0e1a;
    color: #f1eeff;
}

.ms-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ms-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 28px;
}

.ms-footer .footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}

.ms-footer .footer-brand-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
}

.ms-footer .footer-brand-logo-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 212, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ms-footer .footer-brand-col > p {
    font-size: 14px;
    color: #9b92c8;
    line-height: 1.65;
    margin: 0 0 20px;
}

.ms-footer .footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ms-footer .footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #9b92c8;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ms-footer .footer-social a:hover {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.08);
}

.ms-footer .footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f1eeff;
    margin: 0 0 16px;
}

.ms-footer .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.ms-footer .footer-col ul li a {
    font-size: 14px;
    color: #9b92c8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ms-footer .footer-col ul li a:hover {
    color: #f1eeff;
}

.ms-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ms-footer .footer-copy {
    font-size: 13px;
    color: #9b92c8;
    margin: 0;
}

.ms-footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ms-footer .footer-legal a {
    font-size: 13px;
    color: #9b92c8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ms-footer .footer-legal a:hover {
    color: #f1eeff;
}

@media (max-width: 900px) {
    .ms-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .ms-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .ms-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Light theme */
html[data-theme="light"] .ms-footer,
body.light-mode .ms-footer {
    background: #f8fafc;
    border-top-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

html[data-theme="light"] .ms-footer .footer-grid,
body.light-mode .ms-footer .footer-grid {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .ms-footer .footer-brand-logo-name,
body.light-mode .ms-footer .footer-brand-logo-name {
    background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="light"] .ms-footer .footer-brand-col > p,
html[data-theme="light"] .ms-footer .footer-col ul li a,
html[data-theme="light"] .ms-footer .footer-copy,
html[data-theme="light"] .ms-footer .footer-legal a,
body.light-mode .ms-footer .footer-brand-col > p,
body.light-mode .ms-footer .footer-col ul li a,
body.light-mode .ms-footer .footer-copy,
body.light-mode .ms-footer .footer-legal a {
    color: #64748b;
}

html[data-theme="light"] .ms-footer .footer-col h4,
body.light-mode .ms-footer .footer-col h4 {
    color: #0f172a;
}

html[data-theme="light"] .ms-footer .footer-social a,
body.light-mode .ms-footer .footer-social a {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.03);
    color: #64748b;
}

html[data-theme="light"] .ms-footer .footer-col ul li a:hover,
html[data-theme="light"] .ms-footer .footer-legal a:hover,
body.light-mode .ms-footer .footer-col ul li a:hover,
body.light-mode .ms-footer .footer-legal a:hover {
    color: #0f172a;
}
