@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --docs-ink: #0f172a;
  --docs-muted: #475569;
  --docs-accent: #f97316;
  --docs-accent-strong: #ea580c;
  --docs-card: #ffffff;
  --docs-surface: #f8fafc;
  --docs-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --docs-radius: 22px;
}

html[data-theme="dark"] {
  --docs-ink: #e2e8f0;
  --docs-muted: #94a3b8;
  --docs-accent: #fb923c;
  --docs-accent-strong: #f97316;
  --docs-card: #0f172a;
  --docs-surface: #0b1020;
  --docs-shadow: 0 18px 45px rgba(2, 6, 23, 0.55);
}

body {
  font-family: "Source Sans 3", "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--docs-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% -20%, rgba(14, 116, 144, 0.16), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f1f5f9 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(900px 500px at 88% -20%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(180deg, #0b1020 0%, #0f172a 45%, #0b1324 100%);
}

h1,
h2,
h3,
h4,
.navbar-brand,
.bd-sidebar-primary .sidebar-header {
  font-family: "Source Serif 4", "Times New Roman", serif;
  letter-spacing: -0.01em;
}

.bd-container,
.bd-content,
.bd-main {
  background: transparent;
}

.docs-home-hero {
  position: relative;
  padding: 3.5rem 3.2rem;
  border-radius: var(--docs-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.98)),
    linear-gradient(120deg, rgba(249, 115, 22, 0.12), rgba(14, 116, 144, 0.1));
  box-shadow: var(--docs-shadow);
  overflow: hidden;
}

html[data-theme="dark"] .docs-home-hero {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(10, 14, 26, 0.98)),
    linear-gradient(120deg, rgba(249, 115, 22, 0.2), rgba(56, 189, 248, 0.12));
}

.docs-home-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25), transparent 60%);
  filter: blur(4px);
  opacity: 0.9;
}

.docs-home-hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -160px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.18), transparent 60%);
  filter: blur(2px);
  opacity: 0.8;
}

.docs-hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.6);
}

html[data-theme="dark"] .docs-hero-kicker {
  color: rgba(226, 232, 240, 0.7);
}

.docs-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
  margin-bottom: 1.2rem;
}

html[data-theme="dark"] .docs-hero-brand {
  color: rgba(226, 232, 240, 0.75);
}

.docs-hero-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.docs-hero-title {
  margin: 0.7rem 0 0.9rem;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 36rem;
}

.docs-hero-subtitle {
  font-size: 1.15rem;
  color: var(--docs-muted);
  max-width: 34rem;
}

.docs-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.8rem 0 0;
}

.docs-hero-cta .sd-btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
}

.docs-hero-cta .sd-btn-primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

.docs-hero-cta .sd-btn-primary:hover {
  background: #1f2937;
  border-color: #1f2937;
}

html[data-theme="dark"] .docs-hero-cta .sd-btn-primary {
  background: var(--docs-accent);
  border-color: var(--docs-accent);
  color: #0b1020;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.55);
}

html[data-theme="dark"] .docs-hero-cta .sd-btn-primary:hover {
  background: var(--docs-accent-strong);
  border-color: var(--docs-accent-strong);
}

.docs-hero-cta .sd-btn-secondary {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.3);
  color: #0f172a;
}

html[data-theme="dark"] .docs-hero-cta .sd-btn-secondary {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--docs-ink);
}

.docs-home-section-title {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.docs-home-grid .sd-card {
  border-radius: var(--docs-radius);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--docs-card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="dark"] .docs-home-grid .sd-card {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.6);
}

.docs-home-grid .sd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.docs-home-grid .sd-card .sd-card-title {
  font-family: "Source Serif 4", "Times New Roman", serif;
  font-size: 1.25rem;
}

.docs-home-grid .sd-card .sd-card-text {
  color: var(--docs-muted);
}

@media (max-width: 700px) {
  .docs-home-hero {
    padding: 2.5rem 2rem;
  }

  .docs-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-hero-cta .sd-btn {
    width: 100%;
    text-align: center;
  }
}
