/* ============================================================
   JStarkLive
   Synthwave / voxel gaming portal
   ============================================================ */

:root {
    --background: #06050c;
    --background-soft: #0a0813;
    --background-panel: rgba(13, 10, 25, 0.82);
    --background-panel-strong: #0d0a19;

    --text: #f6f5ff;
    --text-muted: #a8a2bb;
    --text-dim: #787287;

    --pink: #ff3fb4;
    --pink-hot: #ff1d9c;
    --purple: #9b5cff;
    --violet: #6f43ff;
    --cyan: #38e8ff;
    --blue: #378cff;
    --green: #4dffb5;
    --amber: #ffc65c;

    --border: rgba(255, 255, 255, 0.09);
    --border-bright: rgba(146, 109, 255, 0.24);

    --shadow-neon:
        0 0 22px rgba(155, 92, 255, 0.12),
        0 0 54px rgba(255, 63, 180, 0.08);

    --font-display:
        "Arial Black",
        "Segoe UI",
        Arial,
        sans-serif;

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

    --container: 1180px;
    --header-height: 82px;
    --radius: 18px;
    --radius-small: 10px;
}


/* ============================================================
   Reset
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

    font-family: var(--font-ui);
    color: var(--text);
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(104, 55, 255, 0.18),
            transparent 42%
        ),
        var(--background);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
}

::selection {
    color: #ffffff;
    background: var(--pink);
}


/* ============================================================
   Accessibility
   ============================================================ */

.skip-link {
    position: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;

    padding: 10px 14px;
    transform: translateY(-150%);

    color: #05050a;
    background: var(--cyan);

    border-radius: 6px;

    font-size: 0.85rem;
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}


/* ============================================================
   Shared
   ============================================================ */

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 110px 0;
}

.section-kicker {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--cyan);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 450px);
    align-items: end;
    gap: 60px;

    margin-bottom: 46px;
}

.section-heading h2,
.community-copy h2,
.maps-content h2,
.closing-panel h2 {
    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.section-heading p {
    margin: 0;

    color: var(--text-muted);

    font-size: 1rem;
    line-height: 1.8;
}

.button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 52px;
    padding: 0 22px;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.button svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: square;
}

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

.button-primary {
    color: #ffffff;

    background:
        linear-gradient(
            105deg,
            var(--violet),
            var(--pink-hot)
        );

    box-shadow:
        0 9px 30px rgba(159, 54, 255, 0.22),
        0 0 24px rgba(255, 29, 156, 0.14);
}

.button-primary::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 15%,
            rgba(255, 255, 255, 0.18) 48%,
            transparent 75%
        );

    transform: translateX(-120%);
    transition: transform 500ms ease;
}

.button-primary:hover::before {
    transform: translateX(120%);
}

.button-primary:hover {
    box-shadow:
        0 12px 36px rgba(159, 54, 255, 0.3),
        0 0 34px rgba(255, 29, 156, 0.22);
}

.button-primary > * {
    position: relative;
    z-index: 1;
}

.button-secondary {
    color: #e9e6f4;

    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.14);

    backdrop-filter: blur(12px);
}

.button-secondary:hover {
    border-color: rgba(56, 232, 255, 0.36);

    background: rgba(56, 232, 255, 0.06);

    box-shadow: 0 0 26px rgba(56, 232, 255, 0.08);
}


/* ============================================================
   Ambient Background
   ============================================================ */

.site-background {
    position: fixed;
    z-index: -5;
    inset: 0;

    overflow: hidden;
    pointer-events: none;
}

.site-background::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(6, 5, 12, 0) 65%,
            var(--background) 100%
        );
}

.ambient-glow {
    position: absolute;

    width: 620px;
    height: 620px;

    border-radius: 50%;

    filter: blur(120px);
    opacity: 0.16;
}

.ambient-glow-left {
    top: 15vh;
    left: -370px;

    background: var(--pink);
}

.ambient-glow-right {
    top: 25vh;
    right: -390px;

    background: var(--violet);
}

.stars {
    position: absolute;
    inset: 0;

    opacity: 0.5;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 1px,
            transparent 1.3px
        );

    background-repeat: repeat;
}

.stars-a {
    background-size: 83px 83px;
    background-position: 10px 14px;
}

.stars-b {
    opacity: 0.2;

    background-size: 137px 137px;
    background-position: 66px 30px;

    animation: starDrift 40s linear infinite;
}

.perspective-grid {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -25vh;

    height: 60vh;

    opacity: 0.16;

    background-image:
        linear-gradient(
            rgba(151, 92, 255, 0.5) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(151, 92, 255, 0.5) 1px,
            transparent 1px
        );

    background-size: 64px 42px;

    transform:
        perspective(450px)
        rotateX(62deg);

    transform-origin: center bottom;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 20%,
            #000 100%
        );
}

.voxel-horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10vh;

    height: 160px;

    opacity: 0.15;
}

.voxel {
    position: absolute;
    bottom: 0;

    display: block;

    background:
        linear-gradient(
            135deg,
            rgba(155, 92, 255, 0.28),
            rgba(255, 63, 180, 0.1)
        );

    clip-path:
        polygon(
            0 30%,
            20% 30%,
            20% 10%,
            42% 10%,
            42% 44%,
            68% 44%,
            68% 18%,
            85% 18%,
            85% 0,
            100% 0,
            100% 100%,
            0 100%
        );
}

