/* ARWorld design tokens: "Spatial Night".
   Every page loads this file; a page's mood comes only from <body data-accent="...">. */

:root {
  /* surfaces */
  --bg: #07080f;
  --bg-2: #0b0d18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #10121f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text: #eef0ff;
  --text-2: #a9aecb;
  --text-3: #6f7494;

  /* brand: cyan -> violet */
  --brand-1: #22d3ee;
  --brand-2: #8b5cf6;
  --brand-grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));

  /* per-page accent (defaults to brand) */
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --accent-rgb: 34, 211, 238;

  /* status */
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --fs-xl: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  --fs-2xl: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.5rem, 1.5rem + 4.4vw, 5.2rem);

  /* spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4.5rem; --sp-9: 7rem;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;

  /* shape */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --blur: saturate(160%) blur(18px);

  /* motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 150ms; --t: 280ms; --t-slow: 700ms;

  --nav-h: 72px;
  color-scheme: dark;
}

/* Derived accent tokens are re-resolved wherever the accent is (re)defined:
   on <body> for the page, and on any element with an inline accent (service cards, menus). */
:where(:root, body, [style*="--accent"]) {
  --accent-grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --glow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 10px 40px -10px rgba(var(--accent-rgb), 0.55);
}

body[data-accent="cyan"]   { --accent: #22d3ee; --accent-2: #3b82f6; --accent-rgb: 34, 211, 238; }
body[data-accent="amber"]  { --accent: #fbbf24; --accent-2: #f97316; --accent-rgb: 251, 191, 36; }
body[data-accent="violet"] { --accent: #a78bfa; --accent-2: #ec4899; --accent-rgb: 167, 139, 250; }
/* Reunion: warmer, calmer, with softer glow and slower motion */
body[data-accent="rose"] {
  --accent: #f5b6c4; --accent-2: #f4d58d; --accent-rgb: 245, 182, 196;
  --bg: #0b0a10; --bg-2: #120f17;
  --glow: 0 0 0 1px rgba(var(--accent-rgb), 0.25), 0 10px 40px -14px rgba(var(--accent-rgb), 0.35);
  --t: 420ms; --t-slow: 1100ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t: 0ms; --t-slow: 0ms; }
}
