/* ============================================================
   COMMAND INTELLIGENCE - GLOBAL STYLES & RESET
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-on-surface);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-surface-container); }
::-webkit-scrollbar-thumb { background: var(--color-border-variant); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- Typography Utilities ---- */
.font-display-lg {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.font-headline-md {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.font-body-sm {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.font-label-caps {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.font-data-lg {
  font-family: var(--font-data);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.02em;
}

.font-data-md {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

/* ---- Color Utilities ---- */
.text-primary        { color: var(--text-primary) !important; }
.text-on-surface     { color: var(--text-on-surface) !important; }
.text-muted          { color: var(--text-muted) !important; }
.text-accent-red     { color: var(--color-accent-red) !important; }
.text-accent-green   { color: var(--color-accent-green) !important; }
.text-accent-blue    { color: var(--color-accent-blue) !important; }
.text-accent-yellow  { color: var(--color-accent-yellow) !important; }

/* ---- Selection ---- */
::selection {
  background-color: var(--color-accent-red);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
