/* Stats Section */
.stats {
  padding: 5rem 3rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #0f0f0f;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.stat-label {
  font-size: 13px;
  color: #737373;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* Categories Section */
.categories {
  padding: 8rem 3rem;
  max-width: 1800px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #0f0f0f;
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #737373;
  margin-bottom: 6rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 1200px; /* ensures max 3 columns (3 * 400px = 1200px) */
  margin: 0 auto;
}

/* When only one card exists */
.category-grid:has(.category-card:only-child) {
  grid-template-columns: repeat(3, 1fr); /* 3 equal cols */
}

.category-grid:has(.category-card:only-child) .category-card {
  grid-column: 2;          /* center column */
  max-width: 600px;        /* prevent it from being too wide */
  width: 100%;
  justify-self: center;
}

.category-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .category-grid {
    max-width: 800px; /* ~2 cards per row */
  }
}

@media (max-width: 640px) {
  .category-grid {
    max-width: 400px; /* 1 card per row */
  }

  .category-grid:has(.category-card:only-child) {
    grid-template-columns: 1fr; /* single card full width */
  }

  .category-grid:has(.category-card:only-child) .category-card {
    grid-column: auto;
    max-width: 100%;
  }
}


.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: #e5e5e5;
}

.category-header {
  margin-bottom: 2rem;
}

.category-emoji {
  font-size: 2.5rem;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f0f0f;
  letter-spacing: -0.02em;
  margin: 0;
}

.category-card p {
  color: #737373;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.tool-list {
  display: grid;
  gap: 1rem;
}

.tool-item {
  background: #fafafa;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tool-item:hover {
  background: #f0f0f0;
  transform: translateX(4px);
  text-decoration: none;
}

.tool-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f0f0f;
  margin-bottom: 0.25rem;
}

.tool-description {
  font-size: 11px;
  color: #a3a3a3;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .categories {
    padding: 4rem 1.5rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-card {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}
/* Features Section */
.features {
  padding: 8rem 3rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 6rem;
}

.feature-item {
  text-align: left;
  padding: 3rem 2.5rem;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: #e5e5e5;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f0f0f;
  letter-spacing: -0.01em;
}

.feature-item p {
  color: #737373;
  font-size: 14px;
  line-height: 1.7;
}

/* FAQ Section */
.faq {
  padding: 8rem 3rem;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

.faq-item {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #e5e5e5;
}

.faq-question {
  padding: 2rem 2.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f0f0f;
  margin: 0;
  letter-spacing: -0.01em;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: #737373;
  transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: #0f0f0f;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 2.5rem 2rem;
  color: #525252;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-center {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  nav {
    padding: 1rem 2rem;
  }

  .hero {
    padding: 6rem 2rem 3rem;
  }

  .categories,
  .features {
    padding: 6rem 2rem;
  }

  .stats {
    padding: 4rem 2rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .mega-menu {
    position: relative;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .mega-menu-container {
    padding: 2rem 1.5rem;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    margin-top: 60px;
    padding: 5rem 2rem 3rem;
  }

  .faq {
    padding: 6rem 2rem;
  }

  .faq-question {
    padding: 1.5rem 2rem;
  }

  .faq-answer p {
    padding: 0 2rem 1.5rem;
  }
}

/* Scroll Animations */
. {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

..visible {
  opacity: 1;
  transform: translateY(0);
}
