@font-face {
            font-family: 'MainFont';
            src: url('ress/font.otf') format('opentype'),
                url('ress/font.otf') format('otf');
        }

        :root {
            --mc-slate: #0d0415;
            /* Even deeper space */
            --mc-slate-mid: #4a1c5e;
            --mc-pink: #ff4791;
            --mc-black: #000000;
            /* Pure black */
            --mc-star: #ffffff;
            --mc-blue: #3faffb;
            --mc-green: #2ecc71;
            --mc-border: #111111;
        }

        body,
        html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            background-color: var(--mc-black);
            font-family: 'MainFont', sans-serif;
            color: white;
            image-rendering: pixelated;
            overflow-x: hidden;
        }

        /* The Head/Hero Section */
        .head-section {
            position: relative;
            width: 100%;
            height: 100vh;
            background: #000;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            z-index: 2;
        }

        .head-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #0d0415 0%, #1a0a2a 40%, #000 100%);
            z-index: -1;
        }

        /* Aurora Effect */
        .aurora-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            filter: blur(40px);
            opacity: 0.25;
            overflow: hidden;
            pointer-events: none;
        }

        .aurora {
            position: absolute;
            width: 150%;
            height: 150%;
            top: -25%;
            left: -25%;
            background: radial-gradient(circle at 20% 30%, #ff4791 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, #4a1c5e 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, #a235ff 0%, transparent 45%),
                radial-gradient(circle at 70% 20%, #3faffb 0%, transparent 40%);
            animation: aurora-anim 20s infinite alternate linear;
        }

        @keyframes aurora-anim {
            0% {
                transform: translate(0, 0) rotate(0deg) scale(1);
            }

            50% {
                transform: translate(-2%, 2%) rotate(2deg);
            }

            100% {
                transform: translate(5%, -5%) rotate(-5deg) scale(1);
            }
        }


        #pixel-stars {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        #earth-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        /* Pixelated Glassmorphism Navigation */
        .nav-container {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100;
            width: 95%;
            max-width: 1200px;
            padding: 0.9rem 1.5rem;

            /* Glass effect */
            background: rgba(0, 0, 0, 0.7);
            /* Backdrop blur removed for performance on weak GPUs */

            /* Pixelated Border Style */
            border: 4px solid black;
            box-shadow:
                inset 0px 3px 0px rgba(255, 255, 255, 0.2),
                inset 0px -3px 0px rgba(0, 0, 0, 0.4);

            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }

        .nav-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            z-index: 101;
        }

        .nav-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            background: white;
            margin: 5px 0;
            transition: 0.3s;
        }

        .nav-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 6px);
        }

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

        .nav-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -6px);
        }



        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .logo img {
            height: 30px;
            width: auto;
            image-rendering: pixelated;
            /* Ensure the logo stays sharp and pixelated */
            filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.5));
        }


        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-size: 0.9rem;
            text-transform: uppercase;
            transition: color 0.3s;
            white-space: nowrap;
            flex-shrink: 0;
            position: relative;
        }

        .nav-links a:not(:last-child)::after {
            content: "";
            position: absolute;
            right: -1rem;
            top: 50%;
            transform: translateY(-50%);
            width: 2px;
            height: 18px;
            background: rgba(255, 255, 255, 0.4);
            box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
            pointer-events: none;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--mc-blue);
        }

        .nav-links a.active::before {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 70%;
            height: 2px;
            background: var(--mc-blue);
            box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 10;
            flex: 1;
            display: flex;
            align-items: center;
            padding: 0 4rem;
            gap: 4rem;
            margin-top: 80px;
        }



        .text-area {
            flex: 1;
        }

        h1 {
            font-size: clamp(1.8rem, 4vw, 3rem);
            line-height: 1.1;
            margin-bottom: 1.5rem;
            text-shadow: 4px 4px 0px var(--mc-border);
            text-transform: uppercase;
        }

        .description {
            font-size: 1rem;
            opacity: 0.8;
            max-width: 500px;
            margin-bottom: 1.5rem;
            background: rgba(255, 255, 255, 0.02);
            padding: 0.8rem 0;
            border-bottom: 2px solid var(--mc-slate-mid);
        }

        /* Minecraft Button Style */
        .btn-mc {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.6rem 1rem;
            font-size: 0.95rem;
            font-family: 'MainFont', sans-serif;
            text-transform: uppercase;
            text-decoration: none;
            color: white;
            background-color: #555555;
            border: 3px solid black;
            border-top-color: #aaaaaa;
            border-left-color: #aaaaaa;
            box-shadow: inset -2px -2px 0px #222222;
            cursor: pointer;
            transition: all 0.1s;
        }

        .btn-mc:active {
            box-shadow: inset 3px 3px 0px #222222;
            border-top-color: black;
            border-left-color: black;
            transform: translateY(2px);
        }

        .btn-mc.blue {
            background-color: var(--mc-blue);
            box-shadow: inset -3px -3px 0px #1a5e8a;
        }

        .btn-hero {
            font-size: 1.1rem;
            padding: 0.8rem 1.8rem;
        }

        .character-img {
            max-width: 450px;
            transform: translateX(-40px);
            animation: mc-float 6s steps(10) infinite;
        }

        @keyframes mc-float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        .image-area {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1000px; /* For 3D tilt effect */
            z-index: 20;
        }

        #launcher-img {
            max-width: 70%;
            height: auto;
            image-rendering: pixelated;
            filter: none;
            transition: transform 0.1s ease-out;
            cursor: pointer;
            border-radius: 0;
        }

        /* Features Section */
        .features-section {
            position: relative;
            padding: 4rem 4rem;
            background: #000;
            border-top: 2px solid rgba(74, 28, 94, 0.4);
            z-index: 2;
            overflow: hidden;
        }

        .features-section::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background:
                radial-gradient(ellipse 80% 50% at 50% 0%, rgba(74, 28, 94, 0.18) 0%, transparent 70%),
                radial-gradient(ellipse 40% 40% at 20% 80%, rgba(63, 175, 251, 0.07) 0%, transparent 60%);
            pointer-events: none;
        }

        .features-inner {
            max-width: 1200px;
            margin: 0 auto;
        }

        .features-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: var(--mc-blue);
            opacity: 0.8;
            margin: 0 0 0.8rem 0;
        }

        .features-title {
            font-size: clamp(1.8rem, 3.5vw, 2.8rem);
            line-height: 1.1;
            margin: 0 0 3.5rem 0;
            text-shadow: 4px 4px 0px var(--mc-border);
            text-transform: uppercase;
            color: #ffffff;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .feature-card {
            position: relative;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-bottom: 2px solid var(--mc-slate-mid);
            padding: 2.2rem 2rem;
            overflow: hidden;
            transition: background 0.3s, border-color 0.3s, transform 0.3s;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
        }

        .feature-card:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--mc-blue);
            transform: translateY(-4px);
        }

        .feature-card.featured {
            border-bottom-color: var(--mc-blue);
            border-color: rgba(63, 175, 251, 0.2);
            background: rgba(63, 175, 251, 0.08);
        }

        .feature-card.featured:hover {
            background: rgba(63, 175, 251, 0.14);
        }

        .feature-glow {
            position: absolute;
            top: -40px; left: 50%;
            transform: translateX(-50%);
            width: 120px; height: 80px;
            background: radial-gradient(ellipse, rgba(63, 175, 251, 0.25), transparent 70%);
            pointer-events: none;
        }

        .feature-icon {
            width: 44px;
            height: 44px;
            margin-bottom: 1.2rem;
            opacity: 0.7;
            color: var(--mc-blue);
            transition: opacity 0.3s;
        }

        .feature-card:hover .feature-icon {
            opacity: 1;
        }

        .feature-icon svg {
            width: 100%;
            height: 100%;
        }

        .feature-card h3 {
            font-size: 1.15rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 0 0 0.7rem 0;
            color: #fff;
            text-shadow: 2px 2px 0 #000;
        }

        .feature-card p {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.65);
            line-height: 1.55;
            margin: 0 0 1.4rem 0;
        }

        .feature-tag {
            display: inline-block;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            padding: 0.25rem 0.7rem;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.45);
        }

        .feature-tag.blue {
            background: rgba(63, 175, 251, 0.1);
            border-color: rgba(63, 175, 251, 0.3);
            color: var(--mc-blue);
        }

        /* Scanlines & Grain Overlay */
        .overlay-effects {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
            opacity: 0.05;
            background:
                linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.04));
            background-size: 100% 8px, 6px 100%;
        }

        .vignette {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9998;
            background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.8) 150%);
        }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #0a0a0a;
        }

        ::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--mc-blue);
        }

        /* Mobile Bottom Navigation Bar */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 200;
            background: rgba(8, 2, 16, 0.95);
            border-top: 2px solid rgba(74, 28, 94, 0.6);
            padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom, 0px)) 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
        }

        .mobile-bottom-nav .bottom-nav-links {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
        }

        .mobile-bottom-nav .bottom-nav-links a {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            text-decoration: none;
            color: rgba(255, 255, 255, 0.55);
            font-size: 0.6rem;
            font-family: 'MainFont', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 0.3rem 0.5rem;
            transition: color 0.25s, transform 0.2s;
            -webkit-tap-highlight-color: transparent;
        }

        .mobile-bottom-nav .bottom-nav-links a:active {
            transform: scale(0.92);
        }

        .mobile-bottom-nav .bottom-nav-links a.active,
        .mobile-bottom-nav .bottom-nav-links a:hover {
            color: var(--mc-blue);
        }

        .mobile-bottom-nav .bottom-nav-links a svg {
            width: 22px;
            height: 22px;
            fill: currentColor;
            opacity: 0.85;
        }

        .mobile-bottom-nav .bottom-nav-links a.active svg {
            opacity: 1;
            filter: drop-shadow(0 0 6px var(--mc-blue));
        }

        /* Mobile Responsive — detects REAL touch devices, not window size */
        @media (hover: none) and (pointer: coarse) {
            .head-section {
                height: auto;
                min-height: 0;
                padding-bottom: 2rem;
            }

            .mobile-bottom-nav {
                display: block;
            }

            .nav-container {
                padding: 0.5rem 1rem;
                top: 10px;
                width: 92%;
            }

            /* Hide desktop nav links, toggle, and nav buttons on mobile */
            .nav-links {
                display: none !important;
            }

            .nav-toggle {
                display: none !important;
            }

            .nav-container>div:last-child {
                display: none !important;
            }

            .logo img {
                height: 24px;
            }

            .hero-content {
                flex-direction: column-reverse;
                padding: 0 1.5rem 1rem 1.5rem;
                justify-content: flex-end;
                align-items: flex-start;
                gap: 0.8rem;
                margin-top: 70px;
            }

            .text-area {
                width: 100%;
                z-index: 20;
                flex: none;
            }

            h1 {
                font-size: 1.8rem;
                line-height: 1;
                margin-bottom: 0.5rem;
            }

            .description {
                font-size: 0.85rem;
                margin-bottom: 1rem;
                max-width: 100%;
                border-bottom: 2px solid rgba(74, 28, 94, 0.5);
            }

            .btn-hero {
                font-size: 0.9rem;
                padding: 0.7rem 1.2rem;
            }

            .features-section {
                padding: 3rem 1.5rem;
                padding-bottom: calc(3rem + 70px);
            }

            .features-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .features-title {
                font-size: 1.6rem;
                margin-bottom: 2rem;
            }

            body {
                padding-bottom: 60px;
                /* Space for bottom nav */
            }
        }
