/* CSS Variables and Design System */
:root {
  /* Color Palette */
  --primary-1: #828689;
  --primary-2: #c5cbcd;
  --secondary-1: #223e54;
  --secondary-2: #60829b;
  --secondary-3: #9dc5e1;
  --comp-dark: #131313;
  --comp-light: #ffffff;

  /* Typography Scale */
  --font-xs: 0.75rem;   /* 12px */
  --font-sm: 0.875rem;  /* 14px */
  --font-base: 1rem;    /* 16px */
  --font-md: 1.125rem;  /* 18px */
  --font-lg: 1.25rem;   /* 20px */
  --font-xl: 1.5rem;    /* 24px */
  --font-2xl: 2rem;     /* 32px */
  --font-3xl: 2.5rem;   /* 40px */
  --font-4xl: 3rem;     /* 48px */

  /* Spacing System (base: 0.5rem = 8px) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 6rem;     /* 96px */
  --space-8: 8rem;     /* 128px */

  /* Border Radius System */
  --radius-sm: 0.125rem;    /* 2px */
  --radius-md: 0.375rem;    /* 6px */
  --radius-lg: 0.5rem;      /* 8px */
  --radius-xl: 0.75rem;     /* 12px */
  --radius-2xl: 1rem;       /* 16px */
  --radius-full: 9999px;

  /* Shadow System */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Glass effect shadows */
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

  /* Animation System */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
  
  /* Animation Curves */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* Typography Utilities */
.text-xs { font-size: var(--font-xs); }
.text-sm { font-size: var(--font-sm); }
.text-base { font-size: var(--font-base); }
.text-md { font-size: var(--font-md); }
.text-lg { font-size: var(--font-lg); }
.text-xl { font-size: var(--font-xl); }
.text-2xl { font-size: var(--font-2xl); }
.text-3xl { font-size: var(--font-3xl); }
.text-4xl { font-size: var(--font-4xl); }

/* Font Weight */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* Line Height */
.leading-tight { line-height: 1.2; }
.leading-snug { line-height: 1.4; }
.leading-normal { line-height: 1.6; }
.leading-relaxed { line-height: 1.8; }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* Letter Spacing */
.tracking-tight { letter-spacing: -0.02em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.05em; }

/* Margin Utilities */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

/* Gap Utilities */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

/* Flex Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

/* Flex Alignment */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

/* Flex Child */
.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

.grow { flex-grow: 1; }
.grow-0 { flex-grow: 0; }
.shrink { flex-shrink: 1; }
.shrink-0 { flex-shrink: 0; }

/* Border Radius Utilities */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Individual Corner Radius */
.rounded-t-lg {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.rounded-b-lg {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.rounded-l-lg {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.rounded-r-lg {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Border Styles */
.border { border: 1px solid; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }

.border-light { border-color: var(--comp-light); }
.border-dark { border-color: var(--comp-dark); }
.border-primary { border-color: var(--primary-1); }

/* Shadow Utilities */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glass { 
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hover Shadow Transitions */
.hover-shadow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hover-shadow:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Transition Utilities */
.transition-all { 
  transition-property: all;
  transition-timing-function: var(--ease-in-out);
  transition-duration: var(--transition-normal);
}

.transition-transform { 
  transition-property: transform;
  transition-timing-function: var(--ease-out);
  transition-duration: var(--transition-normal);
}

.transition-opacity { 
  transition-property: opacity;
  transition-timing-function: var(--ease-in-out);
  transition-duration: var(--transition-normal);
}

/* Duration Utilities */
.duration-fast { transition-duration: var(--transition-fast); }
.duration-normal { transition-duration: var(--transition-normal); }
.duration-slow { transition-duration: var(--transition-slow); }

/* Hover Animations */
.hover-lift {
  transition: transform var(--transition-normal) var(--ease-out);
}
.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-scale {
  transition: transform var(--transition-normal) var(--ease-out);
}
.hover-scale:hover {
  transform: scale(1.05);
}

/* Theme Classes */
.theme-dark {
  background-color: var(--comp-dark);
  color: var(--comp-light);
}

.theme-dark .headline {
  color: var(--comp-light);
}

.theme-dark .body-text,
.theme-dark p {
  color: var(--comp-light);
}

.theme-dark .subhead {
  color: var(--primary-1);
}

.theme-light {
  background-color: var(--comp-light);
  color: var(--comp-dark);
}

.theme-light .headline {
  color: var(--comp-dark);
}

.theme-light .body-text,
.theme-light p {
  color: var(--secondary-2);
}

.theme-light .subhead {
  color: var(--primary-1);
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8rem;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Responsive Container */
@media (max-width: 1200px) {
  .container {
    padding: 0 4rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Section Base Styles */
.section {
  position: relative;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  width: 100%;
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }
}

/* Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

/* Responsive Grids */
@media (max-width: 992px) {
  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Section Content Layout */
.section-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) var(--ease-out);
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-normal) var(--ease-out);
}

/* Viewport Check Utility */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

/* Base styles reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}