:root {
    --bg: #080c12;
    --bg-secondary: #0d131c;
    --panel: rgba(18, 25, 36, 0.68);
    --panel-solid: #111925;

    --line: rgba(255, 255, 255, 0.09);

    --text: #f4f7fb;
    --muted: #a8b2c1;

    --accent: #67e8a5;
    --accent-2: #4cc9f0;

    --radius: 22px;
    --container: 1180px;
}


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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(circle at 20% 0%, rgba(76, 201, 240, 0.08), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(103, 232, 165, 0.07), transparent 30%),
        var(--bg);

    color: var(--text);

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

    line-height: 1.6;
}


button,
a {
    font: inherit;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


::selection {
    background: rgba(103, 232, 165, 0.25);
}


/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;

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

    background: rgba(8, 12, 18, 0.72);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


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

    height: 78px;

    margin: auto;

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


.brand {
    display: flex;
    align-items: center;

    margin-right: auto;
}


.brand img {
    width: 100px;
    max-height: 48px;

    object-fit: contain;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}


.nav-links a {
    position: relative;

    color: var(--muted);

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

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: var(--accent);

    transition: width 0.25s ease;
}


.nav-links a:hover {
    color: var(--text);
}


.nav-links a:hover::after {
    width: 100%;
}


/* BUTTONS */

.primary-btn,
.secondary-btn,
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 25px;

    border-radius: 13px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


.primary-btn {
    color: #06100b;

    background: linear-gradient(
        135deg,
        var(--accent),
        #8af0bc
    );

    box-shadow:
        0 12px 35px rgba(103, 232, 165, 0.15);
}


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

    box-shadow:
        0 18px 45px rgba(103, 232, 165, 0.25);
}


.secondary-btn {
    border: 1px solid var(--line);

    background: rgba(255, 255, 255, 0.04);

    color: var(--text);
}


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

    border-color: rgba(103, 232, 165, 0.3);

    background: rgba(255, 255, 255, 0.07);
}


.nav-copy {
    min-height: 43px;

    padding: 0 18px;

    color: #06100b;

    background: var(--accent);

    box-shadow: none;
}


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


.menu-btn {
    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: rgba(255,255,255,0.04);

    cursor: pointer;
}


.menu-btn span {
    display: block;

    height: 2px;

    margin: 5px 0;

    border-radius: 5px;

    background: var(--text);

    transition: 0.25s ease;
}


/* HERO */

.hero {
    position: relative;

    min-height: 100vh;

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

    padding:
        140px 20px
        100px;

    overflow: hidden;

    text-align: center;
}


.hero-bg {
    position: absolute;
    inset: 0;

    pointer-events: none;

    overflow: hidden;
}


.grid {
    position: absolute;
    left: 50%;
    bottom: -25%;

    width: 120%;
    height: 70%;

    transform:
        translateX(-50%)
        perspective(600px)
        rotateX(62deg);

    background-image:
        linear-gradient(
            rgba(103, 232, 165, 0.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(103, 232, 165, 0.07) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image: linear-gradient(
        to top,
        black,
        transparent
    );
}


.cube {
    position: absolute;

    width: 90px;
    height: 90px;

    border: 1px solid rgba(103, 232, 165, 0.18);

    background:
        linear-gradient(
            135deg,
            rgba(103, 232, 165, 0.08),
            rgba(76, 201, 240, 0.03)
        );

    box-shadow:
        inset 0 0 30px rgba(103, 232, 165, 0.04),
        0 0 50px rgba(103, 232, 165, 0.04);

    transform: rotate(45deg);

    animation: floatCube 8s ease-in-out infinite;
}


.cube-1 {
    top: 25%;
    left: 10%;
}


.cube-2 {
    right: 9%;
    top: 24%;

    width: 65px;
    height: 65px;

    animation-delay: -2s;
}


.cube-3 {
    left: 16%;
    bottom: 16%;

    width: 45px;
    height: 45px;

    animation-delay: -4s;
}


.cube-4 {
    right: 17%;
    bottom: 15%;

    width: 55px;
    height: 55px;

    animation-delay: -6s;
}


@keyframes floatCube {
    0%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(-22px) rotate(55deg);
    }
}


.hero-content {
    position: relative;
    z-index: 2;

    max-width: 850px;
}


.hero-badge,
.section-label {
    display: inline-block;

    color: var(--accent);

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

    letter-spacing: 0.18em;
}


.hero-badge {
    margin-bottom: 20px;

    padding: 8px 13px;

    border: 1px solid rgba(103, 232, 165, 0.18);

    border-radius: 999px;

    background: rgba(103, 232, 165, 0.06);
}


.hero h1 {
    margin-bottom: 5px;

    font-size: clamp(70px, 13vw, 150px);

    line-height: 0.95;

    letter-spacing: -0.08em;

    background:
        linear-gradient(
            135deg,
            #ffffff 20%,
            var(--accent) 70%,
            var(--accent-2)
        );

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

    color: transparent;
}


.hero h2 {
    margin-bottom: 22px;

    font-size: clamp(23px, 4vw, 38px);

    line-height: 1.15;

    letter-spacing: -0.03em;
}


.hero p {
    max-width: 650px;

    margin: auto;

    color: var(--muted);

    font-size: 17px;
}


.hero-ip {
    width: fit-content;

    margin: 30px auto 25px;

    padding: 12px 18px;

    display: flex;
    align-items: center;
    gap: 10px;

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

    border-radius: 12px;

    background: rgba(255,255,255,0.04);

    font-weight: 700;
}


.ip-dot,
.online-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 15px rgba(103, 232, 165, 0.8);
}


