* {
  box-sizing: border-box;
}

:root {
  --surface: #12141c;
  --surface-2: #1a1d28;
  --card: #1e2230;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaf0;
  --muted: #9aa0b4;
  --accent: #c8ff00;
  --accent-2: #8f79c9;
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'SN Pro', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--surface);
  background-image: radial-gradient(rgba(50, 52, 62, 0.45) 1px, var(--surface) 1px);
  background-size: 20px 20px;
  overflow-x: hidden;
}

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

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40rem 24rem at 15% -5%, rgba(200, 255, 0, 0.1), transparent 65%),
    radial-gradient(36rem 22rem at 90% 10%, rgba(143, 121, 201, 0.14), transparent 65%);
  z-index: 0;
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  background: rgba(18, 20, 28, 0.82);
  z-index: 10;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo__mark {
  color: var(--accent);
  margin-right: 0.25rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem 2.5rem;
}

.hero__badge {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(200, 255, 0, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  background: rgba(200, 255, 0, 0.06);
}

.hero__title {
  margin: 1.2rem 0 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
}

/* Search */
.search {
  position: relative;
  max-width: 34rem;
  margin: 2rem auto 0;
}

.search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--muted);
}

.search__input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 2.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search__input::placeholder {
  color: #6b7086;
}

.search__input:focus {
  border-color: rgba(200, 255, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.12);
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-top: 2.25rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat b {
  font-size: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
}

.stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Catalog */
.catalog {
  padding: 1rem clamp(1rem, 4vw, 3rem) 3rem;
  max-width: 76rem;
  margin: 0 auto;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.chip {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.chip.active {
  color: #12141c;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.catalog__count {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1rem;
}

/* Card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  animation: pop 0.3s ease both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 0, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.card__vendor {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.card__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(143, 121, 201, 0.18);
  color: #c9bdf0;
  border: 1px solid rgba(143, 121, 201, 0.35);
}

.tag--free {
  background: rgba(200, 255, 0, 0.12);
  color: var(--accent);
  border-color: rgba(200, 255, 0, 0.35);
}

.card__go {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  font-size: 1rem;
}

/* About */
.about {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 3.5rem;
  border-top: 1px solid var(--line);
}

.about h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0 0 1.5rem;
  text-align: center;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.tip {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tip__emoji {
  font-size: 1.75rem;
}

.tip h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1rem;
}

.tip p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.about__note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7086;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .nav {
    display: none;
  }
}
