* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #111812;
    color: white;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: rgba(15, 23, 17, 0.92);
    backdrop-filter: blur(10px);

    z-index: 1000;

    border-bottom: 2px solid #283829;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: "Press Start 2P";
    font-size: 17px;
}

.logo-block {
    width: 30px;
    height: 30px;
    background: #6cbd45;

    box-shadow:
        inset -7px -7px 0 #397b2d,
        inset 5px 5px 0 #9ae66a;
}

.navbar nav {
    display: flex;
    gap: 35px;
}

.navbar nav a {
    color: #d9e4d5;
    text-decoration: none;
    font-weight: 600;
    transition: .25s;
}

.navbar nav a:hover {
    color: #8ee05a;
}

.play-btn,
.main-btn {
    border: 0;
    background: #69b83d;
    color: white;

    padding: 14px 22px;

    font-family: "Press Start 2P";
    font-size: 10px;

    cursor: pointer;

    box-shadow:
        inset 0 -5px 0 #397a29,
        0 5px 0 #172818;

    transition: .15s;
}

.play-btn:hover,
.main-btn:hover {
    transform: translateY(-3px);
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 28px;
}


/* HERO */

.hero {
    min-height: 760px;
    position: relative;

    display: flex;
    align-items: center;

    padding: 130px 8% 100px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #4b8dba 0%,
            #79b9dc 55%,
            #a8d47d 55%,
            #6ca34b 100%
        );
}

.hero-content {
    position: relative;
    z-index: 10;

    max-width: 650px;
}

.pixel-label {
    font-family: "Press Start 2P";
    font-size: 11px;
    color: #ffffff;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: "Press Start 2P";
    font-size: clamp(42px, 7vw, 85px);
    line-height: 1.15;

    color: white;

    text-shadow:
        7px 7px 0 #294d2b;
}

.hero h1 span {
    color: #d9f06a;
}

.hero p {
    max-width: 550px;

    margin: 30px 0;

    font-size: 18px;
    line-height: 1.7;

    color: #f4fff1;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.secondary-btn {
    padding: 14px 22px;

    background: rgba(0, 0, 0, .35);
    border: 2px solid white;

    color: white;

    font-family: "Press Start 2P";
    font-size: 10px;

    cursor: pointer;
}


/* CLOUDS */

.cloud {
    position: absolute;

    width: 180px;
    height: 50px;

    background: rgba(255,255,255,.55);

    box-shadow:
        50px -25px 0 rgba(255,255,255,.55),
        100px 0 0 rgba(255,255,255,.55);
}

.cloud1 {
    top: 150px;
    right: 15%;
}

.cloud2 {
    top: 280px;
    left: 8%;
    transform: scale(.7);
}


/* CHARACTER */

.hero-character {
    position: absolute;
    right: 12%;
    bottom: 140px;

    animation: float 3s ease-in-out infinite;
}

.character {
    width: 150px;
    position: relative;
}

.head {
    width: 150px;
    height: 150px;

    background: #c58a55;

    border: 8px solid #68452c;

    position: relative;

    box-shadow:
        inset 15px 15px 0 rgba(255,255,255,.08);
}

.eye {
    position: absolute;

    width: 25px;
    height: 35px;

    background: #222;
}

.eye.left {
    left: 30px;
    top: 55px;
}

.eye.right {
    right: 30px;
    top: 55px;
}

.mouth {
    position: absolute;

    width: 45px;
    height: 15px;

    background: #40261c;

    left: 45px;
    bottom: 30px;
}

.body {
    width: 120px;
    height: 140px;

    margin: auto;

    background: #356bb0;

    border: 7px solid #203e66;
}

.leg {
    width: 50px;
    height: 90px;

    background: #3e4856;

    border: 6px solid #242b34;

    position: absolute;
    bottom: -85px;
}

.leg1 {
    left: 18px;
}

.leg2 {
    right: 18px;
}

@keyframes float {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

}


/* GROUND */

.grass-ground {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 80px;

    background:
        linear-gradient(
            #65a53f 0 25%,
            #67462e 25% 100%
        );

    box-shadow:
        inset 0 10px 0 #91c85d;
}


/* SERVER */

.server-section {
    background: #101710;
    padding: 50px 8%;
}

.server-card {

    max-width: 1100px;
    margin: auto;

    padding: 25px 30px;

    display: flex;
    align-items: center;
    gap: 20px;

    background: #1b281b;

    border: 2px solid #354b34;

    box-shadow: 8px 8px 0 #0a0f0a;
}

.status-dot {
    width: 15px;
    height: 15px;

    background: #64dc4b;

    box-shadow: 0 0 15px #64dc4b;

    border-radius: 50%;
}

.server-card small {
    color: #8ea08c;
}

.server-card h3 {
    font-family: "Press Start 2P";
    font-size: 13px;
    margin-top: 8px;
}

.players {
    margin-left: auto;
    text-align: right;
}

.players strong {
    font-family: "Press Start 2P";
    color: #9ce66c;
    font-size: 20px;
}

