@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #08080f;
  --surface: #111118;
  --surface2: #18181f;
  --surface3: #202028;
  --neon: #fe2c55;
  --neon2: #25f4ee;
  --neon-glow: rgba(254,44,85,0.25);
  --cyan-glow: rgba(37,244,238,0.15);
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --text: #f0f0f8;
  --text-secondary: #a0a0b8;
  --muted: #55556a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(254,44,85,0.3);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(254,44,85,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,244,238,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient blobs */
.blob { position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0; }
.blob-red { width: 600px; height: 600px; background: var(--neon); opacity: 0.07; top: -200px; right: -150px; animation: blobDrift 14s ease-in-out infinite alternate; }
.blob-cyan { width: 500px; height: 500px; background: var(--neon2); opacity: 0.05; bottom: -100px; left: -150px; animation: blobDrift 18s ease-in-out infinite alternate-reverse; }

@keyframes blobDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(50px,40px) scale(1.15); }
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  text-decoration: none;
  background: linear-gradient(90deg, #fff 40%, var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo span { color: var(--neon); -webkit-text-fill-color: var(--neon); }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--neon);
  background: rgba(254,44,85,0.08);
}

/* ── HERO / PAGE HEADER ── */
.page-header {
  position: relative;
  z-index: 10;
  padding: 60px 24px 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon);
  background: rgba(254,44,85,0.08);
  border: 1px solid rgba(254,44,85,0.2);
  padding: 6px 16px;
  border-radius: 3px;
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease both;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 12vw, 100px);
  line-height: 0.92;
  letter-spacing: 1px;
  animation: fadeUp 0.5s 0.08s ease both;
}

.page-title .accent { color: var(--neon); }
.page-title .accent2 { color: var(--neon2); }

.page-subtitle {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeUp 0.5s 0.16s ease both;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 40px;
  animation: fadeUp 0.5s 0.24s ease both;
}

.live-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.5s ease infinite;
}

@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(0.7); }
}

/* ── PRODUCT LIST ── */
main {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.product-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.4s ease both;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(254,44,85,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-3px) translateX(2px);
  border-color: var(--border-hover);
  background: var(--surface2);
  box-shadow: 0 8px 40px rgba(254,44,85,0.08), 0 0 0 1px rgba(254,44,85,0.1);
}

.product-card:hover::after { opacity: 1; }

/* stagger */
.product-card:nth-child(1)  { animation-delay: 0.04s; }
.product-card:nth-child(2)  { animation-delay: 0.08s; }
.product-card:nth-child(3)  { animation-delay: 0.12s; }
.product-card:nth-child(4)  { animation-delay: 0.16s; }
.product-card:nth-child(5)  { animation-delay: 0.20s; }
.product-card:nth-child(6)  { animation-delay: 0.24s; }
.product-card:nth-child(7)  { animation-delay: 0.28s; }
.product-card:nth-child(8)  { animation-delay: 0.32s; }
.product-card:nth-child(9)  { animation-delay: 0.36s; }
.product-card:nth-child(10) { animation-delay: 0.40s; }

.rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.rank-1  { color: var(--gold);   text-shadow: 0 0 24px rgba(255,215,0,0.5); }
.rank-2  { color: var(--silver); text-shadow: 0 0 16px rgba(192,192,192,0.3); }
.rank-3  { color: var(--bronze); text-shadow: 0 0 16px rgba(205,127,50,0.3); }
.rank-4, .rank-5, .rank-6, .rank-7, .rank-8, .rank-9, .rank-10 { color: var(--muted); }

.product-info { position: relative; z-index: 1; }

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 3px;
}

.tag-viral    { background: rgba(254,44,85,0.1);  color: var(--neon);  border: 1px solid rgba(254,44,85,0.2); }
.tag-trending { background: rgba(37,244,238,0.08); color: var(--neon2); border: 1px solid rgba(37,244,238,0.2); }
.tag-hot      { background: rgba(255,165,0,0.1);  color: #ffa500;      border: 1px solid rgba(255,165,0,0.2); }
.tag-new      { background: rgba(34,197,94,0.1);  color: #22c55e;      border: 1px solid rgba(34,197,94,0.2); }

.shop-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--neon);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.shop-btn:hover {
  background: #e01f47;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(254,44,85,0.4);
}

.shop-btn svg { width: 12px; height: 12px; }

/* ── CATEGORY GRID (homepage) ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(254,44,85,0.25);
  background: var(--surface2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.cat-card:hover::before { transform: scaleX(1); }

.cat-emoji { font-size: 32px; line-height: 1; }

.cat-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.1;
}

.cat-count {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.cat-arrow {
  margin-top: auto;
  color: var(--neon);
  font-size: 18px;
  transition: transform 0.2s;
}

.cat-card:hover .cat-arrow { transform: translateX(4px); }

/* stagger cat cards */
.cat-card:nth-child(1)  { animation-delay: 0.03s; }
.cat-card:nth-child(2)  { animation-delay: 0.06s; }
.cat-card:nth-child(3)  { animation-delay: 0.09s; }
.cat-card:nth-child(4)  { animation-delay: 0.12s; }
.cat-card:nth-child(5)  { animation-delay: 0.15s; }
.cat-card:nth-child(6)  { animation-delay: 0.18s; }
.cat-card:nth-child(7)  { animation-delay: 0.21s; }
.cat-card:nth-child(8)  { animation-delay: 0.24s; }
.cat-card:nth-child(9)  { animation-delay: 0.27s; }
.cat-card:nth-child(10) { animation-delay: 0.30s; }
.cat-card:nth-child(11) { animation-delay: 0.33s; }
.cat-card:nth-child(12) { animation-delay: 0.36s; }
.cat-card:nth-child(13) { animation-delay: 0.39s; }
.cat-card:nth-child(14) { animation-delay: 0.42s; }
.cat-card:nth-child(15) { animation-delay: 0.45s; }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  background: linear-gradient(90deg, #fff 40%, var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  nav { padding: 0 14px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 9px; padding: 5px 7px; }
  .product-card { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; }
  .shop-btn { display: none; }
  .product-card { cursor: pointer; }
  .rank { font-size: 36px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
