:root {
    --nx-ink: #0b1f33;
    --nx-ink-soft: #16324d;
    --nx-paper: #f4efe6;
    --nx-card: #fffdf8;
    --nx-accent: #e8a317;
    --nx-accent-ink: #3b2a08;
    --nx-line: rgba(11, 31, 51, 0.12);
    --nx-ok: #1f8a70;
    --nx-banner-h: 2.25rem;
    --nx-sidebar-w: 260px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

.nx-body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--nx-paper);
    color: var(--nx-ink);
    min-height: 100vh;
}

.nx-demo-banner {
    position: sticky;
    top: 0;
    z-index: 40;
    box-sizing: border-box;
    height: var(--nx-banner-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nx-ink);
    color: #f4efe6;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 1rem;
}

.nx-nav a { color: var(--nx-ink); text-decoration: none; font-weight: 600; }
.nx-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}
.nx-brand em { font-style: normal; color: var(--nx-accent); }

.nx-hero, .nx-section { padding: 4.5rem 0; }
.nx-hero { background: linear-gradient(160deg, #0b1f33 0%, #16324d 62%, #1f4a6e 100%); color: #f8f3ea; }
.nx-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; margin-bottom: 1rem; }
.nx-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--nx-accent); }
.nx-lead { font-size: 1.1rem; max-width: 42rem; opacity: 0.92; }

.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nx-accent);
    color: var(--nx-accent-ink);
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.3rem;
    text-decoration: none;
}
.nx-btn-ghost {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
}

.nx-card {
    background: var(--nx-card);
    color: var(--nx-ink);
    border: 1px solid var(--nx-line);
    border-radius: 1.1rem;
    padding: 1.4rem;
    box-shadow: 0 16px 40px rgba(11, 31, 51, 0.06);
}
.nx-stat-card ul, .nx-plain { list-style: none; padding: 0; margin: 1rem 0; }
.nx-stat-card li, .nx-plain li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--nx-line);
    padding: 0.55rem 0;
}
.nx-step {
    display: inline-block;
    font-weight: 800;
    color: var(--nx-accent);
    margin-bottom: 0.4rem;
}

.nx-footer {
    border-top: 1px solid var(--nx-line);
    padding: 1.5rem 0 2rem;
    color: #4a5b6b;
    font-size: 0.92rem;
}

code { background: #efe7d8; padding: 0.1rem 0.35rem; border-radius: 0.3rem; }

.nx-shell {
    display: block;
    min-height: calc(100vh - var(--nx-banner-h));
}
.nx-sidebar {
    position: fixed;
    top: var(--nx-banner-h);
    left: 0;
    bottom: 0;
    width: var(--nx-sidebar-w);
    z-index: 30;
    background: var(--nx-ink);
    color: #f4efe6;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}
.nx-sidebar .nx-brand { color: #f4efe6; flex-shrink: 0; }
.nx-side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.nx-side-nav a {
    color: #d7e0ea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
}
.nx-side-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nx-side-user {
    font-size: 0.92rem;
    flex-shrink: 0;
    margin-top: auto;
}
.nx-side-user span { display: block; opacity: 0.75; }
.nx-main {
    margin-left: var(--nx-sidebar-w);
    min-width: 0;
    min-height: calc(100vh - var(--nx-banner-h));
}
.nx-topbar {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--nx-line);
    background: rgba(255,253,248,0.8);
}
.nx-content { padding: 1.5rem; }
.nx-kpi span { display: block; color: #5a6b7b; font-size: 0.9rem; }
.nx-kpi strong { font-size: 1.55rem; }
.nx-badge {
    display: inline-block;
    background: #efe7d8;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.nx-map {
    width: 100%;
    height: 420px;
    border-radius: 0.9rem;
    border: 1px solid var(--nx-line);
    background: #d9e2ec;
}
.nx-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nx-timeline li {
    border-left: 3px solid var(--nx-accent);
    padding: 0 0 1rem 1rem;
    margin-left: 0.35rem;
}
.nx-quote {
    background: #efe7d8;
    border-radius: 0.8rem;
    padding: 0.9rem 1rem;
}

@media (max-width: 900px) {
    .nx-sidebar {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
    }
    .nx-side-nav { overflow: visible; }
    .nx-main { margin-left: 0; min-height: 0; }
    .nx-map { height: 300px; }
}