.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}


.scroll-indicator {
    position: absolute;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;

    color: #667386;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.scroll-indicator span {
    width: 1px;
    height: 32px;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--accent)
    );
}


/* SECTIONS */

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

    margin: auto;

    padding: 120px 0;
}


.dark-section {
    width: 100%;

    padding-left: max(
        20px,
        calc((100% - var(--container)) / 2)
    );

    padding-right: max(
        20px,
        calc((100% - var(--container)) / 2)
    );

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.015),
            rgba(255,255,255,0.025)
        );

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


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

    margin-bottom: 55px;
}


.section-heading h2 {
    margin-top: 10px;
    margin-bottom: 16px;

    font-size: clamp(35px, 5vw, 54px);

    line-height: 1.05;

    letter-spacing: -0.045em;
}


.section-heading h2 span,
.server-title h2 span,
.join-content h2 span {
    color: var(--accent);
}


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

    font-size: 16px;
}


/* ABOUT */

.about-layout {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;

    align-items: center;
}


.about-text p {
    margin-bottom: 20px;

    color: var(--muted);

    font-size: 17px;
}


.feature-grid {
    display: grid;

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

    gap: 15px;
}


.feature-card,
.game-card,
.rule-card {
    border: 1px solid var(--line);

    background: var(--panel);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}


.feature-card {
    min-height: 220px;

    padding: 25px;

    border-radius: var(--radius);

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


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

    border-color: rgba(103, 232, 165, 0.22);

    background: rgba(22, 31, 44, 0.8);
}


.feature-icon,
.game-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin-bottom: 25px;

    border-radius: 13px;

    color: var(--accent);

    background: rgba(103, 232, 165, 0.08);

    font-size: 19px;
}


.feature-card h3,
.game-card h3,
.rule-card h3 {
    margin-bottom: 8px;

    font-size: 18px;
}


.feature-card p,
.game-card p,
.rule-card p {
    color: var(--muted);

    font-size: 14px;
}


/* GAME CARDS */

.game-grid {
    display: grid;

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

    gap: 16px;
}


.game-card {
    position: relative;

    min-height: 270px;

    padding: 28px;

    overflow: hidden;

    border-radius: var(--radius);

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


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

    border-color: rgba(103, 232, 165, 0.25);
}


.game-number {
    position: absolute;

    top: 22px;
    right: 25px;

    color: rgba(255,255,255,0.18);

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


.game-icon {
    margin-top: 15px;
}


/* SERVER */

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

    margin: auto;

    padding: 110px 0;
}


.server-card {
    padding: 45px;

    border: 1px solid rgba(103, 232, 165, 0.13);

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(103, 232, 165, 0.09),
            transparent 35%
        ),
        rgba(15, 22, 32, 0.8);

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


.server-title {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-bottom: 40px;
}


.server-title h2 {
    margin-top: 7px;

    font-size: clamp(28px, 4vw, 43px);

    line-height: 1.1;

    letter-spacing: -0.04em;
}


.server-info-grid {
    display: grid;

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

    margin-bottom: 35px;

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

    border-radius: 17px;

    overflow: hidden;
}


.info-item {
    min-height: 105px;

    padding: 22px;

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

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


.info-item:last-child {
    border-right: 0;
}


.info-item span {
    margin-bottom: 5px;

    color: var(--muted);

    font-size: 12px;
}


.info-item strong {
    font-size: 15px;
}


/* RULES */

.rules-grid {
    display: grid;

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

    gap: 14px;
}


.rule-card {
    min-height: 120px;

    padding: 22px;

    display: flex;
    gap: 20px;

    border-radius: 18px;

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


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

    border-color: rgba(103, 232, 165, 0.2);
}


.rule-card > span {
    color: var(--accent);

    font-size: 12px;
    font-weight: 900;
}


.rules-note {
    margin-top: 25px;

    color: #6f7a89;

    font-size: 12px;
}


/* JOIN */

.join-section {
    position: relative;

    padding: 130px 20px;

    overflow: hidden;

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

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(103, 232, 165, 0.08),
            transparent 45%
        );
}


