:root {
    --bg-main: #030407;
    --surface: rgba(15, 20, 30, 0.4);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 229, 255, 0.3);
    --accent: #00e5ff;
    --accent-dark: #0077ff;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center 30%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center 30%, black 20%, transparent 80%);
}

.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: var(--p-opacity);
    }

    90% {
        opacity: var(--p-opacity);
    }

    100% {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

.page-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
    min-height: 100vh;
    justify-content: center;
}

/* =========================================
   Global Footer
   ========================================= */

.site-footer {
    margin-top: 5rem;
    padding-bottom: 3rem;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin-bottom: 1rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: default;
}

    .footer-brand:hover {
        opacity: 1;
    }

    .footer-brand span {
        color: var(--accent);
    }

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .footer-link:hover {
        color: var(--accent);
        transform: translateY(-2px);
        text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    }

.footer-legal {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
}

.legal-text {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.35;
    text-align: center;
    max-width: 800px;
    transition: opacity 0.3s ease;
    cursor: default;
}

    .legal-text:hover {
        opacity: 0.8;
    }

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }
}
