/* SERVICES */

.nx-svc-services-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0 104px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background:
        radial-gradient(ellipse at 12% 20%, rgba(31, 117, 197, .09), transparent 35%),
        linear-gradient(180deg, #070b12, #06090f);
}

.nx-svc-services-section::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    pointer-events: none;
}

.nx-svc-services-container {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 50px));
    margin: 0 auto;
}

.nx-svc-services-heading {
    max-width: 740px;
    margin: 0 auto 52px;
    text-align: center;
}

.nx-svc-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #65c8ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.nx-svc-section-tag span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43d5c0;
    box-shadow: 0 0 10px rgba(67, 213, 192, .65);
}

.nx-svc-services-heading h2 {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.12;
}

.nx-svc-services-heading h2 span {
    color: #64c5ff;
}

.nx-svc-services-heading > p {
    max-width: 620px;
    margin: 16px auto 0;
    color: #a2adbd;
    font-size: 14px;
    line-height: 1.75;
}

.nx-svc-services-heading .nx-svc-services-disclaimer {
    margin-top: 10px;
    color: #7f8c9e;
    font-size: 11px;
}

.nx-svc-primary-services,
.nx-svc-secondary-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.nx-svc-service-card,
.nx-svc-small-service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(190, 216, 241, .12);
    background: linear-gradient(145deg, rgba(16, 26, 40, .95), rgba(8, 13, 21, .98));
}

.nx-svc-service-card {
    min-height: 480px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.nx-svc-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(75, 183, 255, .38);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .25);
}

.nx-svc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nx-svc-service-icon,
.nx-svc-small-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(68, 175, 245, .24);
    background: rgba(45, 133, 194, .1);
}

.nx-svc-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.nx-svc-service-icon svg,
.nx-svc-small-icon svg {
    width: 23px;
    fill: none;
    stroke: #69caff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nx-svc-service-number {
    color: rgba(225, 238, 250, .14);
    font-size: 32px;
    font-weight: 800;
}

.nx-svc-service-card-content {
    margin-top: 24px;
}

