/* CloudBridge Systems — Design Tokens
   Style: Trust & Authority (Enterprise Gateway pattern)
   Reference: learn.microsoft.com — quiet, functional, documentation-grade UI */

:root {
  /* Color — light mode */
  --color-primary: #0f172a;
  --color-on-primary: #ffffff;
  --color-secondary: #334155;
  --color-accent: #0369a1;
  --color-on-accent: #ffffff;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-foreground: #0f172a;
  --color-muted: #eef2f6;
  --color-muted-foreground: #56637a;
  --color-border: #e2e8f0;
  --color-destructive: #dc2626;
  --color-ring: #0369a1;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 2.875rem;
  --text-4xl: 3.5rem;

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;

  /* Spacing scale (4/8pt rhythm) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 780px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --header-height: 65px;

  /* Elevation — layered (tight + broad pass) for a softer, more considered depth
     than a single flat drop shadow. Standard technique in premium UI systems. */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 4px 10px rgba(15, 23, 42, 0.06), 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 8px 16px rgba(15, 23, 42, 0.08), 0 30px 60px rgba(15, 23, 42, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  --z-nav: 100;
  --z-overlay: 200;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #e2e8f0;
    --color-on-primary: #0f172a;
    --color-secondary: #94a3b8;
    --color-accent: #38bdf8;
    --color-on-accent: #0f172a;
    --color-background: #0b1220;
    --color-surface: #121b2e;
    --color-foreground: #f1f5f9;
    --color-muted: #1a2438;
    --color-muted-foreground: #94a3b8;
    --color-border: #26324a;
    --color-ring: #38bdf8;
  }
}
