:root {
  --bg: #040706;
  --panel: rgba(7, 17, 13, 0.88);
  --panel-2: rgba(8, 23, 18, 0.92);
  --line: rgba(79, 255, 170, 0.18);
  --line-strong: rgba(79, 255, 170, 0.42);
  --text: #dcffe8;
  --muted: #8cbda1;
  --accent: #56ffaf;
  --accent-2: #17d9ff;
  --danger: #ff6961;
  --shadow: 0 0 40px rgba(18, 255, 154, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  color: var(--text);
  background: var(--bg);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(86, 255, 175, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 255, 175, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

.hero,
.layout,
.footer {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 36px 0 28px;
}

.github-corner {
  position: absolute;
  top: 50px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(79, 255, 170, 0.2);
  border-radius: 14px;
  background: rgba(3, 10, 8, 0.5);
  color: var(--muted);
  transition: border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.github-corner:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.github-corner svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(79, 255, 170, 0.22);
  background:
    radial-gradient(circle at 30% 30%, rgba(23, 217, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(9, 23, 18, 0.92), rgba(4, 10, 8, 0.92));
  box-shadow: inset 0 0 18px rgba(79, 255, 170, 0.08);
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter:
    hue-rotate(165deg)
    saturate(2.2)
    brightness(0.95)
    contrast(1.1)
    drop-shadow(0 0 6px rgba(86, 255, 175, 0.22));
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.brand-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(86, 255, 175, 0.22);
}

.lede {
  max-width: 920px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.chip {
  border: 1px solid var(--line-strong);
  background: rgba(9, 21, 16, 0.66);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.chip:hover,
.chip.active {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 255, 170, 0.18);
  background: rgba(5, 14, 11, 0.72);
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.reset-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  padding-bottom: 36px;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.content {
  padding: 20px;
}

.sidebar,
.content-top {
  border: 1px solid rgba(79, 255, 170, 0.09);
  border-radius: 16px;
  padding: 16px;
  background: rgba(3, 10, 8, 0.42);
}

.sidebar {
  padding: 20px;
  position: sticky;
  top: 16px;
  height: fit-content;
}

.sidebar-section {
  border: 1px solid rgba(79, 255, 170, 0.09);
  border-radius: 16px;
  padding: 16px;
  background: rgba(3, 10, 8, 0.42);
}

h2,
h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(1, 9, 7, 0.72);
}

.search-wrap span {
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.controls {
  flex: 1;
  min-width: 0;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.toolbar-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compact {
  margin: 0;
  font-size: 0.84rem;
}

.muted {
  color: var(--muted);
}

.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sidebar-filters {
  margin-top: 12px;
}

.sidebar-actions {
  margin-top: 12px;
}

.compact-button {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(79, 255, 170, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(1, 9, 7, 0.42);
}

.check-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.check-item input {
  accent-color: var(--accent);
}

.check-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.78rem;
  border: 1px solid rgba(79, 255, 170, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
}

.featured-list {
  display: grid;
  gap: 12px;
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.featured-card {
  border: 1px solid rgba(79, 255, 170, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.featured-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.badge-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(79, 255, 170, 0.16);
  color: var(--muted);
  font-size: 0.78rem;
}

.content {
  min-height: 60vh;
}

.content-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.legend {
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: right;
  color: var(--muted);
  font-size: 0.86rem;
}

.catalog-sections {
  display: grid;
  gap: 18px;
  min-height: clamp(42rem, 72vh, 64rem);
  align-content: start;
}

.section-block,
.subsection-block {
  border: 1px solid rgba(79, 255, 170, 0.09);
  border-radius: 18px;
  padding: 16px;
  background: rgba(2, 11, 8, 0.4);
}

.section-block h3 {
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.app-card {
  border: 1px solid rgba(79, 255, 170, 0.11);
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(7, 20, 16, 0.92), rgba(3, 9, 7, 0.92));
}

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

.app-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.app-description {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.meta span {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid rgba(79, 255, 170, 0.09);
  border-radius: 999px;
  padding: 4px 8px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.empty {
  border: 1px dashed rgba(255, 105, 97, 0.25);
  border-radius: 16px;
  padding: 18px;
  color: var(--muted);
}

.footer {
  padding: 0 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

  .sidebar {
    position: static;
  }

  .content-top {
    flex-direction: column;
  }

  .legend {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 28px;
  }

  .brand-row {
    align-items: center;
  }

  .brand-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .chip {
    width: 100%;
    text-align: center;
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }
}
