/*
 * TEKMYR Design System — Restrained Enterprise Security & Red/Blue Team UI
 * Inspired by Linear, Vercel, and Stripe: 92% pure obsidian monochrome,
 * crisp titanium-white primary actions, and disciplined semantic accents
 * strictly reserved for Blue Team (#60a5fa), Red Team (#f87171), and USDC status.
 */
:root {
  color-scheme: dark;

  /* Monochrome Obsidian & Zinc Scale */
  --navy-950: #060608;
  --navy-900: #09090b;
  --navy-850: #101014;
  --navy-800: #16161c;
  --navy-750: #1c1c24;
  --navy-700: #24242e;
  --navy-600: #2e2e3a;
  --navy-500: #3f3f4e;
  --slate-400: #525263;

  --ivory-50: #fafafa;
  --ivory-200: #a1a1aa;
  --ivory-400: #71717a;

  /* Titanium White & Silver Accent Scale (No cheap neon or gold) */
  --gold-200: #ffffff;
  --gold-300: #f4f4f6;
  --gold-400: #e4e4e7;
  --gold-500: #d4d4d8;
  --gold-700: #52525b;
  --gold-ink: #09090b;

  /* Semantic Surface & Hairline Border Tokens */
  --bg: #09090b;
  --surface: #101014;
  --surface-raised: #15151b;
  --surface-sunken: #060608;
  --surface-hover: #1a1a22;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-control: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(255, 255, 255, 0.22);
  --border-accent-subtle: rgba(255, 255, 255, 0.09);

  /* Semantic Text & Primary Action Tokens */
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #f4f4f6;
  --accent-hover: #ffffff;
  --accent-pressed: #d4d4d8;
  --accent-text: #f4f4f6;
  --accent-wash: rgba(255, 255, 255, 0.05);
  --on-accent: #09090b;
  --focus-ring: rgba(255, 255, 255, 0.55);

  /* Business Semantic Accents: Blue Team, Red Team, USDC Verified */
  --blue-team: #60a5fa;
  --blue-team-wash: rgba(96, 165, 250, 0.1);
  --blue-team-border: rgba(96, 165, 250, 0.28);

  --red-team: #f87171;
  --red-team-wash: rgba(248, 113, 113, 0.1);
  --red-team-border: rgba(248, 113, 113, 0.28);

  --success: #34d399;
  --success-wash: rgba(52, 211, 153, 0.09);
  --success-border: rgba(52, 211, 153, 0.26);
  --warning: #fbbf24;
  --warning-wash: rgba(251, 191, 36, 0.09);
  --warning-border: rgba(251, 191, 36, 0.26);
  --danger: #f87171;
  --danger-wash: rgba(248, 113, 113, 0.09);
  --danger-border: rgba(248, 113, 113, 0.28);
  --info: #60a5fa;
  --info-wash: rgba(96, 165, 250, 0.09);
  --info-border: rgba(96, 165, 250, 0.26);

  --severity-critical: #f87171;
  --severity-high: #fb923c;
  --severity-medium: #fbbf24;
  --severity-low: #60a5fa;

  /* Typography — Precision Sans & Technical Mono */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-numeral: "JetBrains Mono", "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  --font-mono: "JetBrains Mono", "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  --text-2xs: 0.6875rem;  /* 11px */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.8125rem;   /* 13px */
  --text-md: 0.875rem;    /* 14px */
  --text-base: 0.9375rem; /* 15px */
  --text-lg: 1.0625rem;   /* 17px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.375rem;   /* 38px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  --leading-tight: 1.18;
  --leading-snug: 1.32;
  --leading-normal: 1.65;
  --leading-relaxed: 1.78;

  --tracking-caps: 0.08em;
  --tracking-wide: 0.01em;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Space — 4px grid */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Clean Architectural Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* Subtle Studio Elevation */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-2: 0 12px 32px -8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-3: 0 24px 64px -12px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --edge-gilt: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glow-accent: 0 4px 20px rgba(255, 255, 255, 0.12);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 140ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;

  /* Layout */
  --container: 1180px;
  --content-max: 1240px;
  --sidebar-width: 244px;
  --topbar-height: 64px;
  --control-height: 42px;
  --control-height-sm: 34px;
  --z-sticky: 20;
  --z-drawer: 50;
  --z-overlay: 40;
  --z-skip: 100;

  --meander: none;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
