@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  --bg-page: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --bg-tint: rgba(0, 36, 253, 0.07);
  --bg-tint-strong: rgba(0, 36, 253, 0.13);

  --brand-blue: #0024FD;
  --brand-blue-hover: #001ECC;
  --brand-blue-soft: #EEF2FF;

  --text-primary: #090D16;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-on-brand: #FFFFFF;

  --border-subtle: rgba(9, 13, 22, 0.08);
  --border-strong: rgba(9, 13, 22, 0.16);
  --border-blue: rgba(0, 36, 253, 0.25);

  --danger-bg: #FEF2F2;
  --danger-fg: #DC2626;
  --danger-border: rgba(220, 38, 38, 0.24);
  --success-bg: #ECFDF5;
  --success-fg: #047857;
  --warn-bg: #FFFBEB;
  --warn-fg: #B45309;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(9, 13, 22, 0.04);
  --shadow-md: 0 12px 32px rgba(9, 13, 22, 0.08);
  --shadow-blue: 0 18px 44px -12px rgba(0, 36, 253, 0.28);
  --shadow-focus: 0 0 0 3px rgba(0, 36, 253, 0.22);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: rgba(9, 13, 22, 0.24) transparent;
  scrollbar-width: thin;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--brand-blue);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  caret-color: var(--brand-blue);
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-top: 0;
  text-wrap: balance;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

::selection {
  background-color: var(--brand-blue);
  color: var(--text-on-brand);
}

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(9, 13, 22, 0.2);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(9, 13, 22, 0.35);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
