:root {
    --bg: #090612;
    --bg-secondary: #10091d;
    --card: #171025;
    --card-hover: #1d1330;

    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-bright: #8b5cf6;

    --text: #f5f3ff;
    --muted: #aaa0bd;

    --border: rgba(167, 139, 250, .17);
    --success: #4ade80;

    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(124, 58, 237, .17),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            var(--bg-secondary),
            var(--bg)
        );

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

/* LINKS */

a {
    color: var(--purple-light);
    text-decoration: none;
    transition: .2s;
}

a:hover {
    color: #ffffff;
}

/* CONTAINER */

.container {
    width: min(
        var(--max-width),
        calc(100% - 40px)
    );

    margin: 0 auto;
}

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(9, 6, 18, .88);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.nav {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

/* LOGO */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    color: #ffffff;

    font-size: 21px;
    font-weight: 800;
}

.brand:hover {
    color: #ffffff;
}

.brand-icon {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            #4c1d95
        );

    box-shadow:
        0 0 25px rgba(124, 58, 237, .35);
}

.brand span {
    color: var(--purple-light);
}

/* MENU */

nav {
    display: flex;
    align-items: center;

    gap: 22px;
}

nav a {
    color: var(--muted);

    font-size: 14px;
    font-weight: 600;
}

nav a:hover,
nav a.active {
    color: #ffffff;
}

/* HERO */

.hero {
    padding: 100px 0 75px;

    text-align: center;
}

.badge {
    display: inline-block;

    margin-bottom: 22px;

    padding: 7px 14px;

    border:
        1px solid rgba(139, 92, 246, .35);

    border-radius: 50px;

    background:
        rgba(124, 58, 237, .10);

    color: #c4b5fd;

    font-size: 13px;
    font-weight: bold;
}

.hero h1 {
    margin: 0;

    font-size:
        clamp(42px, 7vw, 76px);

    line-height: 1;

    letter-spacing: -3px;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            #8b5cf6,
            #c084fc
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-text {
    max-width: 760px;

    margin:
        25px auto 0;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.7;
}

/* BUTTONS */

.buttons {
    margin-top: 32px;

    display: flex;
    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}

.btn {
    display: inline-block;

    padding:
        14px 22px;

    border-radius: 8px;

    font-weight: 700;

    transition:
        transform .2s,
        background .2s,
        box-shadow .2s;
}

.btn:hover {
    transform:
        translateY(-2px);

    color: #ffffff;
}

.btn-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            #6d28d9
        );

    box-shadow:
        0 8px 30px
        rgba(124, 58, 237, .25);
}

.btn-primary:hover {
    box-shadow:
        0 10px 35px
        rgba(124, 58, 237, .40);
}

.btn-secondary {
    color: #ddd6fe;

    background:
        var(--card);

    border:
        1px solid var(--border);
}

/* SECTIONS */

.section {
    padding: 55px 0;
}

.section-title {
    margin-bottom: 35px;

    text-align: center;
}

.section-title h2 {
    margin:
        0 0 10px;

    font-size: 32px;
}

.section-title p {
    margin: 0;

    color: var(--muted);
}

/* CARDS */

.grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.card {
    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(33, 21, 54, .9),
            rgba(18, 12, 30, .9)
        );

    transition:
        transform .2s,
        border-color .2s,
        background .2s;
}

.card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(167, 139, 250, .35);

    background:
        var(--card-hover);
}

.card-icon {
    margin-bottom: 15px;

    font-size: 30px;
}

.card h3 {
    margin:
        0 0 10px;

    font-size: 19px;
}

.card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.65;
}

/* GAME LIST */

