/* --- Header: banner logo replaces site-name text --- */
.md-header__button.md-logo img {
  height: 1.6rem;
  width: auto;
}

.md-header__ellipsis > .md-header__topic:first-child {
  display: none;
}

/* Make nav section headers more prominent */
.md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav__link {
  font-weight: 700;
  color: var(--md-default-fg-color);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  opacity: 1;
}

/* ================================================
   HOMEPAGE
   ================================================ */

/* --- Hero section --- */
.hero {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.hero-banner {
  max-width: 280px;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero-tagline {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1rem 0 0.75rem;
  color: var(--md-default-fg-color);
  letter-spacing: -0.015em;
}

.hero-description {
  font-size: 0.92rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-actions .md-button {
  font-size: 0.8rem;
  padding: 0.5rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Install snippet */
.hero-install {
  max-width: 460px;
  margin: 1.25rem auto 0;
}

.hero-install pre {
  margin: 0;
}

.hero-install code {
  font-size: 0.78rem;
}

/* --- Section headings --- */
.section-heading {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.2rem;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--md-default-fg-color--light);
  font-size: 0.85rem;
  margin: 0 auto 1.25rem;
  max-width: 460px;
  line-height: 1.5;
}

/* --- Feature cards --- */
.grid.cards > ul > li {
  border-radius: 8px;
  padding: 1rem !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.grid.cards > ul > li:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

[data-md-color-scheme="slate"] .grid.cards > ul > li:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.grid.cards > ul > li p {
  font-size: 0.83rem;
  line-height: 1.55;
}

/* --- Pill grid (LLM providers, warehouses) --- */
.pill-grid {
  width: 100%;
  max-width: 640px;
  margin: 1rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.pill-grid ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-grid ul li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: 100px;
  font-size: 0.8rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color--light);
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-grid ul li .twemoji {
  display: inline-flex;
}

[data-md-color-scheme="slate"] .pill-grid ul li {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Responsive pill sizing */
@media (max-width: 768px) {
  .pill-grid {
    max-width: 100%;
    padding: 0 0.75rem;
  }

  .pill-grid ul {
    gap: 0.5rem 0.6rem;
  }

  .pill-grid ul li {
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .pill-grid ul li {
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
  }
}

/* --- Doc links footer --- */
.doc-links {
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}

.doc-links a {
  text-decoration: none;
}

.doc-links a:hover {
  text-decoration: underline;
}

/* --- Dividers --- */
.md-content hr {
  margin: 1.5rem 0;
}
