/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--gray-900);
  background: white;
}

/* Typography Scale */
.display {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1,
.h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2,
.h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h3,
.h3 {
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 600;
}

h4,
.h4 {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.5;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.5;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.narrow {
  max-width: 48rem;
  margin: 0 auto;
}

/* Section Spacing */
.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card {
  padding: var(--space-8);
}

.card-sm {
  padding: var(--space-6);
}

.card-lg {
  padding: var(--space-12);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.button-primary {
  background: var(--primary);
  color: white;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.button-secondary:hover {
  background: var(--gray-50);
}

/* Lists */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.feature-list li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary);
}
.text-gray {
  color: var(--gray-600);
}

.bg-subtle {
  background: var(--gray-50);
}
.bg-white {
  background: white;
}

.mb-1 {
  margin-bottom: var(--space-1);
}
.mb-2 {
  margin-bottom: var(--space-2);
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mb-6 {
  margin-bottom: var(--space-6);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mb-12 {
  margin-bottom: var(--space-12);
}

.mt-1 {
  margin-top: var(--space-1);
}
.mt-2 {
  margin-top: var(--space-2);
}
.mt-4 {
  margin-top: var(--space-4);
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-8 {
  margin-top: var(--space-8);
}
.mt-12 {
  margin-top: var(--space-12);
}

/* Responsive */
@media (max-width: 768px) {
  .display {
    font-size: 3rem;
  }

  h1,
  .h1 {
    font-size: 2.5rem;
  }

  h2,
  .h2 {
    font-size: 2rem;
  }

  h3,
  .h3 {
    font-size: 1.75rem;
  }

  h4,
  .h4 {
    font-size: 1.25rem;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-sm {
    padding: var(--space-12) 0;
  }

  .section-lg {
    padding: var(--space-24) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: var(--space-6);
  }
}
