/* =====================
   m_navbar — fixed top navigation.

   Source of truth: Figma node 6025:10720 (Dropdown header navigation)
   - 80px tall, full-width, fixed to top
   - 140px X padding (matches u-container side margin)
   - Logo (icon + "Midnight Rule") on left, "Download" CTA on right
   - Subtle backdrop blur + transparent dark bg so hero reads through
   - Middle navigation links are hidden=true in Figma — omitted here

   Mobile breakpoint: <= 991px.
===================== */

.m_navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 5rem;                                            /* 80px */
  display: flex;
  align-items: center;
  background-color: rgba(19, 19, 19, 0.65);                /* dark transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
@media (max-width: 991px) {
  .m_navbar { height: 4rem; }                              /* 64px mobile */
}

/* Inner row — logo left, CTA right. Uses --site--margin from tokens.css
   so navbar aligns with section content (140px desktop, 16px mobile). */
.m_navbar_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 var(--site--margin, 1rem);
  max-width: var(--max-width--main, 90rem);
  margin: 0 auto;
}

/* ---- Logo ---------------------------------------------------------- */

.m_navbar_logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;                                           /* 10px between icon and wordmark */
  text-decoration: none;
  color: var(--color--white, #ffffff);
}
.m_navbar_logo:focus-visible {
  outline: 2px solid var(--color--main-green, #90F99C);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.m_navbar_logo_icon {
  width: 2.092rem;                                         /* 33.47px */
  height: 2.077rem;                                        /* 33.23px */
  display: block;
  flex-shrink: 0;
}
.m_navbar_logo_icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (max-width: 991px) {
  .m_navbar_logo_icon { width: 1.75rem; height: 1.75rem; } /* 28px mobile */
}

.m_navbar_logo_name {
  margin: 0;
  font-family: "Inter", sans-serif;                        /* Geist not in stack — Inter fallback */
  font-weight: 500;                                        /* Medium */
  font-size: 1.375rem;                                     /* 22px */
  line-height: 1.2727;                                     /* 28/22 */
  color: var(--color--white, #ffffff);
  white-space: nowrap;
}
@media (max-width: 991px) {
  .m_navbar_logo_name {
    font-size: 1.125rem;                                   /* 18px mobile */
    line-height: 1.3333;
  }
}

/* ---- CTA button ---------------------------------------------------- */

.m_navbar_cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;                                           /* 6px */
  padding: 0.625rem 1rem;                                  /* 10px 16px */
  border-radius: 0.375rem;                                 /* 6px */
  background-color: var(--color--main-green, #90F99C);
  color: #000000;
  font-family: "Inter", sans-serif;
  font-weight: 600;                                        /* SemiBold */
  font-size: 1rem;                                         /* 16px */
  line-height: 1.5;                                        /* 24/16 */
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(16, 24, 40, 0.18),
    inset 0 -2px 0 0 rgba(16, 24, 40, 0.05),
    0 1px 2px 0 rgba(16, 24, 40, 0.05);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}
.m_navbar_cta:hover {
  background-color: var(--color--main-green-hover, #A9FFB3);
}
.m_navbar_cta:focus-visible {
  outline: 2px solid var(--color--main-green-hover, #A9FFB3);
  outline-offset: 2px;
}
@media (max-width: 991px) {
  .m_navbar_cta {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.4286;
  }
}

/* ---- Page offset --------------------------------------------------- */
/* Page content sits BELOW the fixed navbar by default — exposes a CSS var
   so other components (anchor scrolling etc.) can reference it. The Hero
   intentionally overlaps (transparent navbar reads its dark BG through). */
:root {
  --m_navbar-h: 5rem;
}
@media (max-width: 991px) {
  :root { --m_navbar-h: 4rem; }
}