.nx-svc-service-label,
.nx-svc-small-service-content > span {
    color: #73baff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.nx-svc-service-card-content h3 {
    margin: 8px 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.nx-svc-service-card-content p,
.nx-svc-small-service-content p {
    color: #98a5b5;
    font-size: 12px;
    line-height: 1.7;
}

.nx-svc-service-demo {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.nx-svc-demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #8291a4;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .8px;
}

.nx-svc-demo-live {
    color: #63d2bd;
}

.nx-svc-bot-processing {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nx-svc-processing-circle {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    padding: 6px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#5bcaff, #635eff 220deg, rgba(255, 255, 255, .07) 220deg);
    animation: nexoraServiceRotate 12s linear infinite;
}

.nx-svc-processing-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0b1420;
}

.nx-svc-processing-inner strong {
    color: #73cfff;
    font-size: 19px;
}

.nx-svc-processing-inner small {
    margin-top: 3px;
    color: #8291a4;
    font-size: 7px;
}

.nx-svc-processing-data {
    flex: 1;
}

.nx-svc-processing-data > div {
    padding: 7px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nx-svc-processing-data span {
    color: #8391a3;
    font-size: 10px;
}

.nx-svc-processing-data strong {
    color: #e4edf7;
    font-size: 10px;
}

.nx-svc-mini-chart {
    position: relative;
    height: 88px;
    margin-top: 12px;
}

.nx-svc-mini-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 100% 25%, 12.5% 100%;
}

.nx-svc-mini-chart svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nx-svc-mini-chart-line {
    fill: none;
    stroke: #63c9ff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.nx-svc-mini-chart-area {
    fill: url(#servicesChartGradient);
}

.nx-svc-forex-stats {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nx-svc-forex-stats span {
    display: grid;
    gap: 5px;
    color: #8291a4;
    font-size: 7px;
    letter-spacing: .5px;
}

.nx-svc-forex-stats strong {
    color: #dce7f3;
    font-size: 10px;
    letter-spacing: 0;
}

.nx-svc-crypto-demo {
    display: grid;
    gap: 4px;
}

.nx-svc-crypto-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nx-svc-crypto-row:last-child {
    border-bottom: 0;
}

.nx-svc-crypto-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-svc-crypto-name > span:last-child {
    display: grid;
    gap: 3px;
}

.nx-svc-crypto-name strong {
    color: #e3edf7;
    font-size: 10px;
}

.nx-svc-crypto-name small,
.nx-svc-asset-type {
    color: #8291a4;
    font-size: 8px;
}

.nx-svc-asset-type {
    letter-spacing: .5px;
}

.nx-svc-coin {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.nx-svc-btc { background: rgba(255, 154, 35, .14); color: #ffad4c; }
.nx-svc-eth { background: rgba(107, 133, 255, .15); color: #a6b3ff; }
.nx-svc-usdt { background: rgba(54, 203, 159, .14); color: #63d2bd; }

.nx-svc-secondary-services {
    margin-top: 16px;
}

.nx-svc-small-service-card {
    min-height: 150px;
    padding: 21px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-radius: 8px;
    transition: transform .25s ease, border-color .25s ease;
}

.nx-svc-small-service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(75, 183, 255, .32);
}

.nx-svc-small-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

.nx-svc-small-icon svg {
    width: 20px;
}

.nx-svc-small-service-content h3 {
    margin: 7px 0 8px;
    font-size: 14px;
    line-height: 1.4;
}

.nx-svc-small-service-content p {
    font-size: 11px;
}

.nx-svc-service-reveal-pending {
    opacity: 0;
    transform: translateY(22px);
}

.nx-svc-service-reveal-pending.nx-svc-is-visible {
    animation: nexoraServiceReveal .65s ease var(--reveal-delay, 0ms) both;
}

@keyframes nexoraServiceReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nexoraServiceRotate {
    to { transform: rotate(360deg); }
}

@media (max-width: 1000px) {
    .nx-svc-primary-services,
    .nx-svc-secondary-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .nx-svc-services-section {
        padding: 72px 0 78px;
    }

    .nx-svc-services-container {
        width: calc(100% - 36px);
    }

    .nx-svc-services-heading {
        margin-bottom: 34px;
    }

    .nx-svc-services-heading h2 {
        font-size: clamp(32px, 8vw, 40px);
    }

    .nx-svc-services-heading > p {
        font-size: 13px;
    }

    .nx-svc-primary-services,
    .nx-svc-secondary-services {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .nx-svc-service-card {
        min-height: 0;
        padding: 22px;
    }

    .nx-svc-service-demo {
        width: 100%;
        margin-top: 22px;
    }

    .nx-svc-secondary-services {
        margin-top: 12px;
    }

    .nx-svc-small-service-card {
        min-height: 0;
        padding: 18px;
    }
}

@media (max-width: 360px) {
    .nx-svc-services-container {
        width: calc(100% - 28px);
    }

    .nx-svc-service-card {
        padding: 18px;
    }

    .nx-svc-bot-processing {
        gap: 14px;
    }

    .nx-svc-processing-circle {
        width: 76px;
        height: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-svc-processing-circle {
        animation: none;
    }
}


/* Keep the reference typography independent of the legacy page defaults. */
.nx-svc-services-section { color: #eef5ff; scroll-margin-top: 84px; }
.nx-svc-services-section h2, .nx-svc-services-section h3,
.nx-svc-services-section p { margin-top: 0; }
.nx-svc-services-heading h2 { margin-bottom: 0; letter-spacing: -1.5px; }
.nx-svc-service-card-content p, .nx-svc-small-service-content p { margin-bottom: 0; }
.nx-svc-processing-inner { animation: nexoraServiceRotate 12s linear infinite reverse; }
@media (prefers-reduced-motion: reduce) {
    .nx-svc-services-section *, .nx-svc-services-section *::before {
        animation: none !important;
        transition: none !important;
    }
    .nx-svc-service-reveal-pending { opacity: 1; transform: none; }
}
