/* nav section (Aurix design)
 * Measured from aurix.framer.media (outline/nav@1440|1024|390 + live probes of the open states):
 *  bar      fixed top, 83px (≥1200) / 68px (≤1199), padding 20, rgba(7,10,15,.4) + blur(20px),
 *           inner row max-width 1290 space-between, 1200px gradient hairline on the bottom edge
 *  menus    trigger 14/16.8 rgba(255,255,255,.75) + 14px #888 chevron (rotates -180deg on open)
 *           panel 200px, top = trigger bottom + 30px, centred on the trigger, padding 10, r24,
 *           rgba(11,13,18,.6) + blur(20px) + inset highlight; opens from perspective(1200px) scale(.95)/opacity 0
 *           items 180x60, padding 10, gap 12, opacity .6 → 1; icon tile 40x40 r10 (20px glyph)
 *  links    14/16.8 white inside an element at opacity .6 → 1 (600ms hover spring in and out)
 *  mobile   (≤1199) 24px burger with two 18x2 bars → X; the bar grows to fit a list of 18/21.6 links
 *           (padding 16 0) + full-width CTA; links slide in from x+40 with opacity, 100ms stagger.
 * Springs recorded from the original (rAF samples) and fitted: see the --ax-nav-ease-* comments.
 */
.ax-nav {
  /* dropdown open/close: spring stiffness 1000 damping 70 (fitted to opacity/scale samples) — 305ms */
  --ax-nav-ease-dd: linear(0 0%, 0.041 3.33%, 0.1314 6.67%, 0.2395 10%, 0.3483 13.33%, 0.4495 16.67%, 0.5395 20%, 0.6175 23.33%, 0.6838 26.67%, 0.7395 30%, 0.786 33.33%, 0.8245 36.67%, 0.8562 40%, 0.8824 43.33%, 0.9038 46.67%, 0.9214 50%, 0.9358 53.33%, 0.9476 56.67%, 0.9572 60%, 0.965 63.33%, 0.9715 66.67%, 0.9767 70%, 0.981 73.33%, 0.9845 76.67%, 0.9873 80%, 0.9897 83.33%, 0.9916 86.67%, 0.9931 90%, 0.9944 93.33%, 0.9954 96.67%, 1 100%);
  --ax-nav-dur-dd: 305ms;
  /* chevron rotation: spring stiffness 600 damping 40 (2.1deg overshoot) — 355ms */
  --ax-nav-ease-chevron: linear(0 0%, 0.021 2.5%, 0.0745 5%, 0.1487 7.5%, 0.2344 10%, 0.3249 12.5%, 0.4151 15%, 0.5015 17.5%, 0.5818 20%, 0.6547 22.5%, 0.7195 25%, 0.7761 27.5%, 0.8246 30%, 0.8656 32.5%, 0.8996 35%, 0.9275 37.5%, 0.9499 40%, 0.9676 42.5%, 0.9813 45%, 0.9916 47.5%, 0.9992 50%, 1.0046 52.5%, 1.0081 55%, 1.0103 57.5%, 1.0114 60%, 1.0118 62.5%, 1.0115 65%, 1.0109 67.5%, 1.01 70%, 1.009 72.5%, 1.008 75%, 1.0069 77.5%, 1.0059 80%, 1.0049 82.5%, 1.0041 85%, 1.0033 87.5%, 1.0027 90%, 1.0021 92.5%, 1.0016 95%, 1.0012 97.5%, 1 100%);
  --ax-nav-dur-chevron: 355ms;
  /* mobile menu height + burger bars: spring stiffness 500 damping 60 (overdamped) — 675ms */
  --ax-nav-ease-menu: linear(0 0%, 0.0516 2.5%, 0.1543 5%, 0.2665 7.5%, 0.3721 10%, 0.4661 12.5%, 0.5474 15%, 0.6171 17.5%, 0.6762 20%, 0.7264 22.5%, 0.7688 25%, 0.8047 27.5%, 0.835 30%, 0.8606 32.5%, 0.8823 35%, 0.9006 37.5%, 0.916 40%, 0.929 42.5%, 0.9401 45%, 0.9494 47.5%, 0.9572 50%, 0.9639 52.5%, 0.9695 55%, 0.9742 57.5%, 0.9782 60%, 0.9816 62.5%, 0.9845 65%, 0.9869 67.5%, 0.9889 70%, 0.9906 72.5%, 0.9921 75%, 0.9933 77.5%, 0.9944 80%, 0.9952 82.5%, 0.996 85%, 0.9966 87.5%, 0.9971 90%, 0.9976 92.5%, 0.9979 95%, 0.9983 97.5%, 1 100%);
  --ax-nav-dur-menu: 675ms;
  /* mobile link reveal (x 40 → 0, opacity 0 → 1, 100ms stagger): spring stiffness 80 damping 14 — 935ms */
  --ax-nav-ease-link: linear(0 0%, 0.0128 2%, 0.0469 4%, 0.0966 6%, 0.157 8%, 0.2242 10%, 0.2949 12%, 0.3667 14%, 0.4375 16%, 0.5058 18%, 0.5705 20%, 0.6309 22%, 0.6864 24%, 0.7368 26%, 0.7821 28%, 0.8223 30%, 0.8576 32%, 0.8882 34%, 0.9146 36%, 0.937 38%, 0.9557 40%, 0.9713 42%, 0.9839 44%, 0.9941 46%, 1.002 48%, 1.0081 50%, 1.0126 52%, 1.0157 54%, 1.0177 56%, 1.0188 58%, 1.0193 60%, 1.0191 62%, 1.0185 64%, 1.0176 66%, 1.0165 68%, 1.0152 70%, 1.0138 72%, 1.0124 74%, 1.0111 76%, 1.0097 78%, 1.0085 80%, 1.0073 82%, 1.0062 84%, 1.0052 86%, 1.0043 88%, 1.0036 90%, 1.0029 92%, 1.0022 94%, 1.0017 96%, 1.0013 98%, 1 100%);
  --ax-nav-dur-link: 935ms;
  /* dropdown item hover-in (fitted: 170ms cubic-bezier); hover-out is the 600ms hover spring */
  --ax-nav-ease-item-in: 170ms cubic-bezier(0.55, 0.45, 0.4, 0.8);

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.ax-nav__bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
}
.ax-nav__glass {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 10, 15, 0.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  pointer-events: none;
}
.ax-nav__hairline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 1200px;
  height: 1px;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50.9009%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.ax-nav__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1290px;
}
.ax-nav__row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ---- logo slot: Aurix 113x32 (≥1200) / 100x28 (≤1199) — WiseCord icon + brand name */
.ax-nav__logo-wrap { position: relative; display: flex; justify-content: center; align-items: center; height: 43px; flex: none; }
.ax-nav__logo { display: flex; align-items: center; gap: 8px; height: 32px; color: var(--ax-text); }
.ax-nav__logo-img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.ax-nav__brand { font-size: 28px; font-weight: 600; line-height: 32px; letter-spacing: 0; white-space: nowrap; color: var(--ax-text); }

