*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

.hub-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon { font-size: 2.2rem; }

.brand-logo h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.tagline {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 56px 20px 48px 20px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
}

.hero-section h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero-section p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 28px;
}

.search-bar-wrapper {
  margin-bottom: 24px;
}

.search-bar-wrapper input {
  width: 100%;
  max-width: 580px;
  padding: 16px 24px;
  font-size: 1rem;
  border-radius: 9999px;
  border: 2px solid #cbd5e1;
  outline: none;
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.search-bar-wrapper input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.category-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill:hover {
  background: #f1f5f9;
}

.cat-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Main Container */
.main-container {
  max-width: 1240px;
  margin: 32px auto;
  padding: 0 16px;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -8px rgba(0,0,0,0.08);
  border-color: #93c5fd;
}

.card-icon-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-icon {
  font-size: 2.2rem;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.card-badge.free {
  background: #ecfdf5;
  color: #059669;
}

.tool-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.tool-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.card-tags span {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-btn {
  display: block;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.card-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* FAQ Section */
.faq-section {
  margin-top: 64px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 40px 32px;
}

.faq-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.faq-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.faq-title p {
  color: #64748b;
  font-size: 0.95rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.faq-card {
  background: #f8fafc;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.faq-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

/* Footer */
.hub-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 16px;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 64px;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-links {
  margin-top: 16px;
}

.footer-links a {
  color: #38bdf8;
  text-decoration: none;
  margin: 0 6px;
}
.footer-links a:hover {
  text-decoration: underline;
}
