:root {
  --ht-bg: #0b0b0d;
  --ht-bg-glass: rgba(11, 11, 13, 0.72);
  --ht-bg-glass-solid: rgba(11, 11, 13, 0.94);
  --ht-fg: #ffffff;
  --ht-muted: rgba(255, 255, 255, 0.66);
  --ht-border: rgba(255, 255, 255, 0.08);
  --ht-accent: #ffa600;
  --ht-accent-hot: #ff7a00;
  --ht-accent-glow: rgba(255, 166, 0, 0.45);
  --ht-nav-h: 88px;
  --ht-nav-h-scrolled: 66px;
}

/* Hide the original GoDaddy nav and any leftover top header bar */
body > div > div > nav,
nav.x-el-nav { display: none !important; }

body { padding-top: var(--ht-nav-h); }

.ht-nav,
.ht-nav * { box-sizing: border-box; }

.ht-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 99999;
  height: var(--ht-nav-h);
  background: var(--ht-bg-glass);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid var(--ht-border);
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ht-fg);
  transition: height 260ms cubic-bezier(.22,1,.36,1),
              background 260ms ease,
              border-color 260ms ease;
  transform: translateY(-100%);
  animation: ht-nav-in 700ms cubic-bezier(.22,1,.36,1) 120ms forwards;
}

@keyframes ht-nav-in {
  to { transform: translateY(0); }
}

.ht-nav.is-scrolled {
  height: var(--ht-nav-h-scrolled);
  background: var(--ht-bg-glass-solid);
}

.ht-nav__inner {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ---------- Logo ---------- */
.ht-nav__logo {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  isolation: isolate;
}

.ht-nav__logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: height 260ms cubic-bezier(.22,1,.36,1),
              transform 300ms cubic-bezier(.22,1,.36,1),
              filter 400ms ease;
  filter: drop-shadow(0 0 0 rgba(255, 166, 0, 0));
}

.ht-nav.is-scrolled .ht-nav__logo-img { height: 42px; }

.ht-nav__logo:hover .ht-nav__logo-img {
  filter: drop-shadow(0 0 14px rgba(255, 166, 0, 0.4));
}

.ht-nav__logo:hover .ht-nav__logo-img {
  transform: scale(1.02);
}

/* RF signal-wave halo behind the logo — pulses once on load, then on hover */
.ht-nav__logo::before,
.ht-nav__logo::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--ht-accent);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: ht-pulse 2400ms cubic-bezier(.22,1,.36,1) 1200ms 1;
}

.ht-nav__logo::after {
  animation-delay: 1800ms;
  border-color: var(--ht-accent-hot);
}

.ht-nav__logo:hover::before {
  animation: ht-pulse 1800ms cubic-bezier(.22,1,.36,1) infinite;
}
.ht-nav__logo:hover::after {
  animation: ht-pulse 1800ms cubic-bezier(.22,1,.36,1) 500ms infinite;
}

@keyframes ht-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.55); opacity: 0.75; }
  80%  { opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(2.6);  opacity: 0; }
}

/* ---------- Links ---------- */
.ht-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.ht-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--ht-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.015em;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 200ms ease;
}

.ht-nav__link:hover,
.ht-nav__link.is-active { color: var(--ht-fg); }

.ht-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--ht-accent), var(--ht-accent-hot));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(.65,0,.35,1);
  opacity: 0.95;
}

.ht-nav__link:hover::after,
.ht-nav__link.is-active::after { transform: scaleX(1); }

.ht-nav__link.is-active::after {
  box-shadow: 0 0 12px var(--ht-accent-glow);
}

/* ---------- CTA ---------- */
.ht-nav__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 10px 18px 10px 20px;
  background: linear-gradient(135deg, var(--ht-accent) 0%, var(--ht-accent-hot) 100%);
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(.22,1,.36,1),
              box-shadow 280ms ease;
  box-shadow: 0 0 0 0 var(--ht-accent-glow);
  flex-shrink: 0;
}

.ht-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -4px var(--ht-accent-glow);
}

.ht-nav__cta:active { transform: translateY(0); }

.ht-nav__cta-arrow {
  width: 14px; height: 14px;
  transition: transform 220ms cubic-bezier(.22,1,.36,1);
}

.ht-nav__cta:hover .ht-nav__cta-arrow { transform: translateX(3px); }

/* Scroll-progress hairline at the bottom of the bar */
.ht-nav__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--ht-accent), var(--ht-accent-hot), transparent);
  pointer-events: none;
  transition: width 80ms linear;
}

/* ---------- Mobile (no hamburger) ----------
   Stack: logo + CTA on top row; nav links become a horizontally
   scroll-snapping pill strip on the second row. */
@media (max-width: 920px) {
  :root {
    --ht-nav-h: 124px;
    --ht-nav-h-scrolled: 104px;
  }

  .ht-nav,
  .ht-nav.is-scrolled {
    height: var(--ht-nav-h);
    background: var(--ht-bg-glass-solid);
  }

  .ht-nav__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px 0;
    align-content: flex-start;
  }

  .ht-nav__logo-img,
  .ht-nav.is-scrolled .ht-nav__logo-img { height: 36px; }

  .ht-nav__cta {
    margin-left: auto;
    padding: 8px 14px;
    font-size: 13px;
  }

  .ht-nav__list {
    order: 3;
    width: calc(100% + 32px);
    margin: 4px -16px 0;
    padding: 0 16px 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
  }
  .ht-nav__list::-webkit-scrollbar { display: none; }

  .ht-nav__link {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 8px 12px;
    font-size: 13px;
  }
  .ht-nav__link::after { bottom: 4px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ht-nav,
  .ht-nav__logo::before,
  .ht-nav__logo::after,
  .ht-nav__link::after,
  .ht-nav__cta,
  .ht-nav__cta-arrow,
  .ht-nav__logo-img { animation: none !important; transition: none !important; }
  .ht-nav { transform: none; }
}
