:root {
  --color-bg: #f4f7ff;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-surface-soft: #edf2ff;
  --color-border-subtle: rgba(148, 163, 184, 0.35);
  --color-primary: #2563eb;
  --color-primary-soft: rgba(56, 189, 248, 0.12);
  --color-primary-strong: #1d4ed8;
  --color-primary-deep: #020617;
  --color-accent-electric: #2563eb;
  --color-accent-cyan: #22d3ee;
  --color-accent-violet: #7c3aed;
  --color-text-main: #0f172a;
  --color-text-muted: #4b5563;
  --color-text-soft: #6b7280;
  --color-text-subtle: #9ca3af;
  --color-border: #d1d5db;
  --color-danger: #dc2626;

  --font-sans: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", sans-serif;

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --radius-pill: 999px;

  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-elevated: 0 18px 55px rgba(15, 23, 42, 0.12);

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --container-max-width: 1040px;
  --container-padding-x: 1.5rem;

  --glow-soft: 0 0 80px rgba(56, 189, 248, 0.35);
  --glow-violet: 0 0 90px rgba(124, 58, 237, 0.32);

  --transition-fast: 150ms ease-out;
  --transition-med: 220ms ease-out;
  --transition-slow: 320ms ease-out;

  --nav-height: 4.25rem;

  /* Light theme background gradients (used in body) */
  --color-bg-grad-1: rgba(59, 130, 246, 0.18);
  --color-bg-grad-2: rgba(56, 189, 248, 0.16);
  --color-bg-grad-3: rgba(129, 140, 248, 0.2);
}

/* Dark theme: deep space, neon cyan, electric blue, violet */
[data-theme="dark"] {
  --color-bg: #0a0e17;
  --color-bg-grad-1: rgba(34, 211, 238, 0.06);
  --color-bg-grad-2: rgba(56, 189, 248, 0.05);
  --color-bg-grad-3: rgba(124, 58, 237, 0.08);
  --color-bg-elevated: #111827;
  --color-surface: #1a2234;
  --color-surface-soft: #151b28;
  --color-border-subtle: rgba(148, 163, 184, 0.18);
  --color-primary: #38bdf8;
  --color-primary-soft: rgba(56, 189, 248, 0.15);
  --color-primary-strong: #0ea5e9;
  --color-primary-deep: #e2e8f0;
  --color-accent-electric: #38bdf8;
  --color-accent-cyan: #22d3ee;
  --color-accent-violet: #a78bfa;
  --color-text-main: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-soft: #94a3b8;
  --color-text-subtle: #64748b;
  --color-border: #334155;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-elevated: 0 18px 55px rgba(0, 0, 0, 0.4);
  --glow-soft: 0 0 60px rgba(34, 211, 238, 0.2);
  --glow-violet: 0 0 70px rgba(167, 139, 250, 0.25);
}

@media (min-width: 768px) {
  :root {
    --container-padding-x: 2rem;
  }
}
