/* ExQ™ Design Tokens — ServiceNow Color Scheme */
:root {
  /* Surfaces (ServiceNow teal-navy) */
  --n0: #010f15;
  --n1: #021e2e;
  --n2: #032d42;
  --n3: #083a52;
  --n4: #124d6b;
  --n5: #1a6288;
  --n6: #2077a5;

  /* Accent (ServiceNow Electric Green) */
  --gold:    #62d84e;
  --gold-text:#2A7F1C; /* AA text variant of --gold */
  --gold-l:  #7ae668;
  --gold-ll: #a3f08a;
  --gold-p:  rgba(98,216,78,.12);
  --gold-b:  rgba(98,216,78,.28);

  /* Interactive */
  --royal:   #1a56db; --royal-l: #3b82f6; --royal-p: rgba(26,86,219,.1);

  /* Semantic */
  --em:   #059669; --em-p:  rgba(5,150,105,.12);
  --vi:   #7c3aed; --vi-p:  rgba(124,58,237,.12);
  --am:   #d97706; --am-p:  rgba(217,119,6,.12);
  --ro:   #e11d48; --ro-p:  rgba(225,29,72,.12);
  --cy:   #0891b2; --cy-p:  rgba(8,145,178,.12);

  /* Text */
  --tx:   #f1f5f9;
  --tx-m: #94a3b8;
  --tx-d: #64748b;

  /* UI Chrome */
  --bd:      rgba(255,255,255,.07);
  --bd-g:    rgba(98,216,78,.22);
  --cd:      rgba(255,255,255,.034);
  --cd-h:    rgba(255,255,255,.068);
  --overlay: rgba(1,9,15,.82);
  --nav-bg:  rgba(1,15,21,.88);
  --bd2:     rgba(255,255,255,.11);
  --green-l: #4ade80;
  --blue:    #3D82F2;

  /* Typography */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  /* Type Scale — 16px base (was .9rem / 14.4px) */
  --text-xs:   .75rem;     /* 12px */
  --text-sm:   .875rem;    /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.0625rem;  /* 17px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  2.25rem;    /* 36px */
  --text-3xl:  3.5rem;     /* 56px */

  /* Spacing — generous upper end */
  --sp-1:  .25rem;   /*  4px */
  --sp-2:  .5rem;    /*  8px */
  --sp-3:  .75rem;   /* 12px */
  --sp-4:  1rem;     /* 16px */
  --sp-5:  1.5rem;   /* 24px */
  --sp-6:  2rem;     /* 32px */
  --sp-8:  2.75rem;  /* 44px */
  --sp-10: 4rem;     /* 64px */
  --sp-12: 5.5rem;   /* 88px */
  --sp-16: 8rem;     /* 128px */

  /* Radius */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full:9999px;

  /* Shadows */
  --sh-sm:  0 1px 4px rgba(0,0,0,.28), 0 1px 2px rgba(0,0,0,.18);
  --sh:     0 4px 20px rgba(0,0,0,.38), 0 2px 8px rgba(0,0,0,.22);
  --sh-lg:  0 12px 48px rgba(0,0,0,.48), 0 4px 16px rgba(0,0,0,.28);
  --sh-gold:0 0 0 2px var(--gold);

  /* Transitions */
  --dur-fast:.1s;
  --dur:     .2s;
  --dur-slow:.35s;
  --ease:    cubic-bezier(.4,0,.2,1);
}

/* Light theme — OS preference */
@media (prefers-color-scheme: light) {
  :root {
    --n0: #f0f8fa; --n1: #dff0f5; --n2: #c5e4ef;
    --n3: #a3cedd; --n4: #7ab5ca; --n5: #4d9ab5; --n6: #2a7fa0;
    --tx: #010f15; --tx-m: #1e4055; --tx-d: #4a6878;
    --bd: rgba(3,45,66,.09); --cd: rgba(3,45,66,.04); --cd-h: rgba(3,45,66,.08);
    --bd-g: rgba(98,216,78,.35);
    --gold:   #1f700e;
    --gold-l: #2a8a18;
    --gold-ll:#3aaa25;
    --gold-p: rgba(98,216,78,.12);
    --gold-b: rgba(98,216,78,.28);
    --overlay: rgba(1,15,24,.88);
    --nav-bg: rgba(240,248,250,.88);
    --sh: 0 4px 20px rgba(0,0,0,.1); --sh-lg: 0 12px 48px rgba(0,0,0,.18);
  }
}
:root[data-theme="light"] {
  --n0: #f0f8fa; --n1: #dff0f5; --n2: #c5e4ef;
  --n3: #a3cedd; --n4: #7ab5ca; --n5: #4d9ab5; --n6: #2a7fa0;
  --tx: #010f15; --tx-m: #1e4055; --tx-d: #4a6878;
  --bd: rgba(3,45,66,.09); --cd: rgba(3,45,66,.04); --cd-h: rgba(3,45,66,.08);
  --bd-g: rgba(98,216,78,.35);
  --gold:   #1f700e;
  --gold-l: #2a8a18;
  --gold-ll:#3aaa25;
  --gold-p: rgba(98,216,78,.12);
  --gold-b: rgba(98,216,78,.28);
  --overlay: rgba(1,15,24,.88);
  --nav-bg: rgba(240,248,250,.88);
  --sh: 0 4px 20px rgba(0,0,0,.1);
}
:root[data-theme="dark"] {
  --n0: #010f15; --n1: #021e2e; --n2: #032d42;
  --n3: #083a52; --n4: #124d6b; --n5: #1a6288; --n6: #2077a5;
  --tx: #f1f5f9; --tx-m: #94a3b8; --tx-d: #64748b;
  --bd: rgba(255,255,255,.07); --cd: rgba(255,255,255,.034); --cd-h: rgba(255,255,255,.068);
  --bd-g: rgba(98,216,78,.22);
  --gold:   #62d84e;
  --gold-l: #7ae668;
  --gold-ll:#a3f08a;
  --gold-p: rgba(98,216,78,.12);
  --gold-b: rgba(98,216,78,.28);
  --overlay: rgba(1,9,15,.82);
  --nav-bg: rgba(1,15,21,.88);
  --sh: 0 4px 20px rgba(0,0,0,.4);
}
