/* ===== Header (ported from shizune-landing-page) ===== */
/* Local adaptations vs. landing source:
   1. text-decoration:none added to links (this project's base CSS doesn't reset <a>)
   2. mobile @media block appended (landing keeps it in responsive.css)
   3. font-family pinned to Satoshi: investor pages set html{font-family:Poppins},
      so without this the header text would diverge from the landing's Satoshi header.
      (Harmless on the landing, whose body is already Satoshi.) */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 640px;
  font-family: 'Satoshi', sans-serif;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 20px;
  background: rgba(219, 225, 230, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-pill);
}

.header-logo {
  text-decoration: none;
}

.header-logo img {
  height: 20px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--blue);
}

.header-nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-login {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-login:hover {
  color: var(--blue);
}

.link-login:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Pin the pill's Sign-up button to match the landing header exactly. This
   project's investors.css sets `.btn { height: 40px; width: 128px }`, which
   otherwise inflates the button (taller + a fixed 128px width); reset both so
   the button is 36px tall and content-width like the landing's .btn-sm. */
.site-header .btn {
  height: 36px;
  width: auto;
  min-height: 0;
  box-sizing: border-box;
  line-height: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu-nav a {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu-nav a:hover {
  color: var(--blue);
}

.mobile-menu-nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.mobile-menu-nav a.btn-primary {
  color: var(--white);
}

/* Menu open state */
body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

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

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

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

/* Mobile (< 768px) — ported from landing responsive.css */
@media (max-width: 767px) {
  .header-nav,
  .header-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .site-header {
    max-width: calc(100% - 32px);
  }
}
