/* ==========================================================================
   Homepage Hero — scoped overrides (.homeHero)
   ========================================================================== */

/* --- 1. H1: tighter line-height for display impact --- */

.homeHero .section__inner {
    padding-top: 24px;
}

.frontpage .main {
    --paddingTopMax: 56;
    --paddingTopMin: 48;
}

.homeHero .section__title {
    --fontsizeMax: 56;
    line-height: 1.05;
    margin-bottom: 4px;
}

/* --- sr-only: visually hidden, accessible to screen readers --- */

.homeHero .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- 2. H1 accent word: gradient text --- */

.homeHero__accent {
    background: linear-gradient(135deg, #4B7DE1 0%, #6C5CE7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Badge pill above H1 + shimmer --- */

.homeHero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(75, 125, 225, 0.08);
    border: 1px solid rgba(75, 125, 225, 0.12);
    color: rgba(75, 125, 225, 1);
    font-family: Lexend, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.homeHero__badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(75, 125, 225, 0.12) 50%,
        transparent 70%
    );
    animation: homeHero-shimmer 4s ease-in-out infinite;
}

@keyframes homeHero-shimmer {
    0%, 70% { left: -100%; }
    100%    { left: 200%; }
}

.homeHero__badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* --- Subtitle: larger size, better contrast --- */

.homeHero .section__subtitle {
    font-size: clamp(24px, 3vw, 36px) !important;
    line-height: 140%;
    color: rgba(37, 39, 45, 0.72);
    margin-bottom: 32px;
}

/* --- Subtitle: underline highlight for key phrases --- */

.homeHero__mark {
    color: rgba(37, 39, 45, 0.85);
    font-weight: 600;
    background: none;
    padding: 0;
    text-decoration: none;
    background-image: linear-gradient(rgba(75, 125, 225, 0.45), rgba(75, 125, 225, 0.45));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 0% 4px;
    transition: background-size .5s cubic-bezier(.25, .46, .45, .94);
}

.homeHero__mark.__visible {
    background-size: 100% 4px;
}

/* --- CTA buttons: override global display:none --- */

.homeHero .section__header__inner > .btn,
.homeHero .homeHero__cta .btn {
    display: flex;
}

.homeHero__cta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.homeHero__btnPrimary {
    gap: 8px;
    animation: homeHero-ctaPulse 3s ease-in-out infinite;
}

@keyframes homeHero-ctaPulse {
    0%, 70%, 100% { box-shadow: 0 10px 20px 0 rgba(75, 125, 225, 0.3); }
    35%           { box-shadow: 0 10px 28px 4px rgba(75, 125, 225, 0.45); }
}

.homeHero__btnPrimary svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform .2s ease;
}

@media (hover: hover) {
    .homeHero__btnPrimary:hover svg {
        transform: translateX(3px);
    }
}

.homeHero__btnGhost {
    background: transparent;
    border: 1px solid rgba(75, 125, 225, 0.35);
    color: rgba(37, 39, 45, 0.85);
    box-shadow: none;
}

@media (hover: hover) {
    .homeHero__btnGhost:hover {
        background: rgba(75, 125, 225, 0.06);
        border-color: rgba(75, 125, 225, 0.5);
        color: rgba(75, 125, 225, 1);
    }
}

.homeHero__ctaNote {
    display: block;
    font-family: Lexend, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(100, 103, 115, 1);
    margin-bottom: 24px;
}

/* --- Client avatars (social proof) --- */

.homeHero__avatars {
    display: flex;
    flex-shrink: 0;
    margin-right: 2px;
}

.homeHero__avatars span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    color: #fff;
    font-family: Lexend, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.homeHero__avatars span:first-child {
    margin-left: 0;
}

.homeHero__avatars span:nth-child(1) {
    background: radial-gradient(circle at 30% 30%, #7ba3f0, #4b7de1 70%);
}

.homeHero__avatars span:nth-child(2) {
    background: radial-gradient(circle at 30% 30%, #5aad5e, #2e7d32 70%);
}

.homeHero__avatars span:nth-child(3) {
    background: radial-gradient(circle at 30% 30%, #f0b27a, #d68910 70%);
}

.homeHero__avatars span:nth-child(4) {
    background: radial-gradient(circle at 30% 30%, #c39bd3, #7d3c98 70%);
}

/* --- Trust indicator line --- */

.homeHero__trust {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(100, 103, 115, 1);
    font-family: Lexend, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 24px;
}

.homeHero__trustIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(75, 125, 225, 0.12);
    flex-shrink: 0;
}

.homeHero__trustIcon svg {
    width: 12px;
    height: 12px;
    color: rgba(75, 125, 225, 1);
}

.homeHero__trustNum {
    font-weight: 600;
    color: rgba(75, 125, 225, 1);
}

/* --- Trust strip (review badges, same style as contacts hero) --- */

.homeHero .trustStrip {
    margin-top: 4px;
    padding-top: 0;
    border-top: none;
}

.homeHero .trustStrip__logo {
    filter: grayscale(1) opacity(0.7);
    transition: filter .3s ease;
}

.homeHero .trustStrip__badge:hover .trustStrip__logo {
    filter: grayscale(0) opacity(1);
}

/* --- Form: enhanced depth + subtle glow --- */

.homeHero .form__inner {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(75, 125, 225, 0.08);
    box-shadow:
        0 12px 48px -8px rgba(0, 66, 130, 0.14),
        0 0 0 1px rgba(75, 125, 225, 0.06);
}

/* --- Decorative blobs (layered depth) --- */

.homeHero .section__header::before,
.homeHero .section__header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.homeHero .section__header::before {
    width: 320px;
    height: 320px;
    top: -60px;
    left: -80px;
    background: radial-gradient(circle, rgba(75, 125, 225, 0.07) 0%, transparent 70%);
}

.homeHero .section__header::after {
    width: 240px;
    height: 240px;
    bottom: 40px;
    right: -40px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
}

/* ==========================================================================
   Animated gradient background
   ========================================================================== */

@keyframes homeHero-gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.homeHero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(75, 125, 225, 0.04) 0%,
        rgba(108, 92, 231, 0.06) 25%,
        rgba(75, 125, 225, 0.02) 50%,
        rgba(130, 100, 220, 0.05) 75%,
        rgba(75, 125, 225, 0.03) 100%
    );
    background-size: 400% 400%;
    animation: homeHero-gradientShift 16s ease infinite;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .homeHero::after {
        animation: none;
    }

    .homeHero__badge::after {
        animation: none;
    }

    .homeHero__btnPrimary {
        animation: none;
    }

    .homeHero__mark {
        background-size: 100% 100%;
        transition: none;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
}

@media (max-width: 740px) {
    .homeHero .section__subtitle {
        --fontsizeMax: 22;
        margin-bottom: 20px;
    }

    .homeHero__badge {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    .homeHero__cta {
        flex-direction: column;
        gap: 10px;
    }

    .homeHero__cta .btn {
        max-width: 100%;
    }

    .homeHero__ctaNote {
        margin-bottom: 16px;
    }

    .homeHero__avatars span {
        width: 24px;
        height: 24px;
    }

    .homeHero__trust {
        font-size: 14px;
        margin-bottom: 16px;
    }

}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .homeHero::after {
        display: none;
    }

    .homeHero__accent {
        -webkit-text-fill-color: rgba(75, 125, 225, 1);
    }
}
