/* Tools directory */

.tools-hero {
  padding-top: 64px;
  padding-bottom: 56px;
}

.tools-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.tools-hero h1 {
  max-width: 900px;
  margin: 16px 0 0;
  font-size: clamp(2.6rem, 5.2vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: #030712;
}

.tools-lede {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: #6b7280;
}

.tools-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.tools-stats li {
  padding: 0 18px;
  border-left: 1px solid #e5e7eb;
}

.tools-stats li:first-child {
  padding-left: 0;
  border-left: 0;
}

.tools-jumps {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.tools-jump {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tools-jump:hover {
  border-color: #94a3b8;
  color: #030712;
}

.tools-section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid #e5e7eb;
}

.tools-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.tools-index {
  grid-column: 1;
  grid-row: 1;
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.tools-section-head h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #030712;
}

.tools-section-desc {
  grid-column: 2;
  grid-row: 2;
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #6b7280;
}

.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.tool-hub-card {
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-hub-card:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tool-hub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tool-hub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
}

.tool-hub-badge {
  padding-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748b;
  white-space: nowrap;
}

.tool-hub-card h3 {
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #030712;
}

.tool-hub-card p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #6b7280;
}

.tool-hub-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.tool-hub-open svg {
  transition: transform 0.15s ease;
}

.tool-hub-card:hover .tool-hub-open svg {
  transform: translateX(2px);
}

.tools-note {
  max-width: 780px;
  padding-top: 16px;
  padding-bottom: 80px;
}

.tools-note h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #030712;
}

.tools-note p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: #6b7280;
}

html.dark .tools-hero h1,
html.dark .tools-section-head h2,
html.dark .tool-hub-card h3,
html.dark .tool-hub-open,
html.dark .tools-note h2 {
  color: #f8fafc;
}

html.dark .tools-lede,
html.dark .tools-section-desc,
html.dark .tool-hub-card p,
html.dark .tools-note p {
  color: #94a3b8;
}

html.dark .tools-stats,
html.dark .tools-index,
html.dark .tool-hub-badge {
  color: #94a3b8;
}

html.dark .tools-stats li,
html.dark .tools-section {
  border-color: #1e293b;
}

html.dark .tools-jump {
  border-color: #334155;
  background: #0f172a;
  color: #cbd5e1;
}

html.dark .tools-jump:hover {
  border-color: #64748b;
  color: #f8fafc;
}

html.dark .tool-hub-card {
  border-color: #1e293b;
  background: #0f172a;
}

html.dark .tool-hub-card:hover {
  border-color: #64748b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

html.dark .tool-hub-icon {
  background: #1e293b;
  color: #e2e8f0;
}

@media (max-width: 640px) {
  .tools-hero {
    padding-top: 40px;
  }

  .tools-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .tools-section-head h2 {
    font-size: 26px;
  }

  .tool-hub-card {
    min-height: 0;
    padding: 20px;
  }
}
