/* Neuronix design tokens, shared by index.html and design-system.html.
   Authors: Groki (Grok Bot) for Victor S. Naidu; revised by Claude, 19 November 2026 (review REVIEW-2026-11-19.md applied).
   Values from ~/Projects/neuronix/brand-assets 1.1 (color/palette.md, typography/typography.md, typography/type-scale.css,
   motion/motion-spec.md). Values marked "derived" are landing-page additions, not part of brand 1.1. Edit here once; both pages follow. */

@font-face{font-family:"Sora";src:url("fonts/sora-var.woff2") format("woff2");font-weight:100 800;font-style:normal;font-display:swap}

:root{
  /* Brand colours (brand 1.1) */
  --nx-indigo:#2B4C9B;      /* the mark on light; headings, primary actions */
  --nx-periwinkle:#8DB0EE;  /* the mark on ink; accents on dark */
  --nx-cyan:#157A88;        /* signal on light: the i's dot, tagline dot, the pulse, links */
  --nx-cyan-bright:#39C2D3; /* signal on ink */
  --nx-ink:#0D1630;         /* text on light; the dark ground */
  /* Neutrals (brand 1.1) */
  --nx-white:#FFFFFF;
  --nx-tint:#EFF3F9;        /* quiet panels on light */
  --nx-rule-light:#D3DBEA;  /* rules and borders on light (named "rule" in the brand files) */
  --nx-slate:#55617A;       /* secondary text on light */
  --nx-graphite:#2E3A55;    /* the tagline on light */
  --nx-frost:#C7D5F6;       /* the tagline on ink */
  --nx-ink-2:#18264C;       /* raised panels on ink */
  --nx-haze:#A3B1CE;        /* secondary text on ink */
  /* Derived for the landing page (not in brand 1.1) */
  --nx-indigo-hover:#233F82;
  --nx-periwinkle-hover:#A6C1F2;
  --nx-fold-light:#E3EAF5;
  --nx-ink-panel:#111C3C;
  --nx-ink-rule:#26355F;
  --nx-ink-fold:#16234A;
  --nx-ink-deep:#08102A;
  --nx-ink-cta-fold:#131F42;
  --nx-ink-2-fold:#1F2F5E;  /* fold motif on the ink-2 closing band (dark theme) */
  --nx-field-light:#CDD7E8; /* neuromorphic network texture on tint (1.3:1) */
  --nx-field-dark:#22325F;  /* neuromorphic network texture on ink panel (1.35:1) */

  /* Type: Sora, the brand scale (16 px x 1.25; line heights on the 4 px rhythm, typography.md section 7) */
  --nx-font:"Sora",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --nx-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --nx-display:39px;    --nx-display-lh:48px;    /* Display: step 4; 49/56 from 900 px, 61/68 from 1200 px */
  --nx-title:31px;      --nx-title-lh:40px;      /* Title: step 3; 39/48 from 900 px */
  --nx-heading:25px;    --nx-heading-lh:32px;    /* Heading: step 2 */
  --nx-subheading:20px; --nx-subheading-lh:28px; /* Subheading: step 1, SemiBold */
  --nx-lead:20px;       --nx-lead-lh:28px;       /* Lead: step 1, Regular */
  --nx-body:16px;       --nx-body-lh:24px;       /* Body: step 0 */
  --nx-label:13px;      --nx-label-lh:20px;      /* Label and caption: step -1 */
  --nx-legal:10px;      --nx-legal-lh:16px;      /* Legal: step -2 */
  --nx-track-label:0.11em;                       /* capitals below 14 px */
  --nx-track-caps:0.0735em;                      /* capitals at 14 px and up */
  --nx-w-light:300; --nx-w-regular:400; --nx-w-semibold:600;   /* the brand weights; Light only for display lines of 40 px and up */

  /* Spacing: module m = 8 px on screen (typography.md section 5) */
  --nx-m:8px;
  --nx-space-0-5:4px; --nx-space-1:8px; --nx-space-2:16px; --nx-space-3:24px; --nx-space-4:32px;
  --nx-space-6:48px; --nx-space-8:64px; --nx-space-12:96px; --nx-space-16:128px;
  --nx-section-y:96px;   /* 12 m; 8 m below 900 px */
  --nx-gutter:32px;      /* 4 m margins; 2 m below 600 px */
  --nx-wrap:1160px;

  /* Radius (derived) */
  --nx-radius-sm:8px; --nx-radius-md:12px; --nx-radius-lg:16px; --nx-radius-xl:20px; --nx-radius-pill:999px;

  /* Motion (motion-spec.md): one easing for every movement; the pulse's uneven rhythm and its swell */
  --nx-ease:cubic-bezier(0.4,0,0.2,1); --nx-dur:150ms;
  --nx-pulse-2:140ms; --nx-pulse-3:520ms; --nx-swell:360ms;
}
@media (min-width:900px){:root{--nx-display:49px;--nx-display-lh:56px;--nx-title:39px;--nx-title-lh:48px}}
@media (min-width:1200px){:root{--nx-display:61px;--nx-display-lh:68px}}
@media (max-width:900px){:root{--nx-section-y:64px}}
@media (max-width:600px){:root{--nx-gutter:16px}}

