/* ══════════════════════════════════════════
   FIRE DESIGN SYSTEM — TOKENS
   Privacy is dignity.
   ══════════════════════════════════════════ */

/* --- Dark theme (default) --- */
:root,
[data-theme="dark"] {
  /* Accent */
  --accent: #d61d3e;
  --accent-dim: rgba(214, 29, 62, 0.12);
  --accent-glow: rgba(214, 29, 62, 0.3);
  --cyan: #00F0FF;

  /* Gold (swap interface only) */
  --gold: #FFB800;
  --gold-dim: rgba(255, 184, 0, 0.18);
  --gold-text: rgba(255, 184, 0, 0.83);
  --gold-border: rgba(255, 184, 0, 0.41);

  /* Surfaces */
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --nav-bg: rgba(10, 10, 10, 0.85);
  --code-bg: #0d0d0d;
  --dropdown-bg: #1a1a1a;

  /* Text */
  --text: #ffffff;
  --text-2: #999999;
  --text-3: #666666;

  /* Borders */
  --border: #222222;
  --border-hover: #333333;

  /* Status */
  --green: #22C55E;
  --red: #EF4444;
  --amber: #f59e0b;

  /* Constant */
  --white: #ffffff;

  /* Suite product accents */
  --invoice: #22766c;
  --payroll: #225a76;
  --books: #463975;

  /* Shadow */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* --- Light theme --- */
[data-theme="light"] {
  --accent: #f03f5c;
  --accent-dim: rgba(240, 63, 92, 0.06);
  --accent-glow: rgba(240, 63, 92, 0.2);
  --cyan: #0088aa;

  --gold: #FFB800;
  --gold-dim: rgba(255, 184, 0, 0.15);
  --gold-text: rgb(117, 82, 2);
  --gold-border: rgba(255, 184, 0, 0.5);

  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #eeeeee;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --code-bg: #f0f0f0;
  --dropdown-bg: #ffffff;

  --text: #0a0a0a;
  --text-2: #555555;
  --text-3: #999999;

  --border: #e0e0e0;
  --border-hover: #cccccc;

  --green: #16a34a;
  --red: #dc2626;

  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Typography --- */
:root {
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: clamp(28px, 4vw, 40px);
  --text-3xl: clamp(36px, 5vw, 56px);
  --text-4xl: clamp(44px, 6vw, 72px);

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

/* --- Spacing (4px base) --- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;
}

/* --- Borders & Radius --- */
:root {
  --radius: 4px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* --- Motion --- */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-enter: 500ms;
  --duration-reveal: 600ms;
}

/* --- Shadows --- */
:root {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}
