/* ==========================================================================
   NeuroGen — Marketing page layer
   Page-level building blocks (nav, hero, sections, grids, footer) built on
   the design-system tokens. Marketing pages link styles.css THEN this file.
   ========================================================================== */

body.ng-marketing {
    background: var(--neural-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: var(--leading-normal);
    overflow-x: hidden;
}

/* Ambient neural glow that sits behind the whole page */
body.ng-marketing::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(620px circle at 18% -5%, rgba(138, 180, 248, 0.10), transparent 60%),
        radial-gradient(680px circle at 95% 8%, rgba(197, 138, 249, 0.07), transparent 60%);
}
.ng-page { position: relative; z-index: 1; }

/* ── Containers ──────────────────────────────────────────────────────────── */
.ng-container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.ng-container--narrow { max-width: 980px; }
.ng-section { padding: var(--section-pad-y) 0; position: relative; }
.ng-section--tight { padding: 64px 0; }
.ng-section--alt { background: var(--neural-deep); }
.ng-divider { height: 1px; background: var(--neural-divider); border: 0; margin: 0; }

/* ── Header / nav ────────────────────────────────────────────────────────── */
.ng-header {
    position: sticky; top: 0; z-index: var(--z-fixed);
    backdrop-filter: blur(16px);
    background: rgba(15, 20, 25, 0.78);
    border-bottom: 1px solid var(--neural-border);
}
.ng-nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.ng-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display);
    font-weight: 800; font-size: 1.2rem; color: var(--text-primary); letter-spacing: -0.02em; }
.ng-brand__mark {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--gradient-logo); color: var(--text-on-accent); font-size: 1rem;
    box-shadow: var(--shadow-glow-cyan);
}
.ng-brand__mark i { transform: translateY(0.5px); }
.ng-nav__links { display: flex; align-items: center; gap: 30px; }
.ng-nav__links a { color: var(--text-secondary); font-size: 0.92rem; font-weight: 500; }
.ng-nav__links a:hover { color: var(--text-primary); }
.ng-nav__cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) { .ng-nav__links { display: none; } }

/* ── Buttons (page-level, mirror the Button component) ───────────────────── */
.ng-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
    padding: 13px 26px; border-radius: var(--radius-full); border: 1px solid transparent;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: var(--transition-card);
}
.ng-btn:hover { transform: translateY(-2px); }
.ng-btn--primary { background: var(--gradient-brand); color: var(--text-on-accent);
    box-shadow: var(--shadow-glow-cyan); }
.ng-btn--primary:hover { box-shadow: var(--shadow-glow-cyan-lg); filter: brightness(1.05);
    color: var(--text-on-accent); }
.ng-btn--outline { background: transparent; color: var(--text-primary);
    border-color: var(--neural-border-strong); }
.ng-btn--outline:hover { border-color: var(--synapse-cyan); color: var(--synapse-cyan);
    background: var(--accent-primary-glow); }
.ng-btn--ghost { background: transparent; color: var(--text-secondary); }
.ng-btn--ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.ng-btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.ng-btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.ng-btn--block { display: flex; width: 100%; }

/* ── Eyebrow / section tag ──────────────────────────────────────────────── */
.ng-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px;
    border-radius: var(--radius-full); background: var(--synapse-cyan-muted);
    border: 1px solid rgba(138, 180, 248, 0.20); color: var(--synapse-cyan);
    font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
}
.ng-eyebrow--rose { background: rgba(242,139,130,0.10); border-color: rgba(242,139,130,0.2); color: var(--synapse-rose); }
.ng-eyebrow--violet { background: rgba(197,138,249,0.10); border-color: rgba(197,138,249,0.2); color: var(--synapse-violet); }
.ng-eyebrow--emerald { background: rgba(129,201,149,0.10); border-color: rgba(129,201,149,0.2); color: var(--synapse-emerald); }
.ng-eyebrow--amber { background: rgba(253,214,99,0.10); border-color: rgba(253,214,99,0.2); color: var(--synapse-amber); }

/* ── Section headers ─────────────────────────────────────────────────────── */
.ng-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.ng-section-head .ng-eyebrow { margin-bottom: 20px; }
.ng-h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
    font-size: var(--display-section); line-height: 1.1; margin-bottom: 18px; }
