/*
 * Wavepilot design tokens.
 * Source of truth: Figma https://www.figma.com/design/qKJWEguGBnXOVPtCqYla5t,
 * variable collections "Color" (modes Dark / Light), "Tool", "Space", "Radius", "Type", "Motion".
 * Naming rule: Figma variable "color/glass-strong" = CSS --color-glass-strong.
 * Change a value in Figma, then copy it here under the same name; nothing else
 * in the code should hold a raw color, size or duration.
 */

:root,
:root[data-mode="dark"] {
  /* Color · Dark */
  --color-bg: #09080f;
  --color-aurora-1: rgba(124, 92, 255, 0.30);
  --color-aurora-2: rgba(192, 72, 245, 0.18);
  --color-aurora-3: rgba(56, 120, 255, 0.14);
  --color-glass: rgba(255, 255, 255, 0.055);
  --color-glass-strong: rgba(255, 255, 255, 0.09);
  --color-glass-bar: rgba(16, 14, 26, 0.62);
  --color-glass-edge: rgba(255, 255, 255, 0.11);
  --color-glass-shine: rgba(255, 255, 255, 0.22);
  --color-line: rgba(255, 255, 255, 0.08);
  --color-ink: #f4f2fb;
  --color-ink-2: rgba(244, 242, 251, 0.68);
  --color-ink-3: rgba(244, 242, 251, 0.42);
  --color-accent: #8b6cff;
  --color-accent-2: #c05cf5;
  --color-accent-ink: #b9a6ff;
  --color-accent-soft: rgba(139, 108, 255, 0.16);
  --color-on-accent: #ffffff;
  --color-user: rgba(139, 108, 255, 0.20);
  --color-user-edge: rgba(185, 166, 255, 0.28);
  --color-success: #3ee08f;
  --color-success-soft: rgba(62, 224, 143, 0.15);
  --color-danger: #ff7272;
  --color-danger-soft: rgba(255, 114, 114, 0.15);
  --color-neutral-soft: rgba(244, 242, 251, 0.08);
  --color-warning: #ffc44d;
  --color-overlay: rgba(4, 3, 10, 0.55);
  --color-shadow: rgba(0, 0, 0, 0.45);
  --color-glow: rgba(139, 108, 255, 0.55);
  --color-warning-2: #ff8a3d;
  /* Star mark (Wavestar blue into the Wavepilot violet) */
  --color-star-a: #8fa6ff;
  --color-star-b: #8b6cff;
  --color-star-c: #c05cf5;
  --color-star-ink: #ffffff;
  color-scheme: dark;
}

:root[data-mode="light"] {
  /* Color · Light */
  --color-bg: #f5f4fa;
  --color-aurora-1: rgba(139, 108, 255, 0.20);
  --color-aurora-2: rgba(214, 120, 255, 0.14);
  --color-aurora-3: rgba(90, 150, 255, 0.12);
  --color-glass: rgba(255, 255, 255, 0.62);
  --color-glass-strong: rgba(255, 255, 255, 0.82);
  --color-glass-bar: rgba(250, 249, 255, 0.70);
  --color-glass-edge: rgba(30, 20, 70, 0.08);
  --color-glass-shine: rgba(255, 255, 255, 0.9);
  --color-line: rgba(30, 20, 70, 0.08);
  --color-ink: #16121f;
  --color-ink-2: rgba(22, 18, 31, 0.64);
  --color-ink-3: rgba(22, 18, 31, 0.40);
  --color-accent: #7c5cff;
  --color-accent-2: #b44ff0;
  --color-accent-ink: #6a47f5;
  --color-accent-soft: rgba(124, 92, 255, 0.10);
  --color-on-accent: #ffffff;
  --color-user: rgba(124, 92, 255, 0.12);
  --color-user-edge: rgba(124, 92, 255, 0.20);
  --color-success: #12a867;
  --color-success-soft: rgba(18, 168, 103, 0.12);
  --color-danger: #e5484d;
  --color-danger-soft: rgba(229, 72, 77, 0.12);
  --color-neutral-soft: rgba(22, 18, 31, 0.06);
  --color-warning: #d18a00;
  --color-overlay: rgba(22, 18, 31, 0.28);
  --color-shadow: rgba(40, 30, 90, 0.14);
  --color-glow: rgba(124, 92, 255, 0.35);
  --color-warning-2: #f06a1d;
  --color-star-a: #6f8cff;
  --color-star-b: #7c5cff;
  --color-star-c: #b44ff0;
  --color-star-ink: #ffffff;
  color-scheme: light;
}

:root {
  /* Tool · one color per tool family (plan tiles, live feed, result cards) */
  --tool-youtube: #ff4d5e;
  --tool-tiktok: #22d3dc;
  --tool-instagram: #ff5ca8;
  --tool-seo: #34d399;
  --tool-tags: #fbbf24;
  --tool-comments: #60a5fa;
  --tool-unify: #6d8bff;
  --tool-qr: #a3a3b5;

  /* Type */
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --type-display-size: 28px;
  --type-display-line: 34px;
  --type-title-size: 17px;
  --type-title-line: 22px;
  --type-body-size: 16px;
  --type-body-line: 24px;
  --type-sm-size: 14px;
  --type-sm-line: 20px;
  --type-xs-size: 12px;
  --type-xs-line: 16px;
  --type-metric-size: 34px;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Radius */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Motion */
  --motion-fast: 160ms;
  --motion-base: 280ms;
  --motion-slow: 460ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
