/* Critical CSS for LocalAI Finance - Deployment Safe */
*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: white;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container and Layout */
.container-custom {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Typography */
.text-hero {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
}

@media (min-width: 640px) { 
  .text-hero { 
    font-size: 3rem; 
    line-height: 1; 
  } 
}

@media (min-width: 768px) { 
  .text-hero { 
    font-size: 3.75rem; 
    line-height: 1; 
  } 
}

@media (min-width: 1024px) { 
  .text-hero { 
    font-size: 4.5rem; 
    line-height: 1; 
  } 
}

.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Colors */
.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-white { color: white; }
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-900 { background-color: #111827; }

/* Primary Colors */
.text-primary-600 { color: #2563eb; }
.bg-primary-600 { background-color: #2563eb; }
.bg-primary-50 { background-color: #eff6ff; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(to right, #2563eb, #059669);
  color: white;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: #2563eb;
}

/* Gradients */
.gradient-text {
  background: linear-gradient(to right, #2563eb, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-to-br {
  background: linear-gradient(to bottom right, #eff6ff, white, #ecfdf5);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
}

/* Sections */
.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.section-compact {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-compact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Navigation */
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-40 { z-index: 40; }
.h-16 { height: 4rem; }
.pt-16 { padding-top: 4rem; }

.bg-white\/95 { 
  background-color: rgba(255, 255, 255, 0.95); 
}

.backdrop-blur-md { 
  backdrop-filter: blur(12px); 
}

.border-b { border-bottom-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }

/* Spacing */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@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)); }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Utilities */
.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

/* Responsive */
@media (min-width: 640px) {
  .sm\\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\\:hidden { display: none; }
  .md\\:block { display: block; }
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

.animate-slide-up {
  transform: translateY(2rem);
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Additional common classes */
.w-16 { width: 4rem; }
.h-16 { width: 4rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.ml-4 { margin-left: 1rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem;
}