/**
 * NexxTechnologies - Case Studies Management System Master CSS
 * Editorial Architecture: AI Era, DM Sans, #111318 background, #B1E50E neon lime accents, centered headers, responsive bento grid.
 */

:root {
    --nx-bg-primary: #111318;
    --nx-bg-secondary: #191D26;
    --nx-bg-card: #151922;
    --nx-bg-card-hover: #1c2230;
    --nx-accent: #B1E50E;
    --nx-accent-rgb: 177, 229, 14;
    --nx-accent-hover: #C4F82A;
    --nx-text-white: #FFFFFF;
    --nx-text-muted: #9CA3AF;
    --nx-text-light: #E5E7EB;
    --nx-border-glass: rgba(255, 255, 255, 0.08);
    --nx-border-accent: rgba(177, 229, 14, 0.3);
    --nx-glow-accent: 0 0 35px rgba(177, 229, 14, 0.2);
    --nx-font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nx-transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Master Scope */
.cs-master-wrap {
    background-color: var(--nx-bg-primary);
    color: var(--nx-text-white);
    font-family: var(--nx-font-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

.cs-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}

/* Base Section Styling */
.cs-section {
    padding: 96px 0;
    position: relative;
    border-bottom: 1px solid var(--nx-border-glass);
}

.cs-section:last-of-type {
    border-bottom: none;
}

/* ==========================================================================
   AI-ERA CENTERED SECTION HEADERS
   ========================================================================== */
.cs-section-header {
    margin: 0 auto 56px auto;
    max-width: 840px;
    text-align: center;
}

.cs-section-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.14em !important;
    font-weight: 700 !important;
    color: var(--nx-accent) !important;
    background: rgba(177, 229, 14, 0.08) !important;
    border: 1px solid rgba(177, 229, 14, 0.25) !important;
    padding: 6px 16px !important;
    border-radius: 99px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 0 20px rgba(177, 229, 14, 0.08) !important;
}

.cs-section-title {
    font-size: clamp(28px, 3.6vw, 44px) !important;
    font-weight: 800 !important;
    color: var(--nx-text-white) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    margin: 0 auto 16px auto !important;
    text-align: center !important;
}

.cs-section-desc {
    font-size: clamp(15px, 1.6vw, 17px) !important;
    color: var(--nx-text-muted) !important;
    line-height: 1.6 !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Badges */
.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cs-badge--num {
    background: rgba(177, 229, 14, 0.12);
    border: 1px solid var(--nx-border-accent);
    color: var(--nx-accent);
}

.cs-badge--industry {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--nx-border-glass);
    color: var(--nx-text-light);
}

.cs-badge--scenario {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #FACC15;
}

/* ==========================================================================
   BUTTONS & ALL INTERACTIVE STATES
   ========================================================================== */
.cs-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 15px 32px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease !important;
}

/* PRIMARY BUTTON - Default State */
a.cs-btn--primary,
button.cs-btn--primary,
.cs-btn--primary {
    background: #B1E50E !important;
    color: #0B0F19 !important;
    -webkit-text-fill-color: #0B0F19 !important;
    border: 1px solid #B1E50E !important;
    box-shadow: 0 10px 25px -5px rgba(177, 229, 14, 0.4) !important;
}

a.cs-btn--primary span,
a.cs-btn--primary strong,
.cs-btn--primary span,
.cs-btn--primary strong {
    color: #0B0F19 !important;
    -webkit-text-fill-color: #0B0F19 !important;
    font-weight: 700 !important;
}

