/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ROOT */
:root {
    --red: #EE2737;
    --blue: #2b6cff;
    --black: #050507;
}

/* GLOBAL FIX */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* 🔥 KEY FIX */
}

/* BODY */
body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: var(--black);
}

/* MAIN */
#main-content {
    position: relative;
    width: 100%; /* 🔥 FIX (not 100vw) */
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.5s ease;

    overflow: hidden;
}

#main-content.show {
    opacity: 1;
}

/* BACKGROUND */
.bg-overlay {
    position: absolute;
    inset: 0; /* 🔥 FIX */
    background: url('/assets/images/landing.jpeg') center/cover no-repeat;
    z-index: 0;
}

/* OVERLAY */
.text-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.4), rgba(0,0,0,0.85));
    z-index: 1;
}

/* LOGO */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo img {
    height: 40px;
}

/* FLOATING TEXT */
.floating-text {
    position: absolute;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 90px);
    opacity: 0.05;
    z-index: 2;

    max-width: 90%;
}

/* SAFE POSITIONS */
.text1 { top: 8%; left: 5%; }
.text2 { top: 20%; right: 5%; }
.text3 { bottom: 15%; left: 5%; }
.text4 { bottom: 8%; right: 5%; }

/* PRODUCTS */
.product {
    position: absolute;
    width: clamp(120px, 15vw, 220px);
    z-index: 3;

    max-width: 40%;
}

.product-right {
    right: 3%;
    top: 5%;
}

.product-left {
    left: 3%;
    bottom: 10%;
}

/* CONTENT */
.landing-container {
    position: relative;
    z-index: 10;

    text-align: center;
    width: min(90%, 600px);

    padding: 30px;
    border-radius: 20px;

    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
}

/* HEADLINE */
.headline .line {
    display: block;
    font-family: 'Anton', sans-serif;
    font-size: clamp(48px, 7vw, 90px);
    line-height: 1;
}

.highlight {
    background: linear-gradient(90deg, var(--red), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* TEXT */
.subtext {
    margin-top: 20px;
}

/* CTA */
.cta {
    margin-top: 25px;
    padding: 14px 40px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    background: linear-gradient(90deg, var(--red), #ff4d5a);
    color: white;
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 120px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%,100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

#loader.hide {
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
}

/* MOBILE */
@media (max-width: 768px) {

    .product {
        width: 100px;
        opacity: 0.7;
    }

    .floating-text {
        font-size: 24px;
    }

    .headline .line {
        font-size: 36px;
    }

}