/* ---- centre links row */
.ax-nav__links {
  position: relative;
  display: flex;
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.ax-nav__menu { position: relative; }
.ax-nav__trigger {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
}
.ax-nav__trigger-text { font-size: 14px; line-height: 16.8px; color: var(--ax-text-75); white-space: pre; }
.ax-nav__chevron { position: relative; display: block; width: 14px; height: 14px; transition: transform var(--ax-nav-dur-chevron) var(--ax-nav-ease-chevron); }
.ax-nav__chevron svg { width: 14px; height: 14px; }
.ax-nav__menu.is-open .ax-nav__chevron { transform: rotate(-180deg); }

.ax-nav__link-wrap { position: relative; }
.ax-nav__link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 16.8px;
  color: var(--ax-text);
  white-space: pre;
  opacity: 0.6;
  transition: opacity var(--ax-hover);
}
.ax-nav__link:hover, .ax-nav__link:focus-visible { opacity: 1; }

/* ---- dropdown panel (portaled + fixed in the original; here absolute under the trigger, same box) */
.ax-nav__panel {
  position: absolute;
  top: calc(100% + 30px);
  left: calc(50% - 100px);
  z-index: 11;
  display: flex;
  flex-direction: column;
  width: 200px;
  padding: 10px;
  border-radius: 24px;
  background-color: rgba(11, 13, 18, 0.6);
  box-shadow: rgba(255, 255, 255, 0.2) 0px 1px 1px 0px inset, rgba(255, 255, 255, 0.05) 0px -1px 2px 0px inset;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform-origin: 50% 0%;
  transform: perspective(1200px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ax-nav-dur-dd) var(--ax-nav-ease-dd), transform var(--ax-nav-dur-dd) var(--ax-nav-ease-dd), visibility 0s linear var(--ax-nav-dur-dd);
}
/* hover bridge across the 30px gap between trigger and panel */
.ax-nav__panel::before { content: ''; position: absolute; left: 0; right: 0; top: -30px; height: 30px; }
.ax-nav__menu.is-open .ax-nav__panel {
  transform: perspective(1200px) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--ax-nav-dur-dd) var(--ax-nav-ease-dd), transform var(--ax-nav-dur-dd) var(--ax-nav-ease-dd), visibility 0s linear 0s;
}
.ax-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  opacity: 0.6;
  transition: opacity var(--ax-hover);
}
.ax-nav__item:hover, .ax-nav__item:focus-visible { opacity: 1; transition: opacity var(--ax-nav-ease-item-in); }
.ax-nav__item-icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-image: radial-gradient(50% 50%, rgba(255, 255, 255, 0.15) 0%, rgb(12, 14, 19) 100%);
  box-shadow: rgba(255, 255, 255, 0.6) 0px 0.5px 2px -1px inset, rgba(255, 255, 255, 0.08) 0px 10px 10px -1px inset, rgba(0, 0, 0, 0.11) 0px 0.839802px 0.419901px -0.46875px, rgba(0, 0, 0, 0.11) 0px 1.99048px 0.99524px -0.9375px, rgba(0, 0, 0, 0.106) 0px 3.63084px 1.81542px -1.40625px, rgba(0, 0, 0, 0.1) 0px 6.03627px 3.01813px -1.875px, rgba(0, 0, 0, 0.098) 0px 9.74808px 4.87404px -2.34375px, rgba(0, 0, 0, 0.09) 0px 15.9566px 7.97832px -2.8125px, rgba(0, 0, 0, 0.07) 0px 27.4762px 13.7381px -3.28125px, rgba(0, 0, 0, 0.04) 0px 50px 25px -3.75px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.ax-nav__item-icon svg { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; }