a.cs-btn--primary svg,
.cs-btn--primary svg,
a.cs-btn--primary .cs-btn-icon,
.cs-btn--primary .cs-btn-icon {
    stroke: #0B0F19 !important;
    color: #0B0F19 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* PRIMARY BUTTON - Visited State */
a.cs-btn--primary:visited,
.cs-btn--primary:visited {
    color: #0B0F19 !important;
    -webkit-text-fill-color: #0B0F19 !important;
}

a.cs-btn--primary:visited span,
.cs-btn--primary:visited span {
    color: #0B0F19 !important;
    -webkit-text-fill-color: #0B0F19 !important;
}

a.cs-btn--primary:visited svg,
.cs-btn--primary:visited svg {
    stroke: #0B0F19 !important;
    color: #0B0F19 !important;
}

/* PRIMARY BUTTON - Hover State */
a.cs-btn--primary:hover,
button.cs-btn--primary:hover,
.cs-btn--primary:hover {
    background: #C4F82A !important;
    border-color: #C4F82A !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 16px 36px -6px rgba(177, 229, 14, 0.6), 0 0 24px rgba(196, 248, 42, 0.4) !important;
}

a.cs-btn--primary:hover span,
.cs-btn--primary:hover span {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

a.cs-btn--primary:hover svg,
.cs-btn--primary:hover svg,
a.cs-btn--primary:hover .cs-btn-icon,
.cs-btn--primary:hover .cs-btn-icon {
    stroke: #000000 !important;
    color: #000000 !important;
    transform: translateX(5px) !important;
}

/* PRIMARY BUTTON - Active / Pressed State */
a.cs-btn--primary:active,
button.cs-btn--primary:active,
.cs-btn--primary:active {
    background: #9FD000 !important;
    border-color: #9FD000 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    transform: translateY(0px) scale(0.98) !important;
    box-shadow: 0 6px 14px -3px rgba(177, 229, 14, 0.45) !important;
}

a.cs-btn--primary:active span,
.cs-btn--primary:active span {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

a.cs-btn--primary:active svg,
.cs-btn--primary:active svg {
    stroke: #000000 !important;
    color: #000000 !important;
    transform: translateX(2px) !important;
}

/* PRIMARY BUTTON - Focus / Focus-Visible State */
a.cs-btn--primary:focus-visible,
button.cs-btn--primary:focus-visible,
.cs-btn--primary:focus-visible {
    outline: 2px solid #FFFFFF !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 4px rgba(177, 229, 14, 0.5), 0 10px 25px -5px rgba(177, 229, 14, 0.4) !important;
}

/* SECONDARY BUTTON */
.cs-btn--secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--nx-text-white) !important;
    border: 1px solid var(--nx-border-glass) !important;
}

.cs-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #B1E50E !important;
    border-color: rgba(177, 229, 14, 0.4) !important;
    transform: translateY(-2px) !important;
}

.cs-btn--secondary:hover svg {
    transform: translateX(4px) !important;
}

/* OUTLINE BUTTON */
.cs-btn--outline {
    background: transparent !important;
    color: var(--nx-text-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.cs-btn--outline:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #B1E50E !important;
    border-color: rgba(177, 229, 14, 0.5) !important;
    transform: translateY(-2px) !important;
}

.cs-btn-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

.cs-btn:hover .cs-btn-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   01 HERO (CENTERED & HIGH IMPACT)
   ========================================================================== */
.cs-hero-section {
    padding: 70px 0 90px;
    position: relative;
    background: radial-gradient(ellipse at 50% 0%, rgba(177, 229, 14, 0.1) 0%, transparent 65%);
    border-bottom: 1px solid var(--nx-border-glass);
}

.cs-hero-header {
    text-align: center;
    max-width: 1040px;
    margin: 0 auto 48px auto;
}

.cs-hero-meta-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.cs-hero-headline {
    font-size: clamp(34px, 4.8vw, 58px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.035em !important;
    color: var(--nx-text-white) !important;
    margin: 0 auto 20px auto !important;
    text-align: center !important;
    max-width: 980px !important;
}

.cs-hero-subtitle {
    font-size: clamp(16px, 1.8vw, 20px) !important;
    color: var(--nx-text-muted) !important;
    line-height: 1.55 !important;
    max-width: 840px !important;
    margin: 0 auto 32px auto !important;
    text-align: center !important;
}

.cs-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

/* Executive Architecture Brief Bento Card in Hero */
.cs-hero-context-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.85) 0%, rgba(17, 20, 28, 0.95) 100%);
    border: 1px solid rgba(177, 229, 14, 0.2);
    border-radius: 12px;
    padding: 22px 30px;
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cs-hero-context-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cs-context-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nx-accent);
    box-shadow: 0 0 10px var(--nx-accent);
    display: inline-block;
}

