/* ===== MAIN HOMEPAGE STYLES ===== */
:root {
  /* Modern Color Palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --accent: #10b981;
  --text: #1f2937;
  --text-light: #6b7280;
  --background: #f9fafb;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --rounded-sm: 8px;
  --rounded-md: 12px;
  --rounded-lg: 16px;
}

/* ===== BASE STYLES ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 5%;
  background: linear-gradient(135deg, #f0f4ff 0%, #d6e4ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  z-index: 1;
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text);
}

.highlight {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
  max-width: 600px;
  /*margin-left: auto;*/
  /*margin-right: auto;*/
}

.hero-search input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--rounded-md);
  font-size: 1rem;
}

.hero-search button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--rounded-md);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.stat {
  text-align: center;
  min-width: 120px;
}

.number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-illustration {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.hero-illustration img {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ===== CATEGORIES SECTION ===== */
.categories {
  padding: 4rem 5%;
  background: white;
}

.categories h2, .popular-tools h2, .feature-comparison h2, .testimonials h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--rounded-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.category-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tool-examples {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.tool-examples li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.tool-examples li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===== POPULAR TOOLS ===== */
.popular-tools {
  padding: 4rem 5%;
  background: var(--background);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.tool-card {
  background: var(--card-bg);
  border-radius: var(--rounded-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.tool-preview {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: var(--rounded-sm);
  margin: 1rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.code-preview {
  font-family: 'Fira Code', monospace;
}

.tool-meta {
  display: inline-block;
  background: #e0e7ff;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: var(--rounded-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
  width: 100%;
  max-width: 200px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: #f0f4ff;
}

/* ===== FEATURE COMPARISON ===== */
.feature-comparison {
  padding: 4rem 5%;
  background: white;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-point {
  text-align: center;
  padding: 1.5rem;
}

.comparison-point .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.comparison-point h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.comparison-point p {
  font-size: 0.9rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 4rem 5%;
  background: var(--background);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: var(--rounded-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.quote::before {
  content: '"';
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  font-size: 1.25rem;
}

.info strong {
  display: block;
  font-size: 0.95rem;
}

.info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .hero {
    min-height: 90vh;
    flex-direction: row;
    text-align: left;
    padding: 2rem 5%;
  }

  .hero-content {
    text-align: left;
    margin-bottom: 0;
  }

  .hero-search {
    flex-direction: row;
  }

  .hero-search button {
    width: auto;
    padding: 0 2rem;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: row;
  }

  .newsletter-form button {
    width: auto;
  }

  .btn-primary, .btn-secondary {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-illustration {
    max-width: 800px;
  }
}