.v1 {
    left: -3%;
    width: 18%;
    height: 120px;
}

.v2 {
    left: 10%;
    width: 15%;
    height: 80px;
}

.v3 {
    left: 23%;
    width: 18%;
    height: 130px;
}

.v4 {
    left: 39%;
    width: 16%;
    height: 90px;
}

.v5 {
    left: 52%;
    width: 18%;
    height: 145px;
}

.v6 {
    left: 66%;
    width: 18%;
    height: 95px;
}

.v7 {
    left: 79%;
    width: 16%;
    height: 135px;
}

.v8 {
    left: 91%;
    width: 14%;
    height: 82px;
}


/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.site-header.scrolled {
    background: rgba(6, 5, 12, 0.82);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(22px);

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.22);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.brand-mark {
    position: relative;

    width: 32px;
    height: 32px;

    transform: rotate(45deg);
}

.brand-cube {
    position: absolute;
    inset: 5px;

    display: block;

    border: 2px solid var(--cyan);

    box-shadow:
        0 0 14px rgba(56, 232, 255, 0.42),
        inset 0 0 12px rgba(56, 232, 255, 0.14);
}

.brand-cube::before,
.brand-cube::after {
    content: "";

    position: absolute;

    background: var(--pink);

    box-shadow: 0 0 10px rgba(255, 63, 180, 0.6);
}

.brand-cube::before {
    top: 50%;
    left: -5px;

    width: 8px;
    height: 2px;
}

.brand-cube::after {
    right: -5px;
    bottom: 4px;

    width: 2px;
    height: 8px;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: -0.025em;
}

.brand-text strong {
    color: #ffffff;
}

.brand-text span {
    color: var(--pink);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.primary-nav > a:not(.nav-cta) {
    position: relative;

    color: #aaa5b7;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;

    transition: color 160ms ease;
}

.primary-nav > a:not(.nav-cta)::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;

    height: 1px;

    background: var(--cyan);

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 160ms ease;
}

.primary-nav > a:not(.nav-cta):hover {
    color: #ffffff;
}

.primary-nav > a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 16px;

    color: #ffffff;

    border: 1px solid rgba(255, 63, 180, 0.34);
    border-radius: 6px;

    background:
        linear-gradient(
            110deg,
            rgba(155, 92, 255, 0.18),
            rgba(255, 63, 180, 0.1)
        );

    box-shadow: inset 0 0 20px rgba(255, 63, 180, 0.04);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-cta:hover {
    border-color: rgba(255, 63, 180, 0.65);

    box-shadow:
        0 0 18px rgba(255, 63, 180, 0.12),
        inset 0 0 22px rgba(255, 63, 180, 0.07);
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;
    padding: 10px;

    cursor: pointer;

    border: 1px solid var(--border);
    border-radius: 7px;

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

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;
    margin: 4px 0;

    background: #ffffff;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}


/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 820px;
    padding:
        calc(var(--header-height) + 60px)
        0
        90px;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    top: 22%;
    left: 7%;

    width: 1px;
    height: 220px;

    opacity: 0.25;

    background:
        linear-gradient(
            transparent,
            var(--pink),
            transparent
        );
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    align-items: center;
    gap: 60px;
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 28px;
    padding: 8px 12px;

    color: #c5bfd2;

    border: 1px solid var(--border);
    border-radius: 5px;

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

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;

    border-radius: 1px;

    background: var(--green);

    box-shadow: 0 0 12px rgba(77, 255, 181, 0.75);

    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    margin: 0;
}

.hero-heading-small {
    display: block;

    margin-bottom: 5px;

    color: #bbb5ca;

    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 500;
    letter-spacing: 0.015em;
}

.hero-heading-main {
    position: relative;

    display: inline-block;

    font-family: var(--font-display);
    font-size: clamp(4.5rem, 9.8vw, 8rem);
    line-height: 0.86;
    letter-spacing: -0.075em;

    text-shadow:
        0 0 40px rgba(146, 92, 255, 0.1);
}

.hero-heading-main::after {
    content: "";

    position: absolute;
    right: 4px;
    bottom: -12px;
    left: 8px;

    height: 2px;

    opacity: 0.9;

    background:
        linear-gradient(
            90deg,
            var(--cyan),
            var(--violet) 46%,
            var(--pink),
            transparent 88%
        );

    box-shadow:
        0 0 12px rgba(56, 232, 255, 0.4);
}

.hero-heading-main span {
    color: var(--pink);

    text-shadow:
        0 0 30px rgba(255, 63, 180, 0.18);
}

.hero-tagline {
    margin: 40px 0 12px;

    color: #ffffff;

    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 2.15rem);
    letter-spacing: -0.04em;
}

.hero-description {
    max-width: 620px;
    margin: 0;

    color: var(--text-muted);

    font-size: 1.03rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 34px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;

    margin-top: 43px;
    padding-top: 28px;

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

.hero-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hero-meta-item > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;

    color: var(--text-dim);

    font-size: 0.73rem;
}

.hero-meta-item strong {
    color: #d8d4e2;

    font-size: 0.78rem;
}

.meta-icon {
    width: 8px;
    height: 8px;
    margin-top: 4px;

    transform: rotate(45deg);
}

.meta-icon-green {
    background: var(--green);

    box-shadow: 0 0 12px rgba(77, 255, 181, 0.6);
}

.meta-icon-cyan {
    background: var(--cyan);

    box-shadow: 0 0 12px rgba(56, 232, 255, 0.6);
}


