:root {
  --shell-bg: rgba(0, 0, 0, 0.9);
  --shell-panel: #080c12;
  --shell-line: #1d2633;
  --shell-line-strong: #334155;
  --shell-text: #f4f7fb;
  --shell-muted: #aab4c3;
  --shell-dim: #778396;
  --shell-blue: #2f86ff;
  --shell-blue-bright: #73adff;
  --shell-focus: #9bc5ff;
  --shell-font: Inter, "Segoe UI", Arial, sans-serif;
  --shell-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

site-header,
site-footer {
  display: block;
}

.site-shell-skip {
  background: var(--shell-text);
  color: #000;
  font: 800 0.78rem/1 var(--shell-font);
  left: 1rem;
  padding: 0.8rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 1000;
}

.site-shell-skip:focus {
  top: 1rem;
}

.site-progress {
  background: var(--shell-blue);
  height: 2px;
  left: 0;
  position: fixed;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  width: 100%;
  z-index: 1001;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--shell-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  display: grid;
  grid-template-columns: 1fr auto;
  height: 68px;
  left: 0;
  padding: 0 max(22px, calc((100vw - 1280px) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 900;
}

.site-brand {
  align-items: center;
  display: inline-flex;
  width: min(286px, 52vw);
}

.site-brand img {
  display: block;
  height: auto;
  width: 100%;
}

.site-header-actions {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.site-open-link,
.site-menu-toggle {
  align-items: center;
  border: 1px solid var(--shell-line-strong);
  display: inline-flex;
  font-family: var(--shell-mono);
  font-size: 0.66rem;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-open-link {
  background: var(--shell-blue);
  border-color: var(--shell-blue);
  color: #000;
  padding: 0 1rem;
}

.site-menu-toggle {
  background: #11161e;
  color: var(--shell-text);
  cursor: pointer;
  padding: 0;
  width: 44px;
}

.site-open-link:hover,
.site-open-link:focus-visible {
  background: var(--shell-text);
  border-color: var(--shell-text);
  transform: translateY(-1px);
}

.site-menu-toggle:hover,
.site-menu-toggle:focus-visible {
  border-color: var(--shell-blue);
  color: var(--shell-blue-bright);
}

.site-menu-icon {
  display: grid;
  gap: 4px;
  width: 17px;
}

.site-menu-icon span {
  background: currentColor;
  display: block;
  height: 1px;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 100%;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-icon span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] .site-menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-icon span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.site-drawer[hidden] {
  display: none;
}

.site-drawer {
  inset: 0;
  position: fixed;
  z-index: 950;
}

.site-drawer-backdrop {
  background: rgba(0, 0, 0, 0.72);
  inset: 0;
  position: absolute;
}

.site-drawer-panel {
  background:
    radial-gradient(circle at 80% 8%, rgba(47, 134, 255, 0.13), transparent 28%),
    var(--shell-panel);
  border-left: 1px solid var(--shell-line-strong);
  bottom: 0;
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.72);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 480px;
  overflow-y: auto;
  padding: 1.25rem clamp(1.3rem, 4vw, 2.8rem) 2rem;
  position: absolute;
  right: 0;
  top: 0;
  width: min(480px, 92vw);
}

.site-drawer-head {
  align-items: center;
  border-bottom: 1px solid var(--shell-line);
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding-bottom: 1rem;
}

.site-drawer-label {
  color: var(--shell-blue);
  font-family: var(--shell-mono);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-drawer-close {
  align-items: center;
  background: #11161e;
  border: 1px solid var(--shell-line-strong);
  color: var(--shell-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.site-drawer-close:hover,
.site-drawer-close:focus-visible {
  border-color: var(--shell-blue);
  color: var(--shell-blue);
}

.site-drawer-nav {
  display: grid;
  gap: 0;
  padding: 2rem 0;
}

.site-drawer-group {
  color: var(--shell-dim);
  font-family: var(--shell-mono);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  margin: 1.7rem 0 0.55rem;
  text-transform: uppercase;
}

.site-drawer-group:first-child {
  margin-top: 0;
}

.site-drawer-link {
  align-items: center;
  border-bottom: 1px solid var(--shell-line);
  color: var(--shell-muted);
  display: flex;
  font-family: var(--shell-font);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 720;
  justify-content: space-between;
  letter-spacing: -0.02em;
  min-height: 53px;
  transition: color 140ms ease, padding-left 140ms ease;
}

.site-drawer-link::after {
  color: var(--shell-blue);
  content: "↗";
  font-family: var(--shell-mono);
  font-size: 0.75rem;
}

.site-drawer-link:hover,
.site-drawer-link:focus-visible,
.site-drawer-link[aria-current="page"] {
  color: var(--shell-text);
  padding-left: 0.45rem;
}

.site-drawer-cta {
  background: var(--shell-blue);
  color: #000;
  display: block;
  font-family: var(--shell-mono);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.site-drawer-cta:hover,
.site-drawer-cta:focus-visible {
  background: var(--shell-text);
}

body.site-menu-open {
  overflow: hidden;
}

.site-footer {
  background: #030507;
  border-top: 1px solid var(--shell-line);
  margin-top: 0;
}

.site-footer-inner {
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem) 2.2rem;
}

.site-footer-top {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(230px, 0.9fr) 2.1fr;
}

.site-footer-brand img {
  max-width: 255px;
}

.site-footer-brand p {
  color: var(--shell-dim);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 320px;
}

.site-footer-groups {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.site-footer-group strong {
  color: var(--shell-text);
  display: block;
  font-family: var(--shell-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.site-footer-group a {
  color: var(--shell-muted);
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0.58rem 0;
}

.site-footer-group a:hover,
.site-footer-group a:focus-visible {
  color: var(--shell-blue-bright);
}

.site-footer-bottom {
  border-top: 1px solid var(--shell-line);
  color: var(--shell-dim);
  display: grid;
  font-size: 0.7rem;
  gap: 1rem;
  grid-template-columns: auto 1fr;
  line-height: 1.55;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
}

.site-footer-bottom p {
  margin: 0;
  max-width: 850px;
}

@media (max-width: 760px) {
  .site-header {
    height: 56px;
    padding: 0 0.75rem;
  }

  .site-brand {
    width: min(220px, 58vw);
  }

  .site-open-link {
    display: none;
  }

  .site-menu-toggle {
    height: 38px;
    width: 40px;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .site-open-link,
  .site-menu-toggle,
  .site-menu-icon span,
  .site-drawer-link {
    transition: none;
  }
}
