/* ==========================================================================
   VECTIS CLOUD - LIGHT MODE DESIGN SYSTEM & DESIGN TOKENS
   Impeccable Craft • Swiss Engineering Precision • High-Contrast Light Theme
   ========================================================================== */

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

:root {
  /* Color Palette - Premium Porcelain / Slate / Tech Blue */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-elevated: #E2E8F0;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-heavy: rgba(255, 255, 255, 0.96);

  /* Primary & Accent Spectrum */
  --blue-primary: #2563EB;
  --blue-glow: rgba(37, 99, 235, 0.2);
  --blue-dim: rgba(37, 99, 235, 0.08);
  --blue-border: rgba(37, 99, 235, 0.3);

  --cyan-primary: #0284C7;
  --cyan-glow: rgba(2, 132, 199, 0.2);
  --cyan-dim: rgba(2, 132, 199, 0.08);
  --cyan-border: rgba(2, 132, 199, 0.25);

  --emerald-primary: #059669;
  --emerald-glow: rgba(5, 150, 105, 0.18);
  --emerald-dim: rgba(5, 150, 105, 0.08);

  --violet-primary: #7C3AED;
  --violet-glow: rgba(124, 58, 237, 0.18);
  --violet-dim: rgba(124, 58, 237, 0.08);

  --amber-primary: #D97706;
  --amber-glow: rgba(217, 119, 6, 0.18);
  --amber-dim: rgba(217, 119, 6, 0.08);

  --rose-primary: #E11D48;
  --indigo-dark: #0F172A;

  /* High-Contrast Typography Hierarchy (WCAG AAA Compliant) */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --text-on-blue: #FFFFFF;

  /* Crisp Borders & Dividers */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-strong: rgba(15, 23, 42, 0.24);
  --border-focus: #2563EB;
  --border-glass: 1px solid rgba(15, 23, 42, 0.08);
  --border-card-highlight: inset 0 1px 0 rgba(255, 255, 255, 1);

  /* Multi-Layered Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 12px 16px -8px rgba(15, 23, 42, 0.06);
  --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, 0.18);
  --shadow-glow-emerald: 0 0 30px rgba(5, 150, 105, 0.18);

  /* Typography Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Layout Constants */
  --max-width-site: 1320px;
  --max-width-text: 75ch;
  --header-height: 76px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & GLOBAL BASE
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle Technical Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 90% 40%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Text Selection Polish */
::selection {
  background: #DBEAFE;
  color: #1E3A8A;
}

/* Custom Scrollbar Polish */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
}

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

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

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

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Utility Containers */
.site-container {
  width: 100%;
  max-width: var(--max-width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.section-spacing {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .section-spacing {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

/* Header Text Wrappers */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

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

.section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* High-Contrast Gradient Text */
.gradient-text-blue {
  background: linear-gradient(135deg, #0F172A 30%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-indigo {
  background: linear-gradient(135deg, #1E293B 20%, #4F46E5 70%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
