/* ============================================================
   Codigenius Brand Tokens — SHARED DNA
   ============================================================

   Used across all Codigenius properties:
   - codigenius.com (corporate)
   - accessos.codigenius.com (product marketing)
   - accesshub.codigenius.com (future)
   - connect.codigenius.com (future)

   NEVER override these values in per-property token files.
   Per-property overrides live in brand-tokens-{property}.css
   and add new tokens (like --accent) without replacing DNA.

   Source of truth: cg-claude/data/company/identity/brand/product-sub-brand-system.md
   ============================================================ */

:root {
  /* --------------------------------------------------------
     COLORS — Shared DNA (never override per property)
     -------------------------------------------------------- */

  /* Primary brand */
  --navy: #0A2540;              /* Primary — headings, nav, footer bg */
  --navy-deep: #061B2E;         /* Deeper navy — near-black backgrounds */
  --ink: #1A2635;               /* Body text (warmer than pure navy) */

  /* Backgrounds */
  --paper: #FAFAF7;             /* Warm off-white — main bg */
  --paper-alt: #F2F4F6;         /* Slightly cooler off-white — alt sections */
  --white: #FFFFFF;             /* Pure white — cards, contained elements */

  /* Lines / borders */
  --line: #E6E9EF;              /* Standard borders, dividers */
  --line-strong: #C8CFD8;       /* Stronger borders when needed */
  --line-dark: #1F3247;         /* Borders on dark sections */

  /* Text tiers (all navy-family) */
  --text-primary: var(--ink);   /* Body text */
  --text-secondary: #5A6A7A;    /* Muted, captions, meta */
  --text-tertiary: #8899AA;     /* Faint, subtle labels */
  --text-inverse: rgba(255, 255, 255, 0.92);  /* Text on dark bg */

  /* --------------------------------------------------------
     TYPOGRAPHY — Shared DNA
     -------------------------------------------------------- */

  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: var(--font-body);                    /* Same family — vary via weight/size */
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* Font weights (General Sans) */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Base font sizes (fluid) */
  --fs-xs: 0.75rem;      /* 12px */
  --fs-sm: 0.875rem;     /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-md: 1.125rem;     /* 18px */
  --fs-lg: 1.25rem;      /* 20px */
  --fs-xl: 1.5rem;       /* 24px */
  --fs-2xl: 2rem;        /* 32px */
  --fs-3xl: clamp(2.25rem, 4vw, 3rem);        /* fluid 36-48px */
  --fs-hero: clamp(2.75rem, 6vw, 4.5rem);     /* fluid 44-72px */

  /* Line heights */
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* Letter spacing (tight for display, loose for uppercase labels) */
  --ls-tight: -0.02em;
  --ls-tighter: -0.03em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.15em;    /* Uppercase eyebrows/labels */

  /* --------------------------------------------------------
     SPACING (8pt grid)
     -------------------------------------------------------- */

  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.5rem;     /* 24px */
  --space-6: 2rem;       /* 32px */
  --space-7: 3rem;       /* 48px */
  --space-8: 4rem;       /* 64px */
  --space-9: 6rem;       /* 96px */
  --space-10: 8rem;      /* 128px */

  /* Section vertical padding (responsive) */
  --section-py: clamp(4rem, 8vw, 8rem);
  --section-py-sm: clamp(2rem, 5vw, 4rem);

  /* --------------------------------------------------------
     LAYOUT
     -------------------------------------------------------- */

  --container-max: 1200px;
  --container-narrow: 800px;
  --container-px: clamp(1rem, 4vw, 2rem);

  /* --------------------------------------------------------
     RADIUS
     -------------------------------------------------------- */

  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* --------------------------------------------------------
     SHADOWS (subtle, professional — not decorative)
     -------------------------------------------------------- */

  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.06);
  --shadow: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.15);

  /* --------------------------------------------------------
     MOTION
     -------------------------------------------------------- */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --transition-fast: 150ms;
  --transition: 250ms;
  --transition-slow: 400ms;

  /* --------------------------------------------------------
     Z-INDEX SCALE
     -------------------------------------------------------- */

  --z-base: 1;
  --z-nav: 10;
  --z-dropdown: 20;
  --z-modal: 100;
  --z-toast: 200;
  --z-cookie-banner: 300;
}

/* ============================================================
   RESET + BASE (Shared)
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--paper);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}
