:root {
  --background: #0a0e17;
  --background-mid: #0f1524;
  --foreground: #e8eef8;
  --muted: #9aa8bd;
  --accent: #00e5ff;
  --accent-secondary: #ff2d95;
  --card: rgba(16, 22, 36, 0.92);
  --edge: rgba(0, 229, 255, 0.28);
  --radius-card: 1rem;
  --bg-spot-1: rgba(0, 229, 255, 0.14);
  --bg-spot-2: rgba(255, 45, 149, 0.12);
  --bg-spot-3: rgba(80, 60, 180, 0.1);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  color-scheme: dark;
}

body {
  background-color: var(--background);
  background-image:
    radial-gradient(120% 80% at 0% -10%, var(--bg-spot-1) 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, var(--bg-spot-2) 0%, transparent 50%),
    radial-gradient(70% 50% at 50% 100%, var(--bg-spot-3) 0%, transparent 55%),
    linear-gradient(180deg, var(--background-mid) 0%, var(--background) 100%);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.45;
}

h1 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 800;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem;
}

main {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

header {
  text-align: center;
}

.ui-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1;
}

.lede {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--muted);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ui-card {
  display: block;
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  border-radius: var(--radius-card);
  border: 1px solid var(--edge);
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.ui-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.ui-card:active {
  transform: scale(0.985);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-url {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  word-break: break-all;
}

.card-description {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--muted);
  flex-shrink: 0;
}

.status-checking .status-dot {
  background: var(--muted);
  animation: status-pulse 1.1s ease-in-out infinite;
}

.status-live {
  color: #5dffb0;
}

.status-live .status-dot {
  background: #3dff9a;
  box-shadow: 0 0 8px rgba(61, 255, 154, 0.55);
}

.status-down {
  color: color-mix(in srgb, var(--muted) 70%, #ff5c7a);
}

.status-down .status-dot {
  background: #ff5c7a;
  box-shadow: 0 0 8px rgba(255, 92, 122, 0.35);
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.error {
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 92, 122, 0.35);
  background: rgba(255, 92, 122, 0.16);
  color: #ff5c7a;
  font-size: 0.875rem;
}
