.cfw-home-header,
.cfw-home-header * {
  box-sizing: border-box;
}

.cfw-home-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border: 0;
  border-bottom: 0;
  background: rgba(4, 9, 12, 0.88);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #eef7f9;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cfw-home-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1140px, calc(100% - 56px));
  min-height: 0;
  margin: 0 auto;
  padding: 18px 0;
}

.cfw-home-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #fff7eb;
  text-decoration: none;
}

.cfw-home-brand img {
  display: block;
  width: 244px;
  max-width: 42vw;
  height: auto;
}

.cfw-home-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.cfw-home-nav a {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(224, 240, 243, 0.9);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease;
}

.cfw-home-nav a:hover,
.cfw-home-nav a:focus-visible {
  color: #eef7f9;
}

.cfw-home-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(155, 124, 255, 0.15);
  border-radius: 9px;
  background: rgba(155, 124, 255, 0.055);
  color: #fff7eb;
  cursor: pointer;
}

.cfw-home-nav-toggle span,
.cfw-home-nav-toggle span::before,
.cfw-home-nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.cfw-home-nav-toggle span {
  position: relative;
}

.cfw-home-nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.cfw-home-nav-toggle span::after {
  position: absolute;
  top: 6px;
}

@media (min-width: 901px) {
  .cfw-home-nav a {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .cfw-home-header-inner {
    width: calc(100% - 36px);
    gap: 12px;
  }

  .cfw-home-brand img {
    width: 190px;
    max-width: 58vw;
  }

  .cfw-home-nav-toggle {
    display: inline-flex;
  }

  .cfw-home-nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    z-index: 110;
    display: none;
    min-width: 230px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(155, 124, 255, 0.15);
    border-radius: 14px;
    background: #081419;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  }

  .cfw-home-nav.open {
    display: flex;
  }

  .cfw-home-nav a {
    padding: 12px 14px;
    border-radius: 9px;
    color: rgba(224, 240, 243, 0.9);
  }

  .cfw-home-nav a:hover,
  .cfw-home-nav a:focus-visible {
    background: rgba(155, 124, 255, 0.08);
  }
}
