* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 100%;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-saas {
  color: #4f46e5;
}

.logo-check {
  color: #0f172a;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #0f172a;
}

.hero {
  position: relative;
  background: #fff;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 1.75rem;
  color: #22c55e;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #0f172a;
  max-width: 700px;
  margin: 0 auto 1.1rem;
}

.hero h1 em {
  color: #4f46e5;
  font-style: normal;
}

.hero p {
  color: #64748b;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.search-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.home-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.cat-section {
  margin-bottom: 3rem;
}

.cat-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.cat-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.cat-count {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}

.review-card:hover {
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
  border-color: #cbd5e1;
}

.review-card:hover .card-title a {
  color: #4f46e5;
}

.card-tools {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.15rem 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4f46e5;
  transition: gap 0.15s;
}

.card-link:hover {
  gap: 0.5rem;
}

.no-results {
  display: none;
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #0f172a;
  text-align: center;
}

.no-results.visible {
  display: block;
}

.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

.site-footer a {
  color: #64748b;
}

.site-footer a:hover {
  color: #0f172a;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    padding: 0 1rem;
  }
}
