/* =========================================================
   Custom Products — Section 2 module board
   ========================================================= */

.nx-app-modules {
    --nx-bg: #07080A;
    --nx-text: #F5F7FA;
    --nx-text-muted: #9299A5;
    --nx-border: rgba(255, 255, 255, 0.08);
    --nx-accent: #4F7CFF;
    --nx-content: 1320px;
    --nx-pad: clamp(1.25rem, 4vw, 4rem);
    background: var(--nx-bg);
    color: var(--nx-text);
    padding: clamp(5rem, 12vh, 8.5rem) 0;
    border-top: 1px solid var(--nx-border);
    overflow-x: clip;
}

.nx-app-modules__inner {
    width: 100%;
    max-width: var(--nx-content);
    margin: 0 auto;
    padding: 0 var(--nx-pad);
}

body.nx-app-page .nx-app-modules h2 {
    margin: 0 0 0.85rem;
    max-width: 16ch;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.nx-app-modules__header p:last-child {
    margin: 0;
    max-width: 36rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    color: var(--nx-text-muted);
    line-height: 1.65;
}

.nx-app-modules__header { margin-bottom: clamp(2rem, 5vw, 3.25rem); }

.nx-app-board {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--nx-border);
    border: 1px solid var(--nx-border);
}

.nx-app-board > li {
    background: #0D0F12;
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.nx-app-board__id {
    display: block;
    margin-bottom: 0.85rem;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--nx-accent);
}

body.nx-app-page .nx-app-board h3 {
    margin: 0 0 0.55rem;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.nx-app-board p {
    margin: 0 0 1rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--nx-text-muted);
}

.nx-app-board ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nx-app-board ul li {
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--nx-border);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c5d2ff;
}

.nx-app-modules .reveal,
.nx-app-arch .reveal,
.nx-app-use .reveal,
.nx-app-why .reveal,
.nx-app-faq .reveal,
.nx-app-final-cta .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.nx-app-modules .reveal.is-visible,
.nx-app-arch .reveal.is-visible,
.nx-app-use .reveal.is-visible,
.nx-app-why .reveal.is-visible,
.nx-app-faq .reveal.is-visible,
.nx-app-final-cta .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .nx-app-board { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .nx-app-board { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .nx-app-modules .reveal,
    .nx-app-arch .reveal,
    .nx-app-use .reveal,
    .nx-app-why .reveal,
    .nx-app-faq .reveal,
    .nx-app-final-cta .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
