/* hub: rules only this page uses (moved out of style.css so other pages don't parse them). */
.hero-banner { padding: 2rem 0 0.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 900px) {
.hero-grid { grid-template-columns: 1fr; }
}
.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.82rem; color: var(--muted); }
.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.visual-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.visual-bar em { font-style: normal; color: var(--muted); font-size: 0.9rem; }
.visual-note { margin: 0.5rem 0 0; color: var(--ok); font-size: 0.9rem; font-weight: 600; }
.tool-controls { margin-bottom: 1rem; }
.features-strip {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: rgba(255,255,255,0.02);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) {
.strip-grid { grid-template-columns: repeat(2, 1fr); }
}
.strip-grid article { text-align: center; }
.strip-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.strip-grid h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.strip-grid p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.blog-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.blog-grid-home {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
.blog-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
.blog-grid-home {
    grid-template-columns: 1fr;
  }
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.intro-block p { color: var(--muted); }
.hero-mesh {
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 18% 22%, rgba(255, 107, 74, 0.22), transparent 62%),
    radial-gradient(ellipse 48% 42% at 82% 28%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 44% at 52% 88%, rgba(56, 189, 248, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 36% at 70% 70%, rgba(255, 61, 142, 0.08), transparent 55%);
  animation: hero-mesh-shift 22s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
html[data-theme="light"] .hero-mesh {
  background:
    radial-gradient(ellipse 55% 48% at 18% 22%, rgba(232, 90, 58, 0.16), transparent 62%),
    radial-gradient(ellipse 48% 42% at 82% 28%, rgba(13, 148, 136, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 44% at 52% 88%, rgba(14, 165, 233, 0.1), transparent 58%),
    radial-gradient(ellipse 40% 36% at 70% 70%, rgba(15, 118, 110, 0.06), transparent 55%);
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 40%;
  opacity: 0.5;
  animation: hero-glow-drift 28s ease-in-out infinite;
  will-change: transform, opacity;
}
@media (max-width: 720px) {
.hero-mesh { animation: none; opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
.hero-glow,
  .hero-mesh,
  .bubble-snow-layer {
    animation: none !important;
  }
.hero-glow { opacity: 0.3; }
.hero-mesh { opacity: 0.7; background-position: 40% 40%; }
}
.bubble-snow-layer,
.hero-glow {
  will-change: auto;
}
.hero-panda {
  position: absolute;
  right: clamp(-1rem, 4vw, 3.5rem);
  bottom: -0.35rem;
  z-index: 1;
  width: min(32vw, 260px);
  height: auto;
  max-height: 72%;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}
html[data-theme="light"] .hero-panda {
  opacity: 0.2;
  filter: drop-shadow(0 8px 20px rgba(30, 20, 10, 0.18));
}
@media (max-width: 900px) {
.hero-panda {
    width: min(28vw, 200px);
    opacity: 0.22;
    right: -0.5rem;
  }
}
@media (max-width: 640px) {
.hero-panda {
    display: none;
  }
}
.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hub-panel {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
}
.hub-searches {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}
.hub-searches-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}
.hub-searches-list li {
  margin: 0;
}
.hub-searches-list a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--link);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}
.hub-searches-list a:hover {
  color: var(--link-hover);
  border-color: rgba(255, 107, 74, 0.4);
  text-decoration: none;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}
@media (max-width: 1100px) {
.cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
}
@media (max-width: 380px) {
.cat-grid { grid-template-columns: 1fr; }
}
.cat-card--hub {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 0.95rem 0.85rem;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card--hub:hover,
.cat-card--hub:focus-visible {
  border-color: color-mix(in srgb, var(--brand, #ff6b4a) 45%, var(--border));
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  outline: none;
}
.cat-card-ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--brand, #ff6b4a);
  background: color-mix(in srgb, var(--brand, #ff6b4a) 12%, transparent);
}
.cat-card-ico .ui-ico { width: 22px; height: 22px; }
.cat-card-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 0.28rem; }
.cat-card--hub h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 700;
}
.cat-card--hub p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: 0.2rem;
}
.cat-card-count {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.cat-card-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff9f7a;
}
@media (max-width: 720px) {
  .cat-card--hub { padding: 0.85rem; border-radius: 14px; }
  .cat-card--hub p { -webkit-line-clamp: 2; }
}
.cat-card-blog {
  border-color: rgba(255, 107, 74, 0.28);
  background: linear-gradient(160deg, rgba(255, 107, 74, 0.08), transparent 55%);
}
.catalog-section {
  scroll-margin-top: 5.5rem;
}
.catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.catalog-see-all {
  flex-shrink: 0;
  margin-top: 0.15rem;
  white-space: nowrap;
}
@media (max-width: 768px) {
.why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
.why-grid { grid-template-columns: 1fr; }
.catalog-see-all { flex-shrink: 1; white-space: normal; }
}
.tools-search-input-lg {
  padding: 1.1rem 1.25rem 1.1rem 3.25rem;
  border-radius: 18px;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  background: var(--surface-solid);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 40px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.12);
  min-height: 60px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tools-search-input-lg:focus {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 3px rgba(45, 212, 191, 0.14),
    0 16px 42px rgba(0, 0, 0, 0.26);
}
.tools-search-input-lg::placeholder {
  color: var(--muted);
  opacity: 0.92;
  font-weight: 450;
}
html[data-theme="light"] .tools-search-input-lg {
  border-color: rgba(20, 24, 32, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 32px rgba(30, 20, 10, 0.08);
}
html[data-theme="light"] .tools-search-input-lg:focus {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 3px rgba(13, 148, 136, 0.14),
    0 12px 32px rgba(30, 20, 10, 0.1);
}
.hub-search {
  position: relative;
  width: 100%;
  max-width: 44rem;
  margin: 1.75rem auto 0;
  text-align: left;
  z-index: 2;
}
.hub-search-bubbles {
  display: none;
}
.hub-search-bubble {
  display: none;
}
.hub-search-field {
  position: relative;
  z-index: 1;
}
.hub-search-ico {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  color: var(--muted);
  pointer-events: none;
  opacity: 0.9;
  z-index: 2;
}
.hub-search-field:focus-within .hub-search-ico {
  color: #ff8a50;
  opacity: 1;
}
.tools-search-results-lg {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 8;
  margin-top: 0.6rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}
@media (max-width: 560px) {
.hub-search {
    max-width: none;
    margin-top: 1.45rem;
  }
.tools-search-input-lg {
    font-size: 1.05rem;
    min-height: 52px;
    padding: 0.95rem 1.1rem 0.95rem 3.05rem;
  }
.hub-search-ico {
    left: 1.05rem;
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 900px) {
.hero-mesh {
    animation: none;
    opacity: 0.7;
  }
.hero-glow {
    animation-duration: 40s;
  }
}
.hub-trust {
  margin: 1.5rem 0 0.75rem;
  padding: 0;
}
.hub-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  padding: 0.75rem 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
}
html[data-theme="light"] .hub-trust-strip {
  background: transparent;
}
.hub-trust-chip {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0.4rem 0.85rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
html[data-theme="light"] .hub-trust-chip {
  background: rgba(255, 255, 255, 0.85);
}
.tool-card-grid-featured {
  gap: 1.1rem;
}
.hub-suite {
  margin-top: 2.25rem;
}
.hub-suite-head {
  max-width: 40rem;
  margin-bottom: 1.25rem;
}
.hub-suite-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
.hub-suite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
.hub-suite-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}
.hub-suite-item {
  margin: 0;
  min-width: 0;
}
.hub-suite-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
  height: 100%;
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hub-suite-link:hover,
.hub-suite-link:focus-visible {
  border-color: rgba(255, 107, 74, 0.45);
  color: inherit;
  outline: none;
}
.hub-suite-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 107, 74, 0.35);
}
.hub-suite-item--accent .hub-suite-link {
  border-color: rgba(255, 107, 74, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 107, 74, 0.07), transparent 55%),
    var(--surface-solid);
}
.hub-suite-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  font-size: 1.35rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
html[data-theme="light"] .hub-suite-icon {
  background: rgba(15, 23, 42, 0.04);
}
.hub-suite-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.hub-suite-title {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}
.hub-suite-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-height: calc(3 * 1.45em);
  overflow: hidden;
}
.hub-suite-cta {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand);
}
.hub-suite-link:hover .hub-suite-cta {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
@media (prefers-reduced-motion: reduce) {
.hub-suite-link { transition: none; }
}
.hub-howto-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.hub-howto-list li {
  line-height: 1.5;
  color: var(--text);
}
.hub-howto-prefer {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.hub-cta-band {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}
.hub-cta-band-inner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}
.hub-cta-band-lead {
  margin: 0 auto 0.85rem;
  max-width: 32rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--hero-tag, var(--text));
}
.hub-cta-band-body {
  margin: 0 auto 1.35rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.hub-reveal[data-reveal] {
  opacity: 0;
  transform: none;
  transition: opacity 0.35s ease;
  will-change: auto;
}
.hub-reveal.is-inview,
.hub-reveal[data-reveal].is-inview {
  opacity: 1;
  transform: none;
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
.hub-reveal[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.hx-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 12% 0%, rgba(255, 107, 74, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 55% at 92% 20%, rgba(45, 212, 191, 0.12), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
html[data-theme="light"] .hx-bg {
  background:
    radial-gradient(ellipse 50% 60% at 12% 0%, rgba(232, 90, 58, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 55% at 92% 20%, rgba(13, 148, 136, 0.1), transparent 70%),
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
}
/* Width/gutter come from shared --page-max/--page-pad in style.css (same left edge as header). */
.hx-wrap {
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "panel" "stats";
  gap: clamp(1.35rem, 3vw, 2.5rem) clamp(1.5rem, 3.5vw, 3.25rem);
  align-items: center;
}
.hx-copy { grid-area: copy; min-width: 0; }
.hx-panel { grid-area: panel; min-width: 0; }
.hx-stats { grid-area: stats; }
.hx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem 0.38rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.hx-badge:hover { border-color: rgba(255, 107, 74, 0.45); }
.hx-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.hx-badge-arrow { color: var(--muted); }
.hx-title { margin: 1.1rem 0 0; }
.hx-brand {
  display: block;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  background: linear-gradient(105deg, var(--hero-title) 0 48%, var(--brand) 76%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hx-h1-sub {
  display: block;
  max-width: 34ch;
  margin-top: 0.65rem;
  font-size: clamp(1.22rem, 2.1vw, 1.85rem);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--hero-title);
  text-wrap: balance;
}
.hx-lead {
  max-width: 58ch;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.hub-search.hx-search {
  max-width: 42rem;
  margin: 1.6rem 0 0;
}
.hx-search-field { position: relative; }
.hx-search-ico {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.hx-search .tools-search-input-lg {
  padding-left: 3.2rem;
  padding-right: 3.4rem;
  border-radius: 16px;
  min-height: 58px;
}
.hx-kbd {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 1.6rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font: 600 0.78rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  pointer-events: none;
}
.hx-popular {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
  min-width: 0;
}
.hx-popular-label {
  flex: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.hx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}
.hx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.hx-chip:hover {
  border-color: rgba(255, 107, 74, 0.5);
  background: rgba(255, 107, 74, 0.08);
}
html[data-theme="light"] .hx-chip { background: #fff; }
.hx-chip-ico { color: var(--brand); }
.hx-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 1.35rem 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.hx-stats li { min-width: 0; }
.hx-stats strong {
  display: block;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--hero-title);
}
.hx-stats span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.hx-panel {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] .hx-panel {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(30, 20, 10, 0.1);
}
.hx-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.1rem 0.25rem 0.95rem;
}
.hx-panel-dots { display: inline-flex; gap: 6px; }
.hx-panel-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}
.hx-panel-dots i:nth-child(2) { background: #febc2e; }
.hx-panel-dots i:nth-child(3) { background: #28c840; }
.hx-panel-title {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hx-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-cat {
  --hx-c: 255, 107, 74;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.hx-cat:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--hx-c), 0.5);
  background: rgba(var(--hx-c), 0.07);
}
html[data-theme="light"] .hx-cat { background: #fff; }
.hx-cat--media { --hx-c: 255, 61, 142; }
.hx-cat--seo { --hx-c: 56, 189, 248; }
.hx-cat--docs { --hx-c: 245, 158, 11; }
.hx-cat--security { --hx-c: 45, 212, 191; }
.hx-cat--all { --hx-c: 167, 139, 250; }
.hx-cat-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(var(--hx-c), 0.14);
  color: rgb(var(--hx-c));
}
.hx-cat-text { display: grid; min-width: 0; }
.hx-cat-name {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.25;
}
.hx-cat-count {
  font-size: 0.8rem;
  color: var(--muted);
}
.hx-cat-go {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}
.hx-cat:hover .hx-cat-go { transform: translateX(3px); color: rgb(var(--hx-c)); }
.hx-panel-foot {
  margin: 0.95rem 0.25rem 0.1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
@media (min-width: 1024px) {
.hx-wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    grid-template-areas:
      "copy panel"
      "stats panel";
    align-items: start;
  }
.hx-copy { align-self: start; padding-top: 0.35rem; }
.hx-panel { align-self: stretch; }
}
@media (min-width: 721px) {
.hx-popular { flex-wrap: wrap; gap: 0.5rem; }
.hx-popular-label { margin-right: 0.25rem; }
.hx-chips { display: contents; }
}
@media (min-width: 721px) and (max-width: 1023px) {
.hx-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-cat-go { display: none; }
}
@media (max-width: 720px) {
.hx-wrap { gap: 1.2rem; } /* keep shared --page-pad width; never a different gutter */
.hx-badge { font-size: 0.74rem; padding: 0.3rem 0.7rem 0.3rem 0.55rem; }
.hx-title { margin-top: 0.75rem; }
.hx-brand { font-size: clamp(2rem, 9.5vw, 2.55rem); letter-spacing: -0.04em; }
.hx-h1-sub { font-size: 1.08rem; margin-top: 0.4rem; max-width: none; }
.hx-lead {
    font-size: 0.92rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
.hub-search.hx-search { margin-top: 1rem; max-width: none; }
.hx-search .tools-search-input-lg {
    min-height: 50px;
    padding-right: 1rem;
    font-size: 1rem;
    border-radius: 14px;
  }
.hx-kbd { display: none; }
.hx-popular { margin: 0.85rem calc(-1 * var(--page-pad, 1rem)) 0; }
.hx-popular-label { display: none; }
.hx-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 var(--page-pad, 1rem) 0.2rem;
    scroll-padding-inline: var(--page-pad, 1rem);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
.hx-chips::-webkit-scrollbar { display: none; }
.hx-chip { scroll-snap-align: start; min-height: 40px; }
.hx-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
html[data-theme="light"] .hx-panel { background: transparent; box-shadow: none; }
.hx-panel-head { padding: 0 0 0.7rem; }
.hx-panel-dots { display: none; }
.hx-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.hx-cat {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 0.35rem 0.75rem;
    border-radius: 18px;
    text-align: center;
  }
.hx-cat:hover { transform: none; }
.hx-cat:active { transform: scale(0.97); }
.hx-cat-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgb(var(--hx-c)), rgba(var(--hx-c), 0.62));
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--hx-c), 0.28);
  }
.hx-cat-text { justify-items: center; }
.hx-cat-name { font-size: 0.84rem; }
.hx-cat-count { font-size: 0.7rem; }
.hx-cat-go,
  .hx-panel-foot { display: none; }
.hx-stats {
    gap: 0.4rem;
    padding: 1rem 0 0;
  }
.hx-stats li { text-align: center; }
.hx-stats strong { font-size: 1.02rem; }
.hx-stats span { font-size: 0.68rem; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
.hx-cat,
  .hx-cat-go { transition: none; }
}
.hx-cat--photo-studio { --hx-c: 251, 113, 133; }
.hx-cat--service-center { --hx-c: 56, 189, 248; }
.hx-cat--education { --hx-c: 250, 204, 21; }
.hx-cat--dental { --hx-c: 45, 212, 191; }
.hx-cat--medical { --hx-c: 45, 212, 191; }
.hx-cat--surprises { --hx-c: 236, 72, 153; }
.hx-cats > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 720px) {
.hx-cats > li:last-child:nth-child(odd) { grid-column: auto; }
.hx-cats > li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
