/* ---------- Hero & Layout ---------- */
.feature-hero {
  text-align: center;
  background: linear-gradient(120deg, #0078d7, #00bfa5);
  color: white;
  padding: 4rem 2rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ffeb3b;
  color: #222;
}

/* ---------- Ultra-Fast Tools Grid ---------- */
.tools-grid-container {
  padding: 3rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  contain: layout;
}

/* ---------- Tool Card ---------- */
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.8rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  will-change: transform, opacity;
  contain: content;
  backface-visibility: hidden;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.tool-card img {
  height: 44px;
  width: 44px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.tool-card h3 {
  color: #0078d7;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.tool-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  flex-grow: 1;
}

/* ---------- Buttons ---------- */
.tool-card a {
  display: inline-block;
  margin-top: 1.2rem;
  background: #0078d7;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.tool-card a:hover {
  background: #005bb5;
  box-shadow: 0 4px 10px rgba(0, 120, 215, 0.3);
}

/* ---------- 🔒 PRO GATING ---------- */
.tool-card.gated {
  opacity: 0.7;
  filter: grayscale(0.35);
  pointer-events: none;
}

.tool-card.gated a {
  background: #f59e0b;
  color: #1f2933;
  pointer-events: auto;
}

.tool-card.gated a:hover {
  background: #d97706;
}

/* PRO Badge */
.pro-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 18px rgba(239,68,68,0.35);
  z-index: 2;
}

/* ---------- Animations ---------- */
.tool-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tool-card.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Dark Mode ---------- */
body.dark-mode {
  background: #0f172a;
  color: #f1f5f9;
}

body.dark-mode .tool-card {
  background: #1e293b;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

body.dark-mode .tool-card h3 {
  color: #38bdf8;
}

body.dark-mode .tool-card p {
  color: #94a3b8;
}

body.dark-mode .tool-card a {
  background: #38bdf8;
  color: #0f172a;
}

body.dark-mode .tool-card.gated a {
  background: #fbbf24;
  color: #111827;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .feature-hero h1 {
    font-size: 2rem;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