/* ============================================================
   Hero Portal Artwork
   ============================================================ */

.hero-visual {
    position: relative;

    min-height: 570px;
}

.portal-frame {
    position: absolute;
    top: 50%;
    left: 50%;

    width: min(410px, 90%);
    aspect-ratio: 0.78;

    transform:
        translate(-50%, -50%)
        perspective(1200px)
        rotateY(-4deg);

    border: 2px solid rgba(200, 164, 255, 0.18);

    background: #090612;

    box-shadow:
        0 0 0 10px rgba(17, 11, 29, 0.85),
        0 0 0 11px rgba(255, 255, 255, 0.045),
        0 0 60px rgba(155, 92, 255, 0.25),
        0 0 110px rgba(255, 63, 180, 0.1);

    animation: portalFloat 6s ease-in-out infinite;
}

.portal-frame::before,
.portal-frame::after {
    content: "";

    position: absolute;
    z-index: 3;

    width: 35px;
    height: 35px;

    pointer-events: none;
}

.portal-frame::before {
    top: -8px;
    left: -8px;

    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);

    box-shadow: -2px -2px 12px rgba(56, 232, 255, 0.2);
}

.portal-frame::after {
    right: -8px;
    bottom: -8px;

    border-right: 2px solid var(--pink);
    border-bottom: 2px solid var(--pink);

    box-shadow: 3px 3px 12px rgba(255, 63, 180, 0.22);
}

.portal-edge {
    position: absolute;
    z-index: 2;
    inset: -8px;

    pointer-events: none;

    background:
        linear-gradient(
            var(--cyan),
            var(--cyan)
        ) top 20px left / 3px 50px no-repeat,
        linear-gradient(
            var(--pink),
            var(--pink)
        ) bottom 30px right / 3px 70px no-repeat,
        linear-gradient(
            90deg,
            var(--purple),
            transparent
        ) top -2px right 40px / 80px 2px no-repeat;
}

.portal-window {
    position: absolute;
    inset: 15px;

    overflow: hidden;

    background:
        linear-gradient(
            #080315 0%,
            #1d073d 55%,
            #5a1262 100%
        );
}

.portal-window::before {
    content: "";

    position: absolute;
    z-index: 2;
    inset: 0;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 100% 5px;

    opacity: 0.38;
}

.portal-window::after {
    content: "";

    position: absolute;
    z-index: 1;
    inset: 0;

    box-shadow:
        inset 0 0 45px rgba(0, 0, 0, 0.48);
}

.portal-sky {
    position: absolute;
    inset: 0 0 35%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 58, 194, 0.1),
            transparent 60%
        );
}

.pixel-star {
    position: absolute;

    width: 3px;
    height: 3px;

    background: #ffffff;

    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.8);
}

.star-1 {
    top: 15%;
    left: 18%;
}

.star-2 {
    top: 28%;
    left: 72%;

    width: 2px;
    height: 2px;
}

.star-3 {
    top: 10%;
    left: 60%;

    width: 2px;
    height: 2px;
}

.star-4 {
    top: 37%;
    left: 31%;
}

.portal-moon {
    position: absolute;
    top: 18%;
    left: 50%;

    width: 118px;
    height: 118px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        linear-gradient(
            180deg,
            #ff81d4,
            #d750ff 60%,
            #8a40ff
        );

    box-shadow:
        0 0 35px rgba(255, 79, 209, 0.38),
        0 0 70px rgba(136, 64, 255, 0.22);

    opacity: 0.95;
}

.portal-moon::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(7, 3, 17, 0.16) 0,
            rgba(7, 3, 17, 0.16) 3px,
            transparent 3px,
            transparent 8px
        );
}

.portal-mountain {
    position: absolute;
    right: -10%;
    left: -10%;

    transform-origin: bottom;
}

.mountain-back {
    z-index: 2;
    bottom: 31%;

    height: 37%;

    background:
        linear-gradient(
            130deg,
            rgba(65, 24, 104, 0.95),
            rgba(28, 12, 54, 0.95)
        );

    clip-path:
        polygon(
            0 100%,
            0 76%,
            16% 58%,
            25% 72%,
            41% 36%,
            52% 64%,
            68% 25%,
            77% 53%,
            87% 42%,
            100% 74%,
            100% 100%
        );
}

.mountain-mid {
    z-index: 3;
    bottom: 23%;

    height: 36%;

    background:
        linear-gradient(
            120deg,
            #170c2b,
            #0c0917
        );

    clip-path:
        polygon(
            0 100%,
            0 62%,
            11% 62%,
            11% 51%,
            24% 51%,
            24% 70%,
            36% 70%,
            36% 42%,
            52% 42%,
            52% 56%,
            67% 56%,
            67% 35%,
            79% 35%,
            79% 49%,
            91% 49%,
            91% 63%,
            100% 63%,
            100% 100%
        );
}

.portal-land {
    position: absolute;
    z-index: 4;
    inset: auto 0 0;

    height: 33%;

    background:
        linear-gradient(
            #090813,
            #07060d
        );
}

.land-block {
    position: absolute;

    background:
        linear-gradient(
            135deg,
            #241343,
            #110c20
        );

    border-top: 2px solid rgba(190, 72, 255, 0.42);
}

.lb1 {
    top: -19px;
    left: 0;

    width: 25%;
    height: 35px;
}

.lb2 {
    top: -36px;
    left: 24%;

    width: 18%;
    height: 52px;
}

