/* ─────────────────────────────────────────────────────────
   Home page styles
   All selectors scoped to .home-page to override .md-typeset
   ───────────────────────────────────────────────────────── */

/* Reset content area padding for the home page */
.md-content:has(.home-page) .md-content__inner {
  padding: 0;
  margin: 0;
  max-width: none;
}

/* ─── Shared container ───────────────────────────────── */

.home-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.home-container--narrow {
  max-width: 760px;
}

/* ─── Section heading (eyebrow style) ────────────────── */

.home-page .home-section-heading {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blueprint-steel);
  margin: 0 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid oklch(42% 0.065 258 / 20%);
  border-top: none;
}

/* ─── Hero ───────────────────────────────────────────── */

.home-hero {
  background-color: var(--pre-dawn-navy);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.home-page .home-hero h1,
.home-page .home-hero__headline {
  font-size: clamp(2.25rem, 4vw + 1rem, 4rem);
  font-weight: 700;
  line-height: 1.12;
  color: oklch(96% 0.008 258);
  margin: 0 0 1.5rem;
  max-width: 15ch;
  text-wrap: balance;
  letter-spacing: -0.015em;
  border-bottom: none;
  padding-bottom: 0;
}

.home-page .home-hero__descriptor {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: oklch(80% 0.018 258);
  max-width: 54ch;
  margin: 0 0 2.5rem;
}

/* ─── Hero illustration ──────────────────────────────── */

.home-hero__illustration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 520px;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.home-hero__illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .home-hero__illustration {
    display: none;
  }
}

/* ─── CTA button ─────────────────────────────────────── */

.home-cta {
  display: inline-flex;
  align-items: center;
  background-color: var(--construction-orange);
  color: oklch(98% 0.005 258) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease-out;
  min-height: 44px;
}

.home-cta:hover {
  background-color: oklch(68% 0.22 42);
}

/* ─── Capabilities ───────────────────────────────────── */

.home-capabilities {
  padding-block: clamp(3rem, 7vw, 5rem);
  background-color: oklch(98% 0.004 258);
}

.home-page .home-capabilities__list {
  margin: 0;
  padding: 0;
}

.home-page .home-capabilities__item {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid oklch(42% 0.065 258 / 12%);
}

.home-page .home-capabilities__item:first-child {
  border-top: 1px solid oklch(42% 0.065 258 / 12%);
}

.home-page .home-capabilities__item dt {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--near-black);
  margin: 0;
  line-height: 1.55;
}

.home-page .home-capabilities__item dd {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: oklch(38% 0.018 258);
  margin: 0;
}

/* ─── Capability glyphs ──────────────────────────────── */

.home-capabilities__glyph {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blueprint-steel);
  opacity: 0.85;
}

.home-page .home-capabilities__item dt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* ─── Quick Start ────────────────────────────────────── */

.home-quickstart {
  padding-block: clamp(3rem, 7vw, 5rem);
  background-color: var(--pre-dawn-navy);
}

.home-page .home-quickstart .home-section-heading {
  color: oklch(78% 0.018 258);
  border-bottom-color: oklch(42% 0.065 258 / 35%);
}

.home-quickstart__code {
  background-color: oklch(19% 0.05 263);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid oklch(42% 0.065 258 / 35%);
  overflow-x: auto;
}

.home-page .home-quickstart__code pre {
  margin: 0;
  background: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.home-page .home-quickstart__code code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: oklch(88% 0.025 258);
  background: none;
  padding: 0;
  display: block;
  white-space: pre;
}

.home-quickstart__link {
  margin: 0;
}

.home-page .home-quickstart__link a {
  color: var(--site-signal-amber);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.home-page .home-quickstart__link a:hover {
  text-decoration: underline;
  text-decoration-color: oklch(77% 0.17 80 / 50%);
  text-underline-offset: 3px;
}

/* ─── Docs Nav ───────────────────────────────────────── */

.home-docsnav {
  padding-block: clamp(3rem, 7vw, 5rem);
  background-color: oklch(98% 0.004 258);
}

.home-docsnav__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.home-page .home-docsnav__item {
  display: block;
  padding: 1.5rem;
  border: 1px solid oklch(42% 0.065 258 / 20%);
  border-radius: 4px;
  background-color: oklch(100% 0.002 258);
  text-decoration: none;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
  color: inherit;
}

.home-page .home-docsnav__item:hover {
  background-color: oklch(95% 0.014 103 / 25%);
  border-color: oklch(42% 0.065 258 / 40%);
}

.home-page .home-docsnav__item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blueprint-steel);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  border-bottom: none;
  padding-bottom: 0;
}

.home-page .home-docsnav__item p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: oklch(42% 0.018 258);
  margin: 0;
}

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 640px) {
  .home-page .home-capabilities__item {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }

  .home-page .home-hero h1,
  .home-page .home-hero__headline {
    max-width: none;
  }

  .home-docsnav__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cta,
  .home-page .home-docsnav__item {
    transition: none;
  }
}
