/* ============================================================
   ZynxTech design tokens — Linear/Vercel/Shadcn minimal
   ============================================================ */

:root {
  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;

  --lh-tight: 1.15;
  --lh-normal: 1.5;
  --lh-relaxed: 1.75;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Layout widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 960px;
  --container-xl: 1120px;
  --container-2xl: 1280px;

  /* Nav height */
  --nav-height: 60px;

  /* Transition */
  --transition-fast: 0.12s ease;
  --transition-base: 0.18s ease;
  --transition-slow: 0.28s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reduced motion: respect the user's preference everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   Dark theme (default)
   ===================================================== */
:root,
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-hover: #1a1a1a;
  --bg-active: #1f1f1f;

  --fg: #ededed;
  --fg-muted: #a1a1aa;
  --fg-subtle: #71717a;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: #6366f1;

  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-fg: #ffffff;

  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.5);

  --code-bg: #18181b;
  --code-fg: #e4e4e7;
}

/* =====================================================
   Light theme
   ===================================================== */
[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-hover: #f4f4f5;
  --bg-active: #e4e4e7;

  --fg: #0a0a0a;
  --fg-muted: #52525b;
  --fg-subtle: #71717a;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --border-focus: #6366f1;

  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-fg: #ffffff;

  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.12);

  --code-bg: #f4f4f5;
  --code-fg: #18181b;
}
