.tool-hub {
  min-height: 620px;
  padding: clamp(20px, 3vw, 36px);
  overflow: hidden;
}

.tool-hub__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.tool-hub__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent, #e95f8b);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tool-hub__header h2 {
  margin: 0 0 8px;
  color: #32272b;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.tool-hub__header p {
  max-width: 680px;
  margin: 0;
  color: #806f75;
  line-height: 1.7;
}

.tool-hub__filters {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(117, 89, 99, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.tool-filter {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #66575c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.tool-filter:hover,
.tool-filter.is-active {
  background: #fff;
  color: #d94f7c;
  box-shadow: 0 4px 14px rgba(110, 67, 82, 0.1);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 250px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(106, 74, 86, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 253, 0.76);
  box-shadow: 0 12px 32px rgba(91, 58, 70, 0.08);
  color: #34282d;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform 360ms cubic-bezier(.2, 0, 0, 1), box-shadow 360ms cubic-bezier(.2, 0, 0, 1), border-color 180ms ease;
}

.tool-card::after {
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--tool-tint, rgba(244, 125, 164, 0.13));
  content: "";
  transition: transform 420ms cubic-bezier(.2, 0, 0, 1);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 91, 134, 0.25);
  box-shadow: 0 20px 46px rgba(91, 58, 70, 0.14);
}

.tool-card:hover::after { transform: scale(1.18); }
.tool-card:active { transform: scale(0.985); }
.tool-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--tool-color) 38%, white); outline-offset: 3px; }
.tool-card.is-launching { transform: scale(.982); box-shadow: 0 8px 20px rgba(91, 58, 70, .1); }

.tool-card__top,
.tool-card__body,
.tool-card__footer { position: relative; z-index: 1; }

.tool-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: var(--tool-tint, #ffe2ec);
  color: var(--tool-color, #d94f7c);
  font-size: 1.35rem;
}

.tool-card__type,
.tool-card__recent {
  color: #9b8990;
  font-size: 0.76rem;
  font-weight: 700;
}

.tool-card__body h3 {
  margin: 20px 0 8px;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.tool-card__body p {
  margin: 0;
  color: #7c6b71;
  line-height: 1.65;
}

.tool-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  color: var(--tool-color, #d94f7c);
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .tool-hub { min-height: 520px; padding: 18px 14px; }
  .tool-hub__header { align-items: stretch; flex-direction: column; }
  .tool-hub__filters { align-self: stretch; }
  .tool-filter { flex: 1; padding: 0 8px; }
  .tool-card { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-card::after { transition-duration: 1ms; }
}