.lb3 {
    top: -15px;
    left: 41%;

    width: 18%;
    height: 31px;
}

.lb4 {
    top: -50px;
    left: 58%;

    width: 15%;
    height: 66px;
}

.lb5 {
    top: -29px;
    left: 72%;

    width: 15%;
    height: 45px;
}

.lb6 {
    top: -13px;
    right: 0;

    width: 14%;
    height: 29px;
}

.portal-grid {
    position: absolute;
    z-index: 5;
    left: -25%;
    right: -25%;
    bottom: -26%;

    height: 50%;

    opacity: 0.52;

    background-image:
        linear-gradient(
            rgba(255, 42, 178, 0.55) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 42, 178, 0.55) 1px,
            transparent 1px
        );

    background-size: 36px 22px;

    transform:
        perspective(250px)
        rotateX(62deg);

    transform-origin: center bottom;
}

.floating-cube {
    position: absolute;
    z-index: 6;

    width: 60px;
    height: 70px;

    filter:
        drop-shadow(
            0 0 13px rgba(56, 232, 255, 0.18)
        );
}

.cube-top,
.cube-left,
.cube-right {
    position: absolute;
}

.cube-top {
    top: 0;
    left: 15px;

    width: 42px;
    height: 25px;

    transform:
        skewY(-30deg)
        rotate(30deg);

    background:
        linear-gradient(
            135deg,
            rgba(86, 236, 255, 0.55),
            rgba(78, 95, 255, 0.28)
        );
}

.cube-left {
    top: 22px;
    left: 5px;

    width: 30px;
    height: 36px;

    transform: skewY(30deg);

    background:
        linear-gradient(
            180deg,
            rgba(109, 68, 255, 0.4),
            rgba(53, 24, 105, 0.2)
        );
}

.cube-right {
    top: 22px;
    left: 35px;

    width: 30px;
    height: 36px;

    transform: skewY(-30deg);

    background:
        linear-gradient(
            180deg,
            rgba(255, 57, 180, 0.4),
            rgba(104, 22, 92, 0.2)
        );
}

.cube-one {
    top: 6%;
    right: -17%;

    transform: scale(0.85);

    animation: cubeFloat 6s ease-in-out infinite;
}

.cube-two {
    bottom: 7%;
    left: -17%;

    transform: scale(0.65);

    animation: cubeFloat 7.5s 0.8s ease-in-out infinite reverse;
}

.cube-three {
    top: 38%;
    right: -29%;

    transform: scale(0.42);

    opacity: 0.55;

    animation: cubeFloat 5s 1.2s ease-in-out infinite;
}

.portal-badge {
    position: absolute;
    z-index: 10;
    right: -38px;
    bottom: 36px;

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

    padding: 10px 13px;

    color: #dcd9e6;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: rgba(8, 6, 16, 0.9);

    box-shadow:
        0 15px 38px rgba(0, 0, 0, 0.3);

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    backdrop-filter: blur(12px);
}

.pulse-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow: 0 0 11px rgba(77, 255, 181, 0.8);

    animation: pulse 1.8s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;

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

    transform: translateX(-50%);

    color: #696374;

    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.scroll-line {
    position: relative;

    width: 40px;
    height: 1px;

    overflow: hidden;

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

.scroll-line::after {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 12px;
    height: 1px;

    background: var(--pink);

    box-shadow: 0 0 6px rgba(255, 63, 180, 0.6);

    animation: scrollLine 2s ease-in-out infinite;
}


/* ============================================================
   Status Strip
   ============================================================ */

.status-strip {
    position: relative;
    z-index: 5;

    padding: 0;
}

.status-panel {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;

    padding: 22px 26px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background:
        linear-gradient(
            100deg,
            rgba(18, 13, 32, 0.95),
            rgba(10, 8, 18, 0.92)
        );

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.22),
        var(--shadow-neon);

    backdrop-filter: blur(18px);
}

.status-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-right: 20px;

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

.status-heading-icon {
    position: relative;

    width: 28px;
    height: 28px;

    border: 1px solid rgba(56, 232, 255, 0.3);

    transform: rotate(45deg);

    box-shadow:
        inset 0 0 12px rgba(56, 232, 255, 0.06);
}

.status-heading-icon::after {
    content: "";

    position: absolute;
    inset: 8px;

    background: var(--cyan);

    box-shadow: 0 0 11px var(--cyan);
}

