/* =============================================================================
   tokens.css — Ingeniu brand variables
   Design: "V1 · Minimal Corporate Engineering" (Claude Design v1-home.html)

   ONLY design tokens + the global base reset live here.
   Component styles belong in design.css.

   Two palettes are defined and kept in sync:
     :root                      → dark   (also serves html[data-theme="dark"])
     html[data-theme="light"]   → light  ← the V1 design ships this one

   Which one a visitor gets:
     1. their saved choice from the nav toggle (localStorage), else
     2. their OS `prefers-color-scheme`, else
     3. light — the V1 design is a light design, and it is what base.njk
        hardcodes so a no-JS visitor still gets the intended look.
   The resolution runs in an inline <script> in base.njk, before first paint.

   The dark values are derived from the same design's dark surfaces (its
   footer and index-dark shell), so the two palettes are coherent.
   Any token added below MUST be added to BOTH blocks.
   ========================================================================== */

:root {
  /* ---- Surfaces (dark) ---- */
  --bg: #0A0E14;
  --bg-2: #06090E;
  --surface: #10151D;
  --surface-tint: rgba(16, 21, 29, 0.7);
  --surface-tint-strong: rgba(16, 21, 29, 0.92);

  /* ---- Ink ---- */
  --ink: #E6EAF0;
  --ink-dim: #9AA5B8;
  --ink-faint: #5A6678;
  --steel: #6B7B93;

  /* ---- Hairlines ---- */
  --line: #1F2937;
  --line-2: #2B3646;

  /* ---- Accent ---- */
  --accent: #00A3E3;
  --accent-2: #1FB6F0;
  --accent-soft: rgba(0, 163, 227, 0.10);
  --accent-press: #0077A8;
  --blue: #00A3E3;
  --blue-deep: #0077A8;

  /* ---- Wordmark (logotype fills) ---- */
  --wm-ink: #FFFFFF;
  --wm-accent: #00A3E3;

  /* ---- Component washes ---- */
  --row-hover-bg: #0F1620;
  --cta-gradient-end: #06090E;
  --nav-scrolled-bg: rgba(10, 14, 20, 0.78);
  --drawer-bg: rgba(10, 14, 20, 0.98);
  --grid-hairline: rgba(230, 234, 240, 0.035);
  --scrim: rgba(4, 7, 11, 0.45);

  /* ---- Footer (always dark in this design) ---- */
  --footer-bg: #06090E;
  --footer-line: #1F2937;
  --footer-ink: #E6EAF0;
  --footer-ink-dim: #9AA5B8;
  --footer-ink-faint: #5A6678;

  /* ---- Practice accents (used by expertise / value-chain / tech cards) ---- */
  --c-ai: #7C3AED;
  --c-cad: #1EA5E5;
  --c-software: #3B82F6;
  --c-erp: #10B981;
  --c-quotation: #00A3E3;
  --c-service: #7C3AED;

  /* ---- Typography ---- */
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --fs-mono-xs: 10px;
  --fs-mono-sm: 11px;
  --fs-mono-md: 12px;
  --fs-body-sm: 13px;
  --fs-body: 14px;
  --fs-body-lg: 15px;
  --fs-lede: clamp(19px, 1.4vw, 24px);

  --fs-h1: clamp(56px, 8.2vw, 168px);
  --fs-h2: clamp(40px, 5vw, 80px);
  --fs-h2-lg: clamp(56px, 8vw, 144px);
  --fs-h3: clamp(32px, 3.4vw, 56px);
  --fs-stat: clamp(44px, 5vw, 88px);

  --lh-tight: 0.92;
  --lh-title: 1.02;
  --lh-body: 1.55;

  --tracking-tight: -0.045em;
  --tracking-title: -0.035em;
  --tracking-mono: 0.2em;
  --tracking-mono-sm: 0.16em;

  /* ---- Spacing ---- */
  --wrap-max: 1640px;
  --gutter: 32px;
  --gutter-mobile: 20px;
  --section-pad-y: 180px;
  --section-pad-y-sm: 100px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 240ms;
  --dur: 320ms;
  --dur-slow: 480ms;
}

