:root {
    --bg-dark: #09070d;
    --bg-soft: rgba(12, 10, 18, 0.72);
    --panel: rgba(255, 255, 255, 0.06);
    --panel-strong: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.78);
    --text-muted: rgba(255, 255, 255, 0.58);
    --accent: #ffffff;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius: 18px;
    --nav-height: 86px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg-dark);
    overflow-x: hidden;
    position: relative;
}

/* BACKGROUND */
.site-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 6, 14, 0.92) 0%, rgba(15, 10, 22, 0.82) 38%, rgba(22, 12, 30, 0.35) 100%),
        url("https://cdn.corerp.no/assets/nettside-assets/nettside_wallpaper.jpg") center center / cover no-repeat;
    z-index: -3;
    transform: scale(1.03);
}

.site-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 40%, rgba(133, 36, 255, 0.18), transparent 35%),
        radial-gradient(circle at 75% 30%, rgba(255, 98, 0, 0.12), transparent 28%),
        linear-gradient(to top, rgba(5, 6, 12, 0.92), rgba(5, 6, 12, 0.2));
    z-index: -2;
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(10, 8, 16, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    width: min(1280px, calc(100% - 40px));
    height: var(--nav-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-mark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #bb7cff, #7d2cff 50%, #ff6a3d 100%);
    box-shadow: 0 0 20px rgba(149, 76, 255, 0.6);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links a,
.mobile-menu a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    transition: 0.25s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 99px;
    transition: 0.25s ease;
}

.mobile-menu {
    display: none;
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto 16px auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 8, 16, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* HERO */
.hero-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 24px;
    padding: 40px 0 60px;
}

.hero-content {
    max-width: 680px;
    z-index: 2;
}

.hero-kicker {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 7vw, 5.7rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.hero-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.1rem, 2.6vw, 2rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-soft);
    max-width: 630px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: #ffffff;
    color: #0d0d0f;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #f0f0f0;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
}

.server-box {
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.server-ip-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.server-ip-wrap code {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: #fff;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    white-space: nowrap;
}

.player-count-btn,
.copy-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    transition: 0.25s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.player-count-btn {
    cursor: default;
    white-space: nowrap;
    min-width: 78px;
}

.copy-btn {
    cursor: pointer;
}

.player-count-btn:hover,
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.overlay-glow {
    position: absolute;
    inset: auto 8% 4% 8%;
    height: 65%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 124, 74, 0.16) 0%, rgba(126, 63, 255, 0.12) 40%, transparent 72%);
    filter: blur(30px);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay-image {
    position: absolute;
    right: -3%;
    bottom: -2%;
    width: min(880px, 100%);
    max-height: 90vh;
    object-fit: contain;
    z-index: 2;
    user-select: none;
    pointer-events: none;
    filter:
        drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45))
        saturate(1.04)
        contrast(1.03);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.98) 72%, rgba(0,0,0,0.15) 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.98) 72%, rgba(0,0,0,0.15) 92%, transparent 100%);
}

/* RESPONSIVE */
@media (max-width: 1080px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        min-height: 460px;
        order: -1;
    }

    .hero-overlay-image {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(700px, 100%);
        margin: 0 auto;
    }

    .overlay-glow {
        inset: auto 12% 8% 12%;
        height: 58%;
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        padding: 24px 0 50px;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-content h2 {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.75;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .server-box {
        width: 100%;
    }

    .server-ip-wrap {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .server-ip-wrap code {
        width: 100%;
        white-space: normal;
        word-break: break-word;
    }

    .copy-btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .nav-container,
    .mobile-menu,
    .hero-container {
        width: min(100% - 24px, 1280px);
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero-kicker {
        font-size: 0.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-visual {
        min-height: 260px;
    }
}