/* Vision Study X — Latest Tactile Design Tokens (60fps GPU-safe) */
:root {
  /* Crisp Mist Surface System */
  --bg-canvas: radial-gradient(circle at 0% 0%, #e0ebff 0%, transparent 45%),
               radial-gradient(circle at 100% 0%, #f3e8ff 0%, transparent 45%),
               linear-gradient(180deg, #f6f8ff 0%, #f8fafc 100%);
  --bg-solid: #f4f7ff;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Typography */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Vibrant Brand & Tactile Accents */
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef2ff;
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
  --brand-glow: 0 8px 20px -4px rgba(79, 70, 229, 0.42);
  --emerald: #059669;
  --emerald-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;

  /* Elevation & Physics */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 6px 16px -4px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 14px 32px -6px rgba(79, 70, 229, 0.14);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);

  --radius-sm: 11px;
  --radius-md: 15px;
  --radius-lg: 19px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --rail-width: 84px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --step-title: clamp(1.12rem, 1.85vw, 1.48rem);
  --step-sub: clamp(0.82rem, 1.1vw, 0.92rem);
}

/* Midnight Focus Mode */
body.theme-dark {
  --bg-canvas: radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.16) 0%, transparent 45%),
               radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.14) 0%, transparent 45%),
               linear-gradient(180deg, #090e1a 0%, #0b1120 100%);
  --bg-solid: #0b1120;
  --surface: #131c2e;
  --surface-muted: #1b263b;
  --surface-hover: #212e47;
  --border: #24324a;
  --border-strong: #334155;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --brand: #6366f1;
  --brand-soft: rgba(99, 102, 241, 0.18);
  --brand-glow: 0 8px 24px -4px rgba(99, 102, 241, 0.5);
  --emerald-soft: rgba(16, 185, 129, 0.16);
  --amber-soft: rgba(245, 158, 11, 0.16);
  --danger-soft: rgba(239, 68, 68, 0.16);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.45);
}