.players span {
    display: block;
    font-size: 11px;
    color: #899888;
}

.server-card button {
    background: #2d3c2c;
    border: 2px solid #50644e;

    color: white;

    padding: 12px 18px;

    cursor: pointer;

    font-family: "Press Start 2P";
    font-size: 9px;
}


/* FEATURES */

.features {
    padding: 120px 8%;
    background: #101710;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading span,
.world-content > span,
.community-box span {
    font-family: "Press Start 2P";
    font-size: 10px;
    color: #78c850;
}

.section-heading h2 {
    margin-top: 20px;

    font-family: "Press Start 2P";

    font-size: clamp(28px, 5vw, 50px);

    line-height: 1.4;
}

.section-heading h2 b,
.world-content b,
.community-box b {
    color: #82d550;
}

.feature-grid {
    max-width: 1150px;
    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.feature-card {
    padding: 35px 25px;

    background: #1a251a;

    border: 2px solid #344734;

    transition: .3s;
}

.feature-card:hover {
    transform: translateY(-10px);

    border-color: #79c64e;

    box-shadow: 8px 8px 0 #090e09;
}

.feature-icon {
    font-size: 45px;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-family: "Press Start 2P";
    font-size: 13px;
    margin-bottom: 20px;
}

.feature-card p {
    color: #9daa9b;
    line-height: 1.7;
}


/* WORLD */

.world {
    min-height: 650px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    background: #182118;
}

.world-image {
    min-height: 600px;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            #5b9fca 0 55%,
            #8bc85d 55% 100%
        );
}

.sun {
    position: absolute;

    width: 90px;
    height: 90px;

    background: #ffe67b;

    top: 80px;
    right: 100px;

    box-shadow: 0 0 30px #ffe67b;
}

.mountain {
    position: absolute;

    bottom: 130px;

    width: 0;
    height: 0;

    border-left: 170px solid transparent;
    border-right: 170px solid transparent;
    border-bottom: 280px solid #435c48;
}

.mountain1 {
    left: 10%;
}

.mountain2 {
    right: 5%;
    transform: scale(.75);
}

.world-content {
    padding: 100px 10%;
}

.world-content h2 {
    font-family: "Press Start 2P";
    font-size: 40px;
    line-height: 1.5;

    margin: 25px 0;
}

.world-content p {
    color: #a9b5a6;
    line-height: 1.8;

    max-width: 500px;
}

.world-stats {
    display: flex;
    gap: 40px;

    margin-top: 50px;
}

.world-stats div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.world-stats strong {
    font-family: "Press Start 2P";
    color: #8bda58;
    font-size: 22px;
}

.world-stats span {
    font-size: 10px;
    color: #7e8c7d;
}


/* COMMUNITY */

.community {
    padding: 100px 8%;

    background:
        linear-gradient(rgba(15,23,15,.85), rgba(15,23,15,.95)),
        #1d321e;
}

.community-box {
    max-width: 1100px;

    margin: auto;

    padding: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 3px solid #476443;

    background: #172217;

    box-shadow: 12px 12px 0 #080d08;
}

.community-box h2 {
    font-family: "Press Start 2P";

    font-size: 35px;

    line-height: 1.5;

    margin: 25px 0;
}

.community-box p {
    color: #9da99c;
    max-width: 500px;
}

.community-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.community-buttons button {
    padding: 17px 25px;

    border: 0;

    background: #6bbd43;

    color: white;

    font-family: "Press Start 2P";

    font-size: 10px;

    cursor: pointer;

    box-shadow: inset 0 -5px 0 #39792b;
}


/* FOOTER */

footer {
    padding: 45px 8%;

    background: #0b100b;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #667164;
}

.footer-logo {
    font-family: "Press Start 2P";
    color: #8bd45a;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #778275;
    text-decoration: none;
}


/* TOAST */

#toast {
    position: fixed;

    bottom: 30px;
    right: 30px;

    background: #6dbd45;

    color: white;

    padding: 15px 20px;

    font-weight: bold;

    transform: translateY(100px);

    transition: .3s;

    z-index: 9999;
}

#toast.show {
    transform: translateY(0);
}


/* RESPONSIVE */

@media(max-width: 900px) {

    .navbar nav {
        display: none;

        position: absolute;

        top: 80px;
        left: 0;

        width: 100%;

        padding: 25px;

        background: #111811;

        flex-direction: column;

        text-align: center;
    }

    .navbar nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .navbar .play-btn {
        display: none;
    }

    .hero-character {
        opacity: .3;
        right: 0;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .world {
        grid-template-columns: 1fr;
    }

    .world-image {
        min-height: 400px;
    }

    .community-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
    }
}

@media(max-width: 600px) {

    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }

    .hero h1 {
        font-size: 36px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .server-card {
        flex-wrap: wrap;
    }

    .players {
        margin-left: 0;
    }

    .world-content h2 {
        font-size: 27px;
    }

    .community-box {
        padding: 35px 25px;
    }

    .community-box h2 {
        font-size: 25px;
    }

    .world-stats {
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}