/* ============================================================
   Digital Quasar — Colors & Type
   Brand: AI & Data Solutions consulting (Chile / LatAm)
   Logo blue sampled directly from the wordmark: #0739F9
   ============================================================ */

/* Fonts — substitutions from Google Fonts.
   FLAGGED: brand spec calls for "bold, modern sans-serif (clean geometry)"
   for headers and "crisp, professional sans" for body — we use
   Space Grotesk + Inter as the closest free matches.
   Replace @font-face below if a brand-licensed family arrives. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---------- BRAND CORE ---------- */
  --quasar-blue:        #0739F9;  /* logo blue, electric cobalt — accent + key brand color */
  --quasar-blue-700:    #0A2DC2;  /* press / hover-down */
  --quasar-blue-300:    #6F88FB;
  --quasar-blue-100:    #DCE3FE;

  /* ---------- PRIMARY NAVY (authority, trust) ---------- */
  --navy-900:           #14193F;  /* deepest, page-level dark */
  --navy-800:           #1E2761;  /* primary brand navy */
  --navy-700:           #2F3C7E;  /* secondary navy */
  --navy-500:           #54619A;
  --navy-300:           #8E97BD;

  /* ---------- ICE BLUE (data / tech accent) ---------- */
  --ice-500:            #CADCFC;  /* canonical ice */
  --ice-300:            #E2EAFD;
  --ice-100:            #F1F5FE;

  /* ---------- NEUTRALS ---------- */
  --ink-900:            #0B0E1F;  /* body text on light */
  --ink-700:            #2A2F46;
  --ink-500:            #5A6079;
  --ink-300:            #9BA0B5;
  --line-200:           #E4E7EF;  /* hairline borders */
  --line-100:           #EEF1F6;
  --surface-50:         #F7F8FB;  /* page bg, alt */
  --surface-0:          #FFFFFF;

  /* ---------- SEMANTIC (data viz / status) ---------- */
  --success-500:        #1F9D6E;
  --success-100:        #D7F1E5;
  --warning-500:        #E0A300;
  --warning-100:        #FCEFC8;
  --danger-500:         #D9405C;
  --danger-100:         #FBDDE3;
  --info-500:           var(--quasar-blue);
  --info-100:           var(--quasar-blue-100);

  /* ---------- DATA-VIZ CATEGORICAL (minimal, accessible) ---------- */
  --viz-1: #0739F9;   /* quasar blue */
  --viz-2: #2F3C7E;   /* navy */
  --viz-3: #1F9D6E;   /* teal-green */
  --viz-4: #E0A300;   /* amber */
  --viz-5: #D9405C;   /* coral */
  --viz-6: #6F88FB;   /* light blue */
  --viz-7: #54619A;   /* slate */

  /* ---------- TYPE FAMILIES ---------- */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---------- TYPE SCALE (modular ~1.25) ---------- */
  --fs-display: 56px;   --lh-display: 1.04;  --tr-display: -0.02em;
  --fs-h1:      40px;   --lh-h1:      1.10;  --tr-h1:      -0.018em;
  --fs-h2:      30px;   --lh-h2:      1.18;  --tr-h2:      -0.014em;
  --fs-h3:      22px;   --lh-h3:      1.28;  --tr-h3:      -0.010em;
  --fs-h4:      18px;   --lh-h4:      1.36;  --tr-h4:      -0.006em;
  --fs-body:    15px;   --lh-body:    1.55;  --tr-body:    0;
  --fs-small:   13px;   --lh-small:   1.50;  --tr-small:   0;
  --fs-micro:   11px;   --lh-micro:   1.45;  --tr-micro:    0.06em;  /* uppercase eyebrows */
  --fs-metric:  44px;   --lh-metric:  1.00;  --tr-metric:  -0.022em;

  /* ---------- WEIGHTS ---------- */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* ---------- SPACING (4px base) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ---------- RADII ---------- */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-pill: 999px;

  /* ---------- ELEVATION (subtle, data-focused — no heavy blur) ---------- */
  --shadow-hairline: 0 0 0 1px var(--line-200);
  --shadow-1: 0 1px 2px rgba(15, 23, 60, 0.04), 0 1px 1px rgba(15, 23, 60, 0.03);
  --shadow-2: 0 4px 12px rgba(15, 23, 60, 0.06), 0 1px 2px rgba(15, 23, 60, 0.04);
  --shadow-3: 0 12px 32px rgba(15, 23, 60, 0.10), 0 2px 6px rgba(15, 23, 60, 0.04);
  --shadow-focus: 0 0 0 3px rgba(7, 57, 249, 0.25);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.6);

  /* ---------- MOTION ---------- */
  --ease-standard: cubic-bezier(0.2, 0.0, 0.0, 1.0);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* ============================================================
   SEMANTIC TYPOGRAPHY — apply by class, never raw values
   ============================================================ */

html, body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--surface-0);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dq-display, h1.display {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--navy-900);
}

h1, .dq-h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tr-h1);
  color: var(--navy-900);
  margin: 0;
}

h2, .dq-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-h2);
  color: var(--navy-900);
  margin: 0;
}

h3, .dq-h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--tr-h3);
  color: var(--navy-900);
  margin: 0;
}

h4, .dq-h4 {
  font-family: var(--font-body);
  font-weight: var(--fw-semi);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--tr-h4);
  color: var(--ink-900);
  margin: 0;
}

p, .dq-body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-700);
  margin: 0;
  text-wrap: pretty;
}

.dq-small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--ink-500);
}

.dq-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-semi);
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--tr-micro);
  text-transform: uppercase;
  color: var(--quasar-blue);
}

.dq-metric {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-metric);
  line-height: var(--lh-metric);
  letter-spacing: var(--tr-metric);
  color: var(--navy-900);
  font-feature-settings: "tnum" 1, "lnum" 1;  /* tabular figures for data */
}

.dq-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
}

em, .dq-emphasis {
  font-style: italic;
  color: var(--navy-800);
}

code, .dq-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--ice-100);
  color: var(--navy-800);
  padding: 1px 6px;
  border-radius: var(--r-xs);
}
