/* ==========================================================================
   navigation.css  -  TOP BANNER, MENU AND SCROLL BAR (TEMPLATE)
   Used by: the blue banner, the sticky menu bar at the top of index.html,
   and the thin progress line at the bottom of the screen.
   ========================================================================== */

/* TOP: the menu area. It sticks to the top of the screen while scrolling, with a blurred light-blue background that matches the top of the hero. */
.top { position: sticky; top: 0; z-index: 50; background: rgba(214, 229, 251, .88); backdrop-filter: blur(14px); }
/* BANNER: the thin blue strip above the menu. */
.banner { background: var(--brand-blue); color: #fff; font: 11.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
/* Inside the banner: keep the text centred and aligned with the page. */
.banner div { max-width: 1320px; margin: 0 auto; padding: 9px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
/* NAV: the row that holds the logo, the links and the button. */
.nav { position: relative; max-width: 1320px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border-light); }
/* LOGO: the Sentio name and bars icon on the left. */
.logo { display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -.03em; min-height: 44px; font-weight: 500; }
/* MENU: the row of links in the middle. Each link is an outlined pill (blue gradient border, no fill),
   the same shape as the "Join waitlist" button next to it. */
.menu { flex: 1; display: flex; justify-content: center; gap: 8px; font: 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-body); }
/* Each link is a pill with comfortable padding so it is easy to click. */
.menu a { padding: 9px 16px; border-radius: 999px; transition: color .2s ease, background .2s ease; }
/* Hovered link: blue text and a very light blue fill (the border stays the same). */
.menu a:hover { color: var(--brand-blue); background: var(--brand-tint); opacity: 1; }
/* "Join waitlist" button on the right side of the menu. */
.nav .btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 12px; white-space: nowrap; }

/* MENU BUTTON: the "Menu" button for phones. Hidden on big screens. */
.menu-btn { display: none; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--brand-blue); border-radius: 999px; background: #fff; color: var(--brand-blue); font: 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
/* SMALL SCREENS: show the Menu button, and turn the links into a dropdown list that opens when the class "open" is added (see js/navigation.js). */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; }
  .nav .btn { margin-left: 0; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px clamp(16px, 4vw, 40px) 18px; background: #fff; border-bottom: 1px solid var(--border-light); box-shadow: 0 16px 32px rgba(11, 18, 32, .08); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; text-align: center; }
}

/* PROGRESS LINE: a thin blue line at the bottom of the screen. It grows while the visitor scrolls (see components.css). */
.prog { position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; height: 2px; background: var(--brand-blue); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }


/* DESKTOP NAVIGATION - TRANSPARENT 3D GLASS CAPSULE */

@media (min-width: 1101px) {
  .menu {
    --pill-rx: 0deg;
    --pill-ry: 0deg;

    flex: 0 1 auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 14px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.75);

    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.9),
      inset 0 -2px 6px rgba(2, 102, 214, 0.08),
      0 10px 24px rgba(15, 23, 42, 0.07),
      0 2px 0 rgba(255, 255, 255, 0.55);

    perspective: 800px;
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(var(--pill-rx)) rotateY(var(--pill-ry));

    transition:
      transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.3s ease,
      background 0.3s ease;
  }

  .menu:hover {
    background: rgba(255, 255, 255, 0.42);

    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.95),
      inset 0 -2px 6px rgba(2, 102, 214, 0.12),
      0 14px 30px rgba(2, 102, 214, 0.12),
      0 3px 0 rgba(255, 255, 255, 0.7);
  }

  /* Navigation links */

  .menu a {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--text-body);
    opacity: 1;
    white-space: nowrap;

    background: transparent;
    box-shadow: none;
    transform: none;

    transition: color 0.25s ease;
  }

  /* Remove the old gradient outline from individual links */

  .menu a::before {
    display: none !important;
  }

  /* Animated blue underline */

  .menu a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;

    background: linear-gradient(90deg, var(--brand-blue), #38BDF8);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Hover effect without white glare or text blur */

  .menu a:hover,
  .menu a:focus-visible {
    color: var(--brand-blue);
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
  }

  .menu a:hover::after,
  .menu a:focus-visible::after {
    transform: scaleX(1);
  }
}
