/* Marketing + home surfaces — plain CSS (imported after globals.css, not via Tailwind). */

/* Nav wordmark + "Docs" suffix — explicit gap (Tailwind gap-* may not apply in docs bundle). */
.docs-nav-title {
  display: inline-flex;
  align-items: center;
  column-gap: 0.75rem;
}

/* ─── Shell borders (Fumadocs uses border + currentColor fallback) ─── */
:root {
  --docs-border-subtle: hsl(0 0% 0% / 0.08);
  --docs-border-muted: hsl(0 0% 0% / 0.12);
}

.dark {
  --docs-border-subtle: hsl(0 0% 100% / 0.08);
  --docs-border-muted: hsl(0 0% 100% / 0.12);
}

#nd-subnav {
  border-bottom-color: var(--docs-border-subtle) !important;
}

#nd-sidebar,
#nd-sidebar-mobile {
  border-color: var(--docs-border-subtle) !important;
}

#nd-sidebar .border-t,
#nd-sidebar-mobile .border-t {
  border-top-color: var(--docs-border-subtle) !important;
}

button[data-search-full] {
  border-color: var(--docs-border-muted) !important;
}

button[data-search-full] kbd {
  border-color: var(--docs-border-subtle) !important;
}

.docs-home-shell-border {
  border-color: var(--docs-border-subtle) !important;
}

.docs-nav-title picture {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.docs-nav-title__logo {
  display: block;
  height: 1rem;
  width: auto;
  flex-shrink: 0;
}

.docs-nav-title__suffix {
  flex-shrink: 0;
  font-weight: 400;
  color: hsl(0 0% 45.1%);
}

.dark .docs-nav-title__suffix {
  color: hsl(0 0% 70%);
}

.border-opacity-light {
  border-color: hsl(0 0% 89.8% / 0.65);
}

.dark .border-opacity-light {
  border-color: hsl(0 0% 14.9% / 0.8);
}

.border-opacity-strong {
  border-color: hsl(0 0% 89.8% / 0.85);
}

.dark .border-opacity-strong {
  border-color: hsl(0 0% 14.9% / 0.9);
}

.shadow-apple-soft {
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

.dark .shadow-apple-soft {
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
}

.docs-mkt-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 9999px;
  border-width: 1px;
  border-style: solid;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    color 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background-color 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.docs-mkt-badge-md {
  height: 1.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.docs-mkt-badge-info {
  color: hsl(217 72% 32%);
  background-color: hsl(213 100% 96%);
  border-color: hsl(217 74% 54%);
}

.dark .docs-mkt-badge-info {
  color: hsl(213 100% 88%);
  background-color: hsl(217 54% 18%);
  border-color: hsl(217 73% 60%);
}

.docs-mkt-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(0 0% 89.8% / 0.65);
  background-color: hsl(0 0% 100%);
  padding: 0.125rem 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1;
  color: hsl(0 0% 45.1%);
}

.dark .docs-mkt-kbd {
  border-color: hsl(0 0% 14.9% / 0.8);
  background-color: hsl(0 0% 3.9%);
  color: hsl(0 0% 70%);
}

.docs-mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  transition:
    color 150ms ease-out,
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    box-shadow 150ms ease-out;
}

.docs-mkt-btn-sm {
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
}

.docs-mkt-btn-lg {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
}

@media (min-width: 640px) {
  .docs-mkt-btn-lg {
    min-height: 2.25rem;
  }
}

.docs-mkt-btn-primary {
  background-color: hsl(0 0% 9%);
  color: hsl(0 0% 98%);
}

.docs-mkt-btn-primary:hover {
  background-color: hsl(0 0% 9% / 0.9);
}

.docs-mkt-btn-primary:active {
  background-color: hsl(0 0% 9% / 0.8);
}

.dark .docs-mkt-btn-primary {
  background-color: hsl(0 0% 98%);
  color: hsl(0 0% 9%);
}

.dark .docs-mkt-btn-primary:hover {
  background-color: hsl(0 0% 98% / 0.9);
}

.dark .docs-mkt-btn-primary:active {
  background-color: hsl(0 0% 98% / 0.8);
}

.docs-mkt-btn-outline {
  border: 1px solid hsl(0 0% 89.8% / 0.65);
  background-color: transparent;
  color: hsl(0 0% 3.9%);
}

.docs-mkt-btn-outline:hover {
  background-color: hsl(0 0% 96.1%);
  color: hsl(0 0% 9%);
}

.dark .docs-mkt-btn-outline {
  border-color: hsl(0 0% 14.9% / 0.8);
  color: hsl(0 0% 98%);
}

.dark .docs-mkt-btn-outline:hover {
  background-color: hsl(0 0% 14.9%);
  color: hsl(0 0% 98%);
}

.docs-mkt-btn-ghost {
  border: 1px solid transparent;
  background-color: transparent;
  color: hsl(0 0% 45.1%);
}

.docs-mkt-btn-ghost:hover {
  background-color: hsl(0 0% 96.1%);
  color: hsl(0 0% 3.9%);
}

.dark .docs-mkt-btn-ghost {
  color: hsl(0 0% 70%);
}

.dark .docs-mkt-btn-ghost:hover {
  background-color: hsl(0 0% 14.9%);
  color: hsl(0 0% 98%);
}

.docs-mkt-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid hsl(0 0% 89.8% / 0.65);
  background-color: hsl(0 0% 100% / 0.85);
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
  transition:
    border-color 200ms ease-out,
    box-shadow 200ms ease-out,
    transform 200ms ease-out;
}

