/* Site chrome: the navigation bar and the footer, shared by the homepage, the
   documentation and the legal pages. Self-contained on purpose: the homepage
   does not load scansuite-redesign.css, so nothing here may depend on it.
   The bar stays 64px tall because the docs layout (--docs-nav-height) and
   .page-main offset their content by exactly that. */

.site-nav,
.site-footer {
  --chrome-bg: #0b1326;
  --chrome-bg-deep: #070d1c;
  --chrome-line: rgba(148, 163, 184, 0.16);
  --chrome-text: #e7ecf4;
  --chrome-muted: #9aa8bf;
  --chrome-orange: #f97316;
  --chrome-orange-strong: #ea580c;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.site-nav {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(11, 19, 38, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--chrome-line);
  color: var(--chrome-text);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(100%, 1280px);
  height: 64px;
  margin: 0 auto;
  padding-inline: 32px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #fff;
  font: 800 19px/1 "Manrope", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-brand-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fb923c, var(--chrome-orange-strong));
  box-shadow: 0 4px 12px -4px rgba(234, 88, 12, 0.7);
}

.site-brand-logo .material-symbols-outlined {
  color: #fff;
  font-size: 18px;
  font-variation-settings: "FILL" 1;
}

.site-nav-links {
  display: flex;
  gap: 2px;
}

.site-nav-links a,
.site-nav-text {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--chrome-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.site-nav-links a:hover,
.site-nav-text:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.site-nav-links a.is-active,
.site-nav-text.is-active {
  color: #fff;
  background: rgba(249, 115, 22, 0.14);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-left: 6px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--chrome-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 16px -6px rgba(234, 88, 12, 0.6);
  transition: background 0.15s;
}

.site-nav-cta:hover {
  background: var(--chrome-orange-strong);
}

.site-nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--chrome-line);
  border-radius: 8px;
  background: none;
  color: var(--chrome-text);
  cursor: pointer;
}

.site-nav-toggle .material-symbols-outlined {
  font-size: 22px;
}

.site-nav :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid var(--chrome-orange);
  outline-offset: 2px;
}

@media (max-width: 1280px) {
  .site-nav-text {
    display: none;
  }
}

@media (max-width: 1100px) {
  .site-nav-inner {
    padding-inline: 20px;
  }

  .site-nav-toggle {
    display: grid;
  }

  .site-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 16px;
    background: var(--chrome-bg);
    border-bottom: 1px solid var(--chrome-line);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.5);
  }

  .site-nav.is-open .site-nav-links {
    display: flex;
  }

  .site-nav-links a {
    padding: 12px;
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .site-nav-cta {
    padding: 0 12px;
    font-size: 13px;
  }
}

/* ------------------------------------------------------------- footer --- */

.site-footer {
  padding: 64px 0 32px;
  background: var(--chrome-bg-deep);
  color: var(--chrome-muted);
  font-size: 14px;
}

.site-footer-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-inline: 32px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer-tagline {
  max-width: 320px;
  margin: 14px 0 0;
  line-height: 1.6;
}

.site-footer h2 {
  margin: 0;
  color: var(--chrome-text);
  font: 600 12px/1 "JetBrains Mono", ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .site-brand {
  color: #fff;
}

.site-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--chrome-line);
  font-size: 13px;
}

@media (max-width: 860px) {
  .site-footer-inner {
    padding-inline: 20px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}
