/* AI API Optimizer - Modern Landing Page Styles */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO SECTION */
.hero {
  background: var(--gradient);
  color: white;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-36v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-36 36v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-36v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* FEATURES SECTION */
.features {
  padding: 80px 0;
  background: white;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--light);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.feature-card p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* PRICING SECTION */
.pricing-section {
  padding: 80px 0;
  background: var(--light);
}

.pricing-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.pricing-card {
  background: white;
  max-width: 400px;
  margin: 0 auto;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  text-align: center;
  border: 3px solid var(--primary);
}

.pricing-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 30px;
}

.price span {
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.pricing-card ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--light);
  font-size: 1.1rem;
}

.pricing-card ul li:last-child {
  border-bottom: none;
}

.pricing-card .cta-button {
  background: var(--gradient);
  color: white;
  width: 100%;
}

.pricing-card .cta-button:hover {
  opacity: 0.95;
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer a {
  color: var(--secondary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .features h2,
  .pricing-section h2 {
    font-size: 2rem;
  }
  
  .pricing-card {
    padding: 40px 25px;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.cta-button {
  animation: fadeInUp 0.8s ease forwards;
}

.hero p {
  animation-delay: 0.2s;
}

.cta-button {
  animation-delay: 0.4s;
}
