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

:root {
    --background: #080b0d;
    --background2: #0c1115;
    --card: #11171c;
    --card2: #151d23;

    --text: #f5f7f8;
    --muted: #8d9ba5;

    --green: #58e27a;
    --green-dark: #1f9d4c;

    --blue: #55c7ff;
    --purple: #aa78ff;

    --border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at top,
            #13201a 0,
            var(--background) 420px
        );

    color: var(--text);

    min-height: 100vh;
}


/* HEADER */

header {
    position: sticky;
    top: 0;

    z-index: 20;

    background: rgba(8, 11, 13, 0.85);

    backdrop-filter: blur(18px);

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

.nav {
    width: min(1150px, calc(100% - 40px));

    height: 72px;

    margin: auto;

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

.logo {
    text-decoration: none;

    color: white;

    font-size: 22px;
    font-weight: 900;

    letter-spacing: 1px;
}

.logo span {
    color: var(--green);
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: #c8d0d5;

    text-decoration: none;

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

    transition: 0.2s;
}

nav a:hover {
    color: white;
}

.discord-small {
    padding: 10px 17px;

    border: 1px solid rgba(88, 226, 122, 0.35);

    border-radius: 9px;
}


/* HERO */

.hero {
    min-height: 600px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;
}

.hero-badge {
    color: var(--green);

    border: 1px solid rgba(88, 226, 122, 0.25);

    background: rgba(88, 226, 122, 0.06);

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(60px, 10vw, 120px);

    line-height: 0.9;

    letter-spacing: -6px;

    font-weight: 1000;
}

.hero h1 span {
    color: var(--green);
}

.hero > p {
    color: var(--muted);

    margin-top: 28px;

    font-size: 18px;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 35px;
}

.hero-buttons button,
.discord-button {
    min-width: 220px;

    border-radius: 12px;

    padding: 14px 22px;

    border: none;

    cursor: pointer;

    font-weight: 800;

    text-decoration: none;
}

.primary {
    background: var(--green);

    color: #061008;

    display: flex;
    flex-direction: column;
}

.primary small {
    font-weight: 500;

    opacity: 0.7;

    margin-top: 2px;
}

.discord-button {
    color: white;

    background: #5865f2;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* SECTIONS */

.section {
    width: min(1100px, calc(100% - 40px));

    margin: auto;

    padding: 90px 0;
}

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

.section-title > span {
    color: var(--green);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 38px;

    margin-top: 8px;
}

.section-title p {
    color: var(--muted);

    margin-top: 8px;
}


/* SERVER */

.server-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 18px;
}

.server-card {
    padding: 25px;

    background: var(--card);

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

    border-radius: 16px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.server-card h3 {
    margin-top: 7px;

    font-size: 21px;
}

.server-card p {
    color: var(--muted);

    font-size: 13px;

    margin-top: 5px;
}

.server-type {
    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;
}

.premium-color {
    color: var(--green);
}


.server-card button {
    border: 1px solid var(--border);

    background: var(--card2);

    color: white;

    padding: 11px 16px;

    border-radius: 8px;

    cursor: pointer;
}


/* RANKS */

.rank-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 20px;
}

.rank-card {
    position: relative;

    background: var(--card);

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

    border-radius: 20px;

    padding: 30px;

    overflow: hidden;
}

.rank-card.featured {
    border-color: rgba(85, 199, 255, 0.35);

    background:
        linear-gradient(
            145deg,
            rgba(85, 199, 255, 0.06),
            var(--card) 50%
        );
}

.popular {
    position: absolute;

    right: 20px;
    top: 20px;

    color: var(--blue);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;
}

.rank-name {
    display: inline-block;

    font-size: 14px;

    font-weight: 900;

    margin-bottom: 20px;
}

.rank-name.premium {
    color: var(--green);
}

.rank-name.premium-plus {
    color: var(--blue);
}

.price {
    font-size: 43px;

    font-weight: 900;
}

.duration {
    color: var(--muted);

    font-size: 11px;

    font-weight: 700;

    margin-top: 4px;
}

.rank-card ul {
    list-style: none;

    margin: 30px 0;
}

.rank-card li {
    color: #c7d0d5;

    padding: 8px 0;

    font-size: 14px;
}

.rank-card li::before {
    content: "✓";

    color: var(--green);

    margin-right: 10px;

    font-weight: 900;
}

.rank-card > button {
    width: 100%;

    border: none;

    background: var(--green);

    color: #071008;

    padding: 14px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 900;
}

.package-list {
    display: flex;

    flex-direction: column;

    gap: 9px;

    margin-top: 25px;
}

.package {
    width: 100%;

    padding: 15px 16px;

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

    border-radius: 10px;

    background: var(--card2);

    color: white;

    cursor: pointer;

    display: flex;

    justify-content: space-between;

    transition: 0.15s;
}

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

    border-color: rgba(85, 199, 255, 0.4);
}


/* PLUGINS */

.plugin-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 18px;
}

