/* Design Tokens — Ipso Labs */
/* Dark mode default, light mode via toggle or OS preference */

:root {
  color-scheme: dark light;

  /* Colors — Dark (default) */
  --bg: #000000;
  --bg-alt: #050505;
  --text: #ffffff;
  --text-secondary: #999999;
  --text-tertiary: #8a8a8a;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --inverse: #ffffff;
  --inverse-text: #000000;
  --phone-bg: #000000;
  --phone-screen: #111111;
  --phone-border: rgba(255, 255, 255, 0.12);
  --desktop-bg: #1a1a1a;
  --desktop-screen: #111111;
  --desktop-border: rgba(255, 255, 255, 0.10);
  --desktop-titlebar: #0a0a0a;
  --desktop-titlebar-btn: rgba(255, 255, 255, 0.12);

  /* App accent colors */
  --accent: #7c3aed;
  --accent-dim: rgba(124, 58, 237, 0.15);
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;

  /* Mockup-internal (always dark regardless of page theme) */
  --mock-active-bg: rgba(124, 58, 237, 0.12);
  --mock-active-text: rgba(124, 58, 237, 0.9);
  --mock-hover-bg: rgba(255, 255, 255, 0.04);
  --mock-section-label: rgba(255, 255, 255, 0.35);

  /* Typography */
  --font: 'Jost', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --text-hero: clamp(2.75rem, 5.5vw, 5rem);
  --text-display: clamp(2rem, 4vw, 3.25rem);
  --text-h2: clamp(1.5rem, 2.5vw, 2rem);
  --text-body-lg: clamp(1.05rem, 1.3vw, 1.2rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;
  --text-label: 0.6875rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;
  --space-section: clamp(7rem, 16vh, 14rem);

  /* Layout */
  --max-width: 1100px;
  --max-width-narrow: 640px;
  --nav-height: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 300ms;
  --dur-slow: 600ms;
  --dur-reveal: 800ms;
}

/* Light mode */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --text: #000000;
  --text-secondary: #555555;
  --text-tertiary: #636363;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --surface: rgba(0, 0, 0, 0.03);
  --surface-hover: rgba(0, 0, 0, 0.06);
  --inverse: #000000;
  --inverse-text: #ffffff;
  --phone-bg: #1a1a1a;
  --phone-screen: #111111;
  --phone-border: rgba(255, 255, 255, 0.08);
  --desktop-bg: #e0e0e0;
  --desktop-screen: #111111;
  --desktop-border: rgba(0, 0, 0, 0.12);
  --desktop-titlebar: #d0d0d0;
  --desktop-titlebar-btn: rgba(0, 0, 0, 0.10);
}
