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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #080808; }

.g-root {
  min-height: 100vh;
  background: #080808;
  color: #d4d4d4;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Grid floor texture */
.g-root::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow from top */
.g-root::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.g-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* ─── HEADER ─── */
.g-header {
  padding: 72px 0 56px;
  border-bottom: 1px solid #161616;
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}

.g-header-left {}

.g-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #F59E0B;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.6s ease both;
}

.g-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: #F59E0B;
}

.g-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 11vw, 116px);
  line-height: 0.88;
  color: #ffffff;
  letter-spacing: 0.025em;
  animation: slideUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.05s both;
}

.g-title .amber { color: #F59E0B; }

.g-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #7a7a7a;
  margin-top: 20px;
  line-height: 1.8;
  animation: fadeIn 0.7s ease 0.2s both;
}

.g-sub em { color: #a0a0a0; font-style: normal; }

/* Stats block */
.g-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.8s ease 0.3s both;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

.stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-label { color: #7a7a7a; }
.stat-count { color: #a0a0a0; margin-left: auto; padding-left: 20px; }

/* ─── FILTERS ─── */
.g-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeIn 0.6s ease 0.1s both;
}

.g-filter-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #6a6a6a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-right: 4px;
}

.filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid #2e2e2e;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
  transition: all 0.18s;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  border-color: #F59E0B;
  color: #F59E0B;
}

.filter-btn.active {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #0a0a0a;
  font-weight: 600;
}

.filter-count {
  font-size: 9px;
  opacity: 0.6;
}

.filter-btn.active .filter-count { opacity: 0.7; }

/* Result line */
.g-result-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #6a6a6a;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.g-result-line span { color: #F59E0B; }

/* ─── GRID ─── */
.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

/* ─── CARD ─── */
.p-card {
  background: #0d0d0d;
  border: 1px solid #181818;
  padding: 28px 28px 24px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              border-color 0.25s,
              box-shadow 0.3s;
  overflow: hidden;
  animation: cardIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

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

/* Subtle corner marks */
.p-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 20px; height: 20px;
  border-right: 1px solid #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
  transition: border-color 0.25s;
}

/* Top accent line */
.card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 0;
}

.p-card:hover {
  transform: translateY(-4px);
  border-color: #222;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.p-card:hover .card-accent { opacity: 1; }
.p-card:hover::after { border-color: #F59E0B; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6a6a6a;
}

.status-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.s-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.s-dot.shipped {
  background: #4ade80;
  box-shadow: 0 0 7px rgba(74,222,128,0.8);
  animation: blink 3s ease-in-out infinite;
}

.s-dot.wip {
  background: #F59E0B;
  box-shadow: 0 0 7px rgba(245,158,11,0.8);
  animation: blink 1.4s ease-in-out infinite;
}

.s-dot.parked { background: #3f3f46; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.04em;
  color: #efefef;
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.p-card:hover .card-name { color: #fff; }

.card-desc {
  font-size: 13px;
  color: #a0a0a0;
  line-height: 1.7;
  margin-bottom: 22px;
  font-weight: 300;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #8a8a8a;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.p-card:hover .tag {
  border-color: #3a3a3a;
  color: #b0b0b0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #141414;
}

.card-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #6a6a6a;
  letter-spacing: 0.1em;
}

.card-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #F59E0B;
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.card-link:hover { color: #fbbf24; }

/* ─── ELSEWHERE ─── */
.g-elsewhere {
  margin-top: 80px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding-bottom: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.g-elsewhere-label {
  color: #4a4a4a;
}

.g-elsewhere a {
  color: #8a8a8a;
  text-decoration: none;
  transition: color 0.2s;
}

.g-elsewhere a:hover { color: #F59E0B; }

/* ─── FOOTER ─── */
.g-footer {
  padding-top: 18px;
  border-top: 1px solid #1f1f1f;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #6a6a6a;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.g-footer a {
  color: #8a8a8a;
  text-decoration: none;
  transition: color 0.2s;
}

.g-footer a:hover { color: #F59E0B; }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .g-header { flex-direction: column; align-items: flex-start; gap: 32px; }
  .g-stats { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .g-grid { grid-template-columns: 1fr; }
}
