/* Footer */
.site-footer {
    position: relative;
    margin-top: 0;
    background:
        radial-gradient(130% 120% at 10% 0%, rgba(84, 159, 212, 0.2), transparent 50%),
        radial-gradient(100% 120% at 90% 100%, rgba(168, 230, 161, 0.2), transparent 55%),
        linear-gradient(140deg, #0a111f 0%, #0f1e34 45%, #132946 100%);
    color: #f3f7ff;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-shell {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(32px, 4vw, 56px) 24px 20px;
}

.footer-shell::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.34), rgba(84, 159, 212, 0.2) 42%, rgba(84, 159, 212, 0) 72%);
    pointer-events: none;
    z-index: 0;
}

.footer-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(360px, 1.9fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    color: #ffffff;
    max-width: 20ch;
}

.footer-brand p {
    margin: 0;
    max-width: 44ch;
    line-height: 1.65;
    color: rgba(224, 235, 255, 0.82);
}

.footer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 4px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-decoration: none;
    color: #072030;
    background-color: #a8e6a1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    background-color: #b7eeaf;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 20px;
}

.footer-section h4 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #d6e5ff;
}

.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-section ul li {
    margin: 0;
}

.footer-links-grid .footer-section a {
    color: rgba(226, 236, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
}

.footer-links-grid .footer-section a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: clamp(28px, 4vw, 42px);
    padding-top: 16px;
    border-top: 1px solid rgba(196, 218, 255, 0.24);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(213, 227, 251, 0.8);
}

.footer-bottom p a {
    color: inherit;
    font-weight: 600;
}

.footer-bottom p a:hover {
    color: #ffffff;
}

.footer-copyright {
    display: grid;
    justify-items: start;
    gap: 4px;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-meta a,
.footer-meta button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: rgba(213, 227, 251, 0.82);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-meta a:hover,
.footer-meta button:hover {
    color: #ffffff;
}

.footer-meta button:focus-visible,
.footer-bottom p a:focus-visible,
.footer-links-grid .footer-section a:focus-visible,
.footer-cta:focus-visible {
    outline: 2px solid rgba(168, 230, 161, 0.58);
    outline-offset: 4px;
}

.footer-brand .footer-cta,
.footer-brand .footer-cta:visited {
    color: #072030;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 540px) {
    .footer-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-cta {
        width: 100%;
        justify-content: center;
    }

}
