/* Critical CSS for above-the-fold content */

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

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0a0a0a;
  background-color: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header critical styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e4e4e7;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo styles */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
}

/* Skip link */
.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;
}

.sr-only:focus {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: #059669;
  color: #ffffff;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Hero section critical styles */
.hero-section {
  padding: 3rem 1rem 6rem;
  background: linear-gradient(to bottom right, rgba(45, 212, 191, 0.1), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
  text-align: center;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #059669;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(10, 10, 10, 0.8);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Button critical styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: #059669;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: rgba(5, 150, 105, 0.9);
}

.btn-outline {
  background-color: transparent;
  color: #059669;
  border: 1px solid #059669;
}

.btn-outline:hover {
  background-color: #059669;
  color: #ffffff;
}

/* Container and layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Loading optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent layout shift */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem 4rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  nav {
    padding: 0.75rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}