/* Critical CSS for AIKolab - Above-the-fold styles only */

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding-top: 48px;
  color: #333;
  background-color: #fff;
}

/* Header styles */
header.bg-white {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: white;
  border-bottom: none;
  height: 48px;
}

.header-container {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* Hero Section Styles - Critical for LCP */
.hero-section {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  margin-top: 40px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .hero-section {
    flex-direction: column;
  }
}

.hero-section .bg-container {
  position: relative;
  width: 100%;
  background: #F5F5F5;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  min-height: 260px;
}

.hero-section .content {
  padding: 2rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-section h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
}

.hero-section p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Navigation styles */
nav a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.875rem;
  margin: 0 0.5rem;
}

nav a:hover {
  color: #D1164A;
}

/* Button styles */
.rounded-lg {
  border-radius: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.bg-\[\#D1164A\] {
  background-color: #D1164A;
}

.text-white {
  color: white;
}

/* Hide elements with x-cloak attribute */
[x-cloak] { 
  display: none !important; 
}

/* Screen size adjustments */
@media (max-width: 640px) {
  header.bg-white, .header-container {
    height: 48px;
  }
  body {
    padding-top: 48px;
  }
  .hero-section {
    margin-top: 0.5rem;
  }
  .content h1 {
    font-size: 1.5rem;
  }
}

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

/* Grid styles for popular agents section */
.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 1280px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
} 
