﻿
/* =====================================================
   ECOMACCOUNTXPERT - PREMIUM HERO SECTION
   Clean, Consolidated & Fully Responsive CSS
===================================================== */

/* =====================================================
   MAIN HERO
===================================================== */

.ecx-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 32px 0 0;
    background: radial-gradient(circle at 85% 15%, rgba(213,173,105,.13), transparent 25%), linear-gradient(135deg, #f8fbf8 0%, #ffffff 55%, #f2f7f3 100%);
    color: #10251f;
}

    .ecx-hero::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: -190px;
        left: -150px;
        width: 420px;
        height: 420px;
        border: 1px solid rgba(7,92,72,.08);
        border-radius: 50%;
    }

    .ecx-hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        right: -170px;
        bottom: 70px;
        width: 380px;
        height: 380px;
        border: 1px solid rgba(213,173,105,.18);
        border-radius: 50%;
    }

/* =====================================================
   MAIN CONTAINER
===================================================== */

.ecx-hero__container {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 45px;
    padding-bottom: 45px;
}

/* =====================================================
   LEFT CONTENT
===================================================== */

.ecx-hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    min-width: 0;
    animation: ecxHeroContentIn .8s ease both;
}

.ecx-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #87662e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.ecx-hero__eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0b795b;
    box-shadow: 0 0 0 5px rgba(11,121,91,.10);
}

.ecx-hero__content h1 {
    max-width: 650px;
    margin: 0;
    color: #092e27;
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(43px, 5.2vw, 70px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -2.8px;
}

    .ecx-hero__content h1 span {
        display: block;
        color: #0b7658;
    }

.ecx-hero__subtitle {
    max-width: 550px;
    margin: 25px 0 0;
    color: #40564a;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.9;
}

/* =====================================================
   BUTTONS
===================================================== */

.ecx-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 32px;
}

.ecx-hero__btn-primary,
.ecx-hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: all .3s ease;
}

.ecx-hero__btn-primary {
    color: #ffffff;
    background: #075c48;
    box-shadow: 0 12px 25px rgba(7,92,72,.17);
}

    .ecx-hero__btn-primary span {
        color: #f0d79d;
        font-size: 19px;
    }

    .ecx-hero__btn-primary:hover {
        color: #ffffff;
        background: #043d32;
        transform: translateY(-4px);
        box-shadow: 0 17px 30px rgba(7,92,72,.23);
    }

.ecx-hero__btn-secondary {
    color: #174c3d;
    border: 1px solid #dce8df;
    background: rgba(255,255,255,.8);
}

    .ecx-hero__btn-secondary span {
        font-size: 19px;
    }

    .ecx-hero__btn-secondary:hover {
        color: #075c48;
        border-color: #0b7658;
        transform: translateY(-4px);
    }

/* =====================================================
   TRUST / MARKETPLACE COVERAGE
===================================================== */

.ecx-hero__trust {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    margin-top: 38px;
    padding: 17px 20px;
    border: 1px solid #e2ebe4;
    border-radius: 12px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 8px 25px rgba(10,52,39,.045);
}