.plugin-card {
    display: flex;

    gap: 20px;

    padding: 28px;

    border-radius: 18px;

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

    background: var(--card);
}

.plugin-icon {
    width: 55px;
    height: 55px;

    flex: 0 0 55px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--card2);

    font-size: 24px;
}

.plugin-label {
    color: var(--green);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.5px;
}

.plugin-card h3 {
    margin-top: 4px;

    font-size: 23px;
}

.plugin-card p {
    color: var(--muted);

    line-height: 1.6;

    font-size: 14px;

    margin-top: 8px;
}


/* MODAL */

.modal {
    position: fixed;

    inset: 0;

    z-index: 100;

    background: rgba(0, 0, 0, 0.75);

    backdrop-filter: blur(8px);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-box {
    position: relative;

    width: min(460px, 100%);

    background: #10161a;

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

    border-radius: 20px;

    padding: 32px;

    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;

    top: 16px;
    right: 18px;

    border: none;

    background: transparent;

    color: var(--muted);

    font-size: 28px;

    cursor: pointer;
}

.checkout-logo {
    color: white;

    font-size: 14px;

    font-weight: 900;

    letter-spacing: 1px;

    margin-bottom: 25px;
}

.checkout-logo span {
    color: var(--green);
}

.modal-box h2 {
    font-size: 30px;
}

.checkout-info {
    color: var(--muted);

    margin-top: 6px;
}

.selected-product {
    margin: 25px 0;

    padding: 18px;

    background: var(--card2);

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

    border-radius: 12px;
}

.selected-product > span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 5px;
}

.selected-product strong {
    font-size: 20px;

    color: var(--blue);
}

.selected-product div {
    margin-top: 10px;

    display: flex;

    justify-content: space-between;
}

.modal-box label {
    display: block;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 7px;
}

.modal-box input {
    width: 100%;

    padding: 14px;

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

    background: #090d10;

    color: white;

    border-radius: 9px;

    outline: none;

    font-size: 15px;
}

.modal-box input:focus {
    border-color: var(--green);
}

.pay-button {
    width: 100%;

    margin-top: 18px;

    padding: 15px;

    border: none;

    border-radius: 10px;

    background: var(--green);

    color: #071008;

    font-weight: 900;

    cursor: pointer;
}

.error {
    color: #ff6262;

    min-height: 18px;

    margin-top: 8px;

    font-size: 13px;
}

.payment-security {
    color: var(--muted);

    text-align: center;

    font-size: 11px;

    margin-top: 16px;
}


/* TOAST */

#toast {
    position: fixed;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%) translateY(100px);

    background: white;

    color: #111;

    padding: 12px 20px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 800;

    opacity: 0;

    pointer-events: none;

    transition: 0.25s;

    z-index: 200;
}

#toast.show {
    opacity: 1;

    transform: translateX(-50%) translateY(0);
}


/* FOOTER */

footer {
    width: min(1100px, calc(100% - 40px));

    margin: 60px auto 0;

    padding: 30px 0;

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

    display: flex;

    justify-content: space-between;

    color: var(--muted);

    font-size: 13px;
}

footer strong {
    color: white;
}

footer a {
    color: var(--green);

    text-decoration: none;
}


/* MOBILE */

@media (max-width: 750px) {

    nav a:not(.discord-small) {
        display: none;
    }

    .hero {
        min-height: 520px;
    }

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

    .hero-buttons {
        width: 100%;

        flex-direction: column;

        align-items: center;
    }

    .hero-buttons button,
    .discord-button {
        width: min(350px, 100%);
    }

    .server-grid,
    .rank-grid,
    .plugin-grid {
        grid-template-columns: 1fr;
    }

    .server-card {
        gap: 15px;
    }

    .section {
        padding: 65px 0;
    }

    .section-title h2 {
        font-size: 30px;
    }

    footer {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }
}