.cs-context-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--nx-accent);
}

.cs-hero-context-text {
    margin: 0;
    font-size: 14px;
    color: var(--nx-text-light);
    line-height: 1.6;
}

.cs-hero-banner-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #080b11;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(177, 229, 14, 0.2);
}

.cs-hero-banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ==========================================================================
   02 PROJECT OVERVIEW (BENTO GRID)
   ========================================================================== */
.cs-overview-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cs-overview-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.7) 0%, rgba(19, 23, 32, 0.9) 100%);
    border: 1px solid var(--nx-border-glass);
    border-radius: 12px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.25s var(--nx-transition);
}

.cs-overview-card:hover {
    border-color: var(--nx-border-accent);
    background: var(--nx-bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cs-overview-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--nx-text-muted);
    margin-bottom: 8px;
}

.cs-overview-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--nx-text-white);
    margin-bottom: 4px;
}

.cs-overview-sub {
    font-size: 13px;
    color: var(--nx-accent);
}

.cs-overview-card--highlight {
    grid-column: span 2;
    border-left: 3px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(21, 25, 34, 0.9) 100%);
}

.cs-overview-card--solution {
    border-left: 3px solid var(--nx-accent);
    background: linear-gradient(135deg, rgba(177, 229, 14, 0.05) 0%, rgba(21, 25, 34, 0.9) 100%);
}

.cs-overview-text {
    font-size: 14px;
    color: var(--nx-text-light);
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   03 CHALLENGES
   ========================================================================== */
.cs-challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.cs-challenge-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.7) 0%, rgba(19, 23, 32, 0.9) 100%);
    border: 1px solid var(--nx-border-glass);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s var(--nx-transition);
}

.cs-challenge-card:hover {
    border-color: rgba(239, 68, 68, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -10px rgba(239, 68, 68, 0.2);
}

.cs-challenge-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.cs-card-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--nx-accent);
    font-family: monospace;
}

.cs-impact-pill {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.cs-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--nx-text-white);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.cs-card-desc {
    font-size: 14px;
    color: var(--nx-text-muted);
    line-height: 1.6;
    margin: 0;
}

.cs-consequences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cs-consequence-box {
    padding: 26px;
    border-radius: 12px;
    background: rgba(25, 29, 38, 0.6);
    border: 1px solid var(--nx-border-glass);
}

.cs-consequence-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cs-consequence-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--nx-text-white);
}

.cs-icon--alert {
    stroke: #f87171;
}

.cs-consequence-box p {
    font-size: 13px;
    color: var(--nx-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   04 EXISTING PROCESS
   ========================================================================== */
.cs-stages-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.cs-stage-node {
    display: flex;
    gap: 24px;
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.7) 0%, rgba(19, 23, 32, 0.9) 100%);
    border: 1px solid var(--nx-border-glass);
    border-radius: 12px;
    padding: 24px 28px;
    transition: all 0.25s var(--nx-transition);
}

.cs-stage-node:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--nx-bg-card-hover);
    transform: translateY(-2px);
}

.cs-stage-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cs-stage-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(177, 229, 14, 0.08);
    border: 1px solid var(--nx-border-accent);
    font-size: 12px;
    font-weight: 800;
    color: var(--nx-accent);
}

.cs-stage-body {
    flex: 1;
}

.cs-stage-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.cs-stage-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--nx-text-white);
    margin: 0;
}

.cs-bottleneck-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 3px 10px;
    border-radius: 99px;
}

.cs-stage-text {
    font-size: 14px;
    color: var(--nx-text-muted);
    line-height: 1.55;
    margin: 0;
}

.cs-limitations-summary {
    background: rgba(25, 29, 38, 0.7);
    border-left: 3px solid #fbbf24;
    padding: 18px 24px;
    border-radius: 0 8px 8px 0;
}

.cs-limitations-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 6px;
}

