*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080808;
  --surface: #111111;
  --border: #222222;
  --text: #e8e8e8;
  --muted: #555;
  --accent: #a8ff78;
  --accent2: #78ffd6;
  --hover-surface: #181818;
  --font: 'Space Grotesk', system-ui, sans-serif;
}

html {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 1.5rem;
  position: relative;
  overflow-x: hidden;
}

/* ── Background grid ── */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 255, 120, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 255, 120, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */

header {
  max-width: 720px;
  margin: 7rem auto 5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.logo {
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo-good {
  background: linear-gradient(135deg, #a8ff78, #78ffd6, #a8ff78);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.logo-dot {
  color: #333;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.tagline {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* ── Main ── */

main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ── Sections ── */

section {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.2s;
}

.section-title:hover {
  color: var(--accent);
}

.section-label {
  flex: 1;
  text-align: left;
}

.chevron {
  font-size: 0.7rem;
  opacity: 0.4;
}

/* ── Grid ── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

/* ── Cards ── */

.card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168,255,120,0.04), transparent 40%);
}

.card:hover {
  background: var(--hover-surface);
}

.card:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(168,255,120,0.2));
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow {
  font-size: 1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

/* ── Empty state ── */

.empty-state {
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1.25rem 1.75rem;
}

/* ── Fade in ── */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ── Footer ── */

footer {
  max-width: 720px;
  margin: 4rem auto 2.5rem;
  width: 100%;
  font-size: 0.78rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover { color: var(--text); }

/* ── Responsive ── */

@media (max-width: 480px) {
  header { margin-top: 4rem; }
}
