.md-header {
  background: #17232c;
}

.md-tabs {
  background: #17232c;
}

:root {
  --md-primary-fg-color: #17232c;
  --md-primary-fg-color--light: #273039;
  --md-primary-fg-color--dark: #0d1424;
  --md-accent-fg-color: #d21f2b;
}

body:has(.sm-landing) .md-sidebar--primary,
body:has(.sm-landing) .md-sidebar--secondary,
body:has(.sm-landing) .md-path {
  display: none;
}

body:has(.sm-landing) .md-main__inner {
  max-width: none;
  margin: 0;
}

body:has(.sm-landing) .md-content {
  max-width: none;
}

.md-content__inner:has(.sm-landing) {
  margin: 0;
  max-width: none;
  padding: 0;
}

.md-content__inner:has(.sm-landing)::before,
.md-content__inner:has(.sm-landing) .headerlink {
  display: none;
}

.sm-landing {
  --sm-ink: #0d1424;
  --sm-ink-2: #17232c;
  --sm-muted: #5e6f89;
  --sm-border: #dbe4ee;
  --sm-border-soft: #e9eef5;
  --sm-surface: #ffffff;
  --sm-surface-2: #f7f9fc;
  --sm-red: #d21f2b;
  --sm-blue: #1c6ba0;
  --sm-cyan: #18bde4;
  --sm-green: #14b86f;
  --sm-amber: #f4a71d;
  color: var(--sm-ink);
  padding: 0 0 4rem;
}

.sm-landing a {
  color: inherit;
}

.sm-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(34rem, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: min(760px, calc(100vh - 4rem));
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem) 3rem;
  border-bottom: 1px solid var(--sm-border-soft);
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.82), rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 76% 18%, rgba(24, 189, 228, 0.08), transparent 28%),
    #fff;
}

.sm-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2.2rem;
}

.sm-brand img {
  width: 12rem;
  height: auto;
}

.sm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--sm-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-eyebrow span,
.sm-live i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--sm-green);
  box-shadow: 0 0 0 0 rgba(20, 184, 111, 0.4);
  animation: sm-pulse 2.8s ease-out infinite;
}

.sm-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--sm-ink);
  font-size: clamp(3rem, 5.1vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.sm-lede {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--sm-muted);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.6;
}

.sm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.sm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.15rem;
  border: 1px solid var(--sm-border);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 1px rgba(13, 20, 36, 0.03);
  color: var(--sm-ink);
  font-weight: 720;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sm-button span {
  margin-left: 0.55rem;
}

.sm-button:hover {
  transform: translateY(-1px);
  border-color: #bac9da;
  box-shadow: 0 10px 28px rgba(13, 20, 36, 0.08);
}

.sm-button--primary {
  border-color: var(--sm-ink-2);
  background: var(--sm-ink-2);
  color: #fff;
}

.md-typeset .sm-button--primary,
.md-typeset .sm-button--primary:hover {
  color: #fff;
}

.sm-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
  color: var(--sm-muted);
  font-size: 0.88rem;
}

.sm-status-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding-right: 1rem;
  border-right: 1px solid var(--sm-border);
}

.sm-status-strip span:last-child {
  border-right: 0;
}

.sm-status-strip b {
  color: var(--sm-ink);
}

.sm-product {
  min-width: 0;
  perspective: 1800px;
}

