:root {
  --bg: #0b0d12;
  --bg-soft: #131722;
  --border: #232a39;
  --text: #e7ecf3;
  --text-dim: #9aa6b8;
  --accent: #6366f1;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #1a2030 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem) 1.25rem 3rem;
}

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

.logo {
  width: clamp(64px, 18vw, 96px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.25rem;
}

.hero h1 .dot {
  color: var(--text-dim);
  font-weight: 600;
}

.tagline {
  color: var(--text-dim);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  margin: 0.5rem auto 0;
  max-width: 36ch;
}

/* App grid */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.85;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  overflow: hidden;
}

.card-icon-img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
  display: block;
}

.card-body {
  min-width: 0;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.card-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-host {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.card-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.status-online {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.status-soon {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 2rem;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.footer a:hover {
  color: var(--text);
}

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