* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f1f5f9;
  margin: 0;
  color: #0f172a;
}

.site-header {
  background: #2563eb;
  color: white;
  text-align: center;
  padding: 28px 15px;
}

.site-header h1 {
  margin: 0;
  font-size: 32px;
}

.site-header p {
  margin: 8px 0 0;
}

.hero {
  text-align: center;
  padding: 35px 15px 10px;
}

.hero h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #475569;
}

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

.tool-card {
  max-width: 560px;
  margin: 10px auto 35px;
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

input,
select,
button {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  font-size: 16px;
}

button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

#result {
  display: none;
  margin-top: 20px;
  background: #f8fafc;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

#statusText {
  color: #16a34a;
  font-weight: bold;
}

#preview {
  max-width: 100%;
  display: block;
  margin: 15px auto;
  border-radius: 10px;
}

#downloadBtn {
  display: inline-block;
  background: #16a34a;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.popular-tools,
.seo-section,
.faq-section {
  background: white;
  margin: 25px auto;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

.popular-tools h2,
.seo-section h2,
.faq-section h2 {
  text-align: center;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.small-card {
  display: block;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 18px;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.small-card:hover {
  background: #dbeafe;
}

footer {
  text-align: center;
  padding: 25px;
  background: #0f172a;
  color: white;
  margin-top: 30px;
}

@media (max-width: 600px) {
  .hero h2 {
    font-size: 26px;
  }

  .tool-card {
    padding: 20px;
  }
}
