.header { /*rgba(255, 255, 255, 0.05);*/
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(7, 16, 29, 0.68);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.header.scrolled {
  background: rgba(7, 16, 29, 0.92);
  border-bottom-color: rgba(56, 189, 248, 0.12);
  box-shadow: 0 1px 0 rgba(56, 189, 248, 0.06), 0 8px 40px rgba(0, 0, 0, 0.32);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.burger {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.burger:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.32);
  transform: scale(1.06);
}

.burger span {
  display: block;
  border-radius: 99px;
  background: #f4f8ff;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease, width 200ms ease;
}

.burger span:nth-child(1) {
  width: 18px;
  height: 1.5px;
}

.burger span:nth-child(2) {
  width: 12px;
  height: 1.5px;
  align-self: flex-start;
  margin-left: 12px;
}

.burger span:nth-child(3) {
  width: 18px;
  height: 1.5px;
}

.burger.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.36);
}

.burger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 18px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.burger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 18px;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.06);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), filter 200ms ease;
}

.logo-mark:hover img {
  transform: scale(1.08);
  filter: brightness(1.18);
}

.header-nav {
  display: none;
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo {
    display: none !important;
  }

  .header-nav-logo {
    display: flex;
    align-items: center;
    margin-right: 18px;
  }

  .header-nav-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  .header-nav a {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: "Space Mono", monospace;
    color: rgba(244, 248, 255, 0.78);
    padding: 7px 14px;
    border-radius: 999px;
    transition: color 180ms ease, background 180ms ease;
    white-space: nowrap;
  }

  .header-nav a:hover {
    color: #f4f8ff;
    background: rgba(255, 255, 255, 0.05);
  }

  .header-nav a.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-cta {
  display: none;
  font-size: 11px;
  font-weight: 600;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ed8ff;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  background: rgba(56, 189, 248, 0.08);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.42);
  color: #c8efff;
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
  }
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.social-icon:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.social-icon img,
.side-nav-social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.social-icon:hover img {
  opacity: 1;
}

.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #081221;
  border-right: 1px solid rgba(56, 189, 248, 0.1);
  box-shadow: 16px 0 60px rgba(0, 0, 0, 0.4);
  transform: translateX(-100%);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 90px 20px 32px;
  z-index: 190;
  display: flex;
  flex-direction: column;
}

.side-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background: radial-gradient(ellipse at 30% 0%, rgba(56, 189, 248, 0.12), transparent 70%);
  pointer-events: none;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.side-nav li {
  margin-bottom: 2px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: "Space Mono", monospace;
  font-weight: 400;
  color: rgba(244, 248, 255, 0.72);
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
  position: relative;
}

.side-nav a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  transform: scale(0);
}

.side-nav a:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #f4f8ff;
  transform: translateX(4px);
}

.side-nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.side-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 16px 0;
}

.side-nav-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-nav-footer-label {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 248, 255, 0.38);
  font-family: "Space Mono", monospace;
}

.side-nav-socials {
  display: flex;
  gap: 10px;
}

.side-nav-social {
  width: 46px;
  height: 46px;
}


.side-nav-social:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.side-nav-social img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  display: block;
}

.side-nav-back {
  position: absolute;
  top: 22px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 248, 255, 0.62);
  font-size: 10px;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, color 180ms;
}

.side-nav-back:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.24);
  color: #8ed8ff;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease;
  z-index: 180;
}

.nav-open .side-nav {
  transform: translateX(0);
}

.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

body {
  padding-top: 68px;
}