/* ============================================================
   NAVESTA — Design Tokens (tokens.css)
   Single source of truth for all visual primitives.
   Imported by dashboard.css, agent.css, preview.css.
   ============================================================ */

:root {

  /* ── Backgrounds ─────────────────────────────────────────── */
  --bg:           #FAFAF9;
  --bg-card:      #FFFFFF;
  --bg-elevated:  #F5F5F3;
  --bg-surface:   #EEEEEC;
  --bg-input:     #F7F7F6;
  --bg-warm:      #F9F8F6;
  --bg-glass:     rgba(250,250,249,0.90);

  /* ── Borders ─────────────────────────────────────────────── */
  --border:        rgba(0,0,0,0.06);
  --border-hover:  rgba(0,0,0,0.10);
  --border-active: rgba(0,0,0,0.18);

  /* ── Gold Palette (secondary accent only) ────────────────── */
  --gold:          #8C8C8C;
  --gold-bright:   #9D9D9D;
  --gold-deep:     #797979;
  --gold-dim:      rgba(140,140,140,0.45);
  --gold-subtle:   rgba(140,140,140,0.06);
  --gold-glow:     rgba(140,140,140,0.10);

  /* ── CTA ─────────────────────────────────────────────────── */
  --cta-primary:       #1A1A1A;
  --cta-primary-hover: #333333;

  /* ── Text ────────────────────────────────────────────────── */
  /* TWO shades only — primary + supporting. No more wispy muted tier.
     Contrast targets against #FAFAF9 / #FFFFFF (WCAG AA = 4.5:1):
     --text           #1A1A1A    → 16.9:1  (AAA)
     --text-secondary rgba 0.72  →  6.7:1  (AA normal, AAA large)
     --text-muted     rgba 0.72  →  same as secondary (kept for semantic
                                    callsites, but visually merged so the
                                    design only exposes two text shades
                                    on light backgrounds).
     Gold (#8C8C8C) remains the third permitted fg for small accent labels. */
  --text:           #1A1A1A;
  --text-secondary: rgba(26,26,26,0.72);
  --text-muted:     rgba(26,26,26,0.72);
  --text-on-gold:   #FFFFFF;

  /* ── Status Colors ───────────────────────────────────────── */
  --green:      #787878;
  --green-bg:   rgba(120,120,120,0.08);
  --green-soft: rgba(120,120,120,0.14);
  --red:        #C0453A;
  --red-bg:     rgba(192,69,58,0.07);
  --blue:       #757575;
  --blue-bg:    rgba(117,117,117,0.07);
  --orange:     #C07A3A;
  --orange-bg:  rgba(192,122,58,0.08);

  /* ── Radius ──────────────────────────────────────────────── */
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   14px;
  --radius-pill: 100px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.03);
  --shadow-card:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-gold:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-gold-glow: 0 2px 10px rgba(140,140,140,0.10);
  --shadow-focus: 0 0 0 2px rgba(0,0,0,0.08);
  --shadow-ring-gold: 0 0 0 2px var(--gold-dim);
  --shadow-inset: inset 3px 0 0 var(--text);

  /* ── Font Families ───────────────────────────────────────── */
  --font-sans:  'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* ── Font Sizes ──────────────────────────────────────────── */
  --text-2xs:  9px;
  --text-xs:   10px;
  --text-sm:   12px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   17px;
  --text-xl:   20px;
  --text-2xl:  26px;
  --text-3xl:  32px;

  /* ── Font Weights ────────────────────────────────────────── */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* ── Line Heights ────────────────────────────────────────── */
  --leading-tight:   1.2;
  --leading-snug:    1.4;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  /* ── Letter Spacing ──────────────────────────────────────── */
  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   1px;
  --tracking-wider:  1.5px;
  --tracking-widest: 2px;

  /* ── Spacing (4px base) ──────────────────────────────────── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;

  /* ── Transitions ─────────────────────────────────────────── */
  --transition:      0.2s cubic-bezier(0.16,1,0.3,1);
  --duration-fast:   0.12s;
  --duration-normal: 0.2s;
  --duration-slow:   0.35s;
  --ease-spring:     cubic-bezier(0.16,1,0.3,1);

  /* ── Z-Index Scale ───────────────────────────────────────── */
  --z-base:     1;
  --z-dropdown: 10;
  --z-sticky:   20;
  --z-sidebar:  50;
  --z-modal:    100;
  --z-toast:    200;

  /* ── Layout ──────────────────────────────────────────────── */
  --max-w:      1140px;
  --sidebar-w:  248px;
  --section-py: 120px;

  /* ── Breakpoints (for reference in media queries) ────────── */
  --breakpoint-sm: 600px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}
