@font-face {
  font-family: 'JetBrains Mono';
  src: local('JetBrains Mono'), local('JetBrainsMono');
}

:root {
  --bg-base: #0a0e14;
  --bg-elev-1: #11161e;
  --bg-elev-2: #161c26;
  --bg-elev-3: #1e2532;
  --bg-input: #0d1218;

  --border-subtle: #1f2733;
  --border-default: #2a3445;
  --border-strong: #3d4a5e;
  --border-focus: #4a8fe7;

  --fg-primary: #e6edf3;
  --fg-secondary: #a8b2c1;
  --fg-tertiary: #7a8696;
  --fg-disabled: #4a5468;

  --accent-cyan: #56d8e0;
  --accent-amber: #ffb547;
  --accent-magenta: #e879f9;
  --accent-blue: #4a8fe7;

  --status-active: #56d8e0;
  --status-success: #4ade80;
  --status-warning: #ffb547;
  --status-danger: #f87171;
  --status-inactive: #4a5468;

  --bull: #4ade80;
  --bear: #f87171;

  --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;

  --font-display: 'IBM Plex Mono', 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
  --font-body: 'IBM Plex Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;

  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 22px;
  --fs-3xl: 28px;

  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 20px rgba(86, 216, 224, 0.15);

  --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-base: 1;
  --z-dropdown: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

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

html {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--fg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(74, 143, 231, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(86, 216, 224, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

::selection {
  background: rgba(74, 143, 231, 0.35);
  color: var(--fg-primary);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-elev-1);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-elev-1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}

.text-primary { color: var(--fg-primary); }
.text-secondary { color: var(--fg-secondary); }
.text-tertiary { color: var(--fg-tertiary); }
.text-bull { color: var(--bull); }
.text-bear { color: var(--bear); }
.text-cyan { color: var(--accent-cyan); }
.text-amber { color: var(--accent-amber); }

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-cyan);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