.ng-lead { color: var(--text-secondary); font-size: 1.15rem; line-height: 1.65; }

/* ── Gradient text helper (alias of ds .ng-gradient-text) ────────────────── */
.ng-grad { background: var(--gradient-text); -webkit-background-clip: text;
    background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Grids ───────────────────────────────────────────────────────────────── */
.ng-grid { display: grid; gap: 22px; }
.ng-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ng-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ng-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .ng-grid--3, .ng-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ng-grid--2, .ng-grid--3, .ng-grid--4 { grid-template-columns: 1fr; } }

/* ── Card primitives ─────────────────────────────────────────────────────── */
.ng-card {
    position: relative; background: var(--neural-surface);
    border: 1px solid var(--neural-border); border-radius: var(--radius-xl);
    padding: 30px; transition: var(--transition-card); overflow: hidden;
}
.ng-card--hover:hover { transform: translateY(-5px); border-color: var(--neural-border-strong);
    box-shadow: var(--shadow-card-hover); }
.ng-card__accent { position: absolute; inset: 0 0 auto 0; height: 2px;
    background: var(--gradient-brand); opacity: 0; transition: opacity .4s var(--ease-out-expo); }
.ng-card--hover:hover .ng-card__accent { opacity: 1; }
.ng-icon-chip {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.35rem; margin-bottom: 18px; color: var(--synapse-cyan);
    background: linear-gradient(135deg, rgba(138,180,248,0.15), rgba(138,180,248,0.04));
}
.ng-icon-chip--violet { color: var(--synapse-violet); background: linear-gradient(135deg, rgba(197,138,249,0.15), rgba(197,138,249,0.04)); }
.ng-icon-chip--teal { color: var(--synapse-teal); background: linear-gradient(135deg, rgba(120,217,236,0.15), rgba(120,217,236,0.04)); }
.ng-icon-chip--emerald { color: var(--synapse-emerald); background: linear-gradient(135deg, rgba(129,201,149,0.15), rgba(129,201,149,0.04)); }
.ng-icon-chip--amber { color: var(--synapse-amber); background: linear-gradient(135deg, rgba(253,214,99,0.15), rgba(253,214,99,0.04)); }
.ng-icon-chip--rose { color: var(--synapse-rose); background: linear-gradient(135deg, rgba(242,139,130,0.15), rgba(242,139,130,0.04)); }
.ng-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.ng-card p { color: var(--text-secondary); font-size: 0.96rem; line-height: 1.6; }

/* ── Checklist ───────────────────────────────────────────────────────────── */
.ng-checks { list-style: none; padding: 0; margin: 0; }
.ng-checks li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0;
    color: var(--text-secondary); font-size: 0.94rem; }
.ng-checks li i { color: var(--synapse-emerald); font-size: 0.78rem; margin-top: 5px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.ng-footer { background: var(--neural-deep); border-top: 1px solid var(--neural-border);
    padding: 64px 0 36px; }
.ng-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.ng-footer h4 { font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 16px; }
.ng-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.ng-footer ul a { color: var(--text-secondary); font-size: 0.92rem; }
.ng-footer ul a:hover { color: var(--synapse-cyan); }
.ng-footer__bottom { display: flex; justify-content: space-between; align-items: center;
    padding-top: 28px; border-top: 1px solid var(--neural-border); color: var(--text-tertiary); font-size: 0.85rem; }
@media (max-width: 760px) { .ng-footer__grid { grid-template-columns: 1fr 1fr; }
    .ng-footer__bottom { flex-direction: column; gap: 12px; text-align: center; } }

/* ── Reveal-on-scroll ────────────────────────────────────────────────────────
   Robust model: elements are only HIDDEN once JS arms the ones below the fold
   (.is-armed). Anything in the initial viewport — and everything if JS or the
   observer never runs — stays fully visible, so the page never paints blank. */
.ng-reveal { transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo); }
.ng-reveal.is-armed { opacity: 0; transform: translateY(24px); }
.ng-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ng-reveal.is-armed { opacity: 1; transform: none; transition: none; }
}