.status-heading > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-kicker {
    color: var(--text-dim);

    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.status-heading strong {
    color: #efedf6;

    font-size: 0.75rem;
}

.status-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.status-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center;
    column-gap: 9px;

    min-height: 44px;
    padding: 0 18px;

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

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

.status-dot {
    grid-row: 1 / span 2;
    align-self: center;

    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.status-dot.online {
    background: var(--green);

    box-shadow: 0 0 12px rgba(77, 255, 181, 0.65);
}

.status-dot.pending {
    background: var(--pink);

    box-shadow: 0 0 12px rgba(255, 63, 180, 0.62);
}

.status-dot.rolling {
    background: var(--cyan);

    box-shadow: 0 0 12px rgba(56, 232, 255, 0.65);
}

.status-label {
    color: var(--text-dim);

    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-item strong {
    margin-top: 2px;

    color: #d9d6e2;

    font-size: 0.72rem;
}


/* ============================================================
   Server Cards
   ============================================================ */

.servers-section {
    padding-top: 140px;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.server-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 400px;
    padding: 26px;

    overflow: hidden;

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

    background:
        linear-gradient(
            155deg,
            rgba(18, 14, 34, 0.94),
            rgba(9, 8, 17, 0.96)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.server-card::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0;

    background:
        radial-gradient(
            circle at 78% 10%,
            rgba(155, 92, 255, 0.16),
            transparent 32%
        );

    transition: opacity 220ms ease;
}

.server-card::after {
    content: "";

    position: absolute;
    right: -45px;
    bottom: -45px;

    width: 140px;
    height: 140px;

    opacity: 0.11;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        );

    background-size: 14px 14px;

    transform: rotate(45deg);
}

.server-card:hover {
    transform: translateY(-6px);

    border-color: rgba(140, 95, 255, 0.34);

    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.26),
        0 0 35px rgba(113, 64, 255, 0.08);
}

.server-card:hover::before {
    opacity: 1;
}

.featured-card {
    border-color: rgba(255, 63, 180, 0.21);

    background:
        linear-gradient(
            150deg,
            rgba(36, 14, 48, 0.96),
            rgba(12, 9, 23, 0.98)
        );

    box-shadow:
        inset 0 0 35px rgba(255, 63, 180, 0.025),
        0 0 40px rgba(255, 63, 180, 0.04);
}

.card-corner {
    position: absolute;
    z-index: 4;

    width: 25px;
    height: 25px;

    pointer-events: none;
}

.card-corner-top {
    top: 10px;
    right: 10px;

    border-top: 1px solid rgba(56, 232, 255, 0.34);
    border-right: 1px solid rgba(56, 232, 255, 0.34);
}

.card-corner-bottom {
    bottom: 10px;
    left: 10px;

    border-bottom: 1px solid rgba(255, 63, 180, 0.25);
    border-left: 1px solid rgba(255, 63, 180, 0.25);
}

.server-card-top,
.server-content,
.server-footer,
.server-icon {
    position: relative;
    z-index: 2;
}

.server-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-number {
    color: #524d5d;

    font-family: monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 6px 8px;

    border: 1px solid var(--border);
    border-radius: 4px;

    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.status-badge > span {
    width: 5px;
    height: 5px;

    border-radius: 50%;
}

.status-online {
    color: #90ffd1;

    border-color: rgba(77, 255, 181, 0.17);
    background: rgba(77, 255, 181, 0.055);
}

.status-online > span {
    background: var(--green);

    box-shadow: 0 0 8px rgba(77, 255, 181, 0.6);
}

.status-preparing {
    color: #d3c0ff;

    border-color: rgba(155, 92, 255, 0.17);
    background: rgba(155, 92, 255, 0.055);
}

.status-preparing > span {
    background: var(--purple);

    box-shadow: 0 0 8px rgba(155, 92, 255, 0.6);
}

.status-soon {
    color: #ffb9e5;

    border-color: rgba(255, 63, 180, 0.17);
    background: rgba(255, 63, 180, 0.055);
}

.status-soon > span {
    background: var(--pink);

    box-shadow: 0 0 8px rgba(255, 63, 180, 0.6);
}

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

    width: 72px;
    height: 72px;
    margin: 36px 0 30px;

    color: var(--cyan);

    border: 1px solid rgba(56, 232, 255, 0.14);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(56, 232, 255, 0.065),
            rgba(155, 92, 255, 0.02)
        );

    box-shadow:
        inset 0 0 25px rgba(56, 232, 255, 0.04),
        0 0 24px rgba(56, 232, 255, 0.03);
}

.server-icon svg {
    width: 40px;
    height: 40px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: bevel;
}

.infinity-icon {
    color: var(--pink);

    border-color: rgba(255, 63, 180, 0.16);

    background:
        linear-gradient(
            145deg,
            rgba(255, 63, 180, 0.09),
            rgba(155, 92, 255, 0.02)
        );
}

.infinity-icon span {
    font-family: Georgia, serif;
    font-size: 3.25rem;
    line-height: 1;
}

.minecraft-icon {
    color: var(--green);
}

.pixel-cube-icon {
    display: grid;
    grid-template-columns: repeat(2, 14px);
    gap: 3px;

    transform: rotate(45deg);
}

.pixel-cube-icon i {
    width: 14px;
    height: 14px;

    background: currentColor;

    opacity: 0.84;

    box-shadow: 0 0 10px rgba(77, 255, 181, 0.18);
}

.flame-icon {
    color: #ff77c8;
}

.pal-icon {
    color: #6cefff;
}

.factory-icon {
    color: #a685ff;
}

.midgard-icon {
    color: #ff78cf;
}

.server-type {
    display: block;

    margin-bottom: 7px;

    color: #777083;

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.server-content h3 {
    margin: 0 0 14px;

    font-family: var(--font-display);
    font-size: 1.55rem;
    letter-spacing: -0.045em;
}

.server-content p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.87rem;
    line-height: 1.75;
}

.server-footer {
    margin-top: auto;
    padding-top: 26px;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--cyan);

    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        color 180ms ease,
        gap 180ms ease;
}

.card-action:hover {
    gap: 12px;

    color: #ffffff;
}

.card-action.disabled {
    color: #65606d;

    cursor: default;
}


/* ============================================================
   Community
   ============================================================ */

.community-section {
    border-top: 1px solid rgba(255, 255, 255, 0.035);
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(400px, 1.02fr);
    align-items: center;
    gap: 100px;
}