.ecx-hero__trust-icon {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(145deg, #0b795b, #07513f);
    box-shadow: 0 6px 15px rgba(7,92,72,.18);
}

    .ecx-hero__trust-icon span {
        font-size: 24px;
        font-weight: 900;
    }

.ecx-hero__trust-content {
    flex: 1 1 auto;
    min-width: 0;
}

    .ecx-hero__trust-content > strong {
        display: block;
        color: #153c2e;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

/* Marketplace Names */

.ecx-hero__trust-platforms {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 9px;
    min-width: 0;
    margin-top: 10px;
}

    .ecx-hero__trust-platforms span {
        display: inline-block;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.5;
        letter-spacing: .2px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

        /* Individual Marketplace Colors */

        .ecx-hero__trust-platforms span:nth-of-type(1) {
            color: #F59B24;
        }

        .ecx-hero__trust-platforms span:nth-of-type(2) {
            color: #2874F0;
        }

        .ecx-hero__trust-platforms span:nth-of-type(3) {
            color: #16845B;
        }

        .ecx-hero__trust-platforms span:nth-of-type(4) {
            color: #8B55C7;
        }

    .ecx-hero__trust-platforms i {
        flex: 0 0 5px;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #b9a47b;
    }

/* =====================================================
   RIGHT VISUAL - DASHBOARD IMAGE
===================================================== */

.ecx-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 440px;
    animation: ecxHeroVisualIn 1s .12s ease both;
}

.ecx-hero__visual-bg {
    position: absolute;
    top: 6%;
    right: 0;
    width: 85%;
    height: 88%;
    border-radius: 48% 48% 12px 12px;
    background: linear-gradient(145deg, #e3efe6, #d4e6d9);
    transform: rotate(4deg);
}

.ecx-hero__image-frame {
    position: relative;
    z-index: 1;
    top: -75px;
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    border-radius: 20px;
    background: #061b17;
    box-shadow: 0 25px 65px rgba(10,52,39,.20);
    transform: translateY(-15px);
}

.ecx-hero__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .7s ease;
}

.ecx-hero__image-frame:hover .ecx-hero__image {
    transform: scale(1.025);
}

/* =====================================================
   FLOATING CARDS
===================================================== */

.ecx-hero__floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 15px 40px rgba(10,52,39,.13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ecx-hero__floating-card--top {
    top: -50px;
    left: -15px;
    animation: ecxTopCardMotion 4s ease-in-out infinite;
    transition: box-shadow .35s ease, border-color .35s ease;
}

    .ecx-hero__floating-card--top:hover {
        border-color: rgba(11,118,88,.35);
        box-shadow: 0 20px 45px rgba(10,52,39,.22);
    }

.ecx-hero__card-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #8b682e;
    background: #f7efdf;
    font-size: 21px;
    animation: ecxCardIconGlow 2.5s ease-in-out infinite;
}

.ecx-hero__floating-card strong {
    display: block;
    color: #123c30;
    font-size: 13px;
    font-weight: 800;
}

.ecx-hero__floating-card span {
    display: block;
    margin-top: 4px;
    color: #52665b;
    font-size: 10px;
    font-weight: 600;
}

.ecx-hero__floating-card--bottom {
    right: 0;
    bottom: 70px;
    gap: 13px;
    padding: 17px 20px;
    animation: ecxBottomCardMotion 4.5s ease-in-out infinite;
    transition: box-shadow .35s ease, border-color .35s ease;
}

    .ecx-hero__floating-card--bottom:hover {
        border-color: rgba(11,118,88,.35);
        box-shadow: 0 22px 48px rgba(10,52,39,.23);
    }

    .ecx-hero__floating-card--bottom > strong {
        color: #0b7658;
        font-size: 29px;
        letter-spacing: -1px;
    }

    .ecx-hero__floating-card--bottom small {
        display: block;
        margin-top: 3px;
        color: #596b61;
        font-size: 10px;
        font-weight: 600;
    }

/* =====================================================
   VERTICAL LABEL
===================================================== */

.ecx-hero__vertical-label {
    position: absolute;
    z-index: 5;
    right: -20px;
    top: 25%;
    color: #52665b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
    white-space: nowrap;
}

/* =====================================================
   BOTTOM SERVICE STRIP
===================================================== */

.ecx-hero__bottom {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
    gap: 45px;
    padding: 30px 40px 35px;
    border-top: 1px solid #e3ebe5;
}

.ecx-hero__bottom-heading {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .ecx-hero__bottom-heading > span {
        color: #765a2b;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 1.7px;
    }

    .ecx-hero__bottom-heading small {
        color: #718078;
        font-size: 14px;
        line-height: 1.5;
    }

.ecx-hero__bottom-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ecx-hero__bottom-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 100px;
    padding: 16px 15px;
    border: 1px solid #e5ede7;
    border-radius: 11px;
    background: rgba(255,255,255,.75);
    color: #40564a;
    font-size: 16px;
    font-weight: 700;
    transition: all .3s ease;
}

    .ecx-hero__bottom-item span {
        line-height: 1.5;
    }

    .ecx-hero__bottom-item b {
        flex-shrink: 0;
        color: #0b7658;
        font-size: 19px;
        transition: transform .3s ease;
    }

    .ecx-hero__bottom-item:hover {
        border-color: #b9d5c3;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(10,52,39,.07);
        transform: translateY(-3px);
    }

        .ecx-hero__bottom-item:hover b {
            transform: translate(3px, -3px);
        }

/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes ecxHeroContentIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ecxHeroVisualIn {
    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ecxTopCardMotion {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 15px 40px rgba(10,52,39,.13);
    }

    50% {
        transform: translateY(-13px) rotate(-1deg);
        box-shadow: 0 23px 48px rgba(10,52,39,.20);
    }
}

@keyframes ecxBottomCardMotion {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(12px) scale(1.035);
    }
}

@keyframes ecxCardIconGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(213,173,105,0);
        transform: rotate(0deg);
    }

    50% {
        box-shadow: 0 0 18px rgba(213,173,105,.45);
        transform: rotate(12deg);
    }
}

