/* Homepage hero-critical layout and styling */

body.page-home .hero-mesh {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4.2rem, 7vw, 6.1rem) 0 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(13, 60, 113, 0.14);
    background:
        radial-gradient(circle at 18% 20%, rgba(39, 94, 156, 0.18) 0%, rgba(39, 94, 156, 0) 44%),
        radial-gradient(circle at 84% 78%, rgba(227, 196, 57, 0.18) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(128deg, #f7f8fa 0%, #f1f3f6 52%, #ebeff5 100%);
}

body.page-home .hero-mesh .container {
    position: relative;
    z-index: 2;
}

body.page-home .spotlights {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

body.page-home .spotlight {
    position: absolute;
    border-radius: 999px;
    filter: blur(74px);
    opacity: 0.4;
}

body.page-home .spotlight-1 {
    width: 360px;
    height: 360px;
    top: -84px;
    left: -56px;
    background: rgba(47, 119, 200, 0.24);
}

body.page-home .spotlight-2 {
    width: 280px;
    height: 280px;
    top: 16%;
    right: -44px;
    background: rgba(227, 196, 57, 0.28);
}

body.page-home .spotlight-3 {
    width: 300px;
    height: 300px;
    bottom: -92px;
    left: 36%;
    background: rgba(39, 94, 156, 0.2);
}

body.page-home .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    align-items: center;
    width: 100%;
    min-height: 540px;
    gap: 1.2rem;
}

body.page-home .hero-content-ultra {
    max-width: 710px;
    padding: 0.4rem 0 4.8rem;
    text-align: left;
}

body.page-home .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

body.page-home .hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(13, 60, 113, 0.18);
    background: rgba(255, 255, 255, 0.78);
    color: #41556d;
    padding: 0.12rem 0.64rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.page-home .hero-title-ultra {
    margin-top: 0.7rem;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #121417;
    text-shadow: 0 8px 20px rgba(13, 60, 113, 0.08);
}

body.page-home .highlight-gold,
body.page-home .text-gradient-gold {
    background: none;
    -webkit-text-fill-color: #b08f1f;
    color: #b08f1f;
    text-shadow: none;
    filter: none;
}

body.page-home .hero-subtitle-ultra {
    margin-top: 1.14rem;
    max-width: 620px;
    font-size: clamp(1.04rem, 2vw, 1.32rem);
    line-height: 1.62;
    color: #3f4e60;
}

body.page-home .hero-cta-group {
    margin-top: 1.55rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

body.page-home .hero-cta-group .btn-ultra {
    min-height: 46px;
    padding: 0.64rem 1.18rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 180ms cubic-bezier(0.2, 0.65, 0.3, 1),
        box-shadow 180ms cubic-bezier(0.2, 0.65, 0.3, 1),
        background 180ms cubic-bezier(0.2, 0.65, 0.3, 1),
        border-color 180ms cubic-bezier(0.2, 0.65, 0.3, 1),
        color 180ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

body.page-home .hero-cta-group .btn-ultra span {
    position: relative;
    z-index: 1;
}

body.page-home .hero-cta-group .btn-ultra-primary {
    background: #275e9c;
    border-color: #0d3c71;
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(10, 43, 80, 0.22);
}

body.page-home .hero-cta-group .btn-ultra-primary:hover {
    background: #0d3c71;
    border-color: #0d3c71;
    transform: translateY(-1px);
}

body.page-home .hero-cta-group .btn-ultra-outline {
    background: transparent;
    border-color: #275e9c;
    color: #0d3c71;
}

body.page-home .hero-cta-group .btn-ultra-outline:hover {
    background: #275e9c;
    border-color: #275e9c;
    color: #ffffff;
    transform: translateY(-1px);
}

body.page-home .hero-image {
    position: absolute;
    right: 0.6rem;
    bottom: -95px;
    width: min(40%, 510px);
}

body.page-home .hero-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 36px rgba(9, 41, 76, 0.24));
}

html[data-theme="dark"] body.page-home .hero-mesh {
    background:
        radial-gradient(circle at 18% 20%, rgba(88, 122, 167, 0.26) 0%, rgba(88, 122, 167, 0) 44%),
        radial-gradient(circle at 84% 78%, rgba(227, 196, 57, 0.16) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(135deg, #131821 0%, #1a2532 50%, #1b222d 100%);
    border-bottom-color: rgba(188, 201, 216, 0.2);
}

html[data-theme="dark"] body.page-home .hero-badge {
    background: rgba(20, 27, 35, 0.72);
    border-color: rgba(204, 214, 226, 0.34);
    color: #d9e2ec;
}

html[data-theme="dark"] body.page-home .hero-title-ultra {
    color: #ecf4ff;
}

html[data-theme="dark"] body.page-home .hero-subtitle-ultra {
    color: #c7d0db;
}

html[data-theme="dark"] body.page-home .hero-cta-group .btn-ultra-outline {
    background: rgba(13, 18, 24, 0.58);
    border-color: rgba(198, 208, 221, 0.46);
    color: #e8edf4;
}

html[data-theme="dark"] body.page-home .hero-cta-group .btn-ultra-outline:hover {
    background: #f0f3f7;
    border-color: #f0f3f7;
    color: #1d2733;
}

@media (max-width: 1100px) {
    body.page-home .hero-mesh {
        padding: clamp(3.2rem, 8vw, 4.6rem) 0 0;
    }

    body.page-home .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.2rem;
        padding-bottom: 2rem;
    }

    body.page-home .hero-content-ultra {
        margin: 0 auto;
        text-align: center;
        padding: 1.8rem 0 0.8rem;
    }

    body.page-home .hero-badges,
    body.page-home .hero-cta-group {
        justify-content: center;
    }

    body.page-home .hero-subtitle-ultra {
        margin-left: auto;
        margin-right: auto;
    }

    body.page-home .hero-image {
        position: relative;
        width: min(100%, 420px);
        right: auto;
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    body.page-home .hero-mesh {
        padding: 2.8rem 0 0;
    }

    body.page-home .hero-title-ultra {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
        line-height: 0.95;
    }

    body.page-home .hero-subtitle-ultra {
        font-size: 1rem;
        line-height: 1.55;
    }

    body.page-home .hero-badge {
        min-height: 26px;
        padding: 0.1rem 0.52rem;
        font-size: 0.66rem;
        letter-spacing: 0.03em;
    }

    body.page-home .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    body.page-home .hero-cta-group .btn-ultra {
        width: min(100%, 320px);
    }

    body.page-home .hero-grid {
        gap: 0.85rem;
        padding-bottom: 0.35rem;
    }

    body.page-home .hero-content-ultra {
        padding: 1.1rem 0 0.45rem;
    }

    body.page-home .hero-image {
        width: min(100%, 360px);
        max-height: 440px;
        margin: 0 auto -120px;
        overflow: hidden;
    }

    body.page-home .hero-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center top;
    }
}

html[data-theme="light"] body.page-home .hero-title-ultra,
html[data-theme="light"] body.page-home .hero-subtitle-ultra {
    color: var(--premium-black, #0a0a0a) !important;
}

html[data-theme="light"] body.page-home .highlight-gold {
    background: linear-gradient(135deg, #0066cc, #0080ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
