/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0f1a;
  --bg-secondary: #0f1623;
  --bg-surface: #141c2b;
  --bg-card: #1a2332;
  --bg-card-hover: #1e293b;

  /* Accents */
  --bull-green: #22c55e;
  --bull-green-light: #4ade80;
  --bull-green-dim: rgba(34, 197, 94, 0.12);
  --bull-green-glow: rgba(34, 197, 94, 0.25);
  --bear-red: #ef4444;
  --bear-red-light: #f87171;
  --bear-red-dim: rgba(239, 68, 68, 0.12);
  --bear-red-glow: rgba(239, 68, 68, 0.25);
  --gold: #eab308;
  --gold-dim: rgba(234, 179, 8, 0.12);
  --gold-glow: rgba(234, 179, 8, 0.25);

  /* Text */
  --text-primary: #e8eaed;
  --text-bright: var(--text-primary);
  /* Both greys sit above the 4.5:1 contrast floor against --bg-card;
     the old muted value was 2.6:1 and read as disabled text. */
  --text-secondary: #b7bdc4;
  --text-muted: #8e959d;
  --text-link: #8ab4f8;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 255, 255, 0.1);
  /* Cards answer the cursor by lifting their surface and edge, not by moving
     or turning green. One token so every card behaves the same way. */
  --border-hover: rgba(255, 255, 255, 0.2);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --container-max: 1200px;
  --section-gap: 60px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms ease;
  --transition-normal: 300ms var(--ease-out-expo);
  --transition-slow: 600ms var(--ease-out-expo);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow-green: none;
  --shadow-glow-red: none;
  --shadow-glow-gold: none;
}


/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Let the browser draw its own scrollbar; `dark` keeps it matched to the
     page instead of a bright default over a dark background. */
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--bull-green-light); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
