/* ==========================================================================
   VANTRIX — layout.css
   Chrome that wraps every page: header, nav, mobile menu, footer.

   01. Header & navigation
   02. Mobile navigation
   03. Footer
   ========================================================================== */

/* ==========================================================================
   01. Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    padding var(--t) var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  transition: padding var(--t) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 7, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.site-header.is-scrolled .site-header__inner {
  padding-block: 10px;
}

.site-header .logo__mark {
  transition: transform var(--t) var(--ease), filter var(--t) var(--ease);
}

.site-header .logo:hover .logo__mark {
  transform: scale(1.08);
  filter: contrast(1.08) saturate(1.15) brightness(1.12);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__list a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}

.nav__list a:hover {
  color: var(--ink);
  background: var(--surface-1);
}

.nav__list a:hover::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__signup {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-full);
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}

.site-header__signup:hover {
  color: var(--ink);
  background: var(--surface-1);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-1);
}

.menu-toggle__bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.menu-toggle__bars i {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ==========================================================================
   02. Mobile navigation
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-content: start;
  /* Clears the sticky header (~67px at rest) plus breathing room. Was
     118px when an announcement bar sat above the header too — that's
     gone now, so this dropped with it. */
  padding: 100px var(--gutter) 40px;
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu__inner ul {
  display: grid;
  gap: 2px;
  margin-bottom: 28px;
}

.mobile-menu__inner a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition: color var(--t) var(--ease);
}

.mobile-menu.is-open .mobile-menu__inner a:not(.btn) {
  animation: menu-in 0.45s var(--ease-expo) forwards;
}

.mobile-menu__inner li:nth-child(1) a { animation-delay: 0.04s; }
.mobile-menu__inner li:nth-child(2) a { animation-delay: 0.09s; }
.mobile-menu__inner li:nth-child(3) a { animation-delay: 0.14s; }
.mobile-menu__inner li:nth-child(4) a { animation-delay: 0.19s; }
.mobile-menu__inner li:nth-child(5) a { animation-delay: 0.24s; }

.mobile-menu__inner a .material-symbols-rounded {
  font-size: var(--icon-md);
  color: var(--ink-3);
}

.mobile-menu__inner a:hover {
  color: var(--accent-3);
}

@keyframes menu-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   03. Footer
   ========================================================================== */

.site-footer {
  position: relative;
  padding-block: clamp(48px, 6vw, 80px) 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.06));
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: 44px;
}

.site-footer__brand {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 38ch;
}

.site-footer__brand .muted {
  font-size: 0.92rem;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.site-footer__heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-footer__nav ul {
  display: grid;
  gap: 10px;
}

.site-footer__nav a {
  display: inline-block;
  font-size: 0.93rem;
  color: var(--ink-2);
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

.site-footer__nav a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-3);
}