.docs-mkt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    hsl(217 91% 60%) 0%,
    hsl(262 83% 65%) 45%,
    hsl(188 94% 55%) 100%
  );
  opacity: 0.75;
  transition: opacity 200ms ease-out;
}

.docs-mkt-card:hover {
  border-color: hsl(0 0% 89.8% / 0.85);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.docs-mkt-card:hover::before {
  opacity: 1;
}

.dark .docs-mkt-card {
  border-color: hsl(0 0% 100% / 0.1);
  background-color: hsl(0 0% 6% / 0.9);
}

.dark .docs-mkt-card::before {
  opacity: 0.9;
}

.dark .docs-mkt-card:hover {
  border-color: hsl(0 0% 100% / 0.14);
}

/* Audience path cards — more breathing room */
.docs-mkt-card--audience {
  padding: 1.5rem 1.75rem 1.75rem;
  min-height: 100%;
}

.docs-mkt-card--audience::before {
  height: 3px;
}

.docs-mkt-icon-tile {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid hsl(217 91% 60% / 0.2);
  background-color: hsl(217 91% 60% / 0.1);
  color: hsl(217 91% 60%);
}

.dark .docs-mkt-icon-tile {
  border-color: hsl(217 91% 65% / 0.2);
  background-color: hsl(217 91% 65% / 0.1);
  color: hsl(217 91% 65%);
}

/* ─── home-surfaces.css (inlined) ───────────────────────────────────── */
.docs-hero-surface {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid hsl(0 0% 89.8% / 0.65);
  background:
    radial-gradient(
      ellipse 90% 55% at 50% -10%,
      hsl(217 91% 60% / 0.14) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 70% 45% at 85% 20%,
      hsl(262 83% 58% / 0.08) 0%,
      transparent 55%
    ),
    hsl(0 0% 100%);
}

.dark .docs-hero-surface {
  border-bottom-color: hsl(0 0% 100% / 0.08);
  background:
    radial-gradient(
      ellipse 90% 55% at 50% -10%,
      hsl(217 91% 65% / 0.14) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 70% 45% at 85% 20%,
      hsl(262 83% 58% / 0.08) 0%,
      transparent 55%
    ),
    hsl(0 0% 3.9%);
}

.docs-section-muted {
  border-top: 1px solid hsl(0 0% 89.8% / 0.65);
  background-color: hsl(0 0% 100% / 0.6);
}

.dark .docs-section-muted {
  border-top-color: hsl(0 0% 100% / 0.08);
  background-color: hsl(0 0% 3.9% / 0.6);
}

.text-gradient-intelligence {
  display: inline-block;
  padding-bottom: 0.1em;
  line-height: 1.1;
  color: hsl(262 83% 65%);
  background-image: linear-gradient(
    120deg,
    hsl(217 91% 65%) 0%,
    hsl(262 83% 65%) 25%,
    hsl(280 75% 70%) 50%,
    hsl(262 83% 60%) 75%,
    hsl(188 94% 60%) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: docs-gradient-shift-text 8s ease infinite;
}

.dark .text-gradient-intelligence {
  background-image: linear-gradient(
    120deg,
    hsl(217 91% 70%) 0%,
    hsl(262 83% 70%) 25%,
    hsl(280 75% 75%) 50%,
    hsl(262 83% 65%) 75%,
    hsl(188 94% 65%) 100%
  );
}

@keyframes docs-gradient-shift-text {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

#nd-page article a.rounded-lg.border.p-4,
#nd-page footer a.rounded-lg.border.p-4 {
  border-color: hsl(0 0% 89.8% / 0.65) !important;
  background-color: hsl(0 0% 100% / 0.85);
}

#nd-page article a.rounded-lg.border.p-4:hover,
#nd-page footer a.rounded-lg.border.p-4:hover {
  border-color: hsl(0 0% 89.8% / 0.85) !important;
  background-color: hsl(0 0% 96.1%);
}

.dark #nd-page article a.rounded-lg.border.p-4,
.dark #nd-page footer a.rounded-lg.border.p-4 {
  border-color: hsl(0 0% 14.9% / 0.8) !important;
  background-color: hsl(0 0% 3.9% / 0.85);
}

.dark #nd-page article a.rounded-lg.border.p-4:hover,
.dark #nd-page footer a.rounded-lg.border.p-4:hover {
  border-color: hsl(0 0% 14.9% / 0.9) !important;
  background-color: hsl(0 0% 14.9%);
}
