:root {
  color-scheme: dark;
  --page: #0d0c15;
  --surface: #15131f;
  --line: #282436;
  --text: #f7f4ff;
  --muted: #b6adc6;
  --dim: #a298b5;
  --container-max: 1184px;
  --container-gutter: 40px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--text);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-inline-size: 280px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { color: #fff; background: #6943b3; }
:focus-visible { outline: 2px solid #d6c0ff; outline-offset: 4px; }

.container { width: min(var(--container-max), calc(100% - 2 * var(--container-gutter))); margin-inline: auto; }
.symbol-definitions { position: absolute; inline-size: 0; block-size: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #302145;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid #211d2c; }
.header-inner { display: flex; align-items: center; min-height: 69px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 1.1875rem; font-weight: 730; letter-spacing: -.045em; white-space: nowrap; }
.site-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #554071; border-radius: 10px; color: #d6bfff; background: linear-gradient(145deg, #382654, #231a36); }
.site-mark .icon { width: 22px; height: 22px; }
.wordmark-accent { color: #c0a5f5; }

.catalog {
  --category-nav-width: 160px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--category-nav-width);
  align-items: start;
  gap: 24px;
  padding-block: 28px 40px;
  scroll-margin-top: 16px;
}
.catalog-content { grid-area: 1 / 1; }
.category-nav {
  --nav-viewport-height: 100vh;
  --nav-top: min(var(--first-row-top, 160px), calc(var(--nav-viewport-height) / 2));
  position: fixed;
  top: var(--nav-top);
  inset-inline-end: max(var(--container-gutter), calc((100% - var(--container-max)) / 2));
  width: var(--category-nav-width);
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  max-height: calc(var(--nav-viewport-height) - var(--nav-top) - 16px);
}
@supports (height: 100dvh) {
  .category-nav { --nav-viewport-height: 100dvh; }
}
.category-links, .top-shortcut {
  border: 1px solid #322b42;
  border-radius: 13px;
  background: #16131f;
  box-shadow: 0 6px 22px #08061162;
}
.category-links {
  display: grid;
  gap: 3px;
  overflow-y: auto;
  padding: 6px;
}
.category-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #d0c8e0;
  font-size: .875rem;
  font-weight: 590;
  line-height: 1.35;
  transition: background .18s, color .18s;
}
.category-shortcut > .icon { width: 16px; height: 16px; color: var(--category-ink); }
.category-shortcut:hover { color: #f4ebff; background: #292039; }
.category-shortcut:focus-visible { outline-offset: -2px; color: #f4ebff; }
.shortcut-compact { display: none; }
.top-shortcut { visibility: hidden; padding: 2px; }
.top-shortcut.is-visible { visibility: visible; }
.top-shortcut .category-shortcut { justify-content: center; color: #d5befc; }
[data-category="chat"] { --category-ink: #c6a6ff; --category-fill: #271c3e; --category-line: #4a346c; }
[data-category="agents"] { --category-ink: #c5e99b; --category-fill: #232e20; --category-line: #415637; }
[data-category="image"] { --category-ink: #ffabd6; --category-fill: #321c32; --category-line: #573451; }
[data-category="video"] { --category-ink: #aabaff; --category-fill: #1f2441; --category-line: #394575; }
[data-category="audio"] { --category-ink: #90e8d2; --category-fill: #172d31; --category-line: #2c514f; }
[data-category="code"] { --category-ink: #9cd8ff; --category-fill: #172a40; --category-line: #2d4a66; }
[data-category="docs"] { --category-ink: #f8c995; --category-fill: #33271e; --category-line: #554131; }

.tool-group + .tool-group { margin-top: 38px; }
.group-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.group-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--category-line); border-radius: 11px; color: var(--category-ink); background: var(--category-fill); }
.group-heading h2 { font-size: 1.125rem; font-weight: 700; line-height: 1.4; scroll-margin-top: 24px; }
.group-heading p { margin-top: 3px; color: var(--dim); font-size: .875rem; line-height: 1.4; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 158px;
  height: 100%;
  padding: 16px 17px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, #191624, var(--surface) 74%);
  transition: border-color .18s, background .18s, transform .18s;
}
.tool-card:hover, .tool-card:focus-visible { border-color: #685187; background: linear-gradient(145deg, #211a34, #181422 74%); }
@media (hover: hover) {
  .tool-card:hover { transform: translateY(-2px); }
}
.tool-heading { display: flex; align-items: center; gap: 11px; }
.tool-heading h3 { font-size: 1.0625rem; font-weight: 690; line-height: 1.35; letter-spacing: -.017em; overflow-wrap: anywhere; }
.tool-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; overflow: hidden; border: 1px solid #3b334e; border-radius: 10px; background: #282236; }
.tool-icon img { display: block; width: 22px; height: 22px; object-fit: contain; }
.tool-icon-app img { width: 26px; height: 26px; }
.tool-monogram { color: var(--category-ink); font-size: .8125rem; font-weight: 750; }
.tool-icon-chatgpt { background: #18302d; border-color: #2a4b42; }
.tool-icon-grok, .tool-icon-runway, .tool-icon-cursor { background: #2a2632; }
.tool-icon-deepseek, .tool-icon-gemini, .tool-icon-kling { background: #1e2340; border-color: #323b5f; }
.tool-icon-claude, .tool-icon-suno { background: #352526; border-color: #503235; }
.tool-card p { margin-top: 11px; margin-bottom: 10px; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.tool-domain { display: flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; margin-top: auto; color: var(--dim); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.tool-domain .icon { width: 15px; height: 15px; }
.tool-card:hover .tool-domain, .tool-card:focus-visible .tool-domain { color: #e0caff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  :root { --container-gutter: 24px; }
  .catalog { gap: 18px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  :root { --container-gutter: 16px; }
  .header-inner { min-height: 60px; }
  .catalog { --category-nav-width: 54px; gap: 10px; padding-block: 22px 28px; }
  .category-links { padding: 4px; }
  .category-shortcut { flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 3px 1px; }
  .shortcut-label { display: none; }
  .shortcut-compact { display: inline; }
  .tool-group + .tool-group { margin-top: 29px; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .tool-card { min-height: 135px; padding: 13px 15px; }
}
@media (max-width: 360px) {
  :root { --container-gutter: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