.cs-limitations-summary p {
    font-size: 14px;
    color: var(--nx-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   05 PROPOSED SOLUTION
   ========================================================================== */
.cs-solution-quad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cs-solution-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.75) 0%, rgba(19, 23, 32, 0.95) 100%);
    border: 1px solid var(--nx-border-glass);
    border-radius: 14px;
    padding: 34px;
    transition: all 0.25s var(--nx-transition);
}

.cs-solution-card:hover {
    border-color: var(--nx-border-accent);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--nx-glow-accent);
}

.cs-solution-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(177, 229, 14, 0.1);
    border: 1px solid var(--nx-border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--nx-accent);
}

/* ==========================================================================
   06 WORKFLOW
   ========================================================================== */
.cs-workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.cs-workflow-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.75) 0%, rgba(19, 23, 32, 0.95) 100%);
    border: 1px solid var(--nx-border-glass);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.25s var(--nx-transition);
}

.cs-workflow-card:hover {
    border-color: var(--nx-border-accent);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35), var(--nx-glow-accent);
}

.cs-wf-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cs-wf-step-pill {
    font-size: 12px;
    font-weight: 800;
    color: var(--nx-accent);
    background: rgba(177, 229, 14, 0.1);
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid var(--nx-border-accent);
}

.cs-wf-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--nx-border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-accent);
}

.cs-wf-mode-pill {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--nx-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

.cs-wf-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--nx-text-white);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.cs-wf-desc {
    font-size: 13px;
    color: var(--nx-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   07 TECHNOLOGY STACK
   ========================================================================== */
.cs-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.cs-tech-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.7) 0%, rgba(19, 23, 32, 0.9) 100%);
    border: 1px solid var(--nx-border-glass);
    border-radius: 12px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s var(--nx-transition);
}

.cs-tech-card:hover {
    border-color: var(--nx-border-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cs-tech-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cs-tech-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(177, 229, 14, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-accent);
}

.cs-tech-cat-pill {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--nx-accent);
    background: rgba(177, 229, 14, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.cs-tech-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--nx-text-white);
    margin: 0 0 8px 0;
}

.cs-tech-role-strip {
    font-size: 12px;
    color: var(--nx-text-light);
    margin-bottom: 12px;
}

.cs-tech-role-label {
    font-weight: 700;
    color: var(--nx-accent);
    margin-right: 4px;
}

