/* ==========================================================================
   Modern homepage (scoped under .q-home) and the branded 404 page (.q-404).
   ========================================================================== */

.q-home {
  max-width: 62rem;
  margin-inline: auto;
}

/* --- Hero --- */
.q-home .q-hero {
  padding: var(--q-space-8) 0 var(--q-space-6);
}

.q-home .q-hero__title {
  font-size: var(--q-fs-hero);
  line-height: 1.05;
  font-weight: var(--q-fw-bold);
  letter-spacing: -0.02em;
  margin: 0 0 var(--q-space-4);
  background: linear-gradient(92deg, var(--q-brand), var(--q-brand-strong));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Fallback if background-clip:text is unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .q-home .q-hero__title {
    color: var(--q-brand-strong);
    background: none;
  }
}

.q-home .q-hero__subcopy {
  font-size: var(--q-fs-lg);
  color: var(--q-fg-muted);
  max-width: 46ch;
  margin: 0 0 var(--q-space-6);
}

/* --- Buttons --- */
.q-home .q-btn,
.q-404 .q-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--q-space-2);
  padding: 0.6rem 1.15rem;
  margin: 0 var(--q-space-3) var(--q-space-2) 0;
  border-radius: var(--q-radius-pill);
  font-weight: var(--q-fw-medium);
  text-decoration: none !important;
  transition: transform var(--q-ease), box-shadow var(--q-ease),
    background-color var(--q-ease), border-color var(--q-ease), color var(--q-ease);
}
.q-home .q-btn--primary,
.q-home .q-btn--ghost,
.q-404 .q-btn--primary,
.q-404 .q-btn--ghost {
  background: var(--q-primary, #ff9933);
  color: #ffffff !important;
  border: 1px solid var(--q-primary, #ff9933);
}
.q-home .q-btn--primary:hover,
.q-home .q-btn--ghost:hover,
.q-404 .q-btn--primary:hover,
.q-404 .q-btn--ghost:hover {
  background: var(--q-brick, #b83200);
  border-color: var(--q-brick, #b83200);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: var(--q-shadow-2);
}

/* Quick Start + Explore the Platform: keep the leading icon white on hover
   instead of inheriting the global brick-on-hover from .md-content a:hover *. */
.q-home .q-btn--primary:hover *,
.q-home .q-btn--primary:hover svg,
.q-home .q-btn--primary:hover .twemoji,
.q-home .q-btn--primary:hover .twemoji svg,
.q-home .q-btn--ghost:hover *,
.q-home .q-btn--ghost:hover svg,
.q-home .q-btn--ghost:hover .twemoji,
.q-home .q-btn--ghost:hover .twemoji svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* --- Section titles --- */
.q-home .q-home__section-title {
  font-size: var(--q-fs-xl);
  margin-top: var(--q-space-8);
}

/* --- 404 --- */
.q-404 {
  text-align: center;
  max-width: 40rem;
  margin: var(--q-space-12) auto;
}
.q-404 .q-404__code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: var(--q-fw-bold);
  line-height: 1;
  margin: 0;
  background: linear-gradient(92deg, var(--q-brand), var(--q-brand-strong));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .q-404 .q-404__code { color: var(--q-brand-strong); background: none; }
}
.q-404 .q-404__actions {
  margin-top: var(--q-space-6);
}

/* --- Responsive --- */
@media screen and (max-width: 44.9375em) {
  .q-home .q-hero { padding-top: var(--q-space-4); text-align: center; }
  .q-home .q-hero__subcopy { margin-inline: auto; }
}
