/**
 * ProDigit design tokens. Marketing site.
 */
:root,
[data-theme="dark"] {
  /* Base */
  --color-bg: #09090b;
  --color-bg-elevated: #111113;
  --color-surface: #18181b;
  --color-glass: rgba(255, 255, 255, 0.05);
  --color-glass-strong: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);

  /* Text */
  --color-text: #fafafa;
  --color-text-muted: #a1a1aa;
  --color-text-subtle: #71717a;

  /* Signal / accent */
  --color-accent: #22d3ee;
  --color-accent-dim: rgba(34, 211, 238, 0.15);
  --color-accent-glow: rgba(34, 211, 238, 0.35);
  --color-frequency: #8b5cf6;
  --color-frequency-dim: rgba(139, 92, 246, 0.12);

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

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.875rem, 5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 6vw, 3.5rem);
  --text-hero: clamp(2.5rem, 7vw, 4rem);

  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --tracking-tight: -0.03em;
  --tracking-wide: 0.08em;

  /* Space */
  --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;

  /* Layout */
  --container-max: 72rem;
  --header-height: 4rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Effects */
  --blur-glass: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px var(--color-accent-dim);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);

  /* Text on glass / gradients */
  --color-text-on-glass: #f4f4f5;
  --color-text-muted-strong: #d4d4d8;
  --color-surface-overlay: rgba(9, 9, 11, 0.72);
  --color-glass-panel: rgba(24, 24, 27, 0.85);

  /* Mobile nav drawer */
  --nav-drawer-bg: rgba(12, 12, 14, 0.97);
  --nav-drawer-border: rgba(255, 255, 255, 0.08);
  --nav-drawer-shadow: 12px 0 48px rgba(0, 0, 0, 0.45);
  --nav-drawer-link: #f4f4f5;
  --nav-drawer-link-hover-bg: rgba(255, 255, 255, 0.06);
  --nav-drawer-backdrop: rgba(0, 0, 0, 0.52);

  /* Card hover */
  --card-hover-bg: rgba(24, 24, 27, 0.92);
  --card-hover-border: rgba(34, 211, 238, 0.28);
  --card-hover-heading: #fafafa;
  --card-hover-body: #d4d4d8;
  --card-hover-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(34, 211, 238, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0.05, 0.25, 1);
  --ease-signal: cubic-bezier(0.37, 0, 0.63, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;
  --duration-signal: 10s;
  --duration-signal-wave: 14s;
}

[data-theme="light"] {
  --color-bg: #f6f5f2;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-glass: rgba(0, 0, 0, 0.03);
  --color-glass-strong: rgba(0, 0, 0, 0.05);
  --color-border: rgba(15, 23, 42, 0.1);
  --color-border-hover: rgba(15, 23, 42, 0.18);

  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-text-subtle: #6b7280;

  --color-accent: #0891b2;
  --color-accent-dim: rgba(8, 145, 178, 0.12);
  --color-accent-glow: rgba(8, 145, 178, 0.22);
  --color-frequency: #7c3aed;
  --color-frequency-dim: rgba(124, 58, 237, 0.08);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 40px rgba(8, 145, 178, 0.12);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.08);

  --color-text-on-glass: #111827;
  --color-text-muted-strong: #374151;
  --color-surface-overlay: rgba(255, 255, 255, 0.92);
  --color-glass-panel: rgba(255, 255, 255, 0.94);

  --nav-drawer-bg: rgba(255, 255, 255, 0.98);
  --nav-drawer-border: rgba(15, 23, 42, 0.08);
  --nav-drawer-shadow: 12px 0 40px rgba(15, 23, 42, 0.1);
  --nav-drawer-link: #111827;
  --nav-drawer-link-hover-bg: rgba(8, 145, 178, 0.08);
  --nav-drawer-backdrop: rgba(15, 23, 42, 0.32);

  --card-hover-bg: #ffffff;
  --card-hover-border: rgba(8, 145, 178, 0.35);
  --card-hover-heading: #111827;
  --card-hover-body: #4b5563;
  --card-hover-shadow:
    0 8px 24px rgba(15, 23, 42, 0.1),
    0 0 28px rgba(8, 145, 178, 0.14);
}

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