:root {
  --bg: #070b10;
  --bg2: #0c1219;
  --panel: #121a24;
  --panel2: #182230;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8eef8;
  --muted: #8b9bb3;
  --accent: #5eead4;
  --accent2: #38bdf8;
  --warm: #fbbf24;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(94, 234, 212, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(56, 189, 248, 0.06), transparent 50%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  color: #c5d0e0;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 16, 0.82);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  font-size: 1.05rem;
}
.brand span { color: var(--text); font-weight: 600; }
.top-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none !important;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { border-color: rgba(94, 234, 212, 0.45); }
.btn-primary {
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.4);
  color: #dffcf7;
}
.btn-ghost { background: transparent; }

/* Hero */
.hero {
  padding: 48px 0 28px;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(94, 234, 212, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 18ch;
}
.hero .lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0 0 18px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.hero-meta strong { color: var(--text); font-weight: 600; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
  max-width: 640px;
}
.stat {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
}
.stat b {
  display: block;
  color: var(--accent);
  font-size: 1.25rem;
  font-family: var(--display);
}
.stat span { color: var(--muted); font-size: 0.8rem; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 22px;
  position: sticky;
  top: 62px;
  z-index: 15;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.95), rgba(7, 11, 16, 0.88) 70%, transparent);
  padding-bottom: 18px;
}
.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { border-color: rgba(94, 234, 212, 0.35); color: var(--text); }
.chip.active {
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.45);
  color: #dffcf7;
}

/* Featured */
.section-title {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 8px 0 14px;
  color: var(--text);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .featured-grid { grid-template-columns: 1.2fr 1fr; }
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 40px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(24, 34, 48, 0.9), rgba(12, 18, 26, 0.95));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-2px);
}
.card.featured-card {
  min-height: 100%;
}
.card-media {
  background: #05080c;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.card-media .placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.08), transparent 50%),
    #0a1018;
  padding: 16px;
  text-align: center;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}
.tag.platform { color: #bae6fd; border-color: rgba(56, 189, 248, 0.3); }
.tag.status { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.3); }
.card h3 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.25;
}
.one-liner { color: var(--muted); font-size: 0.95rem; margin: 0; }
.details {
  margin-top: 4px;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: #c5d0e0;
}
.details strong {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.stack span {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.card-actions .btn { padding: 8px 12px; font-size: 0.82rem; }
.note {
  font-size: 0.8rem;
  color: var(--warm);
  margin: 0;
}

/* Empty */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* About strip */
.about {
  margin: 10px 0 48px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: linear-gradient(135deg, rgba(8, 28, 32, 0.85), rgba(12, 18, 28, 0.9));
}
.about h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.2rem;
}
.about p { margin: 0 0 10px; color: #c5d0e0; max-width: 70ch; }
.about p:last-child { margin-bottom: 0; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

/* Modal lightbox simple */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: #000;
}
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
}
