:root {
  --bg: #07070c;
  --surface: #10131c;
  --surface-hover: #161a26;
  --border: #1e2230;
  --border-strong: #2a3042;
  --text: #e7eaf3;
  --text-muted: #8a92a6;
  --text-subtle: #5b6377;
  --accent: #4f8dff;
  --accent-glow: rgba(79, 141, 255, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      900px 500px at 50% -10%,
      rgba(79, 141, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      600px 400px at 90% 0%,
      rgba(79, 141, 255, 0.05),
      transparent 70%
    );
}

.page {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 88px 24px 64px;
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 40px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(79, 141, 255, 0.25),
    rgba(79, 141, 255, 0.05)
  );
  border: 1px solid var(--border-strong);
}

.lockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.masthead__title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.masthead__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.grid__item {
  display: block;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 8px 30px var(--accent-glow);
}

.card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent);
}

.card:hover .card__chevron {
  transform: translateX(2px);
  color: var(--accent);
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
}

.card__chevron {
  flex-shrink: 0;
  color: var(--text-subtle);
  transition:
    transform 120ms ease,
    color 120ms ease;
}

.card__host {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

.card__description {
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__description:empty {
  display: none;
}

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer__count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}

@media (max-width: 480px) {
  .page {
    padding: 56px 18px 48px;
  }

  .masthead__title {
    font-size: 24px;
  }

  .card {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__chevron {
    transition: none;
  }

  .card:hover .card__chevron {
    transform: none;
  }
}
