/* NS-CIX Content Page Layout
 * ===========================
 * Editorial layout for about, roadmap, and other prose-heavy pages.
 * Shares the brand palette but optimizes for reading over skimming.
 */

/* ---- Page Header ---- */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: left;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 7rem;
    left: 2rem;
    width: 40px;
    height: 3px;
    background: var(--cyber-blue);
}

.page-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cyber-blue);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--nscix-light);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.page-title::before,
.page-title::after {
    display: none;
}

.page-subtitle {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--nscix-light);
    opacity: 0.7;
    max-width: 640px;
    font-weight: 400;
}

/* ---- Prose Container ---- */
.prose {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* ---- Section Dividers ---- */
.prose-section {
    padding: 3.5rem 0;
    border-top: 1px solid rgba(247, 243, 240, 0.06);
}

.prose-section:first-child {
    border-top: none;
    padding-top: 0;
}

/* ---- Section Headings ---- */
.prose-heading {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--nscix-accent);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prose-heading::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--nscix-accent);
    flex-shrink: 0;
}

/* ---- Body Text ---- */
.prose-text {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--nscix-light);
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.prose-text:last-child {
    margin-bottom: 0;
}

.prose-text strong {
    color: var(--nscix-light);
    opacity: 1;
    font-weight: 700;
}

.prose-text a {
    color: var(--cyber-blue);
    text-decoration: underline;
    text-decoration-color: var(--cyber-blue-30);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.prose-text a:hover {
    text-decoration-color: var(--cyber-blue);
}

/* ---- Highlight Block (replaces content-box) ---- */
.prose-highlight {
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    border-left: 3px solid var(--cyber-blue);
    background: var(--cyber-blue-5);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose-highlight p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--nscix-light);
    opacity: 0.9;
    margin-bottom: 0;
}

/* ---- Card Grid (for "Who We Serve", impact goals, etc.) ---- */
.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.content-card {
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    border-color: var(--cyber-blue-30);
    box-shadow: 0 4px 20px rgba(0, 184, 230, 0.08);
}

.content-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--nscix-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.content-card:hover::after {
    transform: scaleX(1);
}

.content-card-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.content-card-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nscix-accent);
    margin-bottom: 0.75rem;
}

.content-card-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--nscix-light);
    opacity: 0.75;
}

/* ---- Timeline (for roadmap stages) ---- */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--cyber-blue-30),
        var(--cyber-blue-5)
    );
}

.timeline-stage {
    position: relative;
    padding: 0 0 4rem 3rem;
}

.timeline-stage:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -5px;
    top: 0.4rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--cyber-blue);
    background: var(--nscix-darker);
    z-index: 1;
}

.timeline-stage:first-child .timeline-marker {
    background: var(--cyber-blue);
    box-shadow: 0 0 12px var(--cyber-blue-50);
}

.timeline-stage-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyber-blue);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.timeline-stage-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--nscix-light);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.timeline-stage-title::before,
.timeline-stage-title::after {
    display: none;
}

.timeline-stage-text {
    font-size: 1.12rem;
    line-height: 1.8;
    color: var(--nscix-light);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.timeline-stage-text:last-child {
    margin-bottom: 0;
}

/* Milestones list inside timeline */
.timeline-milestones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.timeline-milestone {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--nscix-light);
    opacity: 0.6;
    white-space: nowrap;
}

/* ---- CTA Block (inline, not full-bleed) ---- */
.prose-cta {
    margin: 3rem 0;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(0, 184, 230, 0.04) 0%,
        rgba(230, 194, 0, 0.03) 100%
    );
}

.prose-cta-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--nscix-light);
    margin-bottom: 0.75rem;
}

.prose-cta-title::before,
.prose-cta-title::after {
    display: none;
}

.prose-cta-text {
    font-size: 1.1rem;
    color: var(--nscix-light);
    opacity: 0.7;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.prose-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ---- Stat Row ---- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.stat-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.stat-inline:hover {
    border-color: var(--cyber-blue-30);
}

.stat-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--cyber-blue);
    opacity: 0.6;
}

.stat-inline-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--nscix-accent);
    line-height: 1;
    margin-top: 0.25rem;
}

.stat-inline-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nscix-light);
    opacity: 0.45;
    margin-top: 0.65rem;
}

/* ---- Bare CTA (no card border/bg) ---- */
.prose-cta-bare {
    text-align: center;
}

/* ---- Content Page Footer Adjustment ---- */
.content-page footer {
    margin-top: 2rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .page-header {
        padding: 7rem 1.5rem 3rem;
    }

    .page-header::before {
        top: 5rem;
        left: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .prose {
        padding: 0 1.5rem 3rem;
    }

    .prose-section {
        padding: 2.5rem 0;
    }

    .prose-highlight {
        padding: 1.5rem;
        margin: 2rem -0.5rem;
    }

    .content-cards {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-stage {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -5px;
    }

    .stat-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .prose-cta {
        padding: 2rem 1.5rem;
    }

    .prose-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
