:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --primary: #0f172a;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-badge {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--primary); color: #34d399;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900;
}
.nav-menu { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.nav-menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--emerald); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.breadcrumb {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--subtle);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.hero {
  padding: 48px 0 32px;
  text-align: center;
}
.hero-pill {
  display: inline-block;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid #a7f3d0;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 880px;
  margin: 0 auto 14px;
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 26px;
}
.search-box {
  max-width: 580px;
  margin: 0 auto 24px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  font-size: 15.5px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04);
}
.search-box input:focus { border-color: var(--emerald); }
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
  font-size: 16px;
}
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cat-pill {
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 36px 0 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.section-head h2 { font-size: 22px; letter-spacing: -0.01em; }
.section-head span, .section-head a { font-size: 14px; color: var(--emerald); font-weight: 600; text-decoration: none; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tool-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(15,23,42,0.08);
}
.tool-cat {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald);
  margin-bottom: 6px;
  display: inline-block;
}
.tool-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.tool-card h3 a { text-decoration: none; }
.tool-card h3 a:hover { color: var(--emerald); }
.tool-desc { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.sub-links {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-bottom: 14px;
}
.sub-links-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--subtle);
  margin-bottom: 6px;
  display: block;
}
.sub-links ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sub-links a {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
}
.sub-links a:hover { text-decoration: underline; }
.btn-open {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
}
.btn-open:hover { background: var(--emerald); }
.seo-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  margin: 48px 0;
}
.seo-content h2 { font-size: 24px; margin-bottom: 14px; }
.seo-content h3 { font-size: 18px; margin: 22px 0 8px; }
.seo-content p, .seo-content li { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.seo-content ul { padding-left: 20px; }
.faq-list { display: grid; gap: 12px; margin-top: 16px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--bg);
}
.faq-item h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.faq-item p { margin: 0; font-size: 14.5px; color: var(--muted); }
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 56px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.footer-col h4 { color: var(--text); font-size: 14px; margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 6px; }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: var(--emerald); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 12.5px;
}
