:root {
  --bg: #0c0c0f;
  --card: #16161c;
  --border: #2a2a34;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #f97316;
  --accent2: #22d3ee;
  --glow: rgba(249, 115, 22, 0.35);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}
header { text-align: center; padding: 2rem 0 2.5rem; }
.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo span { color: var(--accent); }
.tagline { margin: 0.75rem 0 0; font-size: 1.05rem; color: var(--muted); font-weight: 400; }
.subtag { margin: 0.6rem auto 0; max-width: 64ch; color: rgba(200, 220, 255, 0.72); font-size: 0.95rem; line-height: 1.55; }
.back {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.back:hover { border-color: var(--accent2); }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}
.search {
  flex: 1;
  min-width: min(520px, 92vw);
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
}
.search input {
  flex: 1;
  font: inherit;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
}
.search input::placeholder { color: rgba(200, 220, 255, 0.55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(100, 170, 255, 0.35);
  background: rgba(30, 45, 80, 0.42);
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.12s ease, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.chip:hover { transform: translateY(-1px); border-color: rgba(154, 208, 255, 0.7); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(86, 167, 255, 0.35), rgba(93, 255, 180, 0.16));
  border-color: rgba(180, 255, 220, 0.65);
  box-shadow: 0 10px 26px rgba(86, 167, 255, 0.12);
}
.section { margin-top: 16px; }
.section h2 {
  margin: 18px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.86);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(154, 208, 255, 0.35), transparent);
}
.mutedLine { text-align: center; margin: 0 0 10px; color: rgba(200, 220, 255, 0.62); font-size: 0.92rem; }
.tile {
  display: block;
  padding: 1.5rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tile.big{
  padding: 1.9rem 1.6rem;
  background: radial-gradient(900px 320px at 20% 15%, rgba(34,211,238,0.10), transparent 60%), var(--card);
  border-color: rgba(154, 208, 255, 0.24);
}
.tile.big .tile__emoji{ font-size: 2.35rem; }
.tile.big .tile__title{ font-size: 1.6rem; }
.tile.big .tile__desc{ font-size: 0.95rem; }
@media (min-width: 520px){ .tile.big{ grid-column: span 2; } }
@media (min-width: 980px){ .tile.big{ grid-column: span 2; } }
.tile:hover { transform: translateY(-4px) scale(1.01); border-color: #3f3f4f; box-shadow: 0 20px 50px var(--glow); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile__emoji { font-size: 2rem; line-height: 1; margin-bottom: 0.5rem; }
.tile__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.35rem;
}
.tile__title { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 700; margin: 0 0 0.4rem; }
.tile__desc { margin: 0; font-size: 0.9rem; color: var(--muted); }
.tile__go { margin-top: 1rem; font-weight: 600; font-size: 0.88rem; color: var(--accent); }
footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.85rem; color: var(--muted); }
footer a { color: var(--accent2); }
.hidden { display: none !important; }