/* Semantic roles: light (default) */
:root,[data-theme="light"]{
  --nx-ground:var(--nx-white);
  --nx-panel:var(--nx-tint);
  --nx-surface:var(--nx-white);
  --nx-text:var(--nx-ink);
  --nx-text-muted:var(--nx-slate);
  --nx-border:var(--nx-rule-light);
  --nx-mark:var(--nx-indigo);
  --nx-tagline:var(--nx-graphite);
  --nx-signal:var(--nx-cyan);
  --nx-link:var(--nx-cyan);
  --nx-btn-bg:var(--nx-indigo); --nx-btn-fg:var(--nx-white); --nx-btn-bg-hover:var(--nx-indigo-hover);
  --nx-fold:var(--nx-fold-light);
  --nx-field:var(--nx-field-light);
  --nx-code-bg:var(--nx-ink); --nx-code-fg:var(--nx-frost); --nx-code-key:var(--nx-periwinkle); --nx-code-note:var(--nx-haze);
  --nx-feature-bg:var(--nx-ink); --nx-feature-border:var(--nx-ink); --nx-feature-muted:var(--nx-haze); --nx-feature-accent:var(--nx-periwinkle);
  --nx-cta-bg:var(--nx-ink); --nx-cta-fold:var(--nx-ink-cta-fold);
  --nx-shadow-sm:0 1px 2px rgba(13,22,48,.06);
  --nx-shadow-md:0 1px 2px rgba(13,22,48,.06),0 8px 24px rgba(13,22,48,.06);
  --nx-shadow-lg:0 2px 4px rgba(13,22,48,.06),0 24px 48px rgba(13,22,48,.10);
  color-scheme:light;
}
/* Semantic roles: dark (system preference, unless the visitor chose light) */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --nx-ground:var(--nx-ink); --nx-panel:var(--nx-ink-panel); --nx-surface:var(--nx-ink-2);
    --nx-text:var(--nx-white); --nx-text-muted:var(--nx-haze); --nx-border:var(--nx-ink-rule);
    --nx-mark:var(--nx-periwinkle); --nx-tagline:var(--nx-frost); --nx-signal:var(--nx-cyan-bright); --nx-link:var(--nx-cyan-bright);
    --nx-btn-bg:var(--nx-periwinkle); --nx-btn-fg:var(--nx-ink); --nx-btn-bg-hover:var(--nx-periwinkle-hover);
    --nx-fold:var(--nx-ink-fold);
    --nx-field:var(--nx-field-dark);
    --nx-code-bg:var(--nx-ink-deep); --nx-code-fg:var(--nx-frost); --nx-code-key:var(--nx-periwinkle); --nx-code-note:var(--nx-haze);
    --nx-feature-bg:var(--nx-indigo); --nx-feature-border:var(--nx-indigo); --nx-feature-muted:var(--nx-frost); --nx-feature-accent:var(--nx-frost);
    --nx-cta-bg:var(--nx-ink-2); --nx-cta-fold:var(--nx-ink-2-fold);
    --nx-shadow-sm:0 1px 2px rgba(0,0,0,.25);
    --nx-shadow-md:0 1px 2px rgba(0,0,0,.25),0 12px 32px rgba(0,0,0,.25);
    --nx-shadow-lg:0 2px 4px rgba(0,0,0,.3),0 24px 48px rgba(0,0,0,.35);
    color-scheme:dark;
  }
}
/* Semantic roles: dark (chosen with the toggle) */
[data-theme="dark"]{
  --nx-ground:var(--nx-ink); --nx-panel:var(--nx-ink-panel); --nx-surface:var(--nx-ink-2);
  --nx-text:var(--nx-white); --nx-text-muted:var(--nx-haze); --nx-border:var(--nx-ink-rule);
  --nx-mark:var(--nx-periwinkle); --nx-tagline:var(--nx-frost); --nx-signal:var(--nx-cyan-bright); --nx-link:var(--nx-cyan-bright);
  --nx-btn-bg:var(--nx-periwinkle); --nx-btn-fg:var(--nx-ink); --nx-btn-bg-hover:var(--nx-periwinkle-hover);
  --nx-fold:var(--nx-ink-fold);
  --nx-field:var(--nx-field-dark);
  --nx-code-bg:var(--nx-ink-deep); --nx-code-fg:var(--nx-frost); --nx-code-key:var(--nx-periwinkle); --nx-code-note:var(--nx-haze);
  --nx-feature-bg:var(--nx-indigo); --nx-feature-border:var(--nx-indigo); --nx-feature-muted:var(--nx-frost); --nx-feature-accent:var(--nx-frost);
  --nx-cta-bg:var(--nx-ink-2); --nx-cta-fold:var(--nx-ink-2-fold);
  --nx-shadow-sm:0 1px 2px rgba(0,0,0,.25);
  --nx-shadow-md:0 1px 2px rgba(0,0,0,.25),0 12px 32px rgba(0,0,0,.25);
  --nx-shadow-lg:0 2px 4px rgba(0,0,0,.3),0 24px 48px rgba(0,0,0,.35);
  color-scheme:dark;
}
