* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.hero {
    width: 100%;
    height: 100vh;
    background: url('assets/background_banner.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
    height: 100%;
    display: flex;
    align-items: center;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Still align tops of children */
    width: 100%;
    position: relative;
    /* Removed padding-top to achieve equal margins via parent's align-items: center */
}

.text-content {
    max-width: 500px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 488px;
    /* Matching the parallax-element height */
    justify-content: flex-end;
    /* Align the group by its bottom edge */
}

h1 {
    font-size: 79px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 0.95;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

p {
    font-size: 25px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 45px;
    /* Exact distance to the button */
    max-width: 440px;
}

/* Button styles matching banner + PASSWORD physics */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 427px;
    height: 96px;
    padding: 0;
    border-radius: 29px;
    /* Requested 29px */
    cursor: pointer;
    border: none;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.4s ease;

    transform: translateY(0);
    will-change: transform, box-shadow;

    /* Text requirements */
    font-size: 30px;
    font-weight: 900;
    color: #4F4F4F;
    background-color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.btn:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    color: #333333;
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.visual-content {
    position: relative;
    /* Change from absolute to stay in flow with flexbox */
    margin-right: -15px;
    /* Adjust to match the 65px requirement from right edge */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
    perspective: 1000px;
}

.parallax-element {
    width: 509px;
    height: 488px;
    object-fit: contain;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Entry Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-left {
    opacity: 0;
    animation: fadeInLeft 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-bottom {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .text-content {
        max-width: 420px;
        height: 380px;
        /* Scaled to match the smaller browser element height */
    }

    h1 {
        font-size: 58px;
        margin-bottom: 20px;
        letter-spacing: -1.5px;
    }

    p {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 35px;
        /* Set exact distance to 35px */
        max-width: 360px;
    }

    .btn {
        width: 340px;
        height: 80px;
        font-size: 24px;
        border-radius: 24px;
    }

    .visual-content {
        margin-right: -10px;
    }

    .parallax-element {
        width: 396px;
        /* Scaled down browser window */
        height: 380px;
    }
}

@media (max-width: 768px) {

    body,
    html {
        overflow-y: auto;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 50px 0;
        display: block;
        /* Stack container for better flow */
    }

    .container {
        padding: 0 24px;
        height: auto;
    }

    .content-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 50px;
        /* Increased overall gap */
        padding-top: 20px;
    }

    .text-content {
        max-width: 100%;
        height: auto;
        text-align: center;
        align-items: center;
        justify-content: flex-start;
    }

    h1 {
        font-size: 44px;
        margin-bottom: 12px;
        letter-spacing: -1px;
        line-height: 1.1;
    }

    p {
        font-size: 22px;
        max-width: 400px;
        line-height: 1.4;
        margin-bottom: 20px;
        /* Increased distance to the next group */
    }

    .visual-content {
        position: static;
        margin-right: 0;
        width: 100%;
        max-width: 320px;
        order: 2;
        /* Put image after text but before button if needed, 
                    actually based on screenshot: Title -> Subtitle -> Image -> Button */
    }

    .parallax-element {
        width: 100%;
        height: auto;
    }

    .animate-bottom {
        order: 3;
        /* Button goes last */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        height: 75px;
        font-size: 22px;
        border-radius: 20px;
    }
}