/* =====================================================
   TABLET - 1000px
===================================================== */

@media (max-width: 1000px) {

    .ecx-hero {
        padding-top: 65px;
    }

    .ecx-hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding-bottom: 85px;
    }

    .ecx-hero__content h1 {
        font-size: clamp(39px, 5vw, 55px);
    }

    .ecx-hero__visual {
        min-height: 410px;
        transform: none;
    }

    .ecx-hero__image-frame {
        top: 0;
        width: 100%;
        transform: none;
    }

    .ecx-hero__vertical-label {
        right: -15px;
        top: 50%;
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .ecx-hero__floating-card--top {
        top: 0;
        left: -5px;
    }

    .ecx-hero__floating-card--bottom {
        right: -5px;
        bottom: 20px;
    }

    /* Trust card - Tablet */

    .ecx-hero__trust {
        gap: 12px;
        padding: 15px;
        align-items: flex-start;
    }

    .ecx-hero__trust-content > strong {
        font-size: 14px;
    }

    .ecx-hero__trust-platforms {
        gap: 6px 8px;
    }

        .ecx-hero__trust-platforms span {
            font-size: 15px;
        }

    /* Bottom strip */

    .ecx-hero__bottom {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 25px 25px 30px;
    }

    .ecx-hero__bottom-heading {
        text-align: center;
    }

    .ecx-hero__bottom-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =====================================================
   MOBILE - 700px
===================================================== */

@media (max-width: 700px) {

    .ecx-hero {
        padding-top: 55px;
    }

    .ecx-hero__container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px 45px;
    }

    .ecx-hero__content {
        max-width: 100%;
        text-align: center;
    }

    .ecx-hero__eyebrow {
        justify-content: center;
        margin-bottom: 20px;
        font-size: 9px;
        letter-spacing: 1.4px;
    }

    .ecx-hero__content h1 {
        max-width: 580px;
        margin: auto;
        font-size: clamp(37px, 9vw, 53px);
        letter-spacing: -1.8px;
    }

    .ecx-hero__subtitle {
        margin: 18px auto 0;
        font-size: 15px;
        line-height: 1.8;
    }

    .ecx-hero__actions {
        justify-content: center;
        margin-top: 25px;
    }

    /* Trust card - Mobile */

    .ecx-hero__trust {
        align-self: stretch;
        margin: 28px 0 0;
        padding: 13px;
        gap: 10px;
        align-items: flex-start;
        text-align: left;
    }

    .ecx-hero__trust-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

        .ecx-hero__trust-icon span {
            font-size: 21px;
        }

    .ecx-hero__trust-content > strong {
        font-size: 13px;
        line-height: 1.5;
    }

    .ecx-hero__trust-platforms {
        gap: 6px 9px;
        margin-top: 8px;
    }

        .ecx-hero__trust-platforms span {
            font-size: 14px;
        }

        .ecx-hero__trust-platforms i {
            display: none;
        }

    /* Dashboard image */

    .ecx-hero__visual {
        width: 100%;
        min-height: auto;
        margin-top: 12px;
        padding: 25px 0;
        transform: none;
    }

    .ecx-hero__visual-bg {
        right: 6%;
        width: 88%;
        height: 86%;
    }

    .ecx-hero__image-frame {
        top: 0;
        width: 100%;
        max-width: 550px;
        transform: none;
    }

    .ecx-hero__vertical-label {
        display: none;
    }

    .ecx-hero__floating-card--top {
        top: 5px;
        left: 0;
    }

    .ecx-hero__floating-card--bottom {
        right: 0;
        bottom: -10px;
    }

    .ecx-hero__floating-card {
        padding: 11px 13px;
    }

    /* Bottom service strip */

    .ecx-hero__bottom {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 22px 16px 25px;
    }

    .ecx-hero__bottom-heading {
        text-align: center;
    }

        .ecx-hero__bottom-heading > span {
            font-size: 13px;
        }

        .ecx-hero__bottom-heading small {
            font-size: 11px;
        }

    .ecx-hero__bottom-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ecx-hero__bottom-item {
        min-height: 65px;
        padding: 13px 10px;
        font-size: 12px;
    }

        .ecx-hero__bottom-item b {
            font-size: 16px;
        }
}

