.rf-marketing-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--rf-color-border);
  background: var(--rf-color-bg);
  color: var(--rf-color-text);
}

.rf-marketing-header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(100% - 2.5rem, 1180px);
  min-height: 72px;
  margin: 0 auto;
}

.rf-marketing-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--rf-color-text);
  font-family: var(--rf-font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.rf-marketing-brand-mark {
  display: block;
  width: 28px;
  height: 28px;
}

.rf-marketing-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.rf-marketing-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
}

.rf-marketing-links a,
.rf-marketing-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.55rem;
  color: var(--rf-color-text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.rf-marketing-links a:hover,
.rf-marketing-links a:focus-visible,
.rf-marketing-footer-links a:hover,
.rf-marketing-footer-links a:focus-visible {
  color: var(--rf-color-link-hover);
}

.rf-marketing-links .rf-marketing-cta {
  margin-left: 0.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--rf-color-link);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-color-link);
  color: var(--rf-color-surface);
}

.rf-marketing-links .rf-marketing-cta:hover,
.rf-marketing-links .rf-marketing-cta:focus-visible {
  border-color: var(--rf-color-link-hover);
  background: var(--rf-color-link-hover);
  color: var(--rf-color-surface);
}

.rf-marketing-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-color-surface);
  cursor: pointer;
}

.rf-marketing-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--rf-color-text);
  transition: transform 160ms ease, opacity 160ms ease;
}

.rf-marketing-menu-toggle:focus-visible,
.rf-marketing-brand:focus-visible,
.rf-marketing-social-link:focus-visible {
  outline: 3px solid var(--rf-color-focus);
  outline-offset: 3px;
}

.rf-marketing-footer {
  border-top: 1px solid var(--rf-color-border);
  background: var(--rf-color-surface-alt);
  color: var(--rf-color-text-secondary);
}

.rf-marketing-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.rf-marketing-footer-identity {
  max-width: 27rem;
}

.rf-marketing-footer-brand {
  max-width: 24rem;
  margin: 0.8rem 0 1rem;
  color: var(--rf-color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rf-marketing-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--rf-color-border);
  border-radius: 50%;
  color: var(--rf-color-text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.rf-marketing-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(8rem, auto));
  align-content: start;
  gap: 0.15rem 1.1rem;
}

.rf-marketing-footer-links a {
  padding-inline: 0;
}

.rf-marketing-footer-copyright {
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--rf-color-border);
  color: var(--rf-color-text-muted);
  font-size: 0.78rem;
}

.rf-marketing-overlay,
.rf-marketing-drawer {
  display: none;
}

@media (max-width: 980px) {
  .rf-marketing-header-inner {
    width: min(100% - 2rem, 1180px);
  }

  .rf-marketing-links a {
    padding-inline: 0.35rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 820px) {
  .rf-marketing-nav {
    display: none;
  }

  .rf-marketing-menu-toggle {
    display: inline-flex;
  }

  .rf-marketing-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: block;
    background: rgba(26, 26, 26, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .rf-marketing-drawer {
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(88vw, 360px);
    height: 100dvh;
    padding: 1.25rem;
    overflow-y: auto;
    background: var(--rf-color-surface);
    box-shadow: var(--rf-shadow-xl);
    transform: translateX(100%);
    transition: transform 180ms ease;
  }

  .rf-marketing-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 1.5rem;
  }

  .rf-marketing-drawer-close {
    width: 44px;
    height: 44px;
    border: 1px solid var(--rf-color-border);
    border-radius: var(--rf-radius-sm);
    background: var(--rf-color-surface);
    color: var(--rf-color-text);
    font-size: 1.3rem;
    cursor: pointer;
  }

  .rf-marketing-drawer-links {
    display: grid;
    gap: 0.15rem;
  }

  .rf-marketing-drawer-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.75rem;
    border-radius: var(--rf-radius-sm);
    color: var(--rf-color-text-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
  }

  .rf-marketing-drawer-links a:hover,
  .rf-marketing-drawer-links a:focus-visible {
    background: var(--rf-color-electric-subtle);
    color: var(--rf-color-link-hover);
  }

  body.rf-marketing-menu-open .rf-marketing-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.rf-marketing-menu-open .rf-marketing-drawer {
    transform: translateX(0);
  }

  body.rf-marketing-menu-open .rf-marketing-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.rf-marketing-menu-open .rf-marketing-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.rf-marketing-menu-open .rf-marketing-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .rf-marketing-footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    width: min(100% - 2rem, 1180px);
  }

  .rf-marketing-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rf-marketing-footer-copyright {
    width: min(100% - 2rem, 1180px);
  }
}
