.hero--home {
    --home-hero-primary: #afff00;
    --home-hero-primary-rgb: 175, 255, 0;
    --home-hero-secondary: #F4FFC2;
    --home-hero-secondary-rgb: 244, 255, 194;
    --home-hero-dark: #0A0E1A;
    --home-hero-white: #FFFFFF;
    --home-hero-gray-300: #CBD5E1;
    --home-hero-gray-400: #94A3B8;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--home-hero-dark);
}

.hero--home::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 14, 26, 0) 28%, rgba(10, 14, 26, 0.34) 50%, rgba(10, 14, 26, 0.8) 78%, var(--home-hero-dark) 100%),
        linear-gradient(90deg, rgba(10, 14, 26, 0.36) 0%, rgba(10, 14, 26, 0.16) 48%, rgba(10, 14, 26, 0.08) 100%);
}

.hero--home .hero__bg,
.hero--home .hero__overlay,
.hero--home .hero__noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero--home .hero__bg {
    background:
        radial-gradient(circle at 72% 24%, rgba(var(--home-hero-secondary-rgb), 0.2) 0%, transparent 42%),
        linear-gradient(135deg, rgba(var(--home-hero-primary-rgb), 0.2) 0%, transparent 52%),
        linear-gradient(to bottom, transparent 30%, var(--home-hero-dark) 100%),
        var(--hero-bg-image-desktop, url('/static/images/background-image-header.png'))
        var(--hero-bg-position, center) / var(--hero-bg-size, cover) no-repeat;
    filter: brightness(0.6);
}

.hero--home .hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 14, 26, 0.1) 0%,
        rgba(10, 14, 26, 0.4) 50%,
        rgba(10, 14, 26, 0.95) 85%,
        var(--home-hero-dark) 100%
    );
}

.hero--home .hero__noise {
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero--home .hero__player-source {
    display: contents;
}

.hero--home .hero__player {
    position: absolute;
    z-index: 2;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46));
}

.hero--home .hero__player--girl {
    left: 40%;
    bottom: 5.2rem;
    width: clamp(460px, 33vw, 620px);
    transform: translateX(calc(-50% - 42px)) translateY(32px) scale(0.94);
    animation:
        home-hero-player-reveal-girl 1280ms cubic-bezier(0.16, 0.86, 0.22, 1) 1500ms forwards,
        home-hero-float-girl 5.2s ease-in-out 2900ms infinite;
}

.hero--home .hero__player--man {
    left: 61%;
    bottom: 5.3rem;
    width: clamp(360px, 27vw, 520px);
    transform: translateX(calc(-50% + 46px)) translateY(34px) scale(0.94);
    animation:
        home-hero-player-reveal-man 1180ms cubic-bezier(0.16, 0.86, 0.22, 1) 820ms forwards,
        home-hero-float-man 5.2s ease-in-out 2140ms infinite;
}

.hero--home .hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 6rem) 12.5rem;
}

.hero--home .hero__title {
    position: relative;
    z-index: 1;
    max-width: min(100%, 64rem);
    margin-bottom: clamp(0.8rem, 1.6vw, 1.3rem);
    color: var(--home-hero-white);
    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.72),
        0 14px 34px rgba(0, 0, 0, 0.5);
    font-family: var(--font-body);
    font-size: clamp(3.3rem, 7.45vw, 6.65rem);
    font-weight: var(--font-heading-weight);
    line-height: 0.9;
    letter-spacing: -0.01em;
    animation: home-hero-title-in 920ms cubic-bezier(0.16, 0.9, 0.24, 1) 120ms both;
}

.hero--home .hero__title-accent {
    color: var(--color-primary);
}

.hero--home .hero__claim {
    max-width: min(100%, 56rem);
    margin-bottom: 1rem;
    color: var(--home-hero-white);
    font-size: clamp(1.45rem, 2.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    animation: home-hero-title-in 920ms cubic-bezier(0.16, 0.9, 0.24, 1) 160ms both;
}

.hero--home .hero__description {
    max-width: min(100%, 52rem);
    margin: 0 0 1.8rem;
    color: var(--home-hero-white);
    font-size: clamp(1.08rem, 1.5vw, 1.45rem);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: 0;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.62);
    animation: home-hero-description-in 860ms cubic-bezier(0.2, 0.8, 0.2, 1) 360ms both;
}

.hero--home .hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: home-hero-cta-in 760ms cubic-bezier(0.18, 0.84, 0.26, 1) 520ms both;
}

.hero--home .hero__actions > .btn {
    min-height: 58px;
    padding-inline: 1.75rem;
}

.hero--home .btn svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

