/* OctuCode design tokens — dark cinematic theme with hot-pink accent */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0f0f11;
  --bg-2: #141416;
  --surface: #1c1c1f;
  --surface-2: #232327;
  --surface-3: #2a2a2f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f5f5f7;
  --text-2: #c4c4cc;
  --text-3: #9a9aa5;

  /* Accent */
  --pink: #e0457b;
  --pink-2: #c2185b;
  --pink-soft: rgba(224, 69, 123, 0.14);
  --pink-border: rgba(224, 69, 123, 0.38);
  --pink-text: #ff7aa8;
  /* Button gradient tuned so white text keeps ≥4.5:1 contrast (WCAG AA) */
  --grad-pink: linear-gradient(135deg, #d1336b 0%, #b3134f 100%);
  --grad-pink-hover: linear-gradient(135deg, #e0457b 0%, #c2185b 100%);
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.14);
  --red: #ff6b6b;
  --yellow: #fbbf24;

  /* Code (editor) palette */
  --code-bg: #121214;
  --code-gutter: #6b6b76;

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

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Typography */
  --font-ar: "IBM Plex Sans Arabic", "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Arabic glyphs inside code fall back to IBM Plex Sans Arabic (properly joined letters). */
  --font-mono: "JetBrains Mono", "IBM Plex Sans Arabic", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-hero: clamp(2.25rem, 1.2rem + 4.2vw, 4.25rem);
  --lh: 1.75;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-pink: 0 10px 30px rgba(224, 69, 123, 0.35);

  /* Layout */
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
