/* ==========================================================================
   NEXVORK.AI — SERVICES PAGE (prefix: nxs-)
   Loads after index.css. Only page-specific styles live here.
   ========================================================================== */

/* --- Shared shell addition (identical on every page, per spec §4) --------- */
.logo-ai {
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- Mono utility voice (micro-labels only) ------------------------------- */
.nxs-mono {
    font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    letter-spacing: 0.06em;
}

/* --- Pulsing circuit node (the page's small AI accent) -------------------- */
.nxs-node {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    flex-shrink: 0;
    animation: nxsNodePulse 2.2s ease-in-out infinite;
}
@keyframes nxsNodePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.8); }
}

/* ==========================================================================
   HERO (short variant of index.css .hero)
   ========================================================================== */
.nxs-hero { padding: 88px 0 40px; }
.nxs-hero .hero-inner { margin-bottom: 0; }
.nxs-hero .hero-title { font-size: clamp(2.3rem, 5vw, 4.2rem); }

.nxs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   INDUSTRY INDEX
   ========================================================================== */
.nxs-index { padding-top: 60px; scroll-margin-top: 88px; }

.nxs-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    perspective: 2000px;
}
@media (max-width: 900px) { .nxs-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nxs-index-grid { grid-template-columns: 1fr; } }

.nxs-index-card { display: block; }
.nxs-index-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 12px 0 6px;
}
.nxs-index-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 26px;
}
.nxs-index-go {
    position: absolute;
    right: 22px;
    bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-faint);
    transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.nxs-index-card:hover .nxs-index-go {
    color: var(--brand-purple);
    transform: translateX(4px);
}

/* Mono chip (index cards + real-estate bar) */
.nxs-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--brand-purple);
    background: var(--grad-brand-soft);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

/* ==========================================================================
   INDUSTRY DEEP BLOCKS
   ========================================================================== */
.nxs-block {
    padding: 90px 0;
    scroll-margin-top: 88px;
}
.nxs-block + .nxs-block { border-top: 1px solid var(--border-subtle); }
.nxs-flip { background: var(--bg-elevated); }

.nxs-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.nxs-flip .nxs-copy { order: 2; }
.nxs-flip .nxs-panel { order: 1; }

@media (max-width: 960px) {
    .nxs-split { grid-template-columns: 1fr; gap: 36px; }
    .nxs-flip .nxs-copy { order: 1; }
    .nxs-flip .nxs-panel { order: 2; }
}

/* --- Copy column ---------------------------------------------------------- */
.nxs-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand-purple);
    background: var(--grad-brand-soft);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.nxs-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--text);
    margin: 0 0 16px;
}

.nxs-intro {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}

/* Pain bullets — small ✕ markers */
.nxs-pains {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 28px;
}
.nxs-pains li {
    position: relative;
    padding-left: 30px;
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.nxs-pains li::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 1px;
    width: 19px;
    height: 19px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

/* --- AI moment terminal card ---------------------------------------------- */
.nxs-ai {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-purple);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    overflow: hidden;
}
.nxs-flip .nxs-ai { background: var(--bg); }
.nxs-ai::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(130, 62, 157, 0.08), transparent 55%);
    pointer-events: none;
}
.nxs-ai-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-subtle);
    margin-bottom: 10px;
}
.nxs-ai-cmd {
    display: block;
    font-size: 0.82rem;
    color: var(--brand-blue);
    margin-bottom: 8px;
    overflow-wrap: break-word;
}
.dark .nxs-ai-cmd { color: var(--brand-blue-light); }
.nxs-ai-out {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}
.nxs-caret {
    display: inline-block;
    width: 7px;
    height: 0.95em;
    margin-left: 5px;
    vertical-align: text-bottom;
    background: var(--accent-cyan);
    animation: nxsCaretBlink 1.1s steps(1) infinite;
}
@keyframes nxsCaretBlink {
    0%, 49%  { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* --- Feature panel (console card) ----------------------------------------- */
.nxs-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.nxs-panel:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-brand);
}
.nxs-panel-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}
.nxs-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-strong);
}
.nxs-dot:nth-child(1) { background: rgba(239, 68, 68, 0.55); }
.nxs-dot:nth-child(2) { background: rgba(245, 158, 11, 0.55); }
.nxs-dot:nth-child(3) { background: rgba(16, 185, 129, 0.55); }
.nxs-panel-title {
    margin-left: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature list inside the panel (reuses index.css .ai-list) */
.nxs-feats {
    padding: 16px;
    gap: 8px;
}
.nxs-feats li { background: var(--bg); }
.nxs-flip .nxs-feats li { background: var(--bg-elevated); }

/* ==========================================================================
   CUSTOM / DYNAMIC CRM BLOCK
   ========================================================================== */
.nxs-custom { background: var(--bg); }
.nxs-custom-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 56px 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.nxs-custom-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.35;
    pointer-events: none;
}
.nxs-custom-card > * { position: relative; z-index: 1; }
.nxs-custom-intro {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.nxs-rename {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 auto 32px;
    max-width: 560px;
}
.nxs-rename-line {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-align: left;
    overflow-wrap: break-word;
    transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.nxs-rename-line:hover {
    border-color: var(--brand-purple);
    transform: translateX(4px);
}
.nxs-rename-fn { color: var(--brand-purple); font-weight: 600; }
.dark .nxs-rename-fn { color: var(--brand-purple-light); }

.nxs-custom-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   PLATFORM SERVICES STRIP
   ========================================================================== */
.nxs-platform {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
}

.nxs-svc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    perspective: 1500px;
}
@media (max-width: 1024px) { .nxs-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .nxs-svc-grid { grid-template-columns: 1fr; } }

.nxs-platform .wf-step { background: var(--bg); }
.nxs-platform .wf-step h3 { font-size: 1.1rem; }
.nxs-platform .wf-step p { font-size: 0.9rem; }

/* Real-estate cross-link bar */
.nxs-re-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
    padding: 18px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.nxs-re-bar p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.nxs-re-bar a {
    color: var(--brand-purple);
    font-weight: 600;
    transition: color 0.3s ease;
}
.nxs-re-bar a:hover { color: var(--brand-blue); }

/* ==========================================================================
   RESPONSIVE FLOOR (360px) & MOTION
   ========================================================================== */
@media (max-width: 768px) {
    .nxs-block { padding: 64px 0; }
    .nxs-custom-card { padding: 40px 20px; }
    .nxs-ai-cmd { font-size: 0.74rem; }
    .nxs-rename-line { font-size: 0.72rem; }
}
@media (max-width: 400px) {
    .nxs-panel-head { padding: 10px 12px; }
    .nxs-feats { padding: 10px; }
    .nxs-tag { font-size: 0.64rem; padding: 5px 10px; }
    .nxs-eyebrow { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
    .nxs-node,
    .nxs-caret,
    .nxs-index-go,
    .nxs-rename-line {
        animation: none !important;
        transition: none !important;
    }
    .nxs-caret { opacity: 1; }
}
