:root {
  --bg: #050807;
  --panel: rgba(10, 25, 20, 0.9);
  --text: #d9ffe8;
  --muted: #7df9b4;
  --accent: #00ff9c;
  --accent2: #00d9ff;
  --border: rgba(0,255,156,0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050807;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: hidden;
}

#matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 28px;
  box-shadow: 0 0 32px rgba(0,255,156,0.1);
  backdrop-filter: blur(8px);
}

.kicker {
  color: var(--accent2);
  letter-spacing: 0.25em;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  text-shadow: 0 0 20px rgba(0,255,156,0.45);
}

.subtitle {
  color: var(--muted);
  max-width: 780px;
}

.controls {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

input,
select,
button {
  background: rgba(0,0,0,0.55);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 14px;
  font: inherit;
}

input {
  flex: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

button.active {
  background: var(--accent);
  color: #00150d;
}

.stats {
  color: var(--muted);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 18px;
  transition: 0.15s ease;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(0,255,156,0.16);
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card a {
  color: var(--accent2);
  text-decoration: none;
}

.meta,
.topics {
  color: var(--muted);
  font-size: 0.92rem;
}

.topic {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 3px 8px;
  border: 1px solid var(--border);
}
