﻿/* ============================================================
           NX Connect Landing — page-scoped styles
           Built on Bootstrap 5 utilities. Custom rules below are only
           for tokens, gradients, and components Bootstrap doesn't ship.
           Prefix everything with .nxc- to avoid collisions with Crafto.
           ============================================================ */
:root {
    --nxc-teal: #0eb8c9;
    --nxc-teal-2: #00bbb0;
    --nxc-blue: #0f95c9;
    --nxc-navy: #05375f;
    --nxc-navy-deep: #03263f;
    --nxc-ink: #111827;
    --nxc-body: #4b5563;
    --nxc-muted: #6b7280;
    --nxc-line: #e5e7eb;
    --nxc-line-soft: #f1f5f9;
    --nxc-bg-soft: #f8fafc; /* slate-50 */
    --nxc-bg-soft-2: #f1f5f9; /* slate-100 */
}

/* Page typography (Crafto can override globally; this is fallback) */
body.nxc-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--nxc-ink);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Color utility classes ---------- */
.nxc-text-navy {
    color: var(--nxc-navy) !important;
}

.nxc-text-teal {
    color: var(--nxc-teal) !important;
}

.nxc-text-body {
    color: var(--nxc-body) !important;
}

.nxc-text-muted {
    color: var(--nxc-muted) !important;
}

.nxc-bg-navy {
    background-color: var(--nxc-navy) !important;
}

.nxc-bg-navy-deep {
    background-color: var(--nxc-navy-deep) !important;
}

.nxc-bg-teal {
    background-color: var(--nxc-teal) !important;
}

.nxc-bg-soft {
    background-color: var(--nxc-bg-soft) !important;
}

/* ---------- Gradient utilities ---------- */
.nxc-bg-gradient {
    background-image: linear-gradient(90deg, var(--nxc-blue) 0%, var(--nxc-teal-2) 100%);
    color: #fff;
}

