/* Critical CSS - Inlined for faster first paint */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}

/* Loading state */
#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hide content until fonts loaded to prevent FOUT */
.wf-loading {
  visibility: hidden;
}

.wf-active {
  visibility: visible;
}

/* Above the fold navigation styles */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

/* Hero section critical styles */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Critical button styles */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Critical link styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Prevent layout shift for images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: hsl(var(--primary));
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    hsl(var(--muted)) 0%,
    hsl(var(--muted-foreground) / 0.1) 50%,
    hsl(var(--muted)) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
