.hero {
  padding: 76px 0 42px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  border: 1px solid #dedbff;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--primary);
  background: rgba(238, 237, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--primary);
}

.hero-description {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.8;
}

.search-panel {
  max-width: 720px;
  margin: 34px auto 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 7px 7px 7px 19px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 22px 55px rgba(59, 51, 166, 0.15), 0 0 0 4px rgba(81, 71, 223, 0.08);
}

.search-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-right: 12px;
  border: 2px solid var(--subtle);
  border-radius: 50%;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--subtle);
}

.search-box input {
  min-width: 0;
  flex: 1;
  height: 48px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #989daf;
}

.search-shortcut {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 9px;
  color: var(--subtle);
  background: #f8f9fc;
  font-size: 12px;
  font-weight: 700;
}

.quick-keywords {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  color: var(--subtle);
  font-size: 12px;
}

.keyword-button,
.text-button {
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.keyword-button {
  padding: 2px 5px;
  color: var(--muted);
}

.keyword-button:hover,
.text-button:hover {
  color: var(--primary-dark);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 780px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.trust-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: var(--success-soft);
  font-size: 11px;
  font-weight: 900;
}

.content-section {
  padding: 30px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -0.045em;
}

.section-description {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.category-row {
  display: flex;
  gap: 9px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar {
  display: none;
}

.category-button {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 17px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.category-button:hover {
  border-color: #c9c6f8;
  color: var(--primary);
}

.category-button.active {
  border-color: var(--surface-strong);
  color: #fff;
  background: var(--surface-strong);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.tool-card {
  position: relative;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--text);
  background: var(--card-background);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card-static {
  text-decoration: none;
}

.tool-card-static .card-footer > span:last-child {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 42px rgba(34, 38, 69, 0.1);
}

.tool-card.featured {
  overflow: hidden;
  border-color: var(--border-strong);
  background: linear-gradient(155deg, var(--surface) 54%, var(--primary-soft) 100%);
}

.tool-card.featured::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 120px;
  height: 120px;
  border: 22px solid rgba(81, 71, 223, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--icon-color, var(--primary));
  background: var(--icon-background, var(--primary-soft));
  font-family: Consolas, "Courier New", monospace;
  font-size: 17px;
  font-weight: 900;
}

.favorite-button {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  color: #a1a6b7;
  background: transparent;
  cursor: pointer;
  font-size: 21px;
}

.favorite-button:hover {
  border-color: var(--border);
  color: var(--warning);
  background: var(--surface);
}

.favorite-button.active {
  color: #d48a16;
}

.tool-card h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.tool-category {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 11px;
  font-weight: 850;
}

.card-status.unavailable {
  color: var(--subtle);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.empty-state {
  display: none;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  background: var(--surface-translucent);
  text-align: center;
}

.empty-state.visible {
  display: block;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}

.guide-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.guide-preview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guide-preview-card:hover,
.guide-preview-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.guide-preview-card > span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.guide-preview-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.guide-preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.recent-panel {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--surface);
}

.recent-panel.visible {
  display: flex;
}

.recent-info,
.recent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recent-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--primary);
  background: var(--primary-soft);
  font-family: Consolas, monospace;
  font-weight: 900;
}

.recent-copy strong,
.recent-copy span {
  display: block;
}

.recent-copy strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.recent-copy span {
  color: var(--muted);
  font-size: 12px;
}

.benefit-section {
  margin-top: 40px;
  padding: 70px 0;
  color: #fff;
  background: var(--surface-strong);
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 20px;
}

.benefit-intro {
  padding-right: 32px;
}

.benefit-intro .section-kicker {
  color: #a9a2ff;
}

.benefit-intro h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.benefit-intro p,
.benefit-card p {
  margin: 0;
  color: #aeb3c5;
  font-size: 12px;
  line-height: 1.75;
}

.benefit-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.benefit-number {
  display: block;
  margin-bottom: 34px;
  color: #8e87f4;
  font: 800 12px/1 Consolas, monospace;
}

.benefit-card h3 {
  margin: 0 0 9px;
  font-size: 16px;
}

@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-preview-grid {
    grid-template-columns: 1fr;
  }

  .benefit-intro {
    grid-column: 1 / -1;
    max-width: 580px;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 56px 0 28px;
  }

  .hero h1 {
    font-size: clamp(35px, 12vw, 52px);
  }

  .search-shortcut {
    display: none;
  }

  .trust-strip,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    gap: 8px;
  }

  .benefit-intro {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 205px;
  }

  .recent-panel {
    align-items: stretch;
    flex-direction: column;
  }
}
