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

body {
  height: auto;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.demo-infobox {
  max-width: 960px;
}

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

.card {
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.card:hover {
  transform: translateY(-2px);
}

.card .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  width: fit-content;
}

.badge.app {
  background: #1e3a2f;
  color: #4ade80;
}

.badge.hub {
  background: #1e2d4a;
  color: #60a5fa;
}

.badge.bms {
  background: #3b1f4a;
  color: #c084fc;
}

.card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.card p {
  font-size: 0.88rem;
  color: #8b8fa3;
  line-height: 1.55;
}

.path {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.78rem;
  color: #5a5e72;
  margin-top: auto;
  padding-top: 0.25rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

hr.divider {
  border: none;
  border-top: 1px solid #2a2d3a;
  width: 100%;
  max-width: 960px;
  margin: 1.5rem 0;
}

.wide {
  grid-column: span 3;
}
.wide.header {
  margin-top: 24px;
}
