/* ==========================================================================
   Semoce - site header, shared by every page including the docs.
   It carries its own palette, so it looks the same on any page or docs theme.
   ========================================================================== */

.site-header {
  --ink: #0b0b0c;
  --text: #f4f2ee;
  --line: rgba(255, 255, 255, 0.08);
  --signal: #ff4d12;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-header a { color: inherit; text-decoration: none; }
.site-header img, .site-header svg { display: block; max-width: 100%; }
.site-header button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.site-header .btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.site-header .btn-primary { background: var(--signal); color: var(--ink); }
.site-header .btn-primary:hover { background: #ff6a3a; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: 14px;
  pointer-events: none;
}
.nav {
  position: relative;
  z-index: 2;   /* above the open mobile menu, so the logo and close button stay usable */
  pointer-events: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 10px 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}
@media (max-width: 1360px) { .nav { margin: 0 var(--gutter); } }
.site-header .nav.wrap { width: auto; }
.site-header.scrolled .nav {
  background: rgba(22, 22, 24, 0.88);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; width: 30px; }
/* slot the hero wordmark docks into (home page); 5588:798 is the wordmark's aspect ratio */
/* even heights keep the slot on whole pixels inside the 64px bar */
.nav-word { display: block; height: 18px; width: 126px; margin-left: 12px; }
.nav-word img { display: block; width: 100%; height: 100%; visibility: hidden; }
.nav-word.on img { visibility: visible; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(244, 242, 238, 0.82);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.06); }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 44px; padding: 0 20px; font-size: 14px; }
.nav-cta .btn-store { background: var(--ink); color: var(--text); border: 1px solid rgba(255,255,255,0.12); }
.nav-cta .btn-store:hover { background: #1d1d20; }
.nav-cta .btn-store svg { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  pointer-events: auto;   /* the header wrapper ignores pointer events; the open menu must not */
  position: fixed;
  inset: 0;
  padding-top: 100px !important;
  background: var(--ink);
  padding: 24px var(--gutter);
  z-index: 1;   /* under the nav bar (z-index 2), which stays on top */
  flex-direction: column;
}
.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.03em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 28px; justify-content: center; }
.nav-open .mobile-menu { display: flex; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav { padding: 0 6px 0 20px; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px) {
  .nav-cta .btn-store { display: none; }
}
.nav-open .site-header .nav { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }

@media (max-width: 860px) {
  .nav-word { height: 16px; width: 112px; margin-left: 10px; }
}
