/* Base performance optimizations */
* { box-sizing: border-box; }
html { font-display: swap; }
body { margin: 0; padding: 0; overflow-x: hidden; }

/* Critical above-the-fold styles */
.font-inter { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.font-satoshi { font-family: 'Satoshi', system-ui, -apple-system, sans-serif; }

/* Critical color variables for LCP */
:root {
  --convrt-purple: hsl(252, 87%, 56%);
  --convrt-purple-light: hsl(256, 65%, 65%);
  --convrt-dark-blue: hsl(220, 26%, 14%);
  --convrt-light-gray: hsl(210, 40%, 98%);
  --white: hsl(0, 0%, 100%);
  --gray-100: hsl(210, 40%, 98%);
  --gray-600: hsl(220, 9%, 46%);
  --gray-900: hsl(222.2, 84%, 4.9%);
  
  /* Gradient definitions for buttons */
  --gradient-purple: linear-gradient(135deg, hsl(252, 87%, 56%) 0%, hsl(256, 65%, 65%) 100%);
}

/* Critical layout styles */
.container { 
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1rem; 
}

/* Critical utility classes for immediate render */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-5xl { max-width: 80rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.bg-white { background-color: hsl(0, 0%, 100%); }
.text-white { color: hsl(0, 0%, 100%); }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.py-12 { padding: 3rem 0; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.border { border-width: 1px; }
.border-white { border-color: rgba(255, 255, 255, 0.2); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* Critical text styles */
.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-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-tight { line-height: 1.25; }

@media (min-width: 640px) {
  .sm\\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\\:py-16 { padding: 4rem 0; }
}

@media (min-width: 768px) {
  .md\\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\\:px-16 { padding-left: 4rem; padding-right: 4rem; }
}

/* Critical button styles for immediate rendering */
.button-primary { 
  background: var(--gradient-purple);
  color: hsl(0, 0%, 100%);
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  will-change: transform;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  box-shadow: 0 8px 32px rgba(105, 54, 245, 0.3);
}

.button-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 40px rgba(105, 54, 245, 0.4); 
}

/* Navbar critical styles */
.navbar-fixed { 
  position: fixed; 
  top: 0; 
  width: 100%; 
  z-index: 100; 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Performance optimizations */
img { content-visibility: auto; }
.lazy-load { opacity: 0; transition: opacity 0.3s ease; }
.lazy-load.loaded { opacity: 1; }

/* Prevent render blocking */
.async-css { font-display: swap; }

/* Immediate content visibility for LCP optimization */
#root {
  opacity: 1;
  min-height: 100vh;
}

/* Enhanced skeleton loading styles for optimal LCP */
.skeleton-hero {
  background: linear-gradient(135deg, hsl(252, 87%, 56%) 0%, hsl(256, 65%, 65%) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1000;
}

.skeleton-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, hsla(256, 65%, 75%, 0.3) 0%, transparent 60%),
              radial-gradient(circle at 70% 30%, hsla(252, 87%, 66%, 0.2) 0%, transparent 60%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.skeleton-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.skeleton-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  width: 100%;
  min-height: 60px;
}

.skeleton-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.skeleton-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.skeleton-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .skeleton-title { font-size: 4rem; min-height: 80px; }
  .skeleton-description { font-size: 1.25rem; }
}

@media (min-width: 768px) {
  .skeleton-title { font-size: 5rem; min-height: 100px; }
  .skeleton-content { padding: 0 2rem; }
}

@media (min-width: 1024px) {
  .skeleton-title { font-size: 6rem; min-height: 120px; }
}