/* ==========================================================================
   VERTEX LAB — VISUAL IDENTITY & SOCIAL SYSTEM · V1
   css/tokens.css — Design Tokens, Color Proportion Law & Typography Variables
   "Precision, connected." — An Arabic-first architectural system
   ========================================================================== */

:root {
  /* 01 — COLOUR PALETTE (Strict 60 / 25 / 10 / 5 Proportion Law) */
  --color-paper: #F5F8FB;        /* 60% Dominance · Primary Light Ground */
  --color-white: #FFFFFF;        /* Pure Architectural Surface Cards & Logo Ground */
  --color-navy: #041939;         /* 25% Dominance · Primary Authority, Grounds, Headlines */
  --color-steel: #0E4169;        /* 10% Dominance · Secondary Depth, Text on Light */
  --color-cyan: #0E9BD3;         /* 5% Max Accent · Single Emphasis Word, Active Nodes, 2px Hairlines */
  --color-cyan-light: #7DD3FC;   /* Dark-Ground Syntax Highlighting */
  --color-mist: #E3F0F8;         /* Tints, Secondary Panels, Structural 1px Hairline Grid */
  --color-slate: #566678;        /* Secondary Body Copy & Supporting Descriptions */

  /* Semantic Surface & Text Aliases */
  --bg-primary: var(--color-paper);
  --bg-surface: var(--color-white);
  --bg-subtle: var(--color-mist);
  --bg-authority: var(--color-navy);
  --bg-depth: var(--color-steel);

  --text-primary: var(--color-navy);
  --text-secondary: var(--color-slate);
  --text-technical: var(--color-steel);
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(245, 248, 251, 0.82);

  /* Architectural Gradients */
  --gradient-authority: linear-gradient(135deg, #041939 0%, #0E4169 100%);
  --gradient-accent: linear-gradient(90deg, #0E4169 0%, #0E9BD3 100%);
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F5F8FB 100%);

  /* Borders & Hairlines */
  --border-structural: rgba(14, 65, 105, 0.16);
  --border-interactive: rgba(14, 65, 105, 0.24);
  --hairline-1: 1px solid var(--border-structural);
  --hairline-2-cyan: 2px solid var(--color-cyan);
  --hairline-2-navy: 2px solid var(--color-navy);
  --hairline-dark: 1px solid rgba(227, 240, 248, 0.16);

  /* Elevation & Soft Navy-Tinted Shadows (Zero Muddy Glassmorphism) */
  --shadow-soft: 0 12px 32px -8px rgba(4, 25, 57, 0.06);
  --shadow-panel: 0 20px 44px -12px rgba(4, 25, 57, 0.10);
  --shadow-dark-stage: 0 24px 56px -12px rgba(2, 12, 29, 0.42);

  /* 02 — TYPOGRAPHY SYSTEM */
  --font-arabic: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Typographic Scale (Desktop-to-Mobile Fluid Clamp mapped from V1 Social System) */
  --text-hero: clamp(2.35rem, 4.4vw, 4.1rem);       /* Headline: weight 700 · line-height 1.22 */
  --text-h2: clamp(1.85rem, 3.2vw, 2.85rem);        /* Section Headline: weight 700 · line-height 1.22 */
  --text-h3: clamp(1.35rem, 2.1vw, 1.75rem);        /* Sub-headline / Statement: weight 700 · line-height 1.3 */
  --text-support: clamp(1.05rem, 1.35vw, 1.22rem);  /* Support copy: weight 400 · line-height 1.6 */
  --text-body: 1rem;                                /* Regular body: 16px · weight 400 · line-height 1.65 */
  --text-cta: 1.0625rem;                            /* CTA: 17px · weight 500 */
  --text-label: 0.9375rem;                          /* Label: 15px · weight 500 */
  --text-mono: 0.78rem;                             /* Mono annotation: +14% tracking */
  --text-mono-xs: 0.72rem;                          /* Coordinate & node indices */

  --lh-headline: 1.28;
  --lh-support: 1.6;
  --tracking-mono: 0.14em;

  /* 04 — LAYOUT & GEOMETRY RULES */
  --page-margin: clamp(24px, 6vw, 84px);
  --grid-columns: 12;
  --grid-gap: clamp(16px, 2vw, 28px);
  --container-max: 1380px;

  /* Strict Radius Tokens (6px / 12px / 16px / 20px per V1 Layout Rules) */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;

  /* Motion & Precision Transitions */
  --ease-architectural: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
}
