/* ========================================
   PVPBattles Home
   ======================================== */


/* ---------- Fonts ---------- */

@font-face {
    font-family: "MinecraftCustom";
    src:
        url("../assets/fonts/minecraft_font.ttf?v=20260913")
        format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "UnifontJP";
    src:
        url("../assets/fonts/unifont_jp-16.0.02.otf?v=20260913")
        format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ---------- Reset ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    background:
        radial-gradient(
            circle at top,
            rgba(38, 76, 120, 0.20),
            transparent 45%
        ),
        #050713;

    color: #ffffff;

    font-family:
        "MinecraftCustom",
        "UnifontJP",
        sans-serif;

    line-height: 1.7;
}

body,
button,
a,
input,
textarea,
select {
    font-family:
        "MinecraftCustom",
        "UnifontJP",
        sans-serif;
}

img {
    max-width: 100%;
}

button {
    font: inherit;
}

a {
    color: inherit;
}


/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 10;

    padding: 18px 16px 10px;

    text-align: center;

    background: rgba(5, 7, 19, 0.94);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

.header-logo-link {
    display: block;

    width: fit-content;

    margin:
        0 auto 12px;
}

.header-logo {
    display: block;

    width: 170px;
    height: auto;
}


/* ---------- Navigation ---------- */

.navbar {
    display: flex;

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

    flex-wrap: wrap;

    gap: 2px;
}

.navbar a {
    position: relative;

    padding: 8px 13px;

    color: #9da8bd;

    text-decoration: none;

    font-size: 13px;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #ffffff;

    background:
        rgba(85, 192, 255, 0.10);
}

.navbar a + a::before {
    content: "｜";

    position: absolute;

    left: -3px;

    color: #344056;

    pointer-events: none;
}


/* ---------- Main ---------- */

main {
    overflow: hidden;
}


/* ---------- Hero ---------- */

.hero {
    position: relative;

    min-height: 560px;

    display: flex;

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

    padding: 90px 20px 100px;

    text-align: center;
}

.hero-content {
    width: min(900px, 100%);
}

.eyebrow,
.section-label {
    margin: 0 0 14px;

    color: #55c0ff;

    font-size: 12px;

    letter-spacing: 0.12em;
}

.hero h1 {
    margin: 0;

    font-size:
        clamp(42px, 8vw, 82px);

    line-height: 1.15;

    letter-spacing: 0.02em;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.45);
}

.hero-description {
    max-width: 700px;

    margin: 24px auto 0;

    color: #aeb8ca;

    font-size: 15px;
}


/* ---------- Buttons ---------- */

.hero-buttons {
    display: flex;

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

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}

.button {
    display: inline-flex;

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

    min-height: 44px;

    padding: 10px 20px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

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

.button-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #3aa7e0,
            #55c0ff
        );

    border:
        1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 8px 25px rgba(35, 145, 205, 0.18);
}

.button-disabled {
    color: #69758a;

    background: #111827;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    cursor: not-allowed;

    opacity: 0.65;
}

.button-disabled:hover {
    transform: none;
}


/* ---------- Sections ---------- */

.section {
    width: min(1120px, calc(100% - 32px));

    margin: 0 auto;

    padding: 90px 0;
}

.section-heading {
    max-width: 720px;

    margin:
        0 auto 42px;

    text-align: center;
}

.section-heading h2 {
    margin: 0;

    font-size:
        clamp(28px, 5vw, 44px);

    line-height: 1.25;
}

.section-heading > p:last-child {
    margin-top: 14px;

    color: #8995aa;

    font-size: 14px;
}


/* ---------- Features ---------- */

.feature-grid {
    display: grid;

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

    gap: 16px;
}

.feature-card {
    padding: 26px;

    background:
        rgba(14, 20, 37, 0.82);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

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

    border-color:
        rgba(85, 192, 255, 0.25);
}

.feature-card h3 {
    margin: 0;

    font-size: 17px;
}

.feature-card p {
    margin: 12px 0 0;

    color: #8f9bb0;

    font-size: 13px;
}


/* ---------- TierList ---------- */

.tier-preview-card {
    max-width: 760px;

    margin: 0 auto;

    padding: 24px;

    background:
        rgba(14, 20, 37, 0.82);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;
}

.tier-list {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.tier-row {
    display: flex;

    align-items: center;

    min-height: 48px;

    gap: 14px;

    color: #aab5c7;

    font-size: 13px;
}

.tier {
    display: inline-flex;

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

    width: 54px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 6px;

    color: #ffffff;

    font-size: 12px;
}

.ht1 {
    background: #e34d5b;
}

.ht2 {
    background: #e87545;
}

.ht3 {
    background: #e7a33e;
}

.ht4 {
    background: #56a85a;
}

.ht5 {
    background: #4389d2;
}

.lt5 {
    background: #707b8f;
}

.tier-button {
    margin-top: 24px;
}


/* ---------- Server ---------- */

.server-section {
    padding-top: 50px;
}

.server-card {
    padding: 48px 30px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(16, 27, 49, 0.95),
            rgba(9, 15, 30, 0.95)
        );

    border:
        1px solid rgba(85, 192, 255, 0.12);

    border-radius: 14px;
}

.server-card h2 {
    margin: 0;

    font-size:
        clamp(28px, 5vw, 42px);
}

.server-card > p:not(.section-label) {
    margin: 14px auto 0;

    max-width: 600px;

    color: #8f9bb0;

    font-size: 14px;
}

.server-status {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-top: 24px;

    color: #8995aa;

    font-size: 11px;

    letter-spacing: 0.08em;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #687386;

    box-shadow:
        0 0 10px rgba(104, 115, 134, 0.45);
}


/* ---------- Support ---------- */

.support-section {
    padding-top: 40px;
}

.support-card {
    display: flex;

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

    gap: 30px;

    padding: 30px;

    background:
        rgba(14, 20, 37, 0.82);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;
}

.support-card h2 {
    margin: 0;

    font-size: 25px;
}

.support-card p:last-child {
    margin: 8px 0 0;

    color: #8995aa;

    font-size: 13px;
}


/* ---------- Footer ---------- */

.site-footer {
    padding: 35px 16px;

    text-align: center;

    color: #58657a;

    font-size: 11px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}


/* ---------- Tablet ---------- */

@media (max-width: 850px) {

    .feature-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

    .site-header {
        padding:
            15px 10px 9px;
    }

    .header-logo {
        width: 140px;
    }

    .navbar {
        gap: 0;
    }

    .navbar a {
        padding:
            7px 8px;

        font-size: 10px;
    }

    .navbar a + a::before {
        left: -2px;
    }


    .hero {
        min-height: 480px;

        padding:
            70px 18px 80px;
    }

    .hero h1 {
        font-size:
            clamp(38px, 13vw, 58px);
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

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


    .section {
        width:
            calc(100% - 24px);

        padding: 65px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }


    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 22px;
    }


    .tier-preview-card {
        padding: 18px;
    }

    .tier-row {
        min-height: 44px;

        font-size: 11px;
    }

    .tier {
        width: 48px;
        height: 36px;
    }


    .server-card {
        padding:
            38px 20px;
    }


    .support-card {
        flex-direction: column;

        align-items: flex-start;

        padding: 24px;
    }

    .support-card .button {
        width: 100%;
    }

}


/* ---------- Very Small Screens ---------- */

@media (max-width: 380px) {

    .navbar a {
        padding:
            6px 6px;

        font-size: 9px;
    }

    .header-logo {
        width: 125px;
    }

            }
