:root {
  color-scheme: dark;
  --bg: #0a0b0f;
  --surface: #13151b;
  --surface-elevated: #191c24;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f4f5f7;
  --text-secondary: #a3a8b8;
  --text-muted: #6b7080;
  --brand: #6366f1;
  --brand-soft: rgba(99, 102, 241, 0.15);
  --success: #34d399;
  --warning: #fbbf24;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 5vw 4vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}
.bg-glow--a {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: #6366f1;
}
.bg-glow--b {
  width: 480px;
  height: 480px;
  bottom: -180px;
  right: -100px;
  background: #22d3ee;
  opacity: 0.15;
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.hero__mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.6);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--surface-elevated), var(--surface));
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 200px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:not(.card--placeholder):hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px -16px rgba(99, 102, 241, 0.35);
}

.card--placeholder {
  opacity: 0.55;
  border-style: dashed;
}

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

.card__name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--live {
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.badge--staging {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.badge--dev {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.badge--planned {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.card__desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.card__links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--brand);
  color: white;
}
.btn--primary:hover {
  background: #5457e5;
}

.btn--ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  display: flex;
  gap: 0.5rem;
}

.footer__sep {
  opacity: 0.5;
}

@media (max-width: 420px) {
  body {
    padding: 8vh 5vw;
  }
}
