/* ==========================================================================
   MSQ ANALYTICS WORLD — MASTER DESIGN SYSTEM & TOKENS
   Target Brand: MSQ Analytics World (Power BI & BI Modernization Practice)
   Specification: MSQ-REQ-SPEC-2026-V2

   Color System Hierarchy:
   - Navy (60%): Foundation & Enterprise Authority (#071324, #0A192F, #0F2752)
   - Electric Blue (25%): Primary Action & Analytics Accent (#0066FF, #0052CC)
   - Cyan (10%): Data Flows, Telemetry & Highlights (#00E5FF, #00D2FF)
   - World Orange (5%): Limited High-Impact CTA Emphasis (#FF5500, #F56B1E)
   - Clean Whites & Light Grays: Content Surfaces (#FFFFFF, #F8FAFC, #F1F5F9)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ==========================================================================
     CENTRALIZED BRAND VARIABLES (DERIVED FROM MASTER LOGO)
     ========================================================================== */
  --brand-navy: #0A192F;
  --brand-navy-dark: #040812;
  --brand-navy-light: #141E35;
  --brand-blue: #0175FE;
  --brand-blue-hover: #005ECC;
  --brand-blue-subtle: #EBF4FF;
  --brand-cyan: #5ACDFE;
  --brand-cyan-light: #F0FAFF;
  --brand-yellow: #FDB813;
  --brand-orange: #EE8C03;
  --brand-background: #FFFFFF;
  --brand-text: #0F172A;
  --brand-muted: #64748B;
  --brand-border: #E2E8F0;

  /* Brand Master Foundation Colors (Navy Spectrum) */
  --msq-navy-950: var(--brand-navy-dark);
  --msq-navy-900: #071324; /* Base dark navy */
  --msq-navy-850: var(--brand-navy); /* Primary brand navy */
  --msq-navy-800: #0F2752;
  --msq-navy-700: var(--brand-navy-light);
  --msq-navy-600: #1C305C;
  
  /* Electric / Power BI Blue Spectrum */
  --msq-blue-600: var(--brand-blue-hover);
  --msq-blue-500: var(--brand-blue); /* Primary Action */
  --msq-blue-400: #3B92FE;
  --msq-blue-300: #7CB5FE;
  --msq-blue-100: var(--brand-blue-subtle);
  --msq-blue-50:  #F5F9FF;

  /* Cyan / Sky Blue Spectrum */
  --msq-cyan-600: #0099CC;
  --msq-cyan-500: var(--brand-cyan); /* Core Cyan Accent */
  --msq-cyan-400: #7AD9FE;
  --msq-cyan-200: #BAE8FE;
  --msq-cyan-50:  var(--brand-cyan-light);

  /* Warm Yellow & High-Impact Orange Accents */
  --msq-yellow-500: var(--brand-yellow);
  --msq-yellow-400: #FEE961;
  --msq-yellow-100: #FEF9C3;
  
  --msq-orange-600: #D47B00;
  --msq-orange-500: var(--brand-orange); /* Brand Orange CTA */
  --msq-orange-400: #F8AB0E;
  --msq-orange-100: #FFF4E5;
  --msq-orange-50:  #FFFBF5;
  --msq-orange-glow: rgba(238, 140, 3, 0.35);

  /* Slate & Neutral Hierarchy */
  --slate-950: #0B0F19;
  --slate-900: var(--brand-text);
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: var(--brand-muted);
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: var(--brand-border);
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --pure-white: var(--brand-background);

  /* Functional Semantic Aliases */
  --color-primary-navy: var(--brand-navy);
  --color-dark-navy: var(--brand-navy-dark);
  --color-bright-blue: var(--brand-blue);
  --color-blue-hover: var(--brand-blue-hover);
  --color-cyan-accent: var(--brand-cyan);
  --color-yellow-highlight: var(--brand-yellow);
  --color-world-orange: var(--brand-orange);
  --color-bg-light: var(--slate-50);
  --color-text-primary: var(--brand-text);
  --color-text-muted: var(--brand-muted);
  --color-border-glass: rgba(255, 255, 255, 0.12);
  --color-border-light: var(--brand-border);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(7, 19, 36, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(7, 19, 36, 0.08), 0 2px 6px -1px rgba(7, 19, 36, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(7, 19, 36, 0.1), 0 4px 8px -2px rgba(7, 19, 36, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(7, 19, 36, 0.14), 0 8px 16px -4px rgba(7, 19, 36, 0.06);
  --shadow-2xl: 0 30px 60px -12px rgba(7, 19, 36, 0.22);
  --shadow-glow-blue: 0 0 30px rgba(1, 117, 254, 0.3);
  --shadow-glow-cyan: 0 0 25px rgba(90, 205, 254, 0.35);
  --shadow-glow-orange: 0 0 25px rgba(238, 140, 3, 0.35);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--pure-white);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-navy);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.35rem, 4.8vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--slate-600);
  font-size: 1.025rem;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Global Container (Widescreen Optimization) */
.container {
  width: 100%;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container-wide {
  width: 100%;
  max-width: 1840px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Section Wrapper Base */
.section {
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  position: relative;
}

.section-tight {
  padding: clamp(1.5rem, 2.5vw, 2.25rem) 0;
}

.section-dark {
  background: radial-gradient(circle at 50% 15%, var(--msq-navy-850) 0%, var(--msq-navy-900) 60%, var(--msq-navy-950) 100%);
  color: var(--pure-white);
}

.section-dark h2, 
.section-dark h3,
.section-dark h4 {
  color: var(--pure-white);
}

.section-dark p {
  color: var(--slate-300);
}

.section-light {
  background-color: var(--pure-white);
}

.section-light-slate {
  background-color: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

/* Section Header Structure */
.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto clamp(1.25rem, 2vw, 1.85rem) auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-bright-blue);
  background-color: var(--msq-blue-50);
  border: 1px solid rgba(0, 102, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.section-dark .section-header-tag {
  color: var(--msq-cyan-400);
  background-color: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.25);
}

.section-header-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.22;
}

.section-header-desc {
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  color: var(--color-text-muted);
  line-height: 1.52;
}

.section-dark .section-header-desc {
  color: var(--slate-300);
}

/* Code & Tech Highlighting */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

.section-dark .tech-pill {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--slate-200);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-bright-blue);
  outline-offset: 3px;
}
