/* Homepage-only effects that stay in CSS: value-card mask/gradient, 3D flip, partner marquee. Scoped to #homePageNew. */

@media (prefers-reduced-motion: reduce) {
        #homePageNew [data-aos] {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
    }

    /* Value-card icons → exact #009966 (black PNG → brand green) */
    #homePageNew .hp-value-icon {
        display: block;
        width: 44px;
        height: 44px;
        background-color: #009966;
        -webkit-mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-size: contain;
        mask-repeat: no-repeat;
        mask-position: center;
        transition: transform 0.35s ease, background-color 0.35s ease;
    }

    #homePageNew .hp-value-card {
        position: relative;
        background: #fff;
        border: 1px solid transparent;
        border-radius: 12px;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        transition:
            transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.35s ease,
            border-color 0.35s ease,
            background-color 0.35s ease;
        will-change: transform;
    }

    #homePageNew .hp-value-card .hp-value-icon-wrap {
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s ease, box-shadow 0.35s ease;
    }

    #homePageNew .hp-value-card h3 {
        transition: color 0.3s ease;
    }

    #homePageNew .hp-value-card::after {
        content: "";
        position: absolute;
        left: 24px;
        right: 24px;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: linear-gradient(90deg, #17674D, #1AC68F 55%, #2DCD99);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }

    @media (hover: hover) and (pointer: fine) {
        #homePageNew .hp-value-card:hover {
            transform: translateY(-10px);
            border-color: rgba(26, 198, 143, 0.45);
            background: linear-gradient(180deg, #ffffff 0%, #f3fcf8 100%);
            box-shadow:
                0 14px 28px rgba(23, 103, 77, 0.14),
                0 4px 8px rgba(0, 0, 0, 0.06);
        }

        #homePageNew .hp-value-card:hover::after {
            transform: scaleX(1);
        }

        #homePageNew .hp-value-card:hover .hp-value-icon-wrap {
            transform: scale(1.08) translateY(-2px);
            background-color: #BBEEDE;
            box-shadow: 0 8px 18px rgba(26, 198, 143, 0.28);
        }

        #homePageNew .hp-value-card:hover .hp-value-icon {
            transform: scale(1.06);
            background-color: #1AC68F;
        }

        #homePageNew .hp-value-card:hover h3 {
            color: #1AC68F;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        #homePageNew .hp-value-card,
        #homePageNew .hp-value-card .hp-value-icon-wrap,
        #homePageNew .hp-value-card .hp-value-icon,
        #homePageNew .hp-value-card::after {
            transition: none;
        }

        #homePageNew .hp-value-card:hover {
            transform: none;
        }
    }

    /* Witness cards — image front, text back, hover flip. Figma card height 344px */
    #homePageNew .hp-flip {
        height: 340px;
        perspective: 1200px;
    }
    @media (min-width: 640px) {
        #homePageNew .hp-flip {
            height: 360px;
        }
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-flip {
            height: 344px;
        }
    }
    #homePageNew .hp-flip-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    #homePageNew .hp-flip-face {
        position: absolute;
        inset: 0;
        border-radius: 20px;
        overflow: hidden;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-flip-front {
            border-radius: 28px;
        }
    }
    #homePageNew .hp-flip-front {
        display: flex;
        flex-direction: column;
        background: #BBEEDE;
    }
    #homePageNew .hp-flip-front h3 {
        margin: 0;
        padding: 14px 16px 10px;
        color: #1AC68F;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: -0.03em;
        line-height: 1.2;
        text-transform: uppercase;
        flex-shrink: 0;
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-flip-front h3 {
            padding: 18px 24px 12px;
            font-size: 20px;
        }
    }
    #homePageNew .hp-flip-front img {
        display: block;
        width: 100%;
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        margin-top: 0;
        object-fit: cover;
        object-position: center;
        border-radius: 12px 12px 0 0;
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-flip-front img {
            flex: 0 0 266px;
            height: 266px;
            margin-top: auto;
            border-radius: 15px 15px 0 0;
        }
    }
    /* Text face — Figma #189:271 (400×344, radius 23, mint 55%, green stroke) */
    #homePageNew .hp-flip-back {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 22px 22px 20px;
        border-radius: 23px;
        background: rgba(187, 238, 222, 0.55);
        border: 1px solid #1AC68F;
        transform: rotateY(180deg);
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-flip-back {
            padding: 28px 36px 28px;
        }
    }
    #homePageNew .hp-flip-back .hp-flip-num {
        align-self: center;
        margin: 0 0 14px;
        color: #1AC68F;
        font-size: 30px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.03em;
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-flip-back .hp-flip-num {
            margin-bottom: 22px;
            font-size: 36px;
            line-height: 37px;
        }
    }
    #homePageNew .hp-flip-back .hp-flip-label {
        margin: 0 0 4px;
        color: #009966;
        font-size: 15px;
        font-weight: 600;
        line-height: 15px;
        letter-spacing: -0.03em;
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-flip-back .hp-flip-label {
            font-size: 16px;
        }
    }
    #homePageNew .hp-flip-back .hp-flip-copy {
        margin: 0 0 14px;
        color: #2B2E34;
        font-size: 13px;
        font-weight: 400;
        line-height: 15px;
        letter-spacing: -0.03em;
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-flip-back .hp-flip-copy {
            margin-bottom: 18px;
        }
    }
    #homePageNew .hp-flip-back .hp-flip-btn {
        align-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-sizing: border-box;
        width: 150px;
        height: 44px;
        margin-top: auto;
        padding: 0 16px;
        border: 1px solid #4ADE80;
        border-radius: 45px;
        background: #2B2E34;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.03em;
        text-decoration: none;
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-flip-back .hp-flip-btn {
            width: 162px;
            height: 48px;
            font-size: 16px;
        }
    }
    #homePageNew .hp-flip-back .hp-flip-btn:hover,
    #homePageNew .hp-flip-back .hp-flip-btn:focus {
        color: #fff;
        text-decoration: none;
        background: #1f2227;
    }
    @media (hover: hover) and (pointer: fine) {
        #homePageNew .hp-flip:hover .hp-flip-inner,
        #homePageNew .hp-flip:focus-within .hp-flip-inner {
            transform: rotateY(180deg);
        }
        #homePageNew .hp-flip:hover .hp-flip-front,
        #homePageNew .hp-flip:focus-within .hp-flip-front {
            pointer-events: none;
        }
    }
    #homePageNew .hp-flip.is-flipped .hp-flip-inner {
        transform: rotateY(180deg);
    }
    #homePageNew .hp-flip.is-flipped .hp-flip-front {
        pointer-events: none;
    }
    @media (prefers-reduced-motion: reduce) {
        #homePageNew .hp-flip-inner {
            transition: none;
        }
    }

    /* Partner logos marquee — Figma #206:110 (R→L scroll) */
    #homePageNew .hp-partners {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 100px;
        background: #BBEEDE;
        overflow: hidden;
    }
    @media (min-width: 640px) {
        #homePageNew .hp-partners {
            min-height: 115px;
        }
    }
    #homePageNew .hp-partners-marquee {
        width: 100%;
        overflow: hidden;
        mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    }
    #homePageNew .hp-partners-track {
        display: flex;
        width: max-content;
        animation: hp-partners-rtl 35s linear infinite;
    }
    #homePageNew .hp-partners-track:hover {
        animation-play-state: paused;
    }
    #homePageNew .hp-partners-group {
        display: flex;
        align-items: center;
        gap: 48px;
        padding: 20px 48px 20px 0;
        flex-shrink: 0;
    }
    @media (min-width: 640px) {
        #homePageNew .hp-partners-group {
            gap: 64px;
            padding: 24px 64px 24px 0;
        }
    }
    #homePageNew .hp-partners-group img {
        height: 44px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
        flex-shrink: 0;
        display: block;
    }
    @media (min-width: 640px) {
        #homePageNew .hp-partners-group img {
            height: 57px;
        }
    }
    #homePageNew .hp-partners-group img.hp-partner-round {
        height: 48px;
        width: 48px;
        max-width: 48px;
        border-radius: 50%;
        object-fit: cover;
    }
    @media (min-width: 640px) {
        #homePageNew .hp-partners-group img.hp-partner-round {
            height: 56px;
            width: 56px;
            max-width: 56px;
        }
    }
    @keyframes hp-partners-rtl {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    @media (prefers-reduced-motion: reduce) {
        #homePageNew .hp-partners-track {
            animation: none;
            transform: none;
        }
        #homePageNew .hp-partners-marquee {
            overflow-x: auto;
        }
    }

    #homePageNew .hp-tech-tabs {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    #homePageNew .hp-tech-tabs::-webkit-scrollbar {
        display: none;
    }
    #homePageNew .hp-tech-panel {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }
    #homePageNew .hp-tech-card {
        width: calc(50% - 0.625rem);
    }
    @media (min-width: 640px) {
        #homePageNew .hp-tech-panel {
            gap: 1.5rem;
        }
        #homePageNew .hp-tech-card {
            width: calc(50% - 0.75rem);
        }
    }
    @media (min-width: 1024px) {
        #homePageNew .hp-tech-card {
            width: calc(25% - 1.125rem);
        }
    }
