/* Variables */
:root {
    --color-bg: #09090b;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-accent: #e21c23; /* MXGP Red */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    /* Background Image setup */
    background-image: url('fond.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background Overlay for depth and text legibility */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.75) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Main Container */
.landing-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 90%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1.5rem;
    text-align: center;
}

/* Header Section */
.header-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.main-subtitle {
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    line-height: 1.6;
}

.main-subtitle span {
    display: inline-block;
    margin: 0 0.5rem;
    white-space: nowrap;
}

.highlight {
    color: var(--color-accent);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(226, 28, 35, 0.4);
}

.sub-headline {
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    font-weight: 300;
    letter-spacing: 0.45em;
    color: var(--color-text-secondary);
    opacity: 0.8;
    text-transform: uppercase;
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0;
}

.mxgp-logo {
    width: 100%;
    max-width: 1000px;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.95));
}

/* Footer Section */
.footer-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.question-title {
    font-size: clamp(0.9rem, 2.5vw, 1.35rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.status-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cta-text {
    font-size: clamp(0.7rem, 1.8vw, 0.95rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.cta-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 1px;
    background-color: var(--color-accent);
}

.arrow-container {
    margin-top: 1.25rem;
    color: var(--color-accent);
    animation: bounce 2s infinite;
}

.chevron-down {
    width: 24px;
    height: 24px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(226, 28, 35, 0.6));
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments for mobile screens */
@media (max-width: 600px) {
    .landing-container {
        padding: 2.5rem 1rem;
    }
    
    .main-subtitle span {
        display: block;
        margin: 0.35rem 0;
    }
    
    .main-subtitle {
        letter-spacing: 0.25em;
        line-height: 1.4;
    }
    
    .sub-headline {
        letter-spacing: 0.3em;
        margin-top: 0.5rem;
    }
    
    .logo-container {
        max-width: 95%;
    }
    
    .question-title {
        letter-spacing: 0.25em;
    }
}

/* Support for very short screens (landscape mobile) */
@media (max-height: 500px) and (orientation: landscape) {
    .landing-container {
        padding: 1.5rem 1rem;
    }
    
    .logo-container {
        padding: 1rem 0;
    }
    
    .mxgp-logo {
        max-height: 120px;
    }
    
    .arrow-container {
        margin-top: 0.5rem;
    }
}

/* Join Button Style */
.join-container {
    margin-top: 1.5rem;
}

.join-button {
    display: inline-block;
    color: var(--color-text-primary);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    letter-spacing: 0.25em;
    padding: 14px 36px;
    border: 1px solid rgba(226, 28, 35, 0.5);
    background-color: rgba(226, 28, 35, 0.05);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(226, 28, 35, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.join-button:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(226, 28, 35, 0.75);
    transform: translateY(-2px) scale(1.03);
}

.join-button:active {
    transform: translateY(0) scale(1);
}
