/* ── FONTS ─────────────────────────────────────────── */
@font-face {
  font-family: 'Vend Sans';
  src: url('../fonts/vend-sans-v1-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vend Sans';
  src: url('../fonts/vend-sans-v1-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vend Sans';
  src: url('../fonts/vend-sans-v1-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Encode Sans SC';
  src: url('../fonts/encode-sans-semi-condensed-v11-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:      #080D18;
  --surface: #0F1824;
  --card:    #131F30;
  --border:  #1C2D42;
  --cyan:    #00D4FF;
  --teal:    #28ACAC;
  --white:   #FFFFFF;
  --gray:    #94A3B8;
  --lgray:   #CBD5E1;
  --f-head:  'Vend Sans', system-ui, sans-serif;
  --f-body:  'Encode Sans SC', system-ui, sans-serif;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* Grid noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px,4vw,60px); position: relative; z-index: 1; }

/* ── NAV ─────────────────────────────────────────────── */
nav#hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,13,24,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px,4vw,60px);
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 700; font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-logo img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--teal);
  object-fit: cover;
}
.nav-right {
  display: flex; align-items: center; gap: 10px;
}
.nav-home {
  color: var(--gray);
  font-family: var(--f-head); font-size: 0.78rem; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid transparent;
  transition: all .2s;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.nav-home:hover { color: var(--white); border-color: var(--border); }

.filters { display: flex; gap: 6px; }
.chip {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--gray);
  padding: 5px 14px; border-radius: 999px;
  cursor: pointer;
  font-family: var(--f-head); font-weight: 600; font-size: 0.75rem;
  transition: all .2s; white-space: nowrap;
}
.chip:hover { color: var(--white); border-color: var(--teal); }
.chip.active { background: var(--teal); color: var(--bg); border-color: transparent; }

/* ── PAGE HEADER ────────────────────────────────────── */
.page-header {
  padding: 48px 0 32px;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(40,172,172,0.07) 0%, transparent 60%);
  position: relative; z-index: 1;
}
.page-title {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 6px; line-height: 1.2;
}
.page-sub { color: var(--gray); font-size: 0.95rem; }

/* ── GRID ────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
  position: relative; z-index: 1;
}
@media (min-width: 600px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, 1fr); } }

/* ── CARD ────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }

.thumb {
  width: 100%; aspect-ratio: 9/19.5;
  background: var(--surface);
  object-fit: cover; display: block;
}
.meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 12px;
  gap: 8px;
}
.name {
  font-family: var(--f-head); font-weight: 600; font-size: 0.78rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--lgray);
  min-width: 0;
}
.sub { color: var(--gray); font-size: 0.68rem; margin-top: 2px; }
.bar { flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--bg);
  border: none; border-radius: 10px;
  padding: 7px 12px;
  font-family: var(--f-head); font-weight: 700; font-size: 0.72rem;
  cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.btn:hover { background: var(--cyan); }
.btn:active { transform: translateY(1px); }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  color: var(--gray);
  text-align: center;
  padding: 40px 0 24px;
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  position: relative; z-index: 1;
}
footer .links { margin-bottom: 6px; }
footer a { color: var(--gray); margin: 0 8px; font-weight: 600; }
footer a:hover { color: var(--teal); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 480px) {
  .nav-home { display: none; }
  .page-title { font-size: 1.4rem; }
  .chip { padding: 4px 10px; font-size: 0.7rem; }
}
