/* ==========================================================================
   NEXVORK.AI — ABOUT PAGE (prefix: nxa-)
   Loaded after index.css; only page-specific layers live here.
   ========================================================================== */

/* Shared shell addition — .logo-ai (identical on every page) */
.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, never body text */
.nxa-mono {
    font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.nxa-hero {
    padding: 110px 0 70px;
    overflow: hidden;
    position: relative;
}

.nxa-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.nxa-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-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    text-transform: lowercase;
}

.nxa-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: nxaPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes nxaPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.35); opacity: 0.55; }
}

.nxa-hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.07;
    margin: 0 0 22px;
    color: var(--text);
}

.nxa-hero-sub {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 30px;
    line-height: 1.65;
}

.nxa-hero-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nxa-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-subtle);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.nxa-chip:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
}

/* ==========================================================================
   STORY — copy + nx-core lineage console
   ========================================================================== */
.nxa-story {
    padding-top: 40px;
}

.nxa-story-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.nxa-story-copy .sec-eyebrow { margin-bottom: 16px; }

.nxa-story-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 22px;
    color: var(--text);
}

.nxa-story-copy p {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 18px;
}
.nxa-story-copy p a {
    color: var(--brand-purple);
    font-weight: 600;
    border-bottom: 1px solid rgba(130, 62, 157, 0.35);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.nxa-story-copy p a:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

/* Console card */
.nxa-core-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.nxa-core-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    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.45;
    pointer-events: none;
}

.nxa-core-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.nxa-core-dots { display: inline-flex; gap: 6px; }
.nxa-core-dots i {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--border-strong);
    display: inline-block;
}
.nxa-core-dots i:nth-child(1) { background: #EF4444; opacity: 0.75; }
.nxa-core-dots i:nth-child(2) { background: #F59E0B; opacity: 0.75; }
.nxa-core-dots i:nth-child(3) { background: var(--accent-emerald); opacity: 0.75; }
.nxa-core-path {
    font-size: 0.7rem;
    color: var(--text-subtle);
}

.nxa-core-body {
    padding: 22px 20px 18px;
    font-size: 0.8rem;
    line-height: 2.05;
    color: var(--text-muted);
}
.nxa-core-line { white-space: normal; overflow-wrap: anywhere; }
.nxa-core-cmd { color: var(--text-subtle); }
.nxa-core-cmd::first-letter { color: var(--accent-cyan); }
.nxa-tree { color: var(--text-faint); }
.nxa-core-key {
    color: var(--text);
    font-weight: 700;
}
.nxa-core-val { color: var(--text-muted); }
.nxa-core-year {
    color: var(--brand-blue);
    font-weight: 600;
}
.nxa-core-ok { color: var(--accent-emerald); font-weight: 600; }
.nxa-core-tick {
    display: inline-grid;
    place-items: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.14);
    font-size: 0.65rem;
    margin-right: 4px;
}
.nxa-core-cursor {
    color: var(--brand-purple);
    animation: nxaBlink 1.1s steps(2, start) infinite;
}
@keyframes nxaBlink { to { visibility: hidden; } }

/* ==========================================================================
   TIMELINE — circuit spine with glowing nodes
   ========================================================================== */
.nxa-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 0;
}
/* the spine */
.nxa-timeline::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        transparent,
        var(--brand-purple) 12%,
        var(--brand-blue) 55%,
        var(--accent-cyan) 88%,
        transparent);
    opacity: 0.45;
}

.nxa-tl-item {
    position: relative;
    width: 50%;
    padding: 0 48px 44px 0;
}
.nxa-tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 44px 48px;
}
.nxa-tl-item:last-child { padding-bottom: 8px; }

.nxa-tl-node {
    position: absolute;
    top: 26px;
    right: -7px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--brand-purple);
    box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(130, 62, 157, 0.5);
    z-index: 1;
}
.nxa-tl-item:nth-child(even) .nxa-tl-node {
    right: auto;
    left: -7px;
}
.nxa-tl-node-live {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent-emerald);
    animation: nxaPulse 2s ease-in-out infinite;
}

.nxa-tl-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.nxa-tl-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-brand);
}
.nxa-tl-card-live { border-color: rgba(16, 185, 129, 0.4); }
.nxa-tl-card-live:hover { border-color: var(--accent-emerald); }