.community-copy h2 span,
.closing-panel h2 span {
    color: var(--pink);
}

.community-lead {
    margin-top: 28px !important;

    color: #d0cbd8 !important;

    font-size: 1.05rem !important;
}

.community-copy > p {
    margin: 18px 0 0;

    max-width: 590px;

    color: var(--text-muted);

    font-size: 0.9rem;
    line-height: 1.8;
}

.community-features {
    display: grid;
    gap: 0;

    margin-top: 38px;

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

.feature {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;

    padding: 19px 0;

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

.feature-index {
    padding-top: 3px;

    color: var(--pink);

    font-family: monospace;
    font-size: 0.63rem;
}

.feature strong {
    color: #eeeaf4;

    font-size: 0.85rem;
}

.feature p {
    margin: 5px 0 0;

    color: var(--text-dim);

    font-size: 0.78rem;
    line-height: 1.6;
}


/* ============================================================
   Network Console
   ============================================================ */

.community-visual {
    position: relative;
}

.community-visual::before {
    content: "";

    position: absolute;
    top: 10%;
    left: 8%;

    width: 80%;
    height: 80%;

    background: rgba(102, 48, 255, 0.14);

    filter: blur(80px);
}

.network-console {
    position: relative;

    padding: 1px;

    border: 1px solid rgba(155, 92, 255, 0.22);
    border-radius: 12px;

    background:
        linear-gradient(
            140deg,
            rgba(155, 92, 255, 0.08),
            transparent 40%,
            rgba(255, 63, 180, 0.04)
        );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(155, 92, 255, 0.07);
}

.console-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    height: 42px;
    padding: 0 16px;

    color: #6d6677;

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

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

    font-family: monospace;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
}

.console-header > span:last-child {
    justify-self: end;

    color: var(--green);
}

.console-lights {
    display: flex;
    gap: 5px;
}

.console-lights span {
    width: 6px;
    height: 6px;

    border-radius: 1px;

    background: #35303c;
}

.console-lights span:nth-child(1) {
    background: var(--pink);
}

.console-lights span:nth-child(2) {
    background: var(--purple);
}

.console-lights span:nth-child(3) {
    background: var(--cyan);
}

.console-body {
    position: relative;

    min-height: 480px;
    padding: 28px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(9, 7, 17, 0.96),
            rgba(6, 5, 12, 0.98)
        );
}

.console-body::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 4px
        );
}

.console-row {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;

    margin-bottom: 12px;

    color: #777081;

    font-family: monospace;
    font-size: 0.67rem;
}

.console-row strong {
    color: #c9c5d1;

    font-weight: 500;
}

.console-row .console-online {
    color: var(--green);
}

.console-separator {
    position: relative;
    z-index: 2;

    height: 1px;
    margin: 22px 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08),
            transparent
        );
}

.console-map {
    position: relative;
    z-index: 2;

    height: 225px;
    margin: 10px 0 24px;

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

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.027) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.027) 1px,
            transparent 1px
        );

    background-size: 25px 25px;
}

.map-node {
    position: absolute;

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

    padding: 6px 8px;

    color: #8d8796;

    border: 1px solid rgba(155, 92, 255, 0.16);

    background: #090713;

    font-family: monospace;
    font-size: 0.56rem;
}

.map-node span {
    width: 5px;
    height: 5px;

    transform: rotate(45deg);

    background: var(--purple);
}

.node-main {
    top: 50%;
    left: 50%;

    color: #ffffff;

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

    border-color: rgba(56, 232, 255, 0.25);

    box-shadow: 0 0 20px rgba(56, 232, 255, 0.07);
}

.node-main span {
    background: var(--cyan);

    box-shadow: 0 0 8px rgba(56, 232, 255, 0.7);
}

.node-a {
    top: 19%;
    left: 12%;
}

.node-b {
    right: 10%;
    bottom: 18%;
}

.node-c {
    top: 18%;
    right: 12%;
}

.map-connection {
    position: absolute;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(155, 92, 255, 0.1),
            var(--purple),
            rgba(56, 232, 255, 0.2)
        );

    transform-origin: left center;
}

.connection-a {
    top: 31%;
    left: 27%;

    width: 27%;

    transform: rotate(29deg);
}

.connection-b {
    top: 51%;
    left: 50%;

    width: 34%;

    transform: rotate(29deg);
}

.connection-c {
    top: 50%;
    left: 50%;

    width: 32%;

    transform: rotate(-29deg);
}

.console-code {
    position: relative;
    z-index: 2;

    display: grid;
    gap: 8px;

    color: #6c6676;

    font-family: monospace;
    font-size: 0.62rem;
}

.console-code strong {
    color: var(--pink);

    font-weight: 400;
}


/* ============================================================
   Maps
   ============================================================ */

.maps-section {
    padding-top: 70px;
}

.maps-panel {
    position: relative;

    min-height: 470px;
    padding: 65px;

    overflow: hidden;

    border: 1px solid rgba(56, 232, 255, 0.15);
    border-radius: 20px;

    background:
        linear-gradient(
            105deg,
            rgba(13, 10, 26, 0.98) 0%,
            rgba(13, 10, 26, 0.96) 44%,
            rgba(15, 8, 34, 0.78) 100%
        );

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(56, 232, 255, 0.04);
}

.maps-panel::before {
    content: "";

    position: absolute;
    top: -1px;
    right: 35%;
    left: 10%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--cyan),
            var(--purple),
            transparent
        );

    box-shadow:
        0 0 14px rgba(56, 232, 255, 0.3);
}