@media (max-width: 1024px) {
    .hero--home .hero__player {
        opacity: 0.8;
    }

    .hero--home .hero__content {
        padding-bottom: 7rem;
    }

    .hero--home .hero__player--girl {
        left: 35%;
        bottom: 10.75rem;
    }

    .hero--home .hero__player--man {
        left: 66%;
        bottom: 10.3rem;
    }

}

@media (max-width: 768px) {
    .hero--home {
        min-height: calc(100svh - var(--site-nav-height, 76px));
        min-height: calc(100dvh - var(--site-nav-height, 76px));
    }

    .hero--home .hero__bg {
        background:
            radial-gradient(circle at 68% 20%, rgba(var(--home-hero-secondary-rgb), 0.2) 0%, transparent 40%),
            linear-gradient(135deg, rgba(var(--home-hero-primary-rgb), 0.2) 0%, transparent 52%),
            linear-gradient(to bottom, transparent 30%, var(--home-hero-dark) 100%),
            var(--hero-bg-image-mobile, var(--hero-bg-image-desktop, url('/static/images/background-image-header.png')))
            var(--hero-bg-position, center) / var(--hero-bg-size, cover) no-repeat;
    }

    .hero--home .hero__content {
        padding: 0 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    }

    .hero--home .hero__title {
        max-width: 9.4em;
        font-size: clamp(2.2rem, 11.2vw, 4rem);
        line-height: 0.94;
        margin-bottom: 0.85rem;
    }

    .hero--home .hero__claim {
        max-width: 100%;
        font-size: clamp(1.45rem, 8vw, 2.1rem);
    }

    .hero--home .hero__description {
        max-width: 96%;
        margin-bottom: 1.25rem;
        font-size: clamp(1rem, 4.7vw, 1.22rem);
        line-height: 1.35;
    }

    .hero--home .hero__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.85rem;
    }

    .hero--home .hero__actions > .btn {
        width: 100%;
        justify-content: center;
        min-height: 56px;
        border-radius: var(--radius-button);
    }

    .hero--home .hero__player {
        opacity: 0.68;
    }

    .hero--home .hero__player--girl {
        left: 28%;
        bottom: 10rem;
        width: 70%;
    }

    .hero--home .hero__player--man {
        left: 66%;
        bottom: 8.7rem;
        width: 70%;
    }

}

@media (max-width: 420px) {
    .hero--home .hero__content {
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }

    .hero--home .hero__title {
        font-size: clamp(2.05rem, 10.9vw, 2.95rem);
        margin-bottom: 0.75rem;
    }

    .hero--home .hero__player--girl {
        left: 28%;
        bottom: 9rem;
        width: 67%;
    }

    .hero--home .hero__player--man {
        left: 67%;
        bottom: 7.8rem;
        width: 67%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .hero--home .hero__player,
    .hero--home .hero__title,
    .hero--home .hero__claim,
    .hero--home .hero__description,
    .hero--home .hero__actions {
        animation: none !important;
        opacity: 1;
    }
}

@keyframes home-hero-player-reveal-girl {
    0% { opacity: 0; visibility: visible; transform: translateX(calc(-50% - 54px)) translateY(42px) scale(0.92); filter: blur(2px) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46)); }
    42% { opacity: 0.34; filter: blur(1px) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46)); }
    76% { opacity: 0.84; transform: translateX(calc(-50% + 4px)) translateY(-3px) scale(1.01); filter: blur(0) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46)); }
    100% { opacity: 0.92; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46)); }
}

@keyframes home-hero-player-reveal-man {
    0% { opacity: 0; visibility: visible; transform: translateX(calc(-50% + 58px)) translateY(42px) scale(0.92); filter: blur(2px) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46)); }
    42% { opacity: 0.32; filter: blur(1px) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46)); }
    76% { opacity: 0.8; transform: translateX(calc(-50% - 4px)) translateY(-2px) scale(1.008); filter: blur(0) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46)); }
    100% { opacity: 0.88; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46)); }
}

@keyframes home-hero-float-girl {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes home-hero-float-man {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-7px); }
}

@keyframes home-hero-title-in {
    0% { opacity: 0; transform: translateY(28px) scale(0.965); filter: blur(2px); }
    66% { opacity: 1; transform: translateY(-3px) scale(1.006); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: none; }
}

@keyframes home-hero-description-in {
    0% { opacity: 0; transform: translateX(-18px) translateY(8px); filter: blur(1.5px); }
    100% { opacity: 1; transform: translateX(0) translateY(0); filter: none; }
}

@keyframes home-hero-cta-in {
    0% { opacity: 0; transform: translateY(18px) scale(0.985); }
    70% { opacity: 1; transform: translateY(-2px) scale(1.004); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