.nxc-text-gradient {
    background-image: linear-gradient(90deg, var(--nxc-blue) 0%, var(--nxc-teal-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nxc-hero-bg {
    background-image: linear-gradient(135deg, var(--nxc-bg-soft) 0%, var(--nxc-bg-soft-2) 100%);
}

/* ---------- Buttons (extend Bootstrap btn) ---------- */
.nxc-btn-teal {
    background-color: var(--nxc-teal);
    border-color: var(--nxc-teal);
    color: #fff;
}

    .nxc-btn-teal:hover,
    .nxc-btn-teal:focus {
        background-color: #0aa5b4;
        border-color: #0aa5b4;
        color: #fff;
    }

.nxc-btn-gradient {
    background-image: linear-gradient(90deg, var(--nxc-blue) 0%, var(--nxc-teal-2) 100%);
    border: 0;
    color: #fff;
}

    .nxc-btn-gradient:hover {
        opacity: .92;
        color: #fff;
    }

.nxc-btn-outline-navy {
    border: 1px solid rgba(5,55,95,.20);
    color: var(--nxc-navy);
    background: #fff;
}

    .nxc-btn-outline-navy:hover {
        background: rgba(5,55,95,.04);
        color: var(--nxc-navy);
    }

/* ---------- Reusable badge / pill ---------- */
.nxc-pill-teal {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem 1rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--nxc-teal);
    background: rgba(14,184,201,.10);
    border: 1px solid rgba(14,184,201,.30);
    border-radius: 999px;
}

/* ---------- Section spacing utility ---------- */
.nxc-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ---------- Browser-mock chrome (used by hero & widget mockup) ---------- */
.nxc-browser {
    background: #fff;
    border: 1px solid var(--nxc-line);
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}

.nxc-browser-bar {
    background: #f3f4f6;
    border-bottom: 1px solid var(--nxc-line);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nxc-browser-dots {
    display: flex;
    gap: .375rem;
}

.nxc-browser-dot {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: #d1d5db;
}

    .nxc-browser-dot.red {
        background: #f87171;
    }

    .nxc-browser-dot.yellow {
        background: #facc15;
    }

    .nxc-browser-dot.green {
        background: #4ade80;
    }

.nxc-browser-url {
    flex: 1;
    margin: 0 1rem;
    background: #fff;
    border: 1px solid var(--nxc-line);
    border-radius: .375rem;
    padding: .375rem .75rem;
    font-size: .8125rem;
    color: var(--nxc-muted);
}

/* ---------- Widget preview (the mock NexCite tool inside browser) ---------- */
.nxc-widget-card {
    background: #fff;
    border: 1px solid var(--nxc-line);
    border-radius: .5rem;
    overflow: hidden;
}

.nxc-widget-header {
    background: #334155; /* slate-700 */
    color: #fff;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 500;
}

.nxc-tab {
    padding: .75rem 1.5rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--nxc-muted);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

    .nxc-tab.active {
        color: var(--nxc-teal);
        border-bottom-color: var(--nxc-teal);
    }

.nxc-field-label {
    font-size: .6875rem;
    font-weight: 500;
    color: var(--nxc-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
    margin-bottom: .25rem;
}

.nxc-field {
    height: 2.25rem;
    padding: 0 .75rem;
    display: flex;
    align-items: center;
    border: 1px solid var(--nxc-line);
    border-radius: .375rem;
    font-size: .875rem;
    color: #9ca3af;
    background: #f9fafb;
}

/* ---------- Floating accent badges over hero preview ---------- */
.nxc-float-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--nxc-line);
    border-radius: .5rem;
    padding: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.10);
}

.nxc-float-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .nxc-float-icon.teal {
        background: rgba(14,184,201,.10);
        color: var(--nxc-teal);
    }

    .nxc-float-icon.navy {
        background: rgba(5,55,95,.10);
        color: var(--nxc-navy);
    }

@media (min-width: 992px) {
    .nxc-float-left {
        left: -7rem;
        top: 33%;
    }

    .nxc-float-right {
        right: -7rem;
        top: 50%;
    }
}

/* ---------- Feature row (icon tile + title + copy) ---------- */
.nxc-feature-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

    .nxc-feature-row:last-child {
        border-bottom: 0;
    }

.nxc-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .5rem;
    background-image: linear-gradient(135deg, var(--nxc-blue) 0%, var(--nxc-teal-2) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Step number circle ---------- */
.nxc-step-num {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--nxc-teal);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ---------- Pricing card ---------- */
.nxc-price-card {
    width: 100%;
    max-width: 350px;
    background: #fff;
    border: 1px solid var(--nxc-line);
    border-radius: .75rem;
    padding: 2rem;
}

    .nxc-price-card.dark {
        background: var(--nxc-navy);
        border-color: var(--nxc-navy);
        color: #fff;
        position: relative;
        overflow: hidden;
    }

.nxc-price-col {
    display: flex;
    width: 100%;
    max-width: 350px;
    font-size: 13px;
}

.nxc-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.nxc-price-feature {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 13px;
    color: var(--nxc-body);
}

    .nxc-price-feature.light {
        color: rgba(255,255,255,.9);
    }

    .nxc-price-feature i {
        color: var(--nxc-teal);
        font-size: 13px;
    }

/* ---------- FAQ card ---------- */
.nxc-faq {
    background: #fff;
    border: 1px solid var(--nxc-line);
    border-radius: .5rem;
    padding: 1.5rem;
}

/* ---------- Mini result card inside widget mockup ---------- */
.nxc-result {
    display: flex;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid var(--nxc-line);
    border-radius: .5rem;
    background: #fff;
}

    .nxc-result.highlight {
        border-color: var(--nxc-teal);
        background: rgba(14,184,201,.05);
    }

.nxc-result-thumb {
    width: 4rem;
    height: 4rem;
    border-radius: .375rem;
    background-image: linear-gradient(135deg, rgba(5,55,95,.10), rgba(14,184,201,.20));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(5,55,95,.40);
    flex-shrink: 0;
}

/* ---------- Inner widget tabs (smaller, used in left-side mockup) ---------- */
.nxc-mini-tab {
    padding: .375rem .625rem;
    border-radius: .375rem;
    font-size: .75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

    .nxc-mini-tab.active {
        background: var(--nxc-navy);
        color: #fff;
    }

    .nxc-mini-tab.idle {
        background: #f3f4f6;
        color: var(--nxc-body);
    }

.nxc-mini-field {
    background: #fff;
    border: 1px solid var(--nxc-line);
    border-radius: .5rem;
    padding: .625rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--nxc-navy);
}

/* ---------- Heading helpers ---------- */
.nxc-h1 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--nxc-navy);
    letter-spacing: -.01em;
}

@media (max-width: 768px) {
    .nxc-h1 {
        font-size: 3.5rem;
    }
}

.nxc-h2 {
    font-weight: 700;
    color: var(--nxc-navy);
}

.nxc-lead {
    font-size: 1.125rem;
    color: var(--nxc-body);
    line-height: 1.6;
}

.nxc-lead-lg {
    font-size: 1.25rem;
    color: var(--nxc-body);
    line-height: 1.6;
}

a.nxc-link-teal {
    color: var(--nxc-teal);
    text-decoration: none;
}

    a.nxc-link-teal:hover {
        color: #39dbbd;
    }

