/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 1rem 12rem;
    background: transparent;
    overflow: clip;
    color: var(--text-primary);
}

.hero__container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero__split-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

@keyframes hero-pulseGlow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes hero-fadeInUpStagger {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__stagger1 {
    animation: hero-fadeInUpStagger 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero__stagger2 {
    animation: hero-fadeInUpStagger 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

.hero__stagger3 {
    animation: hero-fadeInUpStagger 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero__headline {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: capitalize;
}

.hero__desktop-br {
    display: block;
}

.hero__highlight {
    color: var(--secondary-green);
}

.hero__subheadline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.hero__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.hero__btn-wrapper {
    display: inline-block;
    padding-bottom: 6px;
    height: auto;
}

.hero__primary-btn {
    background: var(--secondary-green) !important;
    color: var(--white) !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    font-weight: var(--font-weight-regular) !important;
    font-size: 1.125rem !important;
    text-decoration: none !important;
    border: none !important;
    transition: background 0.2s ease !important;
    display: inline-block;
}

.hero__primary-btn:hover {
    background: var(--secondary-green-hover) !important;
    animation: none !important;
    box-shadow: 0 6px 20px rgba(var(--secondary-green-rgb), 0.3) !important;
}

.hero__secondary-btn {
    background: var(--white) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: var(--font-weight-regular) !important;
    text-decoration: none !important;
    border: 1px solid var(--grey-03) !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    display: inline-block;
}

.hero__secondary-btn:hover {
    background: var(--grey-08) !important;
    border-color: var(--grey-09) !important;
    transform: translateY(-2px) !important;
}

/* Visual Presentation */
.hero__visuals {
    position: relative;
    width: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 4rem;
    perspective: 1000px;
}

.hero__frames-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
}

.hero__scaling-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero__image-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero__main-img {
    width: 100%;
    height: auto;
    display: block;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Blobs */
.hero__blob1,
.hero__blob2 {
    position: absolute;
    width: 50vw;
    max-width: 600px;
    height: 50vw;
    max-height: 600px;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
    will-change: transform;
}

.hero__blob1 {
    top: 50%;
    left: -15%;
    transform: translateY(-50%) translateZ(0);
    background: radial-gradient(circle, var(--light-cream) 0%, transparent 70%);
}

.hero__blob2 {
    top: 50%;
    right: -15%;
    transform: translateY(-50%) translateZ(0);
    background: radial-gradient(circle, var(--light-peach) 0%, transparent 70%);
}

/* Pattern Overlays */
.hero__pattern-left {
    position: absolute;
    top: -50%;
    left: calc(50% - 50vw);
    width: 60vw;
    height: 150%;
    transform-origin: left center;
    transform: perspective(1000px) rotateY(55deg) rotateX(10deg) skewY(-10deg) translateZ(0);
    background-size: 80px 80px;
    background-image:
        linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    -webkit-mask-image: radial-gradient(ellipse at left center, black 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at left center, black 10%, transparent 70%);
}

.hero__pattern-right {
    position: absolute;
    top: -50%;
    right: calc(50% - 50vw);
    width: 60vw;
    height: 150%;
    transform-origin: right center;
    transform: perspective(1000px) rotateY(-55deg) rotateX(10deg) skewY(10deg) translateZ(0);
    background-size: 80px 80px;
    background-image:
        linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    -webkit-mask-image: radial-gradient(ellipse at right center, black 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at right center, black 10%, transparent 70%);
}

.hero__gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent 0%, var(--white) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Floating Feature Badges */
.hero__badge-wrapper {
    position: absolute;
    z-index: 25;
    animation: hero-badgeFloat 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes hero-badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero__badge-top-right {
    top: -4%;
    right: -4%;
}

.hero__badge-bottom-left {
    bottom: 15%;
    left: -8%;
}

.hero__badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--white);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(var(--black-rgb), 0.08);
    border: 1px solid rgba(var(--black-rgb), 0.03);
    will-change: transform, opacity;
}

.hero__badge-top-right .hero__badge {
    border-bottom-left-radius: 4px;
    width: 195px;
    height: 56px;
    justify-content: center;
}

.hero__badge-bottom-left .hero__badge {
    border-bottom-right-radius: 4px;
    width: 175px;
    height: 56px;
    justify-content: center;
}

.hero__badge-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--badge-bg);
    color: var(--white);
}

.hero__badge-text {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    white-space: nowrap;
}

.hero__badge-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Badge animations */
.hero__badge-enter {
    opacity: 0;
    transform: translateY(10px);
}

.hero__badge-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero__badge-exit {
    opacity: 1;
    transform: translateY(0);
}

.hero__badge-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loading dots */
.hero__loading-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
}

