/* Optimized CSS for faster loading */
:root {
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light;
  color: #000000;
  background-color: #ffffff;
  
  /* Optimize font rendering */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* Reset and optimize body */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Geist", sans-serif;
  background-color: #ffffff;
  color: #000000;
}

/* Selection styling */
::selection {
  background-color: #000000;
  color: #ffffff;
}

/* Utility classes for better performance */
.min-h-screen { min-height: 100vh; }
.bg-white { background-color: #ffffff; }
.text-black { color: #000000; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-6xl { max-width: 60rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-8 { padding: 2rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.pt-32 { padding-top: 8rem; }
.pb-24 { padding-bottom: 6rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-48 { margin-bottom: 12rem; }
.mb-64 { margin-bottom: 16rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.-ml-1 { margin-left: -0.25rem; }
.-ml-2 { margin-left: -0.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-24 { gap: 6rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.selection\:bg-black ::selection { background-color: #000000; }
.selection\:text-white ::selection { color: #ffffff; }
.origin-left { transform-origin: left center; }
.scale-100 { transform: scale(1); }
.h-14 { height: 3.5rem; }
.w-auto { width: auto; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-gray-100 { border-color: #f3f4f6; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }
.transition-all { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.hover\:opacity-50:hover { opacity: 0.5; }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:-translate-y-1 { transform: translateY(-0.25rem); }

/* Responsive breakpoints */
@media (min-width: 768px) {
  .md\:h-20 { height: 5rem; }
  .md\:h-24 { height: 6rem; }
  .md\:px-16 { padding-left: 4rem; padding-right: 4rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .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\:gap-24 { gap: 6rem; }
}

@media (min-width: 1024px) {
  .lg\:h-24 { height: 6rem; }
  .lg\:text-7xl { font-size: 4.5rem; }
  .md\:max-w-none { max-width: none; }
}

/* Hidden elements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Image optimizations */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* Critical CSS for above-the-fold content */
.header-critical {
  contain: layout style paint;
}
