:root {
  --nvr-bg: #020711;
  --nvr-surface: rgba(5, 14, 27, 0.78);
  --nvr-surface-soft: rgba(7, 17, 31, 0.58);
  --nvr-border: rgba(107, 153, 255, 0.17);
  --nvr-border-soft: rgba(255, 255, 255, 0.08);
  --nvr-text: rgba(255, 255, 255, 0.96);
  --nvr-muted: rgba(255, 255, 255, 0.66);
  --nvr-blue: #2382ff;
  --nvr-cyan: #20e6ff;
  --nvr-violet: #8c3cff;
  --nvr-green: #22e58b;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--nvr-bg);
  --md-default-fg-color: var(--nvr-text);
  --md-default-fg-color--light: var(--nvr-muted);
  --md-primary-fg-color: var(--nvr-bg);
  --md-primary-bg-color: var(--nvr-text);
  --md-accent-fg-color: var(--nvr-cyan);
  --md-typeset-a-color: var(--nvr-blue);
  --md-code-bg-color: rgba(5, 14, 27, 0.92);
  --md-code-fg-color: rgba(255, 255, 255, 0.9);
}

html,
body {
  background: var(--nvr-bg);
}

body {
  background:
    radial-gradient(circle at 72% 8%, rgba(35, 130, 255, 0.08), transparent 30rem),
    radial-gradient(circle at 20% 75%, rgba(140, 60, 255, 0.055), transparent 34rem),
    var(--nvr-bg);
}

/* Header */

.md-header {
  background: rgba(2, 7, 17, 0.88);
  border-bottom: 1px solid var(--nvr-border-soft);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.md-header__inner {
  min-height: 4rem;
}

.md-header__title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.md-header__title::before {
  content: "NIVRON";
  margin-right: 0.65rem;
  color: white;
  letter-spacing: 0.12em;
}

.md-header__title::after {
  content: "/";
  position: absolute;
  margin-left: -8.1rem;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
}

.md-header__button.md-logo {
  display: none;
}

.md-search__form {
  background: rgba(7, 17, 31, 0.72);
  border: 1px solid var(--nvr-border);
  border-radius: 12px;
}

/* Navigation */

.md-sidebar {
  background: transparent;
}

.md-nav__title {
  background: transparent !important;
  box-shadow: none !important;
}

.md-nav__link {
  color: rgba(255, 255, 255, 0.56);
}

.md-nav__link:hover,
.md-nav__link--active {
  color: var(--nvr-cyan);
}

.md-nav__link--active {
  font-weight: 600;
}

/* Documentation content */

.md-main__inner {
  margin-top: 1.5rem;
}

.md-content {
  min-width: 0;
}

.md-typeset {
  color: rgba(255, 255, 255, 0.82);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--nvr-text);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.md-typeset h1 {
  font-size: 2.2rem;
}

.md-typeset code {
  border: 1px solid var(--nvr-border-soft);
  border-radius: 6px;
}

.md-typeset .highlight {
  border: 1px solid var(--nvr-border);
  border-radius: 14px;
  overflow: hidden;
}

/* Home */

.nvr-docs-home {
  padding-top: 1rem;
}

.nvr-docs-home > h1 {
  display: none;
}

.nvr-docs-hero {
  position: relative;
  overflow: hidden;
  min-height: 32rem;
  padding: 5.8rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--nvr-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 44%, rgba(35, 130, 255, 0.15), transparent 29%),
    radial-gradient(circle at 73% 48%, rgba(140, 60, 255, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(7, 18, 34, 0.67), rgba(2, 8, 17, 0.61));
}

.nvr-docs-hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 13%;
  width: 1px;
  height: 80%;
  background: linear-gradient(transparent, var(--nvr-cyan), transparent);
  opacity: 0.5;
}

.nvr-docs-hero::after {
  content: "NVR";
  position: absolute;
  right: 4.5rem;
  bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.025);
  font-size: 9rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.nvr-docs-kicker,
.nvr-docs-section-kicker {
  display: block;
  color: #7897ff;
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nvr-docs-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 49rem;
  margin: 1.2rem 0 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.nvr-docs-hero h1 span {
  background: linear-gradient(90deg, #278cff, #923eff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nvr-docs-lead {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 1.8rem 0 0;
  color: var(--nvr-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.nvr-docs-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.nvr-docs-button {
  display: inline-flex;
  min-height: 2.85rem;
  padding: 0.72rem 1.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nvr-border);
  border-radius: 12px;
  color: white !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.nvr-docs-button.primary {
  background: linear-gradient(135deg, #5d20ff, #078fff);
  border-color: transparent;
}

.nvr-docs-button.secondary {
  background: rgba(255, 255, 255, 0.025);
}

.nvr-docs-button:hover {
  border-color: rgba(32, 230, 255, 0.55);
  transform: translateY(-2px);
}

.nvr-docs-introduction {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  padding: 5rem 0 2rem;
  align-items: end;
}

.nvr-docs-introduction h2,
.nvr-docs-ecosystem h2 {
  margin: 0.8rem 0 0;
  font-size: 2rem;
}

.nvr-docs-introduction p {
  margin: 0;
  color: var(--nvr-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.nvr-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.nvr-docs-card {
  min-height: 13rem;
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  color: white !important;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    rgba(7, 18, 34, 0.67),
    rgba(2, 8, 17, 0.61)
  );
  border: 1px solid rgba(105, 155, 255, 0.16);
  border-radius: 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.nvr-docs-card:hover {
  transform: translateY(-3px);
  border-color: rgba(35, 130, 255, 0.42);
  background: rgba(7, 20, 38, 0.64);
}

.nvr-docs-card-mark {
  width: 2.1rem;
  height: 2px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--nvr-blue), var(--nvr-violet));
}

.nvr-docs-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.nvr-docs-card p {
  margin: 0;
  color: var(--nvr-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.nvr-docs-card strong {
  margin-top: auto;
  padding-top: 1.4rem;
  color: #7897ff;
  font-size: 0.72rem;
  font-weight: 600;
}

.nvr-docs-ecosystem {
  margin-top: 5rem;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--nvr-border-soft);
  border-bottom: 1px solid var(--nvr-border-soft);
}

.nvr-docs-ecosystem-links {
  display: flex;
  gap: 1.5rem;
}

.nvr-docs-ecosystem-links a {
  color: var(--nvr-muted);
  font-size: 0.78rem;
}

.nvr-docs-ecosystem-links a:hover {
  color: var(--nvr-cyan);
}

/* Footer */

.md-footer {
  margin-top: 5rem;
  background: #020711;
  border-top: 1px solid var(--nvr-border-soft);
}

.md-footer-meta {
  background: #020711;
}

.md-copyright {
  color: var(--nvr-muted);
}

.md-copyright a {
  display: none;
}

/* Responsive */

@media screen and (max-width: 900px) {
  .nvr-docs-hero {
    min-height: 27rem;
    padding: 4rem 2.5rem;
  }

  .nvr-docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nvr-docs-introduction {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media screen and (max-width: 600px) {
  .md-header__title::before,
  .md-header__title::after {
    display: none;
  }

  .nvr-docs-hero {
    min-height: auto;
    padding: 3.2rem 1.5rem;
    border-radius: 16px;
  }

  .nvr-docs-hero h1 {
    font-size: 2.5rem;
  }

  .nvr-docs-hero::after {
    display: none;
  }

  .nvr-docs-grid {
    grid-template-columns: 1fr;
  }

  .nvr-docs-ecosystem {
    padding: 2rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nvr-docs-ecosystem-links {
    flex-direction: column;
    gap: 0.7rem;
  }
}