.ax-nav__item-text { font-size: 14px; line-height: 16.8px; color: var(--ax-text-75); white-space: pre; }

/* ---- CTA (Aurix "Buy Template" slot) */
.ax-nav__cta-wrap { position: relative; flex: none; }
/* the original button does not clip: its hover glow (0 0 30px -10px accent) spills outside the 12px radius */
.ax-nav .ax-btn { overflow: visible; }

/* ---- burger (≤1199 only) */
.ax-nav__burger {
  position: relative;
  display: none;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0);
  overflow: hidden;
}
.ax-nav__burger-line {
  position: absolute;
  top: 11px;
  left: 3px;
  right: 3px;
  height: 2px;
  border-radius: 1px;
  background-color: rgb(255, 255, 255);
  transition: transform var(--ax-nav-dur-menu) var(--ax-nav-ease-menu);
}
.ax-nav__burger-line:nth-child(1) { transform: translateY(-5px) rotate(0deg); }
.ax-nav__burger-line:nth-child(2) { transform: translateY(5px) rotate(0deg); }
.ax-nav.is-menu-open .ax-nav__burger-line:nth-child(1) { transform: translateY(0px) rotate(45deg); }
.ax-nav.is-menu-open .ax-nav__burger-line:nth-child(2) { transform: translateY(0px) rotate(-45deg); }

/* ---- mobile menu (≤1199 only; opened by nav.js) */
.ax-nav__mobile { display: none; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.ax-nav__mobile-links {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  overflow: hidden;
}
.ax-nav__mobile-item { position: relative; }
.ax-nav__mobile-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 18px;
  line-height: 21.6px;
  color: var(--ax-text);
  white-space: pre;
  overflow: hidden;
}
.ax-nav__mobile-cta { width: 100%; }
.ax-nav__mobile-cta .ax-btn { display: flex; width: 100%; }

@keyframes ax-nav-link-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0px); }
}

@media (max-width: 1199px) {
  .ax-nav__bar { overflow: hidden; }
  .ax-nav__logo-wrap { height: auto; }
  .ax-nav__logo { height: 28px; gap: 7px; }
  .ax-nav__logo-img { width: 28px; height: 28px; }
  .ax-nav__brand { font-size: 24.5px; line-height: 28px; }
  .ax-nav__links, .ax-nav__cta-wrap { display: none; }
  .ax-nav__burger { display: block; }
  .ax-nav.is-menu-open .ax-nav__mobile { display: flex; }
  .ax-nav.is-menu-open .ax-nav__mobile-item {
    animation: ax-nav-link-in var(--ax-nav-dur-link) var(--ax-nav-ease-link) both;
    animation-delay: calc(var(--ax-i, 0) * 100ms);
  }
}