.join-content {
    position: relative;
    z-index: 2;

    max-width: 700px;

    margin: auto;
}


.join-content h2 {
    margin-top: 10px;
    margin-bottom: 15px;

    font-size: clamp(38px, 6vw, 65px);

    line-height: 1;

    letter-spacing: -0.055em;
}


.join-content p {
    color: var(--muted);

    font-size: 16px;
}


.join-ip {
    margin: 30px auto 20px;

    color: var(--text);

    font-size: clamp(22px, 4vw, 32px);

    font-weight: 800;

    letter-spacing: -0.03em;
}


/* FOOTER */

.footer {
    border-top: 1px solid var(--line);

    background: #060a0f;
}


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

    margin: auto;

    padding: 55px 0;

    display: grid;

    grid-template-columns: 1fr auto auto;

    gap: 70px;

    align-items: center;
}


.footer-brand img {
    width: 90px;
    max-height: 45px;

    object-fit: contain;

    margin-bottom: 10px;
}


.footer-brand p {
    color: var(--muted);

    font-size: 13px;
}


.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;
}


.footer-links a {
    color: var(--muted);

    font-size: 13px;

    transition: color 0.2s ease;
}


.footer-links a:hover {
    color: var(--text);
}


.footer-server {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


.footer-server span {
    color: var(--muted);

    font-size: 11px;
}


.footer-server strong {
    color: var(--accent);

    font-size: 14px;
}


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

    margin: auto;

    padding: 20px 0;

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

    color: #626d7d;

    font-size: 11px;
}


/* TOAST */

.toast {
    position: fixed;

    left: 50%;
    bottom: 28px;

    z-index: 300;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px 18px;

    border: 1px solid rgba(103, 232, 165, 0.18);

    border-radius: 14px;

    background: rgba(15, 22, 32, 0.94);

    backdrop-filter: blur(18px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.35);

    color: var(--text);

    font-size: 13px;
    font-weight: 700;

    opacity: 0;
    pointer-events: none;

    transform:
        translate(-50%, 20px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: var(--accent);

    color: #07110b;

    font-size: 12px;
}


/* REVEAL */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* TABLET */

@media (max-width: 950px) {

    .nav-links {
        gap: 15px;
    }

    .about-layout {
        grid-template-columns: 1fr;

        gap: 40px;
    }

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

    .server-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-item:nth-child(2) {
        border-right: 0;
    }

    .info-item:nth-child(1),
    .info-item:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-server {
        align-items: flex-start;
    }
}


/* MOBILE */

@media (max-width: 720px) {

    .nav-container {
        width: calc(100% - 28px);

        height: 70px;
    }

    .brand img {
        width: 82px;
    }

    .nav-copy {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 70px;
        left: 14px;
        right: 14px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        padding: 10px;

        border: 1px solid var(--line);
        border-radius: 17px;

        background: rgba(10, 15, 22, 0.96);

        backdrop-filter: blur(20px);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .nav-links a {
        padding: 13px;

        border-radius: 10px;
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.04);
    }

    .nav-links a::after {
        display: none;
    }


    .menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    .hero {
        padding-top: 125px;
    }

    .hero h1 {
        font-size: clamp(65px, 22vw, 105px);
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        width: min(100%, 320px);

        margin: auto;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }


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

        padding: 85px 0;
    }


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


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


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

        padding: 80px 0;
    }


    .server-card {
        padding: 25px;

        border-radius: 22px;
    }


    .server-info-grid {
        grid-template-columns: 1fr;
    }


    .info-item {
        border-right: 0 !important;

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

    .info-item:last-child {
        border-bottom: 0;
    }


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


    .join-section {
        padding: 100px 20px;
    }


    .footer-container {
        width: calc(100% - 28px);

        grid-template-columns: 1fr;

        gap: 35px;
    }


    .footer-server {
        align-items: flex-start;
    }


    .footer-links {
        flex-direction: column;

        gap: 10px;
    }


    .footer-bottom {
        width: calc(100% - 28px);
    }


    .cube-1 {
        left: -35px;
    }

    .cube-2 {
        right: -30px;
    }

    .cube-3,
    .cube-4 {
        display: none;
    }

}


/* REDUCED MOTION */

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}
