/* ==========================================================================
   Questivo design tokens
   The single source of truth for colour, type, motion and spacing.
   Everything else (components, sections, future platform UI) reads from here.
   ========================================================================== */

:root {
  /* ---- Brand palette ---------------------------------------------------- */
  --q-blue-50:  #eef4ff;
  --q-blue-100: #dce8ff;
  --q-blue-200: #b9d1ff;
  --q-blue-300: #8db4ff;
  --q-blue-400: #5c8fff;
  --q-blue-500: #2f6bff; /* Questivo blue */
  --q-blue-600: #1f52e6;
  --q-blue-700: #1a3fb8;
  --q-navy-700: #12297a;
  --q-navy-800: #0e1f5c;
  --q-navy-850: #0a1a4a;
  --q-navy-900: #071335;
  --q-navy-950: #040c26;
  --q-ink:      #020716;
  --q-white:    #ffffff;

  /* ---- Semantic colours ------------------------------------------------- */
  --bg:             var(--q-ink);
  --surface:        rgba(22, 48, 128, 0.16);
  --surface-strong: rgba(30, 62, 160, 0.26);
  --line:           rgba(141, 180, 255, 0.12);
  --line-strong:    rgba(141, 180, 255, 0.26);
  --text:           #f4f7ff;
  --text-muted:     rgba(214, 228, 255, 0.68);
  --text-dim:       rgba(214, 228, 255, 0.42);
  --accent:         var(--q-blue-500);
  --accent-soft:    var(--q-blue-300);
  --glow:           rgba(47, 107, 255, 0.55);
  --glow-soft:      rgba(47, 107, 255, 0.22);
  --danger:         #ff9aa2; /* form errors only */

  /* ---- Pixel-sprite palette (letters used in sprite maps) --------------- */
  --px-W: #ffffff;           /* white        */
  --px-S: #dce8ff;           /* snow / sky   */
  --px-L: #8db4ff;           /* light blue   */
  --px-B: #2f6bff;           /* Questivo blue */
  --px-D: #1a3fb8;           /* deep blue    */
  --px-N: #0a1a4a;           /* navy         */
  --px-K: #020716;           /* ink          */

  /* ---- World scenery ---------------------------------------------------- */
  --world-far:    #0f2463;
  --world-snow:   #b9d1ff;
  --world-hills:  #0a1a4c;
  --world-ground: #050f33;
  --world-edge:   #16307e;

  /* ---- Type ------------------------------------------------------------- */
  --font-sans:  "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-pixel: "Silkscreen", "Geist Mono", ui-monospace, monospace;

  --fs-hero:  clamp(2.75rem, 1.2rem + 6.6vw, 7.25rem);
  --fs-h2:    clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  --fs-h3:    1.125rem;
  --fs-lead:  clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.6875rem;

  /* ---- Motion ----------------------------------------------------------- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);     /* expo out: the house curve */
  --ease-soft:   cubic-bezier(0.22, 1, 0.36, 1);    /* quint out */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-lift:   cubic-bezier(0.34, 1.32, 0.64, 1); /* tiny overshoot, never bouncy */
  --dur-xs: 140ms;
  --dur-s:  260ms;
  --dur-m:  520ms;
  --dur-l:  900ms;
  --dur-xl: 1400ms;

  /* ---- Layout ----------------------------------------------------------- */
  --container: 1180px;
  --gutter:    clamp(20px, 4.5vw, 56px);
  --section-y: clamp(96px, 14vw, 200px);
  --radius-s:  10px;
  --radius-m:  18px;
  --radius-l:  28px;

  /* ---- Pixel UI --------------------------------------------------------- */
  --px: 4px;          /* one "UI pixel" for notches, brackets, bars */
  --world-px: 4px;    /* one "world pixel" – set at runtime by the world */
}