.sm-app-shell {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  overflow: hidden;
  min-height: 35rem;
  border: 1px solid var(--sm-border);
  border-radius: 1rem;
  background: var(--sm-surface);
  box-shadow: 0 28px 80px rgba(23, 35, 44, 0.13);
  animation: sm-float-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sm-sidebar {
  padding: 1rem;
  border-right: 1px solid var(--sm-border);
  background: linear-gradient(180deg, #fbfcfe, #fff);
}

.sm-sidebar img {
  width: 8.5rem;
  height: auto;
  margin-bottom: 1rem;
}

.sm-select {
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--sm-border);
  border-radius: 0.45rem;
  color: var(--sm-ink);
  font-size: 0.78rem;
}

.sm-sidebar nav {
  display: grid;
  gap: 0.2rem;
}

.sm-sidebar nav span {
  display: block;
  padding: 0.52rem 0.65rem;
  border-radius: 0.45rem;
  color: var(--sm-muted);
  font-size: 0.82rem;
}

.sm-sidebar nav .is-active {
  background: var(--sm-ink);
  color: #fff;
}

.sm-dashboard {
  min-width: 0;
  padding: 1.3rem;
}

.sm-dashboard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sm-dashboard__head p {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 780;
}

.sm-dashboard__head span {
  display: block;
  max-width: 32rem;
  color: var(--sm-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.sm-live {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.sm-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sm-metrics article,
.sm-panel,
.sm-feature-row a,
.sm-docs-gateway {
  border: 1px solid var(--sm-border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 1px rgba(13, 20, 36, 0.03);
}

.sm-metrics article {
  padding: 0.9rem;
  animation: sm-rise 560ms ease both;
}

.sm-metrics article:nth-child(2) {
  animation-delay: 80ms;
}

.sm-metrics article:nth-child(3) {
  animation-delay: 160ms;
}

.sm-metrics article:nth-child(4) {
  animation-delay: 240ms;
}

.sm-metrics span,
.sm-panel header small {
  color: var(--sm-muted);
  font-size: 0.72rem;
}

.sm-metrics strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.55rem;
}

.sm-metrics small {
  display: block;
  margin-top: 0.25rem;
  color: var(--sm-muted);
  font-size: 0.72rem;
}

.sm-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.sm-panel {
  min-width: 0;
  padding: 1rem;
}

.sm-panel--large {
  grid-row: span 2;
}

.sm-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 740;
}

.sm-panel header a {
  color: var(--sm-blue);
  font-size: 0.76rem;
  text-decoration: none;
}

.sm-artifact-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--sm-muted);
}

.sm-artifact-list li {
  padding: 0.25rem 0;
}

.sm-artifact-list span {
  color: var(--sm-ink);
}

.sm-artifact-list b {
  float: right;
  color: var(--sm-ink);
}

.sm-chart svg {
  width: 100%;
  height: 9rem;
  overflow: visible;
}

.sm-chart path {
  fill: none;
  stroke: #8b3ffc;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: sm-draw 1.6s ease 500ms forwards;
}

.sm-chart .sm-chart__accent {
  stroke: var(--sm-green);
  animation-delay: 680ms;
}

.sm-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sm-tags div span {
  padding: 0.28rem 0.48rem;
  border: 1px solid var(--sm-border);
  border-radius: 999px;
  background: var(--sm-surface-2);
  color: var(--sm-muted);
  font-size: 0.72rem;
}

.sm-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 5vw, 4rem) 0;
  max-width: 1180px;
}

.sm-feature-row a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sm-feature-row a:hover {
  transform: translateY(-2px);
  border-color: #bac9da;
  box-shadow: 0 18px 40px rgba(13, 20, 36, 0.08);
}

.sm-feature-row img {
  display: block;
  width: 100%;
  height: 9.5rem;
  margin-bottom: 1rem;
  border-radius: 0.55rem;
  object-fit: cover;
}

.sm-feature-row span {
  display: block;
  font-size: 1.1rem;
  font-weight: 780;
}

.sm-feature-row p {
  margin: 0.35rem 0 0;
  color: var(--sm-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.sm-docs-gateway {
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 0.85fr);
  gap: 2rem;
  align-items: center;
  max-width: 1180px;
  margin: 1.25rem auto 0;
  padding: 1.4rem;
}

.sm-docs-gateway h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.sm-doc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.sm-doc-links a {
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--sm-border);
  border-radius: 0.5rem;
  background: var(--sm-surface-2);
  color: var(--sm-ink);
  font-weight: 680;
  text-decoration: none;
}

@keyframes sm-pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(20, 184, 111, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 111, 0);
  }
}

@keyframes sm-float-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes sm-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sm-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1100px) {
  .sm-hero {
    grid-template-columns: 1fr;
  }

  .sm-hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 820px) {
  .sm-hero {
    gap: 1.6rem;
    padding: 1.5rem 1.25rem 2rem;
  }

  .sm-brand img {
    width: 9rem;
  }

  .sm-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.55rem);
    line-height: 0.98;
  }

  .sm-lede {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .sm-app-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sm-sidebar {
    display: none;
  }

  .sm-metrics,
  .sm-panel-grid,
  .sm-feature-row,
  .sm-docs-gateway,
  .sm-doc-links {
    grid-template-columns: 1fr;
  }

  .sm-feature-row {
    padding-top: 2rem;
  }
}

@media (max-width: 560px) {
  .sm-brand {
    margin-bottom: 1.35rem;
  }

  .sm-actions {
    margin-top: 1.4rem;
  }

  .sm-actions,
  .sm-button,
  .sm-status-strip span {
    width: 100%;
  }

  .sm-status-strip {
    display: none;
  }

  .sm-status-strip span {
    border-right: 0;
    padding-right: 0;
  }

  .sm-dashboard {
    padding: 0.8rem;
  }

  .sm-dashboard__head,
  .sm-panel header {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-landing *,
  .sm-landing *::before,
  .sm-landing *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