.hero__loading-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grey-04);
    animation: hero-dotBounce 1.4s ease-in-out infinite both;
}

.hero__loading-dot--2 {
    animation-delay: 0.16s;
}

.hero__loading-dot--3 {
    animation-delay: 0.32s;
}

@keyframes hero-dotBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Chat Bubble */
.hero__chat-bubble {
    display: none !important;
}

/* Marquee */
.hero__trusted-section {
    position: relative;
    background: transparent;
    padding: 0 0 2rem 0;
    width: 100%;
    margin-top: -6rem;
    z-index: 10;
}

.hero__trusted-by {
    width: 100%;
    margin-top: 0;
    text-align: center;
}

.hero__trusted-by h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero__trusted-by p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero__marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 1rem;
    display: flex;
}

.hero__marquee-container::before,
.hero__marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero__marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.hero__marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.hero__marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    width: max-content;
    animation: hero-scrollLeft 30s linear infinite;
    will-change: transform;
}

@keyframes hero-scrollLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.hero__marquee-item {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    flex-shrink: 0;
}

.hero__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--grey-03) 15%, var(--grey-03) 85%, transparent);
    max-width: 1200px;
    margin: 4rem auto 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 6rem 1rem 9rem;
    }

    .hero__headline {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 992px) {
    .hero__badge-top-right {
        right: -5%;
        transform: scale(0.9);
    }

    .hero__badge-bottom-left {
        left: -5%;
        transform: scale(0.9);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 8rem;
    }

    .hero__headline {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .hero__subheadline {
        font-size: 1.1rem;
    }

    .hero__desktop-br {
        display: none;
    }

    .hero__actions {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .hero__primary-btn,
    .hero__secondary-btn {
        padding: 0.875rem 1.5rem !important;
    }

    .hero__pattern-left {
        display: block;
        top: 72%;
        left: -25vw;
        width: 150vw;
        height: 35%;
        transform-origin: center top;
        transform: perspective(600px) rotateX(60deg) translateZ(0);
        background-size: 80px 80px;
        background-image:
            linear-gradient(to right, rgba(148, 163, 184, 0.30) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(148, 163, 184, 0.30) 1px, transparent 1px);
        will-change: transform;
        -webkit-mask-image: radial-gradient(ellipse at center top, black 25%, transparent 75%);
        mask-image: radial-gradient(ellipse at center top, black 25%, transparent 75%);
    }

    .hero__pattern-right {
        display: none;
    }

    .hero__badge-wrapper {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin: 0 auto !important;
        margin-bottom: 1.25rem !important;
        transform: none !important;
        width: fit-content !important;
        z-index: 25;
    }

    .hero__badge-top-right .hero__badge {
        width: fit-content !important;
        height: 48px !important;
        justify-content: flex-start !important;
        padding: 0 12px !important;
        border-radius: 12px 12px 12px 2px;
        min-width: fit-content;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    }

    .hero__badge-top-right .hero__badge-icon-wrapper {
        background-color: transparent !important;
        color: var(--badge-bg);
        width: auto;
        height: auto;
    }

    .hero__badge-bottom-left {
        display: none !important;
    }

    .hero__badge-top-right .hero__badge-content {
        gap: 6px !important;
    }

    .hero__loading-dot {
        width: 5px;
        height: 5px;
    }

    .hero__trusted-by h2 {
        font-size: 2.2rem;
    }

    .hero__trusted-by p {
        font-size: 1.25rem;
    }

    .hero__actions {
        justify-content: center;
        padding-top: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column-reverse;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        gap: 0.75rem;
        display: flex;
        align-items: stretch;
    }

    .hero__btn-wrapper {
        width: 100% !important;
        display: block !important;
        height: auto;
        padding-bottom: 0;
    }

    .hero__primary-btn,
    .hero__secondary-btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 1rem 1.5rem !important;
        box-sizing: border-box !important;
    }
}