.games {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.game {
    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        rgba(23, 16, 37, .75);
}

.game-name {
    margin-bottom: 7px;

    color: #ffffff;

    font-weight: bold;
}

.game-path {
    color: var(--purple-light);

    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 14px;
}

/* CONTENT */

.content-box {
    max-width: 900px;

    margin:
        45px auto;

    padding: 35px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background:
        var(--card);
}

.content-box h1,
.content-box h2,
.content-box h3 {
    color: #ffffff;
}

.content-box p,
.content-box li {
    color: var(--muted);

    line-height: 1.8;
}

/* CODE */

.code-title {
    margin-bottom: 9px;

    color: #c4b5fd;

    font-size: 12px;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

pre,
code {
    font-family:
        Consolas,
        Monaco,
        monospace;
}

pre {
    overflow-x: auto;

    margin:
        0 0 25px;

    padding: 22px;

    background: #08050e;

    border:
        1px solid
        rgba(139, 92, 246, .25);

    border-radius: 9px;

    color: #d8b4fe;

    line-height: 1.6;
}

.inline-code {
    padding:
        3px 7px;

    border-radius: 5px;

    background:
        rgba(124, 58, 237, .15);

    color: #c4b5fd;
}

/* NOTICE */

.notice {
    margin:
        25px 0;

    padding: 18px 20px;

    border-left:
        3px solid var(--purple);

    border-radius: 5px;

    background:
        rgba(124, 58, 237, .08);

    color: var(--muted);

    line-height: 1.65;
}

.notice strong {
    color: #ddd6fe;
}

/* STATUS */

.status {
    color: var(--success);

    font-weight: bold;
}

/* FOOTER */

footer {
    margin-top: 70px;

    padding:
        35px 0;

    border-top:
        1px solid var(--border);

    color: #746b83;

    text-align: center;

    font-size: 13px;

    line-height: 1.8;
}

footer strong {
    color: #aaa0bd;
}

/* MOBILE */

@media (max-width: 800px) {

    .nav {
        flex-direction: column;

        justify-content: center;

        padding:
            17px 0;
    }

    nav {
        justify-content: center;

        flex-wrap: wrap;

        gap:
            13px;
    }

    .hero {
        padding:
            65px 0 45px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .grid,
    .games {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 25px;
    }
}

/* =========================================================
   UPLOAD FORM
   ========================================================= */

.upload-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #ddd6fe;

    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 13px 14px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    outline: none;

    background: #0c0714;

    color: #f5f3ff;

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:
        var(--purple-bright);

    box-shadow:
        0 0 0 3px
        rgba(124, 58, 237, .12);
}

.form-group textarea {
    resize: vertical;

    min-height: 120px;
}

.form-group small {
    display: block;

    margin-top: 7px;

    color: #746b83;

    font-size: 12px;
}

.server-fields {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 15px;
}

.checkbox {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin:
        25px 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;

    cursor: pointer;
}

.checkbox input {
    margin-top: 4px;

    accent-color:
        var(--purple);
}

.upload-button {
    width: 100%;

    border: 0;

    cursor: pointer;

    font-size: 15px;
}

.upload-message {
    margin:
        25px 0;

    padding:
        16px 18px;

    border-radius: 8px;

    line-height: 1.6;
}

.upload-message.success {
    border:
        1px solid
        rgba(74, 222, 128, .30);

    background:
        rgba(74, 222, 128, .08);

    color: #86efac;
}

.upload-message.error {
    border:
        1px solid
        rgba(248, 113, 113, .30);

    background:
        rgba(248, 113, 113, .08);

    color: #fca5a5;
}

@media (max-width: 600px) {

    .server-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

}

/* =========================================================
   SERVIDORES FASTDL - CARROSSEL AUTOMÁTICO
   ========================================================= */

.fastdl-servers-section {
    padding-bottom: 10px;
}

.fastdl-servers-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0 18px;
}

.fastdl-servers-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;

    width: max-content;
    max-width: none;

    animation: fastdl-scroll 40s linear infinite;
}

.fastdl-server {
    display: block;
    flex: 0 0 350px;

    width: 350px;
    min-width: 350px;
    max-width: 350px;

    line-height: 0;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.fastdl-server img {
    display: block;

    width: 350px;
    height: 20px;

    max-width: none;

    border: 0;
    border-radius: 6px;
}

.fastdl-servers-marquee:hover .fastdl-servers-track {
    animation-play-state: paused;
}

.fastdl-server:hover {
    transform: scale(1.03);
    opacity: .9;
}

@keyframes fastdl-scroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 8px));
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .fastdl-servers-track {
        gap: 12px;
        animation-duration: 35s;
    }

}

/* ACESSIBILIDADE */

@media (prefers-reduced-motion: reduce) {

    .fastdl-servers-track {
        animation: none;
    }

}

/* =========================================================
   HOME - REDUÇÃO DO ESPAÇAMENTO ENTRE SEÇÕES
   ========================================================= */

main > .section {
    padding-top: 25px;
    padding-bottom: 25px;
}

main > .section .content-box {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Carrossel de servidores */

.fastdl-servers-section {
    padding-bottom: 10px;
}