:root {
    --bg: #061522;
    --text: #e8f8ff;
    --muted: #9bbdca;
    --accent: #35d5df;
    --accent-light: #8af3f0;
    --card: rgba(8, 34, 49, 0.88);
    --border: rgba(53, 213, 223, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(ellipse at 16% 8%, rgba(30, 160, 190, 0.22), transparent 38%),
        radial-gradient(ellipse at 88% 30%, rgba(20, 105, 160, 0.20), transparent 42%),
        linear-gradient(160deg, #04111d 0%, #08283a 52%, #061522 100%) !important;
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .brand {
    font-family: ""Minecraft", Orbitron", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1150px, 92vw);
    margin: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 18, 29, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(53, 213, 223, 0.18);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.brand span {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(53, 213, 223, 0.35);
}

.brand img {
    height: 46px;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: #b9c0c9;
    font-weight: 600;
    transition: .2s ease;
}

.site-nav a:hover,
.site-nav .current {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(53, 213, 223, 0.35);
}

.hero {
    position: relative;
    width: 100% !important;
    min-height: 90vh;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 6rem 0 !important;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(53, 213, 223, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 213, 223, 0.045) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 88%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 3rem !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    box-sizing: border-box !important;
}

.hero-text {
    flex: 1 !important;
    max-width: 520px !important;
    text-align: left !important;
    width: 100% !important;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem) !important;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    word-break: break-word;
}

.hero h1 span {
    color: var(--accent);
    text-shadow: 0 0 22px rgba(53, 213, 223, 0.42);
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    margin-top: 2rem !important;
    width: auto !important;
}

.btn {
    padding: 1rem 1.8rem;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: .22s ease;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn.primary {
    background: linear-gradient(135deg, #5ce8e6 0%, #159ebd 100%);
    color: #031923;
    box-shadow: 0 0 28px rgba(36, 193, 210, 0.25);
}

.btn.primary:hover {
    box-shadow: 0 0 42px rgba(53, 213, 223, 0.42);
}

.btn.secondary {
    background: rgba(53, 213, 223, 0.055);
    border: 1px solid rgba(53, 213, 223, 0.28);
    color: var(--accent-light);
}

.btn-status-wrap {
    padding: 1rem 1.5rem !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    background: rgba(53, 213, 223, 0.055) !important;
    border: 1px solid rgba(53, 213, 223, 0.25) !important;
    color: var(--text, #f5f5f5) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    white-space: nowrap !important;
}

.hero-media {
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 35px rgba(30, 177, 205, 0.25));
}

.hero-media img {
    width: 100%;
    max-width: 520px;
    margin: auto;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.section {
    position: relative;
    padding: 5rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-heading p {
    color: var(--muted);
    max-width: 650px;
    margin: auto;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: linear-gradient(145deg, rgba(11, 48, 65, 0.91), rgba(5, 25, 39, 0.94));
    backdrop-filter: blur(14px);
    border: 1px solid rgba(53, 213, 223, 0.19);
    border-radius: 24px;
    padding: 2rem;
    transition: .25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 24px rgba(13, 139, 166, 0.13);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(53, 213, 223, 0.12), transparent 48%);
    opacity: 0;
    transition: .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(83, 231, 232, 0.42);
    box-shadow: 0 0 30px rgba(28, 170, 194, 0.20);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.card p {
    color: var(--muted);
    line-height: 1.7;
}

.team-card {
    background: linear-gradient(145deg, rgba(11, 48, 65, 0.91), rgba(5, 25, 39, 0.94));
    text-align: center;
    border: 1px solid rgba(53, 213, 223, 0.19);
    border-radius: 1.4rem;
    padding: 2rem;
    box-shadow: 0 0 24px rgba(13, 139, 166, 0.13);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-card h3 {
    font-size: 1.4rem;
}

.team-card p {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 1px;
}

.team-card .link {
    font-weight: 600;
    color: var(--accent-light);
    margin-top: auto;
}

.site-footer {
    border-top: 1px solid rgba(53, 213, 223, 0.16);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--muted);
}

.server-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(8, 34, 49, 0.82);
    border: 1px solid rgba(53, 213, 223, 0.22);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    width: max-content;
    margin: 1.5rem auto;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

.server-status-container:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}

#status-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text);
}

#player-count-wrap {
    font-size: 0.95rem;
    color: var(--muted);
}

#player-count {
    color: var(--accent);
}

.status-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    transition: background 0.3s, box-shadow 0.3s;
}

.status-dot.online {
    background: #42e6c5;
    box-shadow: 0 0 10px rgba(66, 230, 197, 0.8);
}

.status-dot.offline {
    background: #ef4444 !important;
    box-shadow: 0 0 10px #ef4444 !important;
}

.hero-content.container,
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    box-sizing: border-box !important;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #04111d;
}

::-webkit-scrollbar-thumb {
    background: rgba(53, 213, 223, 0.30);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(83, 231, 232, 0.55);
}

::selection {
    background: rgba(53, 213, 223, 0.32);
    color: #ffffff;
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column !important;
        text-align: center;
    }

    .hero-actions {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .hero-media {
        order: -1;
    }

    .hero {
        min-height: auto;
        padding: 5rem 0 !important;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .server-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .server-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .site-nav {
        display: none;
    }
}
