/* Top bar for the landing page, About, Privacy and Terms.
   At the top of the page it is a plain bar. After scrolling it turns into a floating "liquid glass" pill:
   translucent, blurred, with a light edge, so the page shows through it. nav-glass.js adds .is-scrolled. */

.glass-nav {
  --nav-h: 72px;
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(248, 250, 255, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .35s ease, padding .35s ease, backdrop-filter .35s ease;
}
/* the landing page bar sits on top of the hero instead of taking up space */
.glass-nav-fixed { position: fixed; top: 0; left: 0; right: 0; }

.glass-nav-inner {
  width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid transparent; border-radius: 999px;
  transition: max-width .35s ease, height .35s ease, padding .35s ease, background .35s ease,
              border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

.glass-nav.is-scrolled {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  align-items: flex-start; padding: 8px 12px 0;   /* sits a little below the top edge, like it is floating */
  pointer-events: none;            /* only the glass pill catches clicks, not the empty strip around it */
}
.glass-nav.is-scrolled .glass-nav-inner {
  pointer-events: auto;
  max-width: 1120px; height: 70px; padding: 0 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.30));
  border-color: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(37, 99, 235, 0.12),
    0 1px 3px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}
/* a little bigger text inside the pill (desktop) */
@media (min-width: 641px) {
  .glass-nav.is-scrolled .logo-word { font-size: 34px !important; }
}
@media (min-width: 901px) {
  .glass-nav.is-scrolled .nav-links a, .glass-nav.is-scrolled .site-links a { font-size: 16.5px !important; }
}
/* browsers without backdrop-filter: stay readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-nav.is-scrolled .glass-nav-inner { background: rgba(255, 255, 255, 0.94); }
}

@media (max-width: 640px) {
  .glass-nav { --nav-h: 64px; }
  .glass-nav-inner { padding: 0 16px; }
  .glass-nav.is-scrolled { padding: 6px 8px 0; }
  .glass-nav.is-scrolled .glass-nav-inner { height: 60px; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .glass-nav, .glass-nav-inner { transition: none; }
}