.maps-content {
    position: relative;
    z-index: 4;

    max-width: 570px;
}

.maps-content p {
    max-width: 550px;
    margin: 24px 0 30px;

    color: var(--text-muted);

    font-size: 0.93rem;
    line-height: 1.8;
}

.maps-button {
    min-width: 160px;
}

.maps-background {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;

    width: 54%;

    opacity: 0.9;

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            #000 20%,
            #000 100%
        );
}

.map-grid {
    position: absolute;
    inset: -20%;

    background-image:
        linear-gradient(
            rgba(56, 232, 255, 0.11) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(56, 232, 255, 0.11) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    transform:
        rotate(-8deg)
        scale(1.1);
}

.map-terrain {
    position: absolute;

    opacity: 0.65;

    border: 1px solid rgba(255, 63, 180, 0.32);

    background:
        linear-gradient(
            135deg,
            rgba(255, 63, 180, 0.09),
            rgba(118, 66, 255, 0.05)
        );

    box-shadow:
        inset 0 0 25px rgba(255, 63, 180, 0.03);
}

.terrain-a {
    top: 12%;
    right: 7%;

    width: 220px;
    height: 170px;

    clip-path:
        polygon(
            0 15%,
            45% 0,
            100% 16%,
            92% 66%,
            58% 100%,
            10% 79%
        );
}

.terrain-b {
    right: 25%;
    bottom: 11%;

    width: 180px;
    height: 130px;

    clip-path:
        polygon(
            8% 4%,
            76% 0,
            100% 35%,
            78% 100%,
            21% 85%,
            0 41%
        );
}

.terrain-c {
    top: 30%;
    left: 7%;

    width: 120px;
    height: 105px;

    clip-path:
        polygon(
            15% 0,
            100% 20%,
            88% 100%,
            0 75%
        );
}

.map-marker {
    position: absolute;
    z-index: 3;

    width: 11px;
    height: 11px;

    border: 2px solid var(--cyan);
    border-radius: 50%;

    background: rgba(56, 232, 255, 0.16);

    box-shadow:
        0 0 0 6px rgba(56, 232, 255, 0.04),
        0 0 18px rgba(56, 232, 255, 0.4);

    animation: mapPulse 2.5s ease-in-out infinite;
}

.marker-one {
    top: 35%;
    right: 22%;
}

.marker-two {
    right: 43%;
    bottom: 21%;

    animation-delay: 0.8s;
}

.marker-three {
    top: 29%;
    left: 25%;

    animation-delay: 1.3s;
}

.maps-data {
    position: absolute;
    z-index: 4;
    right: 34px;
    bottom: 28px;

    display: flex;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: rgba(6, 5, 12, 0.84);

    backdrop-filter: blur(12px);
}

.maps-data > div {
    display: grid;
    gap: 3px;

    min-width: 120px;
    padding: 12px 15px;

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

.maps-data > div:last-child {
    border-right: 0;
}

.maps-data span {
    color: #5f5969;

    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.maps-data strong {
    color: #bcb6c7;

    font-family: monospace;
    font-size: 0.6rem;
    font-weight: 500;
}


/* ============================================================
   Closing CTA
   ============================================================ */

.closing-section {
    padding-top: 20px;
    padding-bottom: 110px;
}

.closing-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;

    padding: 50px 0;

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

.closing-panel h2 {
    max-width: 720px;

    font-size: clamp(2.1rem, 5vw, 3.8rem);
}


/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    position: relative;

    padding: 50px 0 25px;

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

    background: rgba(5, 4, 10, 0.66);
}

.footer-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand p {
    max-width: 410px;
    margin: 18px 0 0;

    color: var(--text-dim);

    font-size: 0.78rem;
    line-height: 1.65;
}

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

    padding-top: 8px;
}

.footer-nav a {
    color: #888291;

    font-size: 0.7rem;
    font-weight: 700;

    transition: color 160ms ease;
}

.footer-nav a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-top: 50px;
    padding-top: 22px;

    color: #524d59;

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

    font-size: 0.61rem;
}

.footer-system {
    display: flex;
    align-items: center;
    gap: 8px;

    font-family: monospace;
    letter-spacing: 0.06em;
}

.footer-system i {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--green);

    box-shadow: 0 0 8px rgba(77, 255, 181, 0.6);
}


/* ============================================================
   Reveal Animations
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity 700ms ease,
        transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.server-grid .reveal:nth-child(2) {
    transition-delay: 60ms;
}

.server-grid .reveal:nth-child(3) {
    transition-delay: 120ms;
}

.server-grid .reveal:nth-child(4) {
    transition-delay: 180ms;
}

.server-grid .reveal:nth-child(5) {
    transition-delay: 240ms;
}

.server-grid .reveal:nth-child(6) {
    transition-delay: 300ms;
}


/* ============================================================
   Keyframes
   ============================================================ */

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.78);
    }
}

@keyframes portalFloat {
    0%,
    100% {
        transform:
            translate(-50%, -50%)
            perspective(1200px)
            rotateY(-4deg)
            translateY(0);
    }

    50% {
        transform:
            translate(-50%, -50%)
            perspective(1200px)
            rotateY(-4deg)
            translateY(-8px);
    }
}

@keyframes cubeFloat {
    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -12px;
    }
}

@keyframes starDrift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(137px, 137px);
    }
}

