:root {
    --primary-cyan: #00f2ff;
    --primary-purple: #bc13fe;
    --dark-bg: #0a0a0c;
    --card-bg: #111116;
    --text-white: #ffffff;
    --text-gray: #a0a0a8;
}

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

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.site-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-white);
    user-select: none;
    cursor: default;
}

.logo span {
    color: var(--primary-cyan);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* Both the <a> and the .btn-wrapper grow equally — no hardcoded widths */
.cta-buttons > *  {
    flex: 1;
}

/* The <button> inside the wrapper fills its flex parent */
.cta-buttons .btn-wrapper .btn {
    width: 100%;
    justify-content: center;
}

.hero-image {
    position: relative;
    overflow: hidden;
    /* Prevent glow orbs from causing horizontal scroll */
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10;
    position: relative;
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
    gap: 12px;
    box-sizing: border-box;
    height: 56px; /* Fixed height so <a> and <button> always match */
    white-space: nowrap;
}

/* Strip browser default button styles so <button class="btn"> matches <a class="btn"> exactly */
button.btn {
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: none;
}

.btn-primary {
    background-color: var(--primary-cyan);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.badge {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Standardize transform for cross-browser consistency */
    transform: translate(-50%, -50%) rotate(-5deg);
    -webkit-transform: translate(-50%, -50%) rotate(-5deg);
    -ms-transform: translate(-50%, -50%) rotate(-5deg);
    background: var(--primary-purple);
    color: white;
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 900;
    box-shadow: 0 4px 20px rgba(188, 19, 254, 0.6);
    white-space: nowrap;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-outline:hover {
    background: var(--primary-cyan);
    color: #000;
}

/* Features */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0e0e12 100%);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
}

.feature-card i {
    font-size: 40px;
    color: var(--primary-cyan);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-gray);
}

/* How to Play */
.how-to-play {
    padding: 100px 0;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.text-left {
    text-align: left;
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.step-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--primary-purple);
    font-weight: 900;
    opacity: 0.5;
}

.step h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-gray);
}

.planet-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-planet {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Support */
.support {
    padding: 100px 0;
    text-align: center;
}

.support p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-gray);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
}

/* Animations */
.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade {
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 16px;
    }

    .hero .container,
    .split-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        margin: 0 auto 30px;
        font-size: 16px;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .text-left {
        text-align: center;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Fix mobile nav stacking */
    .nav-links a {
        margin-left: 8px;
        font-size: 11px;
    }

    .logo {
        font-size: 20px;
    }

    /* Fix mobile footer stacking */
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 255, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: white;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 255, 0.05);
}

.hidden {
    display: none !important;
}