.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
    /* Reduced for mobile */
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 2;
    /* Content layer */
}

/* ... headline/subheadline styles ... */

.hero__headline {
    font-size: var(--text-4xl);
    /* Increased size for impact */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    /* Tighter tracking for premium feel */
    margin-bottom: var(--space-md);
    background: linear-gradient(180deg, var(--color-text-primary) 0%, var(--color-gray-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subheadline {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 720px;
    /* Increased from 600px for better flow (2 lines usually) */
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

/* Container for animated shapes */
.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    color: var(--color-gray-300);
    opacity: 0.2;
    animation: float 20s ease-in-out infinite;
}

.hero__shape--1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -100px;
    animation-delay: 0s;
}

.hero__shape--2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
    animation-duration: 25s;
    opacity: 0.15;
}

.hero__shape--3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 15%;
    animation-delay: -10s;
    animation-duration: 15s;
    opacity: 0.1;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 20px) rotate(5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Placeholder for illustration */
.hero__illustration-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--color-gray-50);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-300);
    border: 1px dashed var(--color-gray-200);
}

/* Split Layout Modification - Added for Trainer Page */
.hero__container--split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
    text-align: center;
    max-width: 1200px;
    /* Wider container for split view */
}

.hero__content {
    order: 2;
    /* Text below image on mobile (optional, or keep 1 for text first) */
    order: 1;
    /* Actually let's keep text first on mobile too for headline impact */
}

.hero__visual-column {
    order: 2;
    display: flex;
    justify-content: center;
}

.hero__visual-column img {
    max-width: 100%;
    height: auto;
    /* Removed box shadow and border radius for seamless look */
    /* Optional: mix-blend-mode can help if backgrounds differ slightly */
    mix-blend-mode: multiply;
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-3xl) 0;
    }

    .hero__container--split {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero__content {
        align-items: flex-start;
    }

    /* Override centered actions for split view */
    .hero__container--split .hero__actions {
        justify-content: flex-start;
    }

    .hero__container--split .hero__subheadline {
        margin-left: 0;
        margin-right: 0;
    }

    .hero__container--split .hero__headline {
        background: linear-gradient(180deg, var(--color-text-primary) 0%, var(--color-gray-600) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}