html[data-theme="light"] {
  /* ---- Surfaces (light — the V1 palette, verbatim) ---- */
  --bg: #FAFAF7;
  --bg-2: #F2F2EE;
  --surface: #FFFFFF;
  --surface-tint: rgba(255, 255, 255, 0.7);
  --surface-tint-strong: rgba(255, 255, 255, 0.9);

  /* ---- Ink ---- */
  --ink: #0A0E14;
  --ink-dim: #46505F;
  --ink-faint: #8C95A3;
  --steel: #6B7B93;

  /* ---- Hairlines ---- */
  --line: #E5E3DC;
  --line-2: #C9C5BA;

  /* ---- Accent ---- */
  --accent: #00A3E3;
  --accent-2: #1FB6F0;
  --accent-soft: rgba(0, 163, 227, 0.06);
  --accent-press: #0077A8;
  --blue: #00A3E3;
  --blue-deep: #0077A8;

  /* ---- Wordmark (logotype fills) ---- */
  --wm-ink: #2E2A2B;
  --wm-accent: #1EA5E5;

  /* ---- Component washes ---- */
  --row-hover-bg: #F4F4EF;
  --cta-gradient-end: #EFEEE8;
  --nav-scrolled-bg: rgba(255, 255, 255, 0.82);
  --drawer-bg: rgba(255, 255, 255, 0.98);
  --grid-hairline: rgba(10, 14, 20, 0.025);
  --scrim: rgba(15, 22, 32, 0.18);

  /* ---- Footer (always dark in this design) ---- */
  --footer-bg: #0A0E14;
  --footer-line: #1F2937;
  --footer-ink: #E6EAF0;
  --footer-ink-dim: #9AA5B8;
  --footer-ink-faint: #5A6678;

  /* ---- Practice accents ---- */
  --c-ai: #7C3AED;
  --c-cad: #1EA5E5;
  --c-software: #3B82F6;
  --c-erp: #10B981;
  --c-quotation: #00A3E3;
  --c-service: #7C3AED;

  /* ---- Typography ---- */
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --fs-mono-xs: 10px;
  --fs-mono-sm: 11px;
  --fs-mono-md: 12px;
  --fs-body-sm: 13px;
  --fs-body: 14px;
  --fs-body-lg: 15px;
  --fs-lede: clamp(19px, 1.4vw, 24px);

  --fs-h1: clamp(56px, 8.2vw, 168px);
  --fs-h2: clamp(40px, 5vw, 80px);
  --fs-h2-lg: clamp(56px, 8vw, 144px);
  --fs-h3: clamp(32px, 3.4vw, 56px);
  --fs-stat: clamp(44px, 5vw, 88px);

  --lh-tight: 0.92;
  --lh-title: 1.02;
  --lh-body: 1.55;

  --tracking-tight: -0.045em;
  --tracking-title: -0.035em;
  --tracking-mono: 0.2em;
  --tracking-mono-sm: 0.16em;

  /* ---- Spacing ---- */
  --wrap-max: 1640px;
  --gutter: 32px;
  --gutter-mobile: 20px;
  --section-pad-y: 180px;
  --section-pad-y-sm: 100px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 240ms;
  --dur: 320ms;
  --dur-slow: 480ms;
}

/* =============================================================================
   Global base — ported from the design's own v1-tokens.css
   ========================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--accent); color: #fff; }

/* Square corners everywhere — editorial feel (from the design) */
button,
input,
select,
textarea { border-radius: 0; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: var(--tracking-title);
  font-weight: 500;
}

/* Skip link — accessibility, no visual weight until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: var(--tracking-mono-sm);
  text-transform: uppercase;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
