/* Reset and Foundation */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --primary: #2C3E50;
  --primary-dark: #1a252f;
  --accent: #18BC9C;
  --accent-hover: #148f73;
  --bg-primary: #E8F4F8;
  --bg-secondary: #ECF0F1;
  --bg-card: #ffffff;
  --text-primary: #2C3E50;
  --text-secondary: #95A5A6;
  --border-color: #BDC3C7;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px 0;
  --card-padding: 32px;
  
  /* Transitions */
  --transition-smooth: all 0.3s ease;
  --transition-quick: all 0.15s ease;
  
  /* Z-index scale */
  --z-dropdown: 10;
  --z-header: 20;
  --z-modal: 30;
  --z-cookie: 50;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  line-height: 1.7;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 2.44rem; /* 44px */
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem; /* 36px */
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem; /* 27px */
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem; /* 22px */
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-hover);
}

/* Layout Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.auto-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: var(--section-padding);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Flexbox Utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Neumorphism Base */
.neumorphic-card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 
    -8px -8px 20px rgba(255, 255, 255, 0.8),
    8px 8px 20px rgba(0, 0, 0, 0.1);
  padding: var(--card-padding);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.neumorphic-inset {
  box-shadow: 
    inset -5px -5px 15px rgba(255, 255, 255, 0.8),
    inset 5px 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animation utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-hover {
  transition: var(--transition-smooth);
}

.scale-hover:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --card-padding: 24px;
  }
  
  html {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .container,
  .auto-container {
    padding: 0 16px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in-up {
    opacity: 1;
    transform: translateY(0);
  }
}