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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0d1021;
  color: #e8e7f2;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 32% at 14% 6%, rgba(255, 107, 107, 0.13), transparent),
    radial-gradient(34% 28% at 88% 16%, rgba(78, 205, 196, 0.12), transparent),
    radial-gradient(42% 34% at 50% 108%, rgba(167, 139, 250, 0.15), transparent);
}

.wrap {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem 2.5rem;
}

.hero {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8f89b8;
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(1.9rem, 5.4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
}

.accent {
  background: linear-gradient(90deg, #ffc93c, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  color: #9b96c4;
  margin-top: 0.85rem;
  font-size: 0.98rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.05rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 1.35rem 1.3rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.card::after {
  content: "\2192";
  position: absolute;
  top: 1.15rem;
  right: 1.2rem;
  font-size: 1.05rem;
  color: #6f699c;
  transition: transform 0.22s ease, color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--c);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.card:hover::after {
  color: var(--c);
  transform: translateX(4px);
}

.tile {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #10101f;
  background: var(--c);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 40%, transparent);
}

.news { --c: #f2d3d8; }
.bags { --c: #e58a96; }
.trivia { --c: #ffc93c; }
.diag { --c: #4ecdc4; }
.ai { --c: #a78bfa; }

.card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.card p {
  color: #a49fc9;
  font-size: 0.87rem;
  line-height: 1.6;
}

.path {
  display: inline-block;
  align-self: flex-start;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  opacity: 0.9;
}

footer {
  text-align: center;
  margin-top: 2.6rem;
  color: #9b96c4;
  font-size: 0.78rem;
}
footer a { color: #a78bfa; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.monitor { --c: #fbbf24; }
.watch { --c: #e50914; }
.flux { --c: #67e8ff; }
.lab { --c: #8f86c9; }
.pumpd { --c: #ff6b6b; }
.patterns { --c: #f2d3d8; }
.news { --c: #f2d3d8; }
.bags { --c: #e58a96; }
.trivia { --c: #ffc93c; }
.diag { --c: #4ecdc4; }
.ai { --c: #a78bfa; }

#monitor-grid {
  margin-top: 1.5rem;
}

/* a11y additions */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 1rem; top: 1rem; width: auto; height: auto; padding: 0.6rem 1rem;
  background: #fff; color: #0d1021; border-radius: 8px; z-index: 100;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.card:focus-visible, button.card:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 3px;
}
button.card {
  font: inherit; text-align: left; width: 100%; cursor: pointer; appearance: none;
}
button.card::after { content: "▾"; }
button.card[aria-expanded="true"]::after { transform: rotate(180deg); color: var(--c); }
.text-muted { color: #9b96c4; }