.nxa-tl-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--brand-purple);
    background: var(--grad-brand-soft);
    padding: 4px 10px;
    border-radius: 5px;
    margin-bottom: 12px;
}
.nxa-tl-card-live .nxa-tl-tag {
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
}

.nxa-tl-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.nxa-tl-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   VALUES
   ========================================================================== */
.nxa-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    perspective: 1500px;
}

.nxa-value {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.nxa-value::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    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;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
}
.nxa-value:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-brand);
}
.nxa-value:hover::before { opacity: 1; }

.nxa-value-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.nxa-value:hover .nxa-value-icon {
    background: var(--grad-brand);
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}

.nxa-value-tag {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.nxa-value h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.nxa-value p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   REGISTERED OFFICE
   ========================================================================== */
.nxa-office-sec { padding-top: 20px; }

.nxa-office-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.nxa-office-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;
    z-index: 2;
}

.nxa-office-info {
    padding: 48px 44px;
    position: relative;
    z-index: 1;
}

.nxa-office-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--text-subtle);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 18px;
}
.nxa-office-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    flex-shrink: 0;
}

.nxa-office-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 14px;
}

.nxa-office-addr {
    font-style: normal;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 460px;
}

.nxa-office-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.nxa-office-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.nxa-office-meta svg { color: var(--brand-purple); flex-shrink: 0; }
.nxa-office-meta a { transition: color 0.3s ease; }
.nxa-office-meta a:hover { color: var(--brand-purple); }

.nxa-office-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Decorative coordinates panel */
.nxa-office-visual {
    position: relative;
    min-height: 320px;
    background: var(--bg-subtle);
    border-left: 1px solid var(--border);
    overflow: hidden;
}
.nxa-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.55;
    -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 30%, transparent 78%);
            mask-image: radial-gradient(circle at 50% 46%, #000 30%, transparent 78%);
}
.nxa-map-ring {
    position: absolute;
    top: 46%; left: 50%;
    width: 150px; height: 150px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(130, 62, 157, 0.45);
    border-radius: 50%;
    animation: nxaRing 3.2s var(--ease-out) infinite;
}
@keyframes nxaRing {
    0%   { transform: translate(-50%, -50%) scale(0.35); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}
.nxa-map-pin {
    position: absolute;
    top: 46%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-brand);
}
.nxa-map-coords {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-subtle);
    text-align: center;
    line-height: 1.7;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    white-space: nowrap;
}

/* ==========================================================================
   STATS tweak (page-local)
   ========================================================================== */
.nxa-stats { margin-top: 20px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .nxa-values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nxa-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .nxa-office-card { grid-template-columns: 1fr; }
    .nxa-office-visual {
        border-left: none;
        border-top: 1px solid var(--border);
        min-height: 260px;
    }

    /* Timeline: single left rail */
    .nxa-timeline::before {
        left: 8px;
        transform: none;
    }
    .nxa-tl-item,
    .nxa-tl-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 36px 36px;
    }
    .nxa-tl-node,
    .nxa-tl-item:nth-child(even) .nxa-tl-node {
        right: auto;
        left: 2px;
    }
}

@media (max-width: 600px) {
    .nxa-hero { padding: 90px 0 56px; }
    .nxa-values-grid { grid-template-columns: 1fr; }
    .nxa-office-info { padding: 32px 24px; }
    .nxa-core-body { font-size: 0.72rem; padding: 18px 14px 14px; }
    .nxa-hero-chips { gap: 6px; }
    .nxa-chip { font-size: 0.62rem; padding: 5px 9px; }
    .nxa-office-actions .btn-primary,
    .nxa-office-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .nxa-map-coords { font-size: 0.62rem; padding: 7px 10px; }
}

/* ==========================================================================
   REDUCED MOTION — kill everything this page adds
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .nxa-eyebrow-dot,
    .nxa-tl-node-live,
    .nxa-core-cursor,
    .nxa-map-ring {
        animation: none !important;
    }
    .nxa-map-ring { opacity: 0.35; transform: translate(-50%, -50%) scale(1); }
    .nxa-core-cursor { visibility: hidden; }
    .nxa-tl-card:hover,
    .nxa-value:hover,
    .nxa-chip:hover {
        transform: none;
    }
}
