/**
 * Syntropic Technologies - Design System Core Tokens
 * Modern Geometric Design Language
 */

:root {
  /* Brand Foundations */
  --syn-emerald: #087F5B;
  --syn-emerald-light: #0CA678;
  --syn-emerald-dark: #066749;
  --syn-forest: #123B32;
  --syn-forest-dark: #0B241E;
  --syn-forest-light: #1A5246;

  /* Surfaces & Backgrounds */
  --syn-ivory: #FAF8F2;
  --syn-ivory-warm: #F4EFE6;
  --syn-ivory-card: #FFFFFF;
  --syn-white: #FFFFFF;

  /* Accents */
  --syn-gold: #C6A45C;
  --syn-gold-light: #E0C280;
  --syn-gold-dark: #A8863E;
  --syn-coral: #D97765;
  --syn-coral-light: #E7988A;

  /* Typography & Readability */
  --syn-text: #252A29;
  --syn-text-muted: #707873;
  --syn-text-light: #FAF8F2;
  --syn-border: #E8E4DA;
  --syn-border-gold: rgba(198, 164, 92, 0.4);
  --syn-border-emerald: rgba(8, 127, 91, 0.25);

  /* Fonts */
  --syn-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --syn-font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;

  /* Fluid Modular Scale */
  --syn-fs-display: clamp(2.4rem, 4.5vw + 1rem, 4.25rem);
  --syn-fs-h1: clamp(2rem, 3.2vw + 1rem, 3.25rem);
  --syn-fs-h2: clamp(1.6rem, 2.2vw + 0.8rem, 2.4rem);
  --syn-fs-h3: clamp(1.25rem, 1.4vw + 0.6rem, 1.65rem);
  --syn-fs-h4: clamp(1.1rem, 1vw + 0.5rem, 1.35rem);
  --syn-fs-body-lg: clamp(1.05rem, 0.5vw + 0.95rem, 1.2rem);
  --syn-fs-body: 1rem;
  --syn-fs-small: 0.875rem;
  --syn-fs-micro: 0.75rem;

  /* Geometry & Spacing */
  --syn-radius-sm: 4px;
  --syn-radius-md: 8px;
  --syn-radius-lg: 16px;
  --syn-radius-xl: 24px;
  --syn-radius-full: 9999px;

  --syn-shadow-sm: 0 2px 8px rgba(18, 59, 50, 0.04);
  --syn-shadow-card: 0 4px 20px -2px rgba(18, 59, 50, 0.06);
  --syn-shadow-hover: 0 16px 36px -4px rgba(18, 59, 50, 0.12);
  --syn-shadow-dark: 0 10px 30px rgba(11, 36, 30, 0.35);

  --syn-transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --syn-transition: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --syn-transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  --syn-container-max: 1240px;
  --syn-container-reading: 780px;
}

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

html {
  font-family: var(--syn-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--syn-text);
  background-color: var(--syn-ivory);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--syn-ivory);
}

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

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

a:hover {
  color: var(--syn-emerald-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--syn-font-sans);
  font-weight: 700;
  color: var(--syn-forest);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  color: var(--syn-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Geometric Structural Elements */
.syn-container {
  width: 100%;
  max-width: var(--syn-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 3.5vw, 2.5rem);
}

.syn-container-narrow {
  max-width: var(--syn-container-reading);
}

.syn-section {
  padding-top: clamp(3.5rem, 6vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 6.5rem);
  position: relative;
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

