.home-page {
  --home-bg: #f5f7f8;
  --home-surface: #ffffff;
  --home-ink: #182126;
  --home-muted: #5d6b73;
  --home-line: #d8e0e3;
  --home-accent: #126451;
  --home-accent-soft: #e9f5f0;
  --home-blue: #2563a6;
  --home-amber: #9a6515;
  --home-coral: #b84f3a;
  --home-violet: #6652a3;
  background: var(--home-bg);
  color: var(--home-ink);
}

.home-page .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.home-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--home-icon) center / contain no-repeat;
  mask: var(--home-icon) center / contain no-repeat;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--home-ink);
  color: #ffffff;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.home-header,
.home-main,
.home-footer-inner {
  width: min(1240px, calc(100vw - 40px));
  margin-inline: auto;
}

.home-header {
  min-height: 68px;
  padding: 12px 0;
  background: rgba(245, 247, 248, 0.97);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--home-ink);
  white-space: nowrap;
}

.home-brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}

.home-primary-nav {
  justify-content: center;
  gap: 6px;
}

.home-primary-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  color: #34434a;
}

.home-primary-nav a:hover,
.home-primary-nav a:focus-visible {
  background: #e9eef0;
  color: var(--home-ink);
}

.home-header .language-switcher {
  white-space: nowrap;
}

.home-header .language-switcher select {
  min-width: 118px;
  background: #ffffff;
}

.home-main { padding-top: 0; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 52px;
  align-items: center;
  padding: 54px 0 44px;
  border-bottom: 1px solid var(--home-line);
}

.home-hero-copy { max-width: 720px; }

.home-hero h1 {
  max-width: 700px;
  margin-bottom: 14px;
  color: #152027;
  font-size: 46px;
  line-height: 1.08;
}

.home-hero .lede {
  max-width: 670px;
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.65;
}

.home-search {
  max-width: 700px;
  display: grid;
  gap: 8px;
}

.home-search > label {
  color: #34434a;
  font-size: 14px;
}

.home-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.home-search-field > .home-icon {
  position: absolute;
  left: 16px;
  width: 22px;
  height: 22px;
  color: #52636b;
  pointer-events: none;
}

.home-search-field input {
  height: 58px;
  border: 1px solid #aebbc0;
  border-radius: 8px;
  padding: 0 54px 0 50px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 48, 55, .07);
  font-size: 16px;
}

.home-search-field input:focus {
  border-color: var(--home-accent);
  outline: 3px solid rgba(18, 100, 81, .14);
}

.home-search-clear {
  position: absolute;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52636b;
  cursor: pointer;
}

.home-search-clear:hover { background: #edf1f2; color: var(--home-ink); }
.home-search-clear .home-icon { width: 19px; height: 19px; }

.home-search-feedback {
  min-height: 20px;
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 750;
}

.home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.home-facts li {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-left: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 750;
}

.home-facts li:first-child { padding-left: 0; border-left: 0; }
.home-facts strong { color: var(--home-ink); font-size: 15px; }
.home-facts .home-icon { width: 17px; height: 17px; color: var(--home-accent); }

.home-category-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-category-link {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 13px;
  background: var(--home-surface);
  color: var(--home-ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.home-category-link:hover,
.home-category-link:focus-visible {
  border-color: #9aacb2;
  box-shadow: 0 8px 18px rgba(31, 48, 55, .07);
  transform: translateY(-1px);
}

.home-category-link > span:not(.home-icon) { min-width: 0; }
.home-category-link strong,
.home-category-link small { display: block; overflow-wrap: anywhere; }
.home-category-link strong { font-size: 14px; line-height: 1.3; }
.home-category-link small { margin-top: 3px; color: var(--home-muted); font-size: 12px; }

.home-category-nav-icon {
  width: 22px;
  height: 22px;
  color: var(--home-accent);
}

.home-category-link[data-category="conversion"] .home-category-nav-icon { color: var(--home-blue); }
.home-category-link[data-category="developer-tools"] .home-category-nav-icon { color: var(--home-violet); }
.home-category-link[data-category="text-tools"] .home-category-nav-icon { color: var(--home-amber); }
.home-category-link[data-category="web-tools"] .home-category-nav-icon { color: var(--home-coral); }
.home-category-link[data-category="online-tools"] .home-category-nav-icon { color: #137082; }

.home-popular,
.home-directory,
.home-value { padding: 42px 0; }

.home-popular,
.home-directory { border-bottom: 1px solid var(--home-line); }

.home-section-head {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(300px, 1.2fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 20px;
}

.home-section-head .eyebrow { margin-bottom: 5px; }
.home-section-head h2 { margin: 0; font-size: 28px; }
.home-section-head > p { max-width: 650px; margin: 0; color: var(--home-muted); line-height: 1.65; }

.home-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-popular-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  min-height: 88px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 15px;
  background: var(--home-surface);
  color: var(--home-ink);
  text-decoration: none;
}

.home-popular-card:hover,
.home-popular-card:focus-visible { border-color: #94a6ad; box-shadow: 0 8px 18px rgba(31, 48, 55, .07); }

.home-popular-icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  padding: 10px;
  background: var(--home-accent-soft);
  color: var(--home-accent);
  -webkit-mask: none;
  mask: none;
}

.home-popular-icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--home-icon) center / contain no-repeat;
  mask: var(--home-icon) center / contain no-repeat;
}

.home-popular-card > span:not(.home-icon) { min-width: 0; }
.home-popular-card strong,
.home-popular-card small { display: block; overflow-wrap: anywhere; }
.home-popular-card strong { font-size: 15px; line-height: 1.35; }
.home-popular-card small { margin-top: 4px; color: var(--home-muted); font-size: 12px; }
.home-popular-arrow { width: 18px; height: 18px; color: #84949b; }

.home-category-list { display: grid; }

.home-category-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--home-line);
  scroll-margin-top: 86px;
}

.home-category-section:last-child { padding-bottom: 0; }

.home-category-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-category-head h3 { margin: 1px 0 4px; font-size: 19px; }
.home-category-head p { margin: 0; color: var(--home-muted); font-size: 13px; }

.home-category-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  padding: 9px;
  background: var(--home-accent-soft);
  color: var(--home-accent);
  -webkit-mask: none;
  mask: none;
}

