:root {
  --bg: #060910;
  --bg-soft: #0a1020;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #e9eefb;
  --ink-2: #b6c2d8;
  --muted: #7c8aa3;
  --faint: #5a6680;
  --cyan: #22d3ee;
  --blue: #4f7cff;
  --violet: #8b5cf6;
  --accent-grad: linear-gradient(135deg, #22d3ee 0%, #4f7cff 100%);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 12% -8%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(760px 460px at 88% -6%, rgba(124, 92, 246, .20), transparent 72%),
    radial-gradient(900px 600px at 50% 110%, rgba(79, 124, 255, .12), transparent 70%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 82%);
  opacity: .8;
}

.topbar,
main,
footer { position: relative; z-index: 1; }

.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1040px) / 2));
  background: rgba(6, 9, 16, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.3px;
}

.brand-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #041018;
  background: var(--accent-grad);
  font-size: 15px;
  box-shadow: 0 0 20px rgba(34, 211, 238, .35);
}

.container { width: min(100% - 48px, 920px); margin: 0 auto; }

.intro { padding: 68px 0 45px; }

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .14);
}

.intro h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  margin: 14px 0 9px;
  line-height: 1.32;
  background: linear-gradient(180deg, #ffffff 0%, #b9c8e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro > p { font-size: 14px; color: var(--muted); margin: 0; }

.search {
  margin-top: 30px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 14px;
  max-width: 540px;
  color: var(--faint);
  background: rgba(255, 255, 255, .03);
  transition: border-color .18s, box-shadow .18s;
}

.search:focus-within {
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .1);
}

.search > span { font-size: 24px; line-height: 1; }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  background: transparent;
}

.search input::placeholder { color: var(--faint); }

.list-heading {
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.list-heading h2 { font-size: 14px; margin: 0; font-weight: 650; }

.count { color: var(--faint); font-size: 12px; }

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

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px 19px 16px;
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .018) 100%);
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}

.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 14px;
  right: 14px;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .75), rgba(139, 92, 246, .65), transparent);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card:hover {
  border-color: rgba(34, 211, 238, .38);
  background: linear-gradient(180deg, rgba(34, 211, 238, .07) 0%, rgba(255, 255, 255, .02) 100%);
  box-shadow: 0 14px 40px -18px rgba(34, 211, 238, .55);
  transform: translateY(-1px);
}

.card-head { display: flex; gap: 12px; align-items: center; }

.platform-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .18);
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.platform-mark > span { position: relative; z-index: 0; }

.platform-mark > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #0d1524;
  z-index: 1;
}

.card h3 { font-size: 15px; margin: 0 0 3px; font-weight: 650; color: #f2f6ff; }

.card .updated { font-size: 11px; color: var(--faint); }

.card .description {
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 16px 0 0;
  min-height: 42px;
  overflow-wrap: anywhere;
}

.card-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  margin-top: 16px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.button {
  border: 0;
  border-radius: 8px;
  background: var(--accent-grad);
  color: #041018;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  font: 700 12px inherit;
  font-size: 12px;
  cursor: pointer;
  transition: box-shadow .18s, filter .18s;
  box-shadow: 0 6px 20px -8px rgba(34, 211, 238, .7);
}

.button:hover { filter: brightness(1.08); box-shadow: 0 8px 26px -8px rgba(34, 211, 238, .9); }

.card .button { min-width: 102px; }

.safe-note { font-size: 10px; color: var(--faint); }

.empty { text-align: center; padding: 66px 20px; color: var(--muted); }

.empty-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .18);
  color: var(--cyan);
  font-size: 24px;
}

.empty h3 { font-size: 15px; color: var(--ink); margin: 0 0 7px; }

.empty p, .no-results { font-size: 13px; color: var(--muted); }

.no-results { text-align: center; padding: 35px; }

footer {
  max-width: 920px;
  margin: 65px auto 0;
  padding: 19px 24px 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--faint);
}

footer span { padding: 0 5px; color: #3c465c; }

.search-button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: var(--accent-grad);
  color: #041018;
  font: 700 12px inherit;
  font-size: 12px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: filter .18s;
}

.search-button:hover { filter: brightness(1.08); }

@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 2.6s ease-in-out infinite; }

  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); opacity: 1; }
    50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, .05); opacity: .6; }
  }
}

@media (max-width: 640px) {
  .topbar { height: 60px; padding: 0 19px; }
  .container { width: calc(100% - 38px); }
  .intro { padding: 48px 0 34px; }
  .intro h1 { font-size: 26px; letter-spacing: -.9px; }
  .intro > p { font-size: 13px; }
  .search { margin-top: 24px; height: 46px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 16px; }
  .card .description { min-height: unset; }
  .card-bottom { margin-top: 13px; }
  footer { margin-top: 45px; }
}
