/* StackedOn.AI design tokens
   Source: reference/StackedOn.AI_Brand_Standards_V3.pdf (single source of truth).
   Every other stylesheet uses ONLY these variables. Do not add off-palette colours. */

:root {
  /* ---------- Brand colours (verbatim from Brand Standards V3, section 02) ---------- */
  --color-primary:   #0D0D0D; /* Carbon Black — primary background */
  --color-accent:    #E8380D; /* Vermillion — CTAs, highlights. Never a section background */
  --color-amber:     #D4920A; /* Amber Gold — secondary accent */
  --color-green:     #00FF7F; /* Electric Green — success, mark bar */
  --color-secondary: #2A2A2A; /* Graphite — cards, surfaces */
  --color-muted:     #A89880; /* Warm Stone — subtext, dividers, tagline */
  --color-light:     #F5F0E8; /* Warm Bone — headlines on dark */
  --color-white:     #FFFFFF; /* Pure White — max contrast, CTA text */

  /* RGB channels, so palette colours can be used as opacity tints (brand: "lighten using opacity or tint") */
  --rgb-primary:   13, 13, 13;
  --rgb-accent:    232, 56, 13;
  --rgb-amber:     212, 146, 10;
  --rgb-green:     0, 255, 127;
  --rgb-secondary: 42, 42, 42;
  --rgb-muted:     168, 152, 128;
  --rgb-light:     245, 240, 232;
  --rgb-white:     255, 255, 255;

  /* ---------- Semantic roles (all map to the palette above) ---------- */
  --bg:            var(--color-primary);
  --surface:       var(--color-secondary);
  --surface-soft:  rgba(var(--rgb-secondary), .55);   /* Graphite at 55% over Carbon */
  --text:          var(--color-light);                 /* 17.6:1 on Carbon */
  --text-strong:   var(--color-white);
  --text-muted:    var(--color-muted);                 /* 6.9:1 on Carbon, 5.1:1 on Graphite */
  --line:          rgba(var(--rgb-muted), .18);        /* Warm Stone divider */
  --line-strong:   rgba(var(--rgb-muted), .35);
  --cta-bg:        var(--color-accent);
  --cta-bg-hover:  #EC5631;                            /* Vermillion lightened 15% toward white (brand hover rule) */
  --cta-text:      var(--color-white);
  --focus:         var(--color-amber);                 /* 7.3:1 on Carbon */
  --success:       var(--color-green);

  /* ---------- Typography (section 03 / 04) ---------- */
  --font-primary: 'Inter', sans-serif;

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  /* Brand type scale: size / line height / tracking */
  --text-display: 56px;  --lh-display: 64px;  --ls-display: -2px;
  --text-h1:      40px;  --lh-h1:      48px;  --ls-h1:      -1.5px;
  --text-h2:      28px;  --lh-h2:      36px;  --ls-h2:      -1px;
  --text-h3:      20px;  --lh-h3:      28px;  --ls-h3:      -0.5px;
  --text-h4:      16px;  --lh-h4:      24px;  --ls-h4:      0px;
  --text-body-lg: 16px;  --lh-body-lg: 26px;
  --text-body:    14px;  --lh-body:    22px;
  --text-body-sm: 12px;  --lh-body-sm: 18px;
  --text-label:   11px;  --lh-label:   16px;  --ls-label:   1px;
  --text-overline:10px;  --lh-overline:14px;  --ls-overline:3px;
  --ls-tagline:   2.8px;

  /* Web extension (pending Raz OK): the brand px values are "web defaults";
     on large screens the hero and section titles scale up from them, never below. */
  --text-hero:    clamp(var(--text-h1), 6.2vw, 96px);
  --text-section: clamp(var(--text-h2), 3.6vw, 52px);
  --text-lead:    clamp(var(--text-body-lg), 1.35vw, 20px);

  /* ---------- Spacing (4px base) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;   /* also the logo's minimum clear space */
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --section-y: clamp(var(--space-8), 10vw, 160px);
  --gutter:    clamp(20px, 5vw, 72px);
  --container: 1200px;

  /* ---------- Radius ---------- */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  /* ---------- Motion ---------- */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast:    .18s;
  --dur:         .4s;
  --dur-slow:    .8s;

  /* ---------- Logo ---------- */
  --logo-min-width: 80px;  /* brand minimum digital size */
}
