/* ================= BASE ================= */
html {
    scroll-behavior: smooth;
}

/* ================= FOOTER ================= */
.footer {
    position: relative;
    background:
        radial-gradient(circle at top, #7f00ff18, transparent 60%),
        #0f0f11;
    border-top: 1px solid #7f00ff2a;
    padding: 60px 20px 30px;
    overflow: hidden;
}

/* glow top sutil */
.footer::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(circle, #7f00ff22, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

/* ================= CONTAINER ================= */
.footer-container {
    max-width: 1150px;
    margin: 0 auto;
}

/* ================= TOP GRID ================= */
.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
}

/* ================= BRAND ================= */
.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.footer-brand p {
    color: #9aa0a6;
    font-size: 0.95rem;
}

/* ================= DIVIDER ================= */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            #7f00ff55,
            transparent);
    margin: 35px 0 25px;
}

/* ================= COPYRIGHT ================= */
.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: #9aa0a6;
    font-size: 0.9rem;
}

/* ================= SOCIAL ================= */
.social-icons {
    display: flex;
    gap: 18px;
}

.social-icons a {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d6d6d6;
    background: #151518;
    border: 1px solid #7f00ff22;
    font-size: 1.25rem;
    transition: all .25s ease;
}

/* hover premium */
.social-icons a:hover {
    color: #fff;
    transform: translateY(-4px);
    border-color: #7f00ff66;
    box-shadow:
        0 8px 22px #7f00ff33,
        0 0 12px #7f00ff55 inset;
}

/* glow interno */
.social-icons a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, #7f00ff33, transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
}

.social-icons a:hover::after {
    opacity: 1;
}

/* acessibilidade */
.social-icons a:focus-visible {
    outline: 2px solid #7f00ff;
    outline-offset: 3px;
}

/* ================= BACK TO TOP ================= */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #151518;
    border: 1px solid #7f00ff55;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
    z-index: 999;
}

#backToTop.show {
    display: flex;
}

#backToTop:hover {
    background: #7f00ff;
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px #7f00ff66;
}

#backToTop:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 50px 15px 25px;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}