/* Nexcommerce Home 04 */
.home4-page {
    --nx-blue: #1E5EFF;
    --nx-blue-dark: #0B3DB8;
    --nx-navy: #0A1628;
    --nx-title: #0B1B4D;
    --nx-text: #4B5563;
    --nx-border: #E5EAF2;
    --nx-soft: #F5F8FC;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.home4-page h1,
.home4-page h2,
.home4-page h3,
.home4-page h4,
.home4-page .nx-title-font {
    font-family: Montserrat, "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    color: var(--nx-title);
}

/* Header 4 */
.header-top-4 {
    background: var(--nx-navy);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.header-top-4 .header-top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-top-4 .contact-list {
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-top-4 .contact-list a,
.header-top-4 .contact-list li {
    color: rgba(255, 255, 255, 0.9);
}

.header-top-4 .contact-list i {
    color: var(--nx-blue);
    margin-right: 6px;
}

.header-top-4 .social-icon {
    display: flex;
    gap: 12px;
}

.header-top-4 .social-icon a {
    color: #fff;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: 0.2s;
}

.header-top-4 .social-icon a:hover {
    background: var(--nx-blue);
}

.header-4 {
    background: #fff;
    border-bottom: 1px solid var(--nx-border);
    padding: 14px 0;
}

.header-4 .header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-4 .logo img {
    max-height: 58px;
    width: auto;
}

.header-4 .main-menu ul {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.header-4 .main-menu a {
    color: var(--nx-title);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    position: relative;
}

.header-4 .main-menu .active > a,
.header-4 .main-menu a:hover {
    color: var(--nx-blue);
}

.header-4 .nx-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--nx-blue);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.header-4 .nx-cta:hover {
    background: var(--nx-blue-dark);
    color: #fff !important;
}

.header-4 .nx-cta i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Hero */
.nx-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 70px 0 0;
}

.nx-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    min-height: 480px;
}

.nx-hero-eyebrow {
    color: var(--nx-blue);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin-bottom: 14px;
    display: inline-block;
    border-bottom: 2px solid var(--nx-blue);
    padding-bottom: 6px;
}

.nx-hero h1 {
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.nx-hero h1 .hl {
    color: var(--nx-blue);
}

.nx-hero-text {
    color: var(--nx-text);
    font-size: 17px;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 28px;
}

.nx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.nx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s;
}

.nx-btn i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.nx-btn-primary {
    background: var(--nx-blue);
    color: #fff !important;
}

.nx-btn-primary i {
    background: rgba(255, 255, 255, 0.22);
}

.nx-btn-primary:hover {
    background: var(--nx-blue-dark);
}

.nx-btn-outline {
    background: #fff;
    color: var(--nx-blue) !important;
    border: 1.5px solid var(--nx-blue);
}

.nx-btn-outline i {
    background: var(--nx-blue);
    color: #fff;
}

.nx-btn-outline:hover {
    background: var(--nx-soft);
}

.nx-hero-visual {
    position: relative;
    min-height: 420px;
}

.nx-hero-visual::before {
    content: "";
    position: absolute;
    inset: -10% -5% -5% 20%;
    background:
        linear-gradient(135deg, transparent 0 28%, #0B3DB8 28% 38%, transparent 38% 48%, #1E5EFF 48% 58%, transparent 58% 68%, #0A1628 68% 78%, transparent 78%),
        linear-gradient(150deg, transparent 40%, rgba(30, 94, 255, 0.12) 40%);
    z-index: 0;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.nx-hero-visual img {
    position: relative;
    z-index: 1;
    width: 118%;
    max-width: none;
    margin-left: -8%;
    display: block;
    object-fit: cover;
    object-position: right center;
    min-height: 420px;
    border-radius: 0 0 0 24px;
}

/* Platforms */
.nx-platforms {
    background: var(--nx-navy);
    padding: 22px 0;
    margin-top: 40px;
}

.nx-platforms-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px 32px;
}

.nx-platform {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.01em;
    opacity: 0.92;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nx-platform span.mark {
    color: #FF9900;
}

.nx-platform .shopify {
    color: #96bf48;
}

.nx-platform .tiktok {
    color: #69C9D0;
}

/* Services */
.nx-section {
    padding: 90px 0;
}

.nx-section-head {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: end;
    margin-bottom: 40px;
}

.nx-section-head h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin: 0;
    line-height: 1.2;
}

.nx-section-head p {
    color: var(--nx-text);
    margin: 0;
    line-height: 1.7;
}

.nx-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.nx-service-card {
    background: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 14px;
    padding: 28px 24px 24px;
    height: 100%;
    transition: 0.25s;
}

.nx-service-card:hover {
    box-shadow: 0 16px 40px rgba(15, 40, 100, 0.08);
    transform: translateY(-3px);
    border-color: #d5e0f5;
}

.nx-service-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--nx-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.nx-service-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--nx-blue);
}

