@font-face {
  font-family: "Rayon Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("Rayon Free"),
    local("Rayon Free Regular"),
    url("../fonts/Rayon-Free.woff2") format("woff2"),
    url("../fonts/Rayon-Free.woff") format("woff"),
    url("../fonts/Rayon-Free.ttf") format("truetype");
}

:root {
  --bg-primary: #0e0f14;
  --bg-secondary: #15171f;
  --bg-tertiary: #1c1f2a;
  --bg-card: #161823;
  --bg-card-hover: #1b1e2c;

  --accent-solid: #5c7cfa;
  --accent-soft: rgba(92, 124, 250, 0.12);
  --accent-hover: rgba(92, 124, 250, 0.22);
  --accent-strong: #748ffc;
  --accent-glow: rgba(92, 124, 250, 0.35);
  /* Solid buttons with white text: deeper than --accent-solid so the text passes WCAG AA (4.98:1, hover 5.67:1). */
  --accent-button: #4263eb;
  --accent-button-hover: #3b5bdb;

  --accent-alt: #ffffff;
  --accent-alt-soft: rgba(255, 135, 135, 0.12);

  --text-primary: #f1f3f5;
  --text-secondary: #adb5bd;
  --text-tertiary: #868e96;
  --text-muted: #495057;

  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(92, 124, 250, 0.35);

  --success: #51cf66;
  --success-dim: rgba(81, 207, 102, 0.12);
  --warning: #ffd43b;
  --warning-dim: rgba(255, 212, 59, 0.12);
  --danger: #ff6b6b;
  --danger-dim: rgba(255, 107, 107, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 0 24px rgba(92, 124, 250, 0.18);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-logo:
    "Rayon Free", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

::-webkit-scrollbar-thumb {
  background: #2a2e3d;
  border-radius: 8px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-solid);
}

::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}
