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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #090d16;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Parent defines columns and rows */
.parent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

/* 🌟 Subgrid allows card children (h3, p, button) to share the parent's row tracks! */
.subgrid-card {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  background: #151f34;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  gap: 12px;
}

h3 {
  font-size: 1.1rem;
  color: #38bdf8;
}

p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

button {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  align-self: end;
}

