/* ── NeuralQXLab shared hero section ──────────────────────────────────────
 *
 * Packages include a hero on their index page by adding a `hero.html` file
 * and including it with:
 *
 *   ```{raw} html
 *   :file: hero.html
 *   ```
 *
 * Use the CSS classes below in that file. See the neuralqxlab-sphinx-theme
 * README for the full HTML structure.
 * ──────────────────────────────────────────────────────────────────────── */

.nkx-hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 2rem;

  /* Squircle background */
  background: var(--color-background-secondary, #f5f7fa);
  border-radius: 2.4rem;
  overflow: hidden;
}

.nkx-hero-left {
  flex: 1 1 55%;
  min-width: 0;
}

.nkx-hero-wordmark {
  width: 260px;
  max-width: 100%;
  margin-bottom: 1rem;
  display: block;
}

.nkx-hero-tagline {
  font-size: 150%;
  font-weight: 700;
  color: var(--color-foreground-primary, #222);
  margin: 0.25rem 0 0.25rem;
}

.nkx-hero-left p {
  font-size: 1rem;
  color: var(--color-foreground-secondary, #555);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.nkx-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nkx-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.15s;
}

.nkx-btn:hover { opacity: 0.85; }

.nkx-btn-primary {
  background: var(--color-brand-primary, #4f8ef7);
  color: #fff !important;
}

.nkx-btn-secondary {
  border: 1.5px solid var(--color-brand-primary, #4f8ef7);
  color: var(--color-brand-primary, #4f8ef7) !important;
  background: transparent;
}

.nkx-hero-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nkx-hero-right img {
  width: 340px;
  max-width: 100%;
}

/* Responsive: stack on narrow screens */
@media (max-width: 700px) {
  .nkx-hero {
    flex-direction: column;
    text-align: center;
  }
  .nkx-hero-buttons {
    justify-content: center;
  }
  .nkx-hero-right img {
    width: 220px;
  }
}