.nx-service-card h3 a {
    color: inherit;
    text-decoration: none;
}

.nx-service-card p {
    color: var(--nx-text);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 18px;
    min-height: 66px;
}

.nx-service-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--nx-blue);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
}

/* Stats */
.nx-stats {
    background: var(--nx-blue);
    padding: 42px 0;
}

.nx-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.nx-stat {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nx-stat i {
    font-size: 28px;
    opacity: 0.95;
}

.nx-stat strong {
    display: block;
    font-size: 28px;
    font-family: Montserrat, sans-serif;
    font-weight: 800;
    line-height: 1.1;
}

.nx-stat span {
    font-size: 14px;
    opacity: 0.9;
}

/* About */
.nx-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.nx-about-media {
    position: relative;
}

.nx-about-media img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    min-height: 380px;
}

.nx-about-badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: #fff;
    color: var(--nx-title);
    font-weight: 800;
    font-size: 14px;
    line-height: 1.25;
    padding: 16px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-width: 120px;
    text-align: center;
}

.nx-about-eyebrow {
    color: var(--nx-blue);
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 13px;
    margin-bottom: 10px;
}

.nx-about h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 0 0 14px;
    line-height: 1.25;
}

.nx-about p.lead {
    color: var(--nx-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.nx-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.nx-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--nx-title);
}

.nx-checks li i {
    color: var(--nx-blue);
}

/* Work */
.nx-work-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 36px;
}

.nx-work-head .eyebrow {
    color: var(--nx-blue);
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 13px;
    margin-bottom: 8px;
}

.nx-work-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
}

.nx-work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.nx-work-card {
    background: #fff;
}

.nx-work-card .thumb {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--nx-soft);
    margin-bottom: 14px;
}

.nx-work-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.35s;
}

.nx-work-card:hover .thumb img {
    transform: scale(1.05);
}

.nx-work-card h3 {
    font-size: 16px;
    margin: 0 0 4px;
}

.nx-work-card h3 a {
    color: var(--nx-title);
    text-decoration: none;
}

.nx-work-card .cat {
    color: var(--nx-text);
    font-size: 13px;
}

.nx-soft-bg {
    background: var(--nx-soft);
}

@media (max-width: 991px) {
    .nx-hero-grid,
    .nx-section-head,
    .nx-about-grid {
        grid-template-columns: 1fr;
    }

    .nx-hero {
        padding-top: 40px;
    }

    .nx-hero-visual {
        min-height: auto;
        order: -1;
    }

    .nx-hero-visual::before {
        inset: 0;
        clip-path: none;
        opacity: 0.35;
    }

    .nx-service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nx-stats-row,
    .nx-work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-top-4 .contact-list {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nx-work-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .nx-service-grid,
    .nx-stats-row,
    .nx-work-grid {
        grid-template-columns: 1fr;
    }

    .header-top-4 {
        display: none;
    }
}
