/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0a0f0a;
  color: #e0ffe0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 50px 20px 40px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(51, 244, 8, 0.25) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 80%, rgba(0, 249, 37, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(26, 255, 0, 0.08) 0%, transparent 50%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.logo {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.logo span {
  background: linear-gradient(135deg, #00e664, #33ff99, #00cc55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 30%, #66ffaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  font-size: 1.1rem;
  color: #80ddaa;
  margin-bottom: 28px;
}

/* ===== SEARCH ===== */
.search-wrap {
  max-width: 550px;
  margin: 0 auto 24px;
}
#search {
  width: 100%;
  padding: 16px 22px;
  border: 2px solid rgba(0,230,100,0.3);
  border-radius: 16px;
  background: rgba(0,30,15,0.7);
  color: #e0ffe0;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  backdrop-filter: blur(8px);
}
#search::placeholder { color: #55aa77; }
#search:focus {
  border-color: #00e664;
  box-shadow: 0 0 0 4px rgba(0,230,100,0.15);
}

/* ===== FILTERS ===== */
.filters { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.filter-label {
  font-size: .8rem;
  font-weight: 600;
  color: #55cc77;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
  min-width: 80px;
  text-align: right;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(0,230,100,0.25);
  background: rgba(0,40,20,0.5);
  color: #a0eebb;
  font-size: .85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.chip:hover {
  background: rgba(0,230,100,0.15);
  border-color: #00e664;
  color: #fff;
}
.chip.active {
  background: linear-gradient(135deg, #00c853, #00e664);
  color: #0a0f0a;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,230,100,0.3);
}

/* ===== STATS ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 30px 20px 10px;
  flex-wrap: wrap;
}
.stat-card {
  background: rgba(0,40,20,0.5);
  border: 1.5px solid rgba(0,230,100,0.2);
  border-radius: 16px;
  padding: 18px 28px;
  text-align: center;
  min-width: 130px;
  backdrop-filter: blur(6px);
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #00e664;
}
.stat-label {
  font-size: .78rem;
  color: #80ddaa;
  font-weight: 500;
  margin-top: 2px;
}

/* ===== GRID ===== */
.grid-wrap { max-width: 1300px; margin: 30px auto 50px; padding: 0 20px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* ===== CARD ===== */
.card {
  background: linear-gradient(145deg, rgba(0,40,20,0.65), rgba(0,25,12,0.85));
  border: 1.5px solid rgba(0,230,100,0.15);
  border-radius: 20px;
  padding: 24px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(0,230,100,0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: #00e664;
  box-shadow: 0 8px 30px rgba(0,230,100,0.15);
}
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.card-title-area { flex: 1; }
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.card-category {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #55cc77;
}
.card-desc {
  font-size: .88rem;
  color: #b0ddc5;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: .73rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag-free { background: rgba(0,230,100,0.18); color: #33ff99; }
.tag-freemium { background: rgba(255,165,0,0.15); color: #ffaa44; }
.tag-paid { background: rgba(255,80,80,0.15); color: #ff7777; }
.tag-vpn { background: rgba(255,200,50,0.12); color: #ffdd66; }
.tag-novpn { background: rgba(0,180,255,0.12); color: #66ccff; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00c853, #00e664);
  color: #0a0f0a;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  transition: opacity .2s, transform .15s;
  width: fit-content;
}
.card-link:hover { opacity: .85; transform: scale(1.03); }

/* ===== ICON BACKGROUNDS ===== */
.icon-text { background: linear-gradient(135deg, #1a5c3a, #0e3a22); }
.icon-image { background: linear-gradient(135deg, #3a1a5c, #220e3a); }
.icon-video { background: linear-gradient(135deg, #5c1a1a, #3a0e0e); }
.icon-music { background: linear-gradient(135deg, #5c3a1a, #3a220e); }
.icon-code { background: linear-gradient(135deg, #1a3a5c, #0e223a); }
.icon-voice { background: linear-gradient(135deg, #5c1a4a, #3a0e30); }
.icon-search { background: linear-gradient(135deg, #1a5c5c, #0e3a3a); }
.icon-design { background: linear-gradient(135deg, #5c5c1a, #3a3a0e); }

/* ===== EMPTY ===== */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #55aa77;
}
.empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px 20px;
  color: #448866;
  font-size: .85rem;
  border-top: 1px solid rgba(0,230,100,0.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeUp .35s ease both; }
.card:nth-child(2) { animation-delay: .04s; }
.card:nth-child(3) { animation-delay: .08s; }
.card:nth-child(4) { animation-delay: .12s; }
.card:nth-child(5) { animation-delay: .16s; }
.card:nth-child(6) { animation-delay: .20s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero { padding: 30px 14px 24px; }
  .logo { font-size: 1.6rem; }
  .stats { gap: 10px; }
  .stat-card { min-width: 100px; padding: 14px 18px; }
  .stat-number { font-size: 1.5rem; }
  .grid { grid-template-columns: 1fr; }
  .filter-label { min-width: auto; text-align: left; }
}
