/* ============================================================
   DDTApps Design System — Tokens
   Single source of truth for color, type, space, radii, shadow.
   Product themes override the accent tokens via scoped classes.
   ============================================================ */

:root {
  /* --- Core palette (DDTApps umbrella: near-black studio) --- */
  --ink-950: #07070c;
  --ink-900: #0a0a12;
  --ink-850: #0e0e18;
  --ink-800: #13131f;
  --ink-700: #1b1b2a;
  --ink-600: #262639;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text-hi: #f5f5fa;
  --text-md: #b7b7c6;
  --text-lo: #7d7d92;

  /* --- Brand accent (default: electric indigo) --- */
  --accent: #6c5ce7;
  --accent-hi: #8b7bff;
  --accent-lo: #4a3fb8;
  --accent-soft: rgba(108, 92, 231, 0.14);
  --accent-glow: rgba(108, 92, 231, 0.35);
  --accent-2: #00d4ff;
  --gradient: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --gradient-text: linear-gradient(120deg, #a89bff 0%, #6cd4ff 100%);

  /* --- Typography --- */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.6rem, 6.2vw, 4.8rem);
  --fs-h1: clamp(2.2rem, 5vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.65;

  --tracking-display: -0.03em;
  --tracking-label: 0.14em;

  /* --- Spacing scale --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --section-y: clamp(4.5rem, 9vw, 8rem);
  --container: 1180px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* --- Radii --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* --- Shadows & effects --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 16px 48px -16px var(--accent-glow);

  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --blur: saturate(140%) blur(18px);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 640ms;

  color-scheme: dark;
}

/* ============================================================
   Product theme overrides
   ============================================================ */

/* RTST.ai — creator energy from the app icon: sunset coral → amber, teal depth */
.theme-rtst {
  --accent: #ff7c54;
  --accent-hi: #ffa07a;
  --accent-lo: #e05a33;
  --accent-soft: rgba(255, 124, 84, 0.15);
  --accent-glow: rgba(250, 147, 26, 0.32);
  --accent-2: #fa931a;
  --gradient: linear-gradient(120deg, #ff7c54 0%, #fa931a 100%);
  --gradient-text: linear-gradient(115deg, #ffb58a 0%, #fa931a 60%, #ffd29a 100%);
}

/* Decluttr AI — matches decluttrai.com: electric blue on deep ink */
.theme-decluttr {
  --accent: #4087f7;
  --accent-hi: #6fa5ff;
  --accent-lo: #2563eb;
  --accent-soft: rgba(64, 135, 247, 0.15);
  --accent-glow: rgba(64, 135, 247, 0.32);
  --accent-2: #7dd3fc;
  --gradient: linear-gradient(120deg, #2563eb 0%, #4087f7 55%, #7dd3fc 100%);
  --gradient-text: linear-gradient(115deg, #8ab4ff 0%, #5f9dff 100%);
}