.cs-tech-desc {
    font-size: 13px;
    color: var(--nx-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   08 BEFORE VS AFTER COMPARISON (AI-ERA BENTO TABLE)
   ========================================================================== */
.cs-comparison-table-wrap {
    border: 1px solid var(--nx-border-glass);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.6) 0%, rgba(18, 21, 29, 0.95) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cs-cmp-header-row {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--nx-border-glass);
    padding: 20px 28px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.cs-cmp-col-dim {
    color: var(--nx-text-muted);
}

.cs-cmp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.cs-cmp-badge--before {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.cs-cmp-badge--after {
    background: rgba(177, 229, 14, 0.12);
    border: 1px solid var(--nx-border-accent);
    color: var(--nx-accent);
}

.cs-cmp-row {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    padding: 24px 28px;
    border-bottom: 1px solid var(--nx-border-glass);
    align-items: center;
    transition: background 0.2s;
}

.cs-cmp-row:last-child {
    border-bottom: none;
}

.cs-cmp-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cs-cmp-dim-cell .cs-dim-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--nx-text-white);
}

.cs-cmp-cell-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cs-cmp-cell-inner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.cs-cmp-before-cell p {
    color: #fca5a5;
}

.cs-cmp-after-cell p {
    color: #d9f99d;
}

.cs-cmp-status-icon--fail {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.cs-cmp-status-icon--pass {
    color: var(--nx-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   09 IMPACT & KPIS (HEROIC METRICS & ELEGANT DISCLOSURE FOOTER)
   ========================================================================== */
.cs-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.cs-kpi-card {
    background: linear-gradient(180deg, rgba(25, 29, 38, 0.85) 0%, rgba(15, 18, 24, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s var(--nx-transition);
}

.cs-kpi-card:hover {
    border-color: var(--nx-border-accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), var(--nx-glow-accent);
}

.cs-kpi-top {
    margin-bottom: 16px;
}

.cs-evidence-pill {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
}

.cs-evidence--illustrative {
    background: rgba(177, 229, 14, 0.1);
    color: var(--nx-accent);
    border: 1px solid var(--nx-border-accent);
}

.cs-evidence--measured {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cs-kpi-metric-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.cs-kpi-val {
    font-size: clamp(42px, 4.5vw, 56px);
    font-weight: 900;
    color: var(--nx-accent);
    line-height: 1;
    letter-spacing: -0.04em;
    text-shadow: 0 0 25px rgba(177, 229, 14, 0.3);
}

.cs-kpi-unit {
    font-size: 18px;
    font-weight: 700;
    color: var(--nx-text-muted);
}

.cs-kpi-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--nx-text-white);
    margin: 0 0 8px 0;
}

.cs-kpi-desc {
    font-size: 13px;
    color: var(--nx-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Disclosure note placed neatly at bottom */
.cs-disclosure-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(234, 179, 8, 0.06);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 10px;
    padding: 16px 22px;
    color: #fde047;
    font-size: 13px;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
}

.cs-disclosure-icon {
    flex-shrink: 0;
    color: #eab308;
    display: flex;
}

.cs-disclosure-body {
    flex: 1;
}

.cs-disclosure-title {
    font-weight: 700;
    margin-right: 6px;
}

.cs-disclosure-text {
    color: rgba(253, 224, 71, 0.9);
}

/* ==========================================================================
   10 SECURITY & RELIABILITY
   ========================================================================== */
.cs-security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.cs-sec-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.7) 0%, rgba(19, 23, 32, 0.9) 100%);
    border: 1px solid var(--nx-border-glass);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.25s var(--nx-transition);
}

.cs-sec-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cs-sec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cs-icon--sec {
    color: var(--nx-accent);
    flex-shrink: 0;
}

.cs-sec-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--nx-text-white);
    margin: 0;
}

.cs-sec-desc {
    font-size: 13px;
    color: var(--nx-text-muted);
    line-height: 1.6;
    margin: 0;
}

.cs-sec-audit-banner {
    background: rgba(25, 29, 38, 0.7);
    border: 1px solid var(--nx-border-glass);
    border-radius: 10px;
    padding: 18px 24px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cs-audit-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--nx-accent);
    margin-right: 8px;
}

.cs-sec-audit-banner p {
    display: inline;
    font-size: 13px;
    color: var(--nx-text-light);
    margin: 0;
}

/* ==========================================================================
   11 SCALABILITY & EXPANSION VECTORS (REDESIGNED AI-ERA CARDS)
   ========================================================================== */
.cs-scalability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-scale-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.85) 0%, rgba(17, 20, 28, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--nx-transition);
}

.cs-scale-card:hover {
    border-color: var(--nx-border-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--nx-glow-accent);
}

.cs-scale-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.cs-scale-phase-pill {
    font-size: 11px;
    font-weight: 800;
    color: var(--nx-accent);
    background: rgba(177, 229, 14, 0.1);
    border: 1px solid var(--nx-border-accent);
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cs-scale-arrow-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--nx-border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-accent);
    transition: transform 0.25s ease, background 0.25s ease;
}

.cs-scale-card:hover .cs-scale-arrow-circle {
    transform: translate(3px, -3px);
    background: rgba(177, 229, 14, 0.15);
    border-color: var(--nx-border-accent);
}

