/* ==========================================================================
   WEQ Technologies — colors_and_type.css
   Dark-first design tokens + semantic typography.
   Import: <link rel="stylesheet" href="colors_and_type.css">
   ========================================================================== */

/* Google Fonts: Sora (display), Inter (body), JetBrains Mono (mono) */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---------- Brand ---------- */
  --brand-50:  #FDF2E6;
  --brand-100: #FBE0C4;
  --brand-200: #F8C591;
  --brand-300: #F5A85E;
  --brand-400: #F29744;
  --brand-500: #F18D36; /* canonical brand orange (logo mid-tone) */
  --brand-600: #E57E22;
  --brand-700: #C46511;
  --brand-800: #8F4A0C;
  --brand-900: #5A2E08;

  --brand-gradient-start: #F29037; /* logo top */
  --brand-gradient-end:   #F08133; /* logo bottom */
  --gradient-brand: linear-gradient(180deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);

  /* ---------- Neutrals (warm-biased dark scale) ---------- */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F5F5F5;
  --neutral-100: #E6E6E8;
  --neutral-200: #C8C8CC;
  --neutral-300: #9A9AA0;
  --neutral-400: #6F6F75;
  --neutral-500: #4A4A50;
  --neutral-600: #35363C;
  --neutral-700: #262A33;
  --neutral-800: #1D2027;
  --neutral-900: #15171D;
  --neutral-950: #0B0C10; /* canvas */

  /* ---------- Canvas + surfaces (dark, canonical) ---------- */
  --bg-canvas:     var(--neutral-950);
  --bg-surface-1:  var(--neutral-900);
  --bg-surface-2:  var(--neutral-800);
  --bg-surface-3:  var(--neutral-700);
  --bg-overlay:    rgba(11, 12, 16, 0.72);
  --gradient-hero: radial-gradient(1200px 600px at 50% 0%, #1D2027 0%, #0B0C10 70%);

  /* ---------- Foreground ---------- */
  --fg-1: #F5F5F5; /* primary text */
  --fg-2: #C8C8CC; /* secondary text */
  --fg-3: #9A9AA0; /* tertiary / meta */
  --fg-4: #6F6F75; /* disabled / placeholder */
  --fg-on-brand: #1A0E02; /* text that sits on top of brand orange */

  /* ---------- Borders ---------- */
  --border-subtle: rgba(255,255,255,0.08);
  --border-default: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.20);
  --border-brand: var(--brand-500);

  /* ---------- Semantic (used sparingly) ---------- */
  --success-500: #3DB96B;
  --success-bg:  rgba(61,185,107,0.12);
  --warning-500: #F3B340; /* distinct from brand orange */
  --warning-bg:  rgba(243,179,64,0.14);
  --danger-500:  #E5484D;
  --danger-bg:   rgba(229,72,77,0.14);
  --info-500:    #3B82F6;
  --info-bg:     rgba(59,130,246,0.14);

  /* ---------- Shadows / elevation ---------- */
  --shadow-pop: 0 12px 32px rgba(0,0,0,0.40);
  --shadow-lift: 0 4px 12px rgba(0,0,0,0.32);
  --shadow-glow-brand: 0 0 0 4px rgba(241,141,54,0.18);

  /* ---------- Radii ---------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* ---------- Spacing (8pt grid) ---------- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 80px;
  --space-14: 96px;
  --space-16: 128px;

  /* ---------- Typography: families ---------- */
  --font-display: 'Sora', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ---------- Typography: size scale ---------- */
  /* UI scale (1.2x) */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  /* Display scale (1.333x) */
  --display-sm: 32px;
  --display-md: 40px;
  --display-lg: 56px;
  --display-xl: 72px;
  --display-2xl: 96px;

  /* ---------- Typography: weights ---------- */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extra: 800;

  /* ---------- Typography: line-height + tracking ---------- */
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-loose: 1.7;

  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-upper: 0.12em;

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* ---------- Layout ---------- */
  --max-content: 1280px;
  --gutter-desktop: 48px;
  --gutter-mobile: 24px;
}

/* ==========================================================================
   Base elements — semantic typography tags
   ========================================================================== */

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--fg-1);
  margin: 0 0 var(--space-4);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--display-lg); font-weight: var(--fw-bold); }
h2 { font-size: var(--display-md); font-weight: var(--fw-bold); }
h3 { font-size: var(--display-sm); font-weight: var(--fw-semibold); }
h4 { font-size: var(--text-xl);    font-weight: var(--fw-semibold); letter-spacing: var(--tracking-snug); }
h5 { font-size: var(--text-lg);    font-weight: var(--fw-semibold); letter-spacing: var(--tracking-snug); }
h6 { font-size: var(--text-md);    font-weight: var(--fw-semibold); letter-spacing: var(--tracking-snug); }

p {
  margin: 0 0 var(--space-4);
  color: var(--fg-2);
  line-height: var(--lh-normal);
  text-wrap: pretty;
}

small { font-size: var(--text-sm); color: var(--fg-3); }

a {
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 1px solid var(--border-default);
  transition: color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--brand-500); border-bottom-color: var(--brand-500); }

strong, b { font-weight: var(--fw-semibold); color: var(--fg-1); }
em, i     { font-style: italic; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-surface-2);
  color: var(--fg-1);
  padding: 0.12em 0.4em;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

pre {
  font-family: var(--font-mono);
  background: var(--bg-surface-1);
  color: var(--fg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  line-height: var(--lh-snug);
}
pre code { background: none; border: none; padding: 0; }

blockquote {
  margin: var(--space-5) 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--brand-500);
  color: var(--fg-2);
  font-style: normal;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-6) 0;
}

ul, ol { padding-left: var(--space-5); color: var(--fg-2); }
li { margin-bottom: var(--space-2); }

/* ==========================================================================
   Utility / helper classes
   ========================================================================== */

.display-2xl { font-family: var(--font-display); font-size: var(--display-2xl); font-weight: var(--fw-extra); letter-spacing: var(--tracking-tight); line-height: var(--lh-tight); }
.display-xl  { font-family: var(--font-display); font-size: var(--display-xl);  font-weight: var(--fw-bold);  letter-spacing: var(--tracking-tight); line-height: var(--lh-tight); }
.display-lg  { font-family: var(--font-display); font-size: var(--display-lg);  font-weight: var(--fw-bold);  letter-spacing: var(--tracking-tight); line-height: var(--lh-tight); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-upper);
  text-transform: uppercase;
  color: var(--brand-500);
}

.lead {
  font-size: var(--text-md);
  color: var(--fg-2);
  line-height: var(--lh-normal);
}

.mono { font-family: var(--font-mono); }
.num  { font-variant-numeric: tabular-nums; }

.text-brand { color: var(--brand-500); }
.text-fg-1 { color: var(--fg-1); }
.text-fg-2 { color: var(--fg-2); }
.text-fg-3 { color: var(--fg-3); }

.bg-canvas    { background: var(--bg-canvas); }
.bg-surface-1 { background: var(--bg-surface-1); }
.bg-surface-2 { background: var(--bg-surface-2); }
.bg-surface-3 { background: var(--bg-surface-3); }

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--gutter-mobile); }
}
