/* ==========================================================================
   EXCELSIOR RESEARCH UNIFIED — EXECUTIVE WHITE, SKY BLUE & NAVY BLUE THEME
   ========================================================================== */

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

:root {
  /* Core Executive Canvas: Clean White, Soft Ice, and Dark Navy */
  --bg-primary: #ffffff;        /* Crisp Pure White */
  --bg-secondary: #f8fafc;      /* Soft Ice Slate */
  --bg-surface: #f1f5f9;        /* Light Frosted Slate */
  --bg-elevated: #ffffff;       /* Pure White Elevated Surfaces */
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-heavy: rgba(255, 255, 255, 0.96);
  --bg-dark-surface: #0f172a;   /* Deep Executive Navy */
  --bg-dark-card: #1e293b;

  /* Primary Brand Accent Colors: Sky Blue, Royal Blue & Deep Navy */
  --accent-sky: #0ea5e9;          /* Electric Sky Blue */
  --accent-sky-light: #38bdf8;    /* Bright Cyan Sky */
  --accent-sky-dark: #0284c7;     /* Rich Azure Sky */
  --accent-navy: #0f172a;         /* Deep Executive Navy */
  --accent-navy-light: #1e293b;   /* Midnight Slate */
  --accent-royal: #2563eb;        /* Royal Enterprise Blue */
  --accent-cyan: #06b6d4;         /* Telemetry Cyan */
  --accent-emerald: #10b981;      /* Verified Green */
  --accent-amber: #f59e0b;        /* Alert Amber */

  /* Executive Gradients */
  --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #0f172a 100%);
  --grad-sky-royal: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #2563eb 100%);
  --grad-navy-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
  --grad-text: linear-gradient(180deg, #0f172a 0%, #1e293b 65%, #0284c7 100%);
  --grad-text-sky: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #2563eb 100%);
  --grad-border: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(37, 99, 235, 0.15) 100%);
  --grad-border-accent: linear-gradient(135deg, rgba(14, 165, 233, 0.8) 0%, rgba(37, 99, 235, 0.6) 100%);

  /* High-Contrast Professional Typography Colors */
  --text-main: #0f172a;           /* Deep Charcoal Black / Dark Navy */
  --text-secondary: #334155;      /* Crisp Dark Slate (Readable Body) */
  --text-muted: #64748b;          /* Professional Slate Grey */
  --text-dim: #94a3b8;            /* Light Subtext Grey */
  --text-inverse: #ffffff;        /* Pure White for Dark Containers */

  /* Borders & Shadows */
  --border-light: #e2e8f0;        /* Subtle Border */
  --border-glass: rgba(14, 165, 233, 0.18);
  --border-glass-hover: rgba(14, 165, 233, 0.45);
  --border-accent: rgba(14, 165, 233, 0.4);
  
  --glow-sky: 0 0 25px rgba(14, 165, 233, 0.35);
  --glow-royal: 0 0 30px rgba(37, 99, 235, 0.3);
  --glow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(226, 232, 240, 0.8);
  --glow-card-hover: 0 16px 36px -4px rgba(14, 165, 233, 0.18), 0 0 0 1px rgba(14, 165, 233, 0.4);

  /* Refined Typography Stack */
  --font-display: 'Outfit', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout Spacing */
  --container-max: 1280px;
  --container-wide: 1440px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Refined & Professional Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1, .display-1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw + 0.5rem, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2, .display-2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw + 0.4rem, 2.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 1.6vw + 0.3rem, 1.55rem);
  font-weight: 700;
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--text-secondary);
  font-size: clamp(0.92rem, 0.4vw + 0.82rem, 1.02rem);
  font-weight: 400;
  line-height: 1.65;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0ea5e9, #2563eb);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0284c7, #0f172a);
}

/* Ambient Clean Grid */
.cyber-bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  pointer-events: none;
}

.cyber-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 12%, rgba(14, 165, 233, 0.1) 0%, rgba(37, 99, 235, 0.04) 40%, transparent 75%);
}

/* Typography Gradient Helpers */
.text-gradient {
  background: var(--grad-text-sky);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-navy {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Executive Badge Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #0284c7;
  backdrop-filter: blur(10px);
}

.badge-pill.navy {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

.badge-pill.emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #0ea5e9;
  box-shadow: 0 0 10px #0ea5e9;
  animation: pulseAnimation 2s infinite ease-in-out;
}

.pulse-dot.navy {
  background-color: #0f172a;
  box-shadow: 0 0 8px #0f172a;
}

.pulse-dot.emerald {
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

@keyframes pulseAnimation {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hidden {
  display: none !important;
}
