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

* {
  margin: 0;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #111827;
  background: #f9fafb;
}

:root {
  --theme-primary: #2563eb;
  --theme-primary-dark: color-mix(in srgb, var(--theme-primary) 82%, #000);
  --theme-primary-soft: color-mix(in srgb, var(--theme-primary) 14%, #fff);
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-1 { margin-left: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.pt-8 { padding-top: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.h-16 { height: 4rem; }
.w-16 { width: 4rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }

.grid { grid-template-columns: minmax(0, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.border-t { border-top: 1px solid; }
.border-gray-700 { border-color: #374151; }
.shadow { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.08); }
.transition { transition: all 0.2s ease; }

.bg-white { background: #ffffff; }
.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-gray-800 { background: #1f2937; }
.bg-blue-50 { background: var(--theme-primary-soft); }
.bg-blue-100 { background: var(--theme-primary-soft); }
.bg-blue-600 { background: var(--theme-primary); }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-white { color: #ffffff; }
.text-blue-600 { color: var(--theme-primary); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }

.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.prose p { margin-bottom: 1rem; }
.prose h2 { margin-top: 1.5rem; }

.hover\:bg-blue-700:hover { background: var(--theme-primary-dark); }
.hover\:bg-gray-100:hover { background: #f3f4f6; }
.hover\:text-blue-600:hover { color: var(--theme-primary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.08); }

nav.bg-white {
  position: sticky;
  top: 0;
  z-index: 20;
}

section.bg-blue-600 {
  background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary) 65%, color-mix(in srgb, var(--theme-primary) 72%, #0f766e) 100%);
}

a.rounded-lg {
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.rounded-lg:hover {
  transform: translateY(-1px);
}

footer ul {
  list-style: none;
}

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 767px) {
  .h-16 {
    height: auto;
  }

  nav .justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  nav .space-x-8 {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  nav .space-x-8 > * + * {
    margin-left: 0;
  }

  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .text-4xl {
    font-size: 2rem;
    line-height: 2.4rem;
  }
}
