/* ════════════════════════════════════════════════════════════════
   Homepage nav: floating liquid-glass bar (Josh, 17 Oct).
   Look taken from Framer's "Liquid Glass Navbar" (Matt); rebuilt in
   our own CSS, no Framer code. Loaded last, after parallax.css.
   Light frosted pill, dark text, black CTA with a slow shimmer.
   Gold stays only as the brand dot (single-accent rule).
   ════════════════════════════════════════════════════════════════ */

.lgn {
  --lgn-h: 58px;
  --lgn-top: 16px;
  --lgn-text: #1d1d1f;
  --lgn-muted: #5f5f63;
  position: fixed;
  top: var(--lgn-top);
  left: 50%;
  z-index: 100;
  width: min(1120px, calc(100% - 48px));
  transform: translateX(-50%);
  font-family: var(--font-text);
}

/* The bar floats over the top photo, so the page gets no extra top room
   (the ticker adds its own strip height). Anchor jumps still clear it. */
body { padding-top: 0; }
main > section,
#get-started { scroll-margin-top: 96px; }

.lgn__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--lgn-h);
  padding: 0 7px 0 18px;
  border-radius: 999px;
  /* Glass: translucent fill, blur behind, bright rim, soft drop shadow. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(232, 232, 236, .62) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(0, 0, 0, .06),
    0 0 0 1px rgba(148, 160, 181, .45),
    0 10px 30px rgba(0, 0, 0, .35);
  transition: box-shadow .3s ease, background .3s ease;
}
/* Inner sheen across the top half of the glass. */
.lgn__bar::before {
  content: "";
  position: absolute;
  inset: 1px 1px 50% 1px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.lgn.scrolled .lgn__bar {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(0, 0, 0, .06),
    0 0 0 1px rgba(148, 160, 181, .45),
    0 14px 40px rgba(0, 0, 0, .5);
}

/* Brand: glass tile holding the gold dot, then the wordmark. */
.lgn__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lgn-text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
}
.lgn__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, #ffffff, #d9d9de);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0, 0, 0, .18);
}
.lgn__mark span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold, #FFED00);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}

/* Josh's logo (17 Oct): crest + wordmark, cut out of his PNG. Replaces
   the dot tile and text; .lgn__mark kept for other pages. */
.lgn__logo { display: block; height: 36px; width: auto; }

/* Links: true centre of the bar, grey to near-black on hover. */
.lgn__links {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}
.lgn__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--lgn-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.lgn__links a:hover {
  color: var(--lgn-text);
  background: rgba(255, 255, 255, .7);
}

/* CTA: black pill with a light sweep every few seconds. */
.lgn__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a2a2c 0%, #0b0b0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 12px rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease;
}
.lgn__cta span { position: relative; z-index: 1; }
.lgn__cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg);
  animation: lgn-shimmer 4s ease-in-out infinite;
}
.lgn__cta:hover { transform: translateY(-1px); }
@keyframes lgn-shimmer {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}

.lgn a:focus-visible,
.lgn button:focus-visible {
  outline: 2px solid #1d1d1f;
  outline-offset: 2px;
}

/* Phone menu button and drawer: hidden on desktop. */
.lgn__toggle { display: none; }
.lgn__drawer[hidden] { display: none; }

@media (max-width: 900px) {
  .lgn { --lgn-top: 12px; width: calc(100% - 32px); }
  .lgn__links { display: none; }
  /* No phone menu any more (Josh, 18 Oct): the CTA stays in the bar. */
  .lgn__bar > .lgn__cta { height: 40px; padding: 0 18px; font-size: 14px; }
  .lgn__bar { padding: 0 7px 0 14px; }
  .lgn__logo { height: 32px; }

  .lgn__toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #2a2a2c 0%, #0b0b0c 100%);
    cursor: pointer;
  }
  .lgn__burger,
  .lgn__burger::before,
  .lgn__burger::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease;
  }
  .lgn__burger { position: relative; }
  .lgn__burger::before,
  .lgn__burger::after { content: ""; position: absolute; left: 0; }
  .lgn__burger::before { top: -5px; }
  .lgn__burger::after { top: 5px; }
  .lgn__toggle[aria-expanded="true"] .lgn__burger { background: transparent; }
  .lgn__toggle[aria-expanded="true"] .lgn__burger::before { transform: translateY(5px) rotate(45deg); }
  .lgn__toggle[aria-expanded="true"] .lgn__burger::after { transform: translateY(-5px) rotate(-45deg); }

  .lgn__drawer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(232, 232, 236, .78) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 0 0 1px rgba(148, 160, 181, .45), 0 14px 40px rgba(0, 0, 0, .45);
    animation: lgn-drop .22s ease-out;
  }
  .lgn__drawer a:not(.lgn__cta) {
    padding: 14px 12px;
    border-radius: 14px;
    color: var(--lgn-text);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
  }
  .lgn__drawer a:not(.lgn__cta):hover { background: rgba(255, 255, 255, .7); }
  .lgn__cta--block { width: 100%; height: 48px; margin-top: 6px; }
}
@keyframes lgn-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Browsers without backdrop-filter: solid light bar so text stays readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lgn__bar,
  .lgn__drawer { background: #ececef; }
}

@media (prefers-reduced-motion: reduce) {
  .lgn__cta::after { animation: none; display: none; }
  .lgn__drawer { animation: none; }
  .lgn__burger,
  .lgn__burger::before,
  .lgn__burger::after,
  .lgn__cta { transition: none; }
}