.home-category-icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--home-icon) center / contain no-repeat;
  mask: var(--home-icon) center / contain no-repeat;
}

.home-category-section[data-category="conversion"] .home-category-icon { background: #eaf2fb; color: var(--home-blue); }
.home-category-section[data-category="developer-tools"] .home-category-icon { background: #f0edf8; color: var(--home-violet); }
.home-category-section[data-category="text-tools"] .home-category-icon { background: #faf2df; color: var(--home-amber); }
.home-category-section[data-category="web-tools"] .home-category-icon { background: #fbece8; color: var(--home-coral); }
.home-category-section[data-category="online-tools"] .home-category-icon { background: #e8f4f6; color: #137082; }

.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-tool-link {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  padding: 10px 11px;
  background: var(--home-surface);
  color: #26353c;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
}

.home-tool-link > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.home-tool-link:hover,
.home-tool-link:focus-visible { border-color: #98aab1; color: var(--home-accent); background: #fbfdfc; }
.home-tool-arrow { width: 16px; height: 16px; color: #91a0a6; }
.home-tool-link:hover .home-tool-arrow { color: var(--home-accent); }

.home-empty-state { margin-top: 18px; box-shadow: none; text-align: center; }

.home-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.home-value-grid article {
  padding-top: 18px;
  border-top: 3px solid var(--home-accent);
}

.home-value-grid article:nth-child(2) { border-color: var(--home-blue); }
.home-value-grid article:nth-child(3) { border-color: var(--home-coral); }
.home-value-icon { width: 24px; height: 24px; margin-bottom: 12px; color: var(--home-accent); }
.home-value-grid article:nth-child(2) .home-value-icon { color: var(--home-blue); }
.home-value-grid article:nth-child(3) .home-value-icon { color: var(--home-coral); }
.home-value-grid h3 { margin-bottom: 8px; font-size: 18px; }
.home-value-grid p { margin: 0; color: var(--home-muted); line-height: 1.65; }

.home-footer {
  border-top: 1px solid var(--home-line);
  background: #eef2f3;
}

.home-footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(340px, 1.2fr) minmax(150px, .55fr);
  gap: 36px;
  padding: 38px 0 44px;
}

.home-footer-brand p { max-width: 380px; margin: 14px 0 0; color: var(--home-muted); line-height: 1.6; }
.home-footer-categories,
.home-footer-legal { display: grid; align-content: start; gap: 9px 14px; }
.home-footer-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-footer-categories strong { grid-column: 1 / -1; margin-bottom: 3px; }
.home-footer a { color: #314149; font-weight: 750; text-decoration: none; }
.home-footer a:hover { color: var(--home-accent); }

@media (max-width: 1040px) {
  .home-header { flex-wrap: wrap; }
  .home-primary-nav { order: 3; width: 100%; justify-content: flex-start; }
  .home-hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-footer-inner { grid-template-columns: 1fr 1fr; }
  .home-footer-legal { grid-column: 1 / -1; grid-template-columns: repeat(4, max-content); }
}

@media (max-width: 780px) {
  .home-header,
  .home-main,
  .home-footer-inner { width: min(100vw - 28px, 1240px); }
  .home-header { align-items: center; flex-direction: row; }
  .home-primary-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }
  .home-primary-nav a { flex: 0 0 auto; }
  .home-header .language-switcher { width: auto; }
  .home-hero { grid-template-columns: 1fr; padding: 40px 0 34px; }
  .home-hero h1 { font-size: 38px; }
  .home-category-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-section-head { grid-template-columns: 1fr; gap: 9px; }
  .home-popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-category-section { grid-template-columns: 1fr; gap: 16px; }
  .home-category-head { align-items: center; }
  .home-value-grid { gap: 18px; }
}

@media (max-width: 540px) {
  .home-header { gap: 10px; }
  .home-brand { font-size: 14px; }
  .home-brand-mark { width: 28px; height: 28px; }
  .home-header .language-switcher { order: 2; margin-left: auto; }
  .home-header .language-switcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .home-header .language-switcher select { width: 112px; min-width: 0; }
  .home-primary-nav { order: 3; }
  .home-hero h1 { font-size: 31px; line-height: 1.12; }
  .home-hero .lede { font-size: 15px; }
  .home-search-field input { height: 54px; font-size: 15px; }
  .home-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; }
  .home-facts li { padding: 0 10px; }
  .home-facts li:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .home-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-category-link { min-height: 68px; padding: 11px; }
  .home-popular,
  .home-directory,
  .home-value { padding: 34px 0; }
  .home-section-head h2 { font-size: 24px; }
  .home-popular-grid,
  .home-tool-grid,
  .home-value-grid { grid-template-columns: 1fr; }
  .home-popular-card { min-height: 78px; }
  .home-category-section { padding: 24px 0; }
  .home-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .home-footer-legal { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .home-category-link { transition: none; }
}
