/* ===== Base / Reset ===== */
:root {
    --zoomfix: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    background: linear-gradient(180deg, #0F0F0F, #1A1A1A);
    font-family: 'Sora', sans-serif;
    color: #FFF;
    overflow: hidden;
}

/* ===== Zoom wrapper ===== */
.fix-zoom {
    transform: scale(var(--zoomfix));
    transform-origin: top left;
    width: calc(100vw / var(--zoomfix));
    height: calc(100vh / var(--zoomfix));
    overflow: hidden;
    position: relative;
}

/* ===== Light balls ===== */
.light-ball {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 300px;
    background: rgba(255, 255, 255, 0.20);
    filter: blur(200px);
    pointer-events: none;
    z-index: 0;
}

.light-ball.top {
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
}

.light-ball.bottom-right {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
}

.light-ball.bottom-left {
    bottom: 10%;
    left: 0;
    transform: translate(-30%, 30%);
}

/* ===== Top bars ===== */
.language-switcher,
.music-player {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.language-switcher {
    top: 16px;
    right: 24px;
}

.music-player {
    top: 16px;
    left: 24px;
}

.flag {
    width: 32px;
    height: 22px;
    cursor: pointer;
    transition: transform .2s;
}

.flag:hover {
    transform: scale(1.08);
}

.terms-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: .25s;
    text-decoration: none;
}

.terms-btn:hover {
    background: #fff;
    color: #171717;
    border-color: rgba(255, 255, 255, 0.80);
}

/* ===== Player corrigido ===== */
.music-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-player>* {
    flex: 0 0 auto;
}

.icon-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #fff;
}

.icon-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: #fff;
    opacity: .9;
    transition: opacity .2s;
}

.icon-btn:hover svg {
    opacity: 1;
}

.music-player input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 4px;
    background: transparent;
    margin: 0 0 0 4px;
    outline: none;
    align-self: center;
}

.music-player input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, .25);
    border-radius: 2px;
}

.music-player input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    margin-top: -4px;
}

.music-player input[type="range"]::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, .25);
    border-radius: 2px;
}

.music-player input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: none;
}

/* ===== Stage ===== */
.stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 8vh 2vh 2vh;
}

.stage.stage--terms {
    padding-top: 4vh;
}

.logo-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 56%;
    height: auto;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.logo {
    width: 358px;
    height: 170px;
    object-fit: contain;
    z-index: 2;
    user-select: none;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 18px;
    padding: 0 16px;
}

/* ===== Welcome / CTA ===== */
.welcome-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 318px;
    height: 52px;
    border-radius: 3px;
    background: #F9F6EE;
    color: #171717;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .2px;
    animation: fadeIn .8s ease-in-out;
}

.discord-btn {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: .25s;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.discord-btn:hover {
    background: #ffffff;
    color: #171717;
    box-shadow: 0 6px 14px rgba(255, 255, 255, .15);
}

.discord-btn:hover svg {
    fill: #171717;
}

/* ===== Texto ===== */
.intro-text {
    max-width: min(900px, 90vw);
    color: rgba(255, 255, 255, 0.70);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}

.intro-text span {
    color: #fff;
    opacity: .9;
    font-weight: 700;
}

/* ===== Logos ===== */
.container-logos {
    width: min(1000px, 92vw);
    margin: 30px auto 0;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(1px);
}

.client-logos {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 18px 0;
}

.client-logos .line {
    display: flex;
    gap: 60px;
    width: max-content;
    align-items: center;
}

.logos-line1 {
    animation: move-left 20s linear infinite;
}

.logos-line2 {
    animation: move-right 20s linear infinite;
}

.client-logos img {
    height: 60px;
    object-fit: contain;
    opacity: .75;
    transition: .25s;
}

.client-logos img:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
}

/* ===== Página de Termos ===== */
.terms-layout {
    width: min(1100px, 94vw);
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    align-items: start;
}

.terms-nav {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.term-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    cursor: default;
}

.term-category svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.term-subchip {
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: .18s;
    font-size: 13.5px;
}

.term-subchip:hover {
    background: rgba(255, 255, 255, 0.06);
}

.term-subchip.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}

.terms-page {
    width: 100%;
    padding: 22px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.86);
    text-align: left;
}

.term-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.term-header svg {
    width: 20px;
    height: 20px;
}

.term-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    opacity: .96;
}

.term-cat-description {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
}

.term-subtitle {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    opacity: .92;
    margin: 8px 0 6px;
}

.term-body p {
    line-height: 1.6;
}

/* ===== Animações ===== */
@keyframes move-left {
    from {
        transform: translateX(200%);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes move-right {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(200%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsivo ===== */
@media (max-width: 900px) {
    .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-nav {
        position: static;
        top: auto;
    }

    .logo-left {
        display: none;
    }
}