.cs-scale-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--nx-text-white);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.cs-scale-desc {
    font-size: 14px;
    color: var(--nx-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   12 FINAL CTA BOX
   ========================================================================== */
.cs-cta-box {
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(177, 229, 14, 0.12) 0%, rgba(25, 29, 38, 0.95) 70%);
    border: 1px solid rgba(177, 229, 14, 0.25);
    border-radius: 18px;
    padding: clamp(48px, 6vw, 75px) clamp(24px, 5vw, 60px);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.cs-cta-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(177, 229, 14, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.cs-cta-headline {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: var(--nx-text-white);
    line-height: 1.15;
    margin: 0 0 16px 0;
    text-align: center;
}

.cs-cta-desc {
    font-size: clamp(15px, 1.6vw, 18px) !important;
    color: var(--nx-text-muted) !important;
    max-width: 680px !important;
    margin: 0 auto 36px auto !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.cs-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   13 RELATED CASE STUDIES
   ========================================================================== */
.cs-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-related-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.7) 0%, rgba(19, 23, 32, 0.9) 100%);
    border: 1px solid var(--nx-border-glass);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s var(--nx-transition);
}

.cs-related-card:hover {
    border-color: var(--nx-border-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.cs-related-img-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #080b11;
}

.cs-related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cs-related-card:hover .cs-related-thumb {
    transform: scale(1.04);
}

.cs-related-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-related-meta-strip {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cs-rel-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--nx-accent);
    font-family: monospace;
}

.cs-rel-ind {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--nx-text-muted);
}

.cs-rel-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.cs-rel-title a {
    color: var(--nx-text-white);
    text-decoration: none;
    transition: color 0.2s;
}

.cs-rel-title a:hover {
    color: var(--nx-accent);
}

.cs-rel-desc {
    font-size: 13px;
    color: var(--nx-text-muted);
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.cs-rel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--nx-accent);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.cs-rel-link:hover {
    gap: 12px;
}

/* ==========================================================================
   ARCHIVE PAGE SPECIFIC
   ========================================================================== */
.cs-archive-hero {
    padding: 70px 0 50px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(177, 229, 14, 0.1) 0%, transparent 60%);
    border-bottom: 1px solid var(--nx-border-glass);
}

.cs-archive-hero .cs-hero-headline {
    margin: 0 auto 16px auto;
}

.cs-archive-hero .cs-hero-subtitle {
    margin: 0 auto;
}

.cs-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 40px 0 60px;
}

.cs-archive-card {
    background: linear-gradient(135deg, rgba(25, 29, 38, 0.7) 0%, rgba(19, 23, 32, 0.9) 100%);
    border: 1px solid var(--nx-border-glass);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--nx-transition);
}

.cs-archive-card:hover {
    border-color: var(--nx-border-accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cs-archive-card-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #080b11;
}

.cs-archive-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--nx-transition);
}

.cs-archive-card:hover .cs-archive-card-thumb {
    transform: scale(1.03);
}

.cs-archive-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-archive-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.cs-archive-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.cs-archive-card-title a {
    color: var(--nx-text-white);
    text-decoration: none;
    transition: color 0.2s;
}

.cs-archive-card-title a:hover {
    color: var(--nx-accent);
}

.cs-archive-card-excerpt {
    font-size: 14px;
    color: var(--nx-text-muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
    flex: 1;
}

.cs-archive-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--nx-border-glass);
    padding-top: 18px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Desktop / Tablet / Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
    .cs-overview-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-overview-card--highlight {
        grid-column: span 2;
    }
    .cs-challenge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-scalability-grid {
        grid-template-columns: 1fr;
    }
    .cs-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cs-section {
        padding: 60px 0;
    }
    .cs-overview-bento,
    .cs-challenge-grid,
    .cs-solution-quad,
    .cs-consequences-grid,
    .cs-security-grid,
    .cs-scalability-grid,
    .cs-related-grid,
    .cs-archive-grid {
        grid-template-columns: 1fr;
    }
    .cs-overview-card--highlight {
        grid-column: span 1;
    }
    .cs-cmp-header-row {
        display: none;
    }
    .cs-cmp-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    .cs-cmp-dim-cell {
        border-bottom: 1px solid var(--nx-border-glass);
        padding-bottom: 8px;
    }
    .cs-stage-node {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }
    .cs-stage-marker {
        flex-direction: row;
        gap: 12px;
    }
    .cs-hero-actions {
        flex-direction: column;
    }
    .cs-hero-actions .cs-btn {
        width: 100%;
        justify-content: center;
    }
    .cs-cta-actions .cs-btn {
        width: 100%;
        justify-content: center;
    }
}
