body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f7f8fa;
  color: #222;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: #1d2530;
  color: #fff;
  padding: 0.5rem 0;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover {
  color: #60a5fa;
}

/* --- HERO SECTION DISTINCTIVE STYLES --- */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #60a5fa 100%);
  color: #fff;
  padding: 3.5rem 0 2.5rem 0;
  border-radius: 0 0 64px 64px; /* More round */
  box-shadow: 0 8px 32px rgba(37,99,235,0.18);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 60% 40%, #fff3 0%, #fff0 80%);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: -100px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 40% 60%, #60a5fa33 0%, #fff0 80%);
  z-index: 0;
  pointer-events: none;
}
.hero-content, .featured-card {
  position: relative;
  z-index: 1;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hero-illustration img {
  display: block;
  max-width: 140px;
}
.updated {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
.hero h1 {
  font-size: 2.2rem;
  margin: 0.2em 0 0.3em 0;
}
.subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5em;
  opacity: 0.95;
}
/* Glassmorphism for featured card */
.featured-card {
  background: rgba(255,255,255,0.22); /* Slightly more opaque for contrast */
  color: #111; /* Darker text for better contrast */
  border-radius: 36px; /* More round */
  box-shadow: 0 4px 32px rgba(109,40,217,0.10);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.featured-logo, .tool-logo {
  display: flex;
  align-items: center;
  /* No justify-content, so logos stay left */
}
.featured-logo img, .tool-logo img {
  background: #f3f0ff;
  border-radius: 8px;
  padding: 8px;
  display: unset;
  margin: unset;
  filter: none;
}
.logo img {
  filter: brightness(0) invert(1);
}
.featured-title {
  font-weight: 700;
  font-size: 1.2rem;
}
.featured-meta {
  font-size: 1rem;
  color: #1a1a1a !important; /* Much darker for contrast */
  margin-top: 0.2em;
  display: flex;
  gap: 1.5em;
}
.cta-btn {
  white-space: nowrap;
  background: linear-gradient(180deg, #8561ff 9.37%, #6c47ff 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7em 1.5em;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: auto;
  display: inline-block;
}
.cta-btn:hover {
  background: linear-gradient(180deg, #6c47ff 9.37%, #4b2bb3 100%);
}

.tools-list {
  margin-top: 2.5rem;
}
.tool-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
/* --- TOOL CARDS REMAIN CLEAN --- */
.tool-card {
  background: #fff;
  border-radius: 28px; /* More round */
  box-shadow: 0 2px 12px rgba(37,99,235,0.08); /* Slightly more shadow for separation */
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
  color: #1a1a1a; /* Ensure good contrast on white */
}
.tool-logo img {
  background: #f3f0ff;
  border-radius: 8px;
  padding: 8px;
}
.tool-info {
  flex: 1 1 220px;
}
.tool-info h2 {
  margin: 0 0 0.3em 0;
  font-size: 1.1rem;
}
.tool-info p {
  margin: 0 0 0.7em 0;
  font-size: 1rem;
}
/* Features icon and horizontal layout for tool cards */
.tool-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}
.features {
  flex: 1 1 180px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.features li {
  position: relative;
  padding-left: 2.2em;
  font-size: 0.98rem;
  color: #818289;
  display: flex;
  align-items: center;
}
.features li:before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2em;
  height: 2em;
  background: #f3f0ff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #f3f0ff44;
  z-index: 1;
}
.features li:after {
  content: "";
  position: absolute;
  left: 0.45em;
  width: 1.1em;
  height: 1.1em;
  background: #6b41ff;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.features li svg {
  position: absolute;
  left: 0.7em;
  width: 0.6em;
  height: 0.6em;
  z-index: 3;
  fill: #fff;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-score {
  flex: 0 0 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7em;
}
/* HERO section text contrast improvements */
.hero, .hero h1, .hero .subtitle, .hero .updated {
  color: #f8fafc !important; /* Lighter text for better contrast on blue bg */
  text-shadow: 0 1px 8px rgba(30, 41, 59, 0.18); /* Subtle shadow for readability */
}

/* Score label improvements */
.score {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  background: #e0e7ff;
  border-radius: 12px;
  padding: 0.2em 0.8em;
  display: inline-block;
  margin-bottom: 0.2em;
}
.score-label {
  font-size: 0.95rem;
  color: #2563eb;
  font-weight: 500;
  margin-bottom: 0.2em;
  display: block;
  text-align: right;
}

.how-choose {
  background: #f3f0ff;
  border-radius: 18px;
  margin: 3rem 0 2rem 0;
  padding: 2rem 0;
}
.how-choose h2 {
  margin-top: 0;
  font-size: 1.3rem;
}
.how-choose p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0;
}

.site-footer {
  background: #1d2530;
  color: #fff;
  padding: 2rem 0 1rem 0;
  border-radius: 32px 32px 0 0;
  margin-top: 2rem;
}
.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: #60a5fa;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-copy {
  font-size: 0.95rem;
  opacity: 0.8;
}

.tool-info h2, .tool-info p, .features {
  color: #1a1a1a !important; /* Ensure good contrast for card text */
}

.featured-card, .tool-card {
  align-items: center;
}

.features, .features li {
  color: #818289;
}

@media (max-width: 700px) {
  .hero {
    padding: 1.5rem 0 2.5rem 0;
    border-radius: 0 0 36px 36px;
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .featured-card {
    flex-direction: row;
    align-items: center;
    padding: 1.2rem 1rem;
    border-radius: 36px; /* Match desktop rounding */
  }
  .featured-logo {
    flex: 0 0 56px;
    margin-right: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .featured-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  .tool-card {
    border-radius: 28px; /* Match desktop rounding */
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .featured-card .cta-btn {
    display: block;
    margin: 1.2em auto 0 auto;
    text-align: center;
    float: none;
  }
  features {
    flex: 1 1 160px;
  }
  .features li {
    font-size: 0.85rem;
  }
  .score {
    font-size: 1.2rem;
  }
  .tool-score {
    flex: 0 0 90px;
  }
  .cta-btn {
    padding: 0.7em 1em;
    font-size: 0.9rem;
    margin-left: 0rem;
  }
  .logo img {
    height: 24px !important;
  }
} 