/* =====================================================
   SMALL MOBILE - 420px
===================================================== */

@media (max-width: 420px) {

    .ecx-hero {
        padding-top: 45px;
    }

    .ecx-hero__container {
        padding-right: 13px;
        padding-left: 13px;
    }

    .ecx-hero__content h1 {
        font-size: 36px;
    }

    .ecx-hero__actions {
        flex-direction: column;
    }

    .ecx-hero__btn-primary,
    .ecx-hero__btn-secondary {
        width: 100%;
    }

    /* Trust card - Small mobile */

    .ecx-hero__trust {
        padding: 12px 10px;
        gap: 9px;
    }

    .ecx-hero__trust-icon {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
        border-radius: 9px;
    }

        .ecx-hero__trust-icon span {
            font-size: 21px;
        }

    .ecx-hero__trust-content > strong {
        font-size: 12px;
    }

    .ecx-hero__trust-platforms {
        gap: 5px 8px;
        margin-top: 7px;
    }

        .ecx-hero__trust-platforms span {
            font-size: 13px;
        }

    /* Floating cards */

    .ecx-hero__visual {
        min-height: auto;
    }

    .ecx-hero__image-frame {
        width: 100%;
    }

    .ecx-hero__floating-card--top {
        top: 5px;
        left: -3px;
    }

    .ecx-hero__floating-card--bottom {
        right: -3px;
        bottom: -10px;
    }

        .ecx-hero__floating-card--bottom > strong {
            font-size: 24px;
        }

    .ecx-hero__floating-card strong {
        font-size: 11px;
    }

    .ecx-hero__floating-card span,
    .ecx-hero__floating-card small {
        font-size: 9px;
    }

    /* Bottom strip */

    .ecx-hero__bottom {
        padding-right: 13px;
        padding-left: 13px;
    }

    .ecx-hero__bottom-items {
        gap: 8px;
    }

    .ecx-hero__bottom-item {
        min-height: 58px;
        padding: 11px 8px;
        font-size: 10px;
    }

        .ecx-hero__bottom-item b {
            font-size: 14px;
        }
}

/* =====================================================
   VERY SMALL MOBILE - 360px
===================================================== */

@media (max-width: 360px) {

    .ecx-hero__trust {
        gap: 7px;
        padding: 11px 8px;
    }

    .ecx-hero__trust-content > strong {
        font-size: 11px;
    }

    .ecx-hero__trust-platforms {
        gap: 5px 7px;
    }

        .ecx-hero__trust-platforms span {
            font-size: 12px;
        }

    .ecx-hero__bottom-item {
        font-size: 9px;
    }
}

/* =====================================================
   REDUCED MOTION - ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .ecx-hero *,
    .ecx-hero *::before,
    .ecx-hero *::after {
        animation: none !important;
        transition: none !important;
    }
}
