/* ── Homepage (index.php) in the dashboard style, built on home-dashboard.css ── */
.hm-page svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hm-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1.5px solid rgba(32,33,31,.3);
  border-radius: 999px;
  color: #3c3d38;
  font-size: 12.5px;
  font-weight: 500;
}

/* Hero */
.hm-top .hd-welcome h1 { max-width: 760px; font-size: clamp(34px, 4.4vw, 58px); }
.hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }

.hm-cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: #20211f;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(32,33,31,.18);
  transition: background .15s, color .15s, transform .15s;
}

.hm-cta:hover { transform: translateY(-1px); background: var(--hd-accent); color: var(--hd-ink); }
.hm-cta.is-accent { background: var(--hd-accent); color: var(--hd-ink); }
.hm-cta.is-accent:hover { background: #fff; }
.hm-actions .hd-chip { padding: 12px 20px; font-size: 14px; }

.hm-page .hd-figures { gap: 24px; }
.hm-page .hd-figures strong { font-size: clamp(40px, 4.2vw, 60px); }
.hm-page .hd-figures small { grid-column: 2; text-align: center; }

/* Ecosystem: paid | core | free */
.hm-eco {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.hm-eco-col { display: grid; align-content: start; gap: 6px; }
.hm-eco-col .hd-card-head { margin-bottom: 8px; }

.hm-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: #20211f;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.hm-tag.is-free { background: var(--hd-accent); color: var(--hd-ink); }

.hm-node {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 20px;
  color: var(--hd-ink);
  text-decoration: none;
  transition: background .15s;
}

.hm-node:hover { background: rgba(255,255,255,.85); }

.hm-node-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32,33,31,.07);
  transition: background .15s;
}

.hm-node-icon svg { width: 20px; height: 20px; }
.hm-node:hover .hm-node-icon { background: var(--hd-accent); }
.hm-node strong { display: block; font-size: 15px; font-weight: 500; }
.hm-node small { display: block; margin-top: 2px; color: var(--hd-muted); font-size: 12.5px; line-height: 1.4; }

.hm-core {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 100%, var(--hd-glow), transparent 55%),
    var(--hd-dark);
}

.hm-core-kicker {
  align-self: flex-start;
  padding: 6px 14px;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 999px;
  color: rgba(255,255,255,.8);
  font-size: 12px;
}

.hm-core h2 { margin: 0; color: #fff; font-size: 26px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; white-space: normal; }

.hm-core-stats { display: grid; gap: 0; margin: 0; }

.hm-core-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,.16);
}

.hm-core-stats div:last-child { border-bottom: 0; }
.hm-core-stats dt { color: rgba(255,255,255,.65); font-size: 13px; }
.hm-core-stats dd { margin: 0; color: #fff; font-size: 32px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.hm-core-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--hd-accent);
  color: var(--hd-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.hm-core-link svg { width: 16px; height: 16px; }
.hm-core-link:hover { background: #fff; }

/* Sections */
.hm-section { margin-top: 44px; }
.hm-section-head { align-items: flex-end; gap: 24px; }
.hm-section-head .hm-kicker { margin-bottom: 10px; }
.hm-section-head > p { max-width: 430px; margin: 0; color: #3c3d38; font-size: 14.5px; line-height: 1.6; }

.hm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.hm-card {
  display: flex;
  flex-direction: column;
  color: var(--hd-ink);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.hm-card:hover { transform: translateY(-4px); }
.hd-card.hm-card:hover { background: rgba(255,255,255,.9); }

.hm-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }

.hm-card-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--hd-accent);
  color: var(--hd-ink);
  font-size: 14px;
  font-weight: 500;
}

.hm-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: var(--hd-accent);
}

.hm-card-icon svg { width: 20px; height: 20px; }
.hm-card .hd-round { width: 40px; height: 40px; }
.hm-card:hover .hd-round { background: var(--hd-accent); }

.hm-card-label { color: var(--hd-muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.hm-card h3 { margin: 8px 0 10px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.hm-card p { margin: 0; color: #3c3d38; font-size: 14px; line-height: 1.6; }
.hm-card ul { margin: 18px 0 24px; padding-left: 18px; color: #3c3d38; font-size: 13px; line-height: 1.75; }
.hm-card ul li::marker { color: var(--hd-accent-hover); }

.hm-card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--hd-ink);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hd-accent-hover);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Featured (dark) card */
.hm-card.is-featured { padding: 24px; color: #fff; }
.hm-card.is-featured .hm-card-label { color: rgba(255,255,255,.6); }
.hm-card.is-featured p,
.hm-card.is-featured ul { color: rgba(255,255,255,.8); }
.hm-card.is-featured .hm-card-link { color: #fff; text-decoration-color: var(--hd-accent); }
.hm-card.is-featured .hd-round { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.hm-card.is-featured:hover .hd-round { background: var(--hd-accent); color: var(--hd-ink); }

/* Closing band */
.hm-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding: 34px;
  background:
    radial-gradient(circle at 100% 100%, var(--hd-glow), transparent 50%),
    var(--hd-dark);
}

.hm-closing > div { max-width: 720px; }
.hm-closing .hm-kicker { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.8); }
.hm-closing h2 { margin: 0; color: #fff; font-size: clamp(28px, 3.4vw, 42px); font-weight: 400; letter-spacing: -.03em; line-height: 1.12; white-space: normal; }

@media (max-width: 1180px) {
  .hm-eco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-core { grid-column: 1 / -1; grid-row: 1; }
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hm-eco,
  .hm-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-section-head { flex-direction: column; align-items: flex-start; }
  .hm-closing { padding: 24px; }

  /* Let the hero shrink to the screen; stack each stat's icon above its number. */
  .hm-page .hd-top { grid-template-columns: minmax(0, 1fr); }
  .hm-page .hd-figures { gap: 10px; align-items: flex-start; }
  .hm-page .hd-figures > div { flex: 1; grid-template-columns: 1fr; justify-items: center; row-gap: 8px; }
  .hm-page .hd-figures strong { font-size: clamp(30px, 10vw, 40px); }
  .hm-page .hd-figures small { grid-column: 1; margin-top: 0; }
}
