/* --- MOBILE NAV OVERRIDE (horizontal pills, desktop intact) --- */
@media (max-width: 768px) {
  .header { 
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
  }

  /* Replace burger by horizontal bar */
  .menu-toggle { display: none !important; }

  .nav { position: relative; }
  .nav .links {
    display: flex !important;
    flex-direction: row !important;   /* force ROW on iPhone */
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: .6rem .8rem;
    margin: 0;
    white-space: nowrap;               /* prevent line breaks */
  }
  .nav .links::-webkit-scrollbar { display: none; }
  .nav .links a {
    display: inline-block;             /* inline to keep nowrap honored */
    flex: 0 0 auto;                    /* do not shrink */
    padding: .55rem .9rem;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
  }
  .nav .links a.cta {
    font-weight: 800;
    border-radius: 999px;
    padding: .6rem 1rem;
    background: linear-gradient(90deg, #1ecf6b, #ffb000);
    color: #0b2012 !important;
  }

  /* gradient edges */
  .nav::before, .nav::after {
    content: "";
    position: absolute; top: 0; bottom: 0; width: 24px; pointer-events: none;
  }
  .nav::before { left: 0;  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); }
  .nav::after  { right: 0; background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)); }

  body { scroll-padding-top: 64px; }
}