/* =========================================================
   Web Design — Section 2 experience stack
   ========================================================= */

.nx-web-stack {
    --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-web-stack__inner {
    width: 100%;
    max-width: var(--nx-content);
    margin: 0 auto;
    padding: 0 var(--nx-pad);
}

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

.nx-web-stack__header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.nx-web-stack__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--nx-border);
}

.nx-web-stack__list > li {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1.1fr) minmax(0, 0.9fr) 5.5rem;
    gap: 1rem 1.25rem;
    align-items: start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--nx-border);
}

.nx-web-stack__num {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: rgba(245, 247, 250, 0.16);
}

.nx-web-stack h3 {
    margin: 0 0 0.4rem;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

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

.nx-web-stack__list ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
}

.nx-web-stack__list ul li {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nx-text-muted);
}

.nx-web-mini {
    width: 5.5rem;
    height: 4.1rem;
    border: 1px solid var(--nx-border);
    justify-self: end;
}

.nx-web-mini--notes {
    background: repeating-linear-gradient(180deg, transparent, transparent 7px, rgba(255,255,255,0.08) 8px);
}
.nx-web-mini--ia {
    background:
        linear-gradient(#4F7CFF, #4F7CFF) 50% 18% / 58% 2px no-repeat,
        linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)) 30% 48% / 18% 18% no-repeat,
        linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)) 70% 48% / 18% 18% no-repeat,
        linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)) 50% 78% / 28% 12% no-repeat;
}
.nx-web-mini--ui {
    background:
        linear-gradient(rgba(79,124,255,0.35), rgba(79,124,255,0.35)) 12% 18% / 76% 14% no-repeat,
        linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12)) 12% 48% / 40% 28% no-repeat,
        linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12)) 60% 48% / 28% 28% no-repeat;
}
.nx-web-mini--code {
    background: repeating-linear-gradient(90deg, rgba(79,124,255,0.35) 0 8px, transparent 8px 14px) 20% 40% / 70% 8px no-repeat;
}
.nx-web-mini--cta {
    background:
        linear-gradient(#4F7CFF, #4F7CFF) 50% 62% / 42% 16% no-repeat,
        linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)) 18% 22% / 64% 10% no-repeat;
}

.nx-web-stack .reveal,
.nx-web-blueprint .reveal,
.nx-web-moments .reveal,
.nx-web-why .reveal,
.nx-web-faq .reveal,
.nx-web-final-cta .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.nx-web-stack .reveal.is-visible,
.nx-web-blueprint .reveal.is-visible,
.nx-web-moments .reveal.is-visible,
.nx-web-why .reveal.is-visible,
.nx-web-faq .reveal.is-visible,
.nx-web-final-cta .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .nx-web-stack__list > li {
        grid-template-columns: 3.5rem minmax(0, 1fr);
    }
    .nx-web-stack__list ul,
    .nx-web-mini {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-web-stack .reveal,
    .nx-web-blueprint .reveal,
    .nx-web-moments .reveal,
    .nx-web-why .reveal,
    .nx-web-faq .reveal,
    .nx-web-final-cta .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
