:root {
  --bg: #080b12;
  --surface: #111827;
  --surface-2: #1a2234;
  --surface-3: #222d42;
  --text: #f1f5f9;
  --muted: #8b9cb8;
  --border: #2a3548;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", Inter, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(236, 72, 153, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(20, 184, 166, 0.06), transparent),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  margin-bottom: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #818cf8, #ec4899);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.35);
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede {
  margin: 0 auto;
  max-width: 480px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.stat-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-pill strong { color: var(--text); }

/* ---- Toolbar ---- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 28px;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.search-box input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.search-box input::placeholder { color: #5c6b82; }

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.nav-pill:hover {
  color: var(--text);
  border-color: #818cf8;
  background: rgba(129, 140, 248, 0.1);
}

.nav-pill.is-active {
  color: #fff;
  border-color: #818cf8;
  background: rgba(129, 140, 248, 0.25);
}

.no-results {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  font-size: 0.95rem;
}

.hidden { display: none !important; }

/* ---- Categories (labels — NOT cards) ---- */
.category {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}

.section-label {
  margin: 0 0 14px;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--cat-accent, #64748b);
  background: none;
  border-radius: 0;
  user-select: none;
  pointer-events: none;
}

.section-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cat-accent, #64748b);
  margin-bottom: 4px;
}

.section-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.section-desc {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 560px;
}

.cat-social { --cat-accent: #ec4899; }
.cat-video { --cat-accent: #f97316; }
.cat-steam { --cat-accent: #66c0f4; }
.cat-marketing { --cat-accent: #a855f7; }
.cat-audio { --cat-accent: #c084fc; }
.cat-ops { --cat-accent: #94a3b8; }

.category-body {
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.category.is-empty { display: none; }

/* ---- Tool cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tool::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent, #818cf8);
  opacity: 0.85;
}

.tool:hover {
  transform: translateY(-3px);
  background: var(--surface-3);
  border-color: color-mix(in srgb, var(--accent, #818cf8) 50%, var(--border));
  box-shadow: var(--shadow);
}

.tool.is-hidden { display: none; }

.tool-instagram { --accent: #e1306c; }
.tool-twitch { --accent: #9146ff; }
.tool-youtube { --accent: #ff0033; }
.tool-steam { --accent: #66c0f4; }
.tool-steamdb { --accent: #5c7e10; }
.tool-review { --accent: #5ba46b; }
.tool-tags { --accent: #c6a75e; }
.tool-buzz { --accent: #ff6b35; }
.tool-fest { --accent: #a855f7; }
.tool-trend { --accent: #14b8a6; }
.tool-press { --accent: #f59e0b; }
.tool-soundforge { --accent: #a371f7; }

.tool-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent, #818cf8);
  flex-shrink: 0;
}

.icon-instagram { background: linear-gradient(135deg, #feda75, #d62976 45%, #962fbf 80%, #4f5bd5); }
.icon-youtube { background: #ff0033; }
.icon-steamdb { background: linear-gradient(135deg, #5c7e10, #8bc34a); }
.icon-review { background: linear-gradient(135deg, #5ba46b, #3d8b4e); }
.icon-tags { background: linear-gradient(135deg, #c6a75e, #9a7b3a); }
.icon-buzz { background: linear-gradient(135deg, #ff6b35, #c44a1a); }

.platform {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 600;
}

.tool h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tool p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  flex: 1;
}

.cta {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent, #818cf8);
}

.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box { max-width: none; }
  .category-nav { justify-content: center; }
  .wrap { padding-top: 32px; }
}