@keyframes scrollLine {
    0% {
        transform: translateX(-14px);
    }

    50% {
        transform: translateX(36px);
    }

    100% {
        transform: translateX(-14px);
    }
}

@keyframes mapPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 6px rgba(56, 232, 255, 0.04),
            0 0 18px rgba(56, 232, 255, 0.4);
    }

    50% {
        box-shadow:
            0 0 0 12px rgba(56, 232, 255, 0),
            0 0 28px rgba(56, 232, 255, 0.6);
    }
}


/* ============================================================
   Responsive - Medium
   ============================================================ */

@media (max-width: 1020px) {

    .hero {
        min-height: auto;
        padding-top: 150px;
        padding-bottom: 120px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-visual {
        min-height: 510px;
    }

    .portal-frame {
        width: 360px;
    }

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

    .community-layout {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .community-copy {
        max-width: 720px;
    }

    .community-visual {
        max-width: 650px;
    }

    .status-panel {
        grid-template-columns: 1fr;
    }

    .status-heading {
        padding-right: 0;
        padding-bottom: 18px;

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

    .maps-panel {
        padding: 55px 45px 130px;
    }

    .maps-background {
        width: 65%;
        opacity: 0.55;
    }

    .maps-data {
        right: 25px;
        bottom: 24px;
        left: 25px;

        justify-content: stretch;
    }

    .maps-data > div {
        flex: 1;
    }
}


/* ============================================================
   Responsive - Mobile Navigation
   ============================================================ */

@media (max-width: 760px) {

    :root {
        --header-height: 72px;
    }

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

    .section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;

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

        max-height: 0;
        padding: 0 20px;

        overflow: hidden;

        opacity: 0;

        background: rgba(6, 5, 12, 0.97);
        border-bottom: 1px solid var(--border);

        backdrop-filter: blur(18px);

        transition:
            max-height 240ms ease,
            opacity 180ms ease,
            padding 240ms ease;
    }

    .primary-nav.open {
        max-height: 420px;
        padding-top: 16px;
        padding-bottom: 22px;

        opacity: 1;
    }

    .primary-nav > a:not(.nav-cta) {
        padding: 16px 4px;

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

    .primary-nav > a:not(.nav-cta)::after {
        display: none;
    }

    .nav-cta {
        margin-top: 16px;
    }

    .hero {
        padding-top: 128px;
        padding-bottom: 90px;
    }

    .hero-heading-main {
        font-size: clamp(4rem, 19vw, 6rem);
    }

    .hero-tagline {
        margin-top: 34px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-meta {
        gap: 20px;
    }

    .hero-meta-item {
        width: 100%;
    }

    .hero-visual {
        min-height: 430px;
    }

    .portal-frame {
        width: min(320px, 82vw);
    }

    .portal-badge {
        right: -14px;
    }

    .cube-one {
        right: -12%;
    }

    .cube-two {
        left: -11%;
    }

    .cube-three {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .status-panel {
        padding: 20px;
    }

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

    .status-item {
        min-height: 60px;
        padding: 8px 12px;

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

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

    .status-item:nth-child(3),
    .status-item:nth-child(4) {
        border-bottom: 0;
    }

    .status-item:nth-child(4) {
        border-right: 0;
    }

    .servers-section {
        padding-top: 100px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 22px;

        margin-bottom: 34px;
    }

    .section-heading h2,
    .community-copy h2,
    .maps-content h2,
    .closing-panel h2 {
        font-size: clamp(2.1rem, 11vw, 3.1rem);
    }

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

    .server-card {
        min-height: 370px;
    }

    .community-layout {
        gap: 50px;
    }

    .console-body {
        min-height: 440px;
        padding: 20px;
    }

    .console-header {
        grid-template-columns: 1fr auto;
    }

    .console-header > span:nth-of-type(1) {
        display: none;
    }

    .console-header > span:last-child {
        grid-column: 2;
    }

    .maps-panel {
        min-height: 570px;
        padding: 48px 26px 150px;
    }

    .maps-background {
        top: 180px;

        width: 100%;

        opacity: 0.4;

        mask-image:
            linear-gradient(
                180deg,
                transparent,
                #000 20%,
                #000 100%
            );
    }

    .maps-data {
        display: grid;
        grid-template-columns: 1fr;

        right: 18px;
        bottom: 18px;
        left: 18px;
    }

    .maps-data > div {
        grid-template-columns: 75px 1fr;

        min-width: 0;
        padding: 9px 12px;

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

    .maps-data > div:last-child {
        border-bottom: 0;
    }

    .closing-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-layout {
        flex-direction: column;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}


/* ============================================================
   Small Mobile
   ============================================================ */

@media (max-width: 430px) {

    .hero-heading-main {
        font-size: 3.6rem;
    }

    .hero-heading-small {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.94rem;
    }

    .portal-frame {
        width: 270px;
    }

    .hero-visual {
        min-height: 375px;
    }

    .portal-badge {
        right: -10px;
        bottom: 20px;
    }

    .status-items {
        grid-template-columns: 1fr;
    }

    .status-item,
    .status-item:nth-child(2),
    .status-item:nth-child(3) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .status-item:nth-child(4) {
        border-bottom: 0;
    }

    .server-card {
        padding: 22px;
    }

    .network-console {
        margin-inline: -4px;
    }

    .console-map {
        height: 200px;
    }
}


/* ============================================================
   Reduced Motion
   ============================================================ */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::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;
    }
}
