  /* NAV */

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    background: rgba(8,11,16,0.92);  
  }
 .container {
  max-width: 1400px;        /* control content width */
  margin: 0 auto;           /* center content */
  padding: 0 20px;          /* side spacing */
}
  nav.scrolled {
    background: rgba(8,11,16,0.92);
    border-bottom: 1px solid #1D2430;
    backdrop-filter: blur(12px);
  }

 .nav-logo img {
    height: 25px;
  }

  .nav-logo span { color: #F0503A; }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: #7A8499;
  }
  .nav-links a:hover { color: #F0F4FF; }

  .nav-cta {
    background: #F0503A;
    color: white;
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 22px;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
  }
  .nav-cta:hover { opacity: 0.85; }
    .has-dropdown { position: relative; }

  .has-dropdown { position: relative; }

  .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .chevron { transition: transform 0.25s ease; }

  .has-dropdown:hover .chevron { transform: rotate(180deg); }

  /* Bridge gap so hover doesn't break when moving cursor to dropdown */
  .has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: 14px;
  }

  .dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(8, 11, 16, 0.96);
    border: 1px solid #1D2430;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 10px;
    padding: 8px;
    list-style: none;
    min-width: 190px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.45);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .has-dropdown:hover .dropdown {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
  }

  .dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #7A8499;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    text-decoration: none;
  }

  .dropdown li a::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #F0503A;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
  }

  .dropdown li a:hover {
    background: rgba(255,255,255,0.06);
    color: #F0F4FF;
  }

  .dropdown li a:hover::before { opacity: 1; }

  /* --- Hamburger (hidden on desktop) --- */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 300;
  }

  .hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: #F0F4FF;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* --- Mobile overlay (never shown on desktop) --- */
  .mobile-menu {
    display: none;          /* hidden by default everywhere */
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    z-index: 200;
    padding: 32px 36px 40px;
    flex-direction: column;
  }

  /* Close button */
  .mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    color: #F0F4FF;
    font-size: 26px;
    line-height: 1;
    padding: 4px;
    margin-bottom: 32px;
    transition: color 0.2s, transform 0.2s;
  }
  .mobile-close:hover { color: #F0503A; transform: rotate(90deg); }

  /* --- Responsive --- */
  @media (max-width: 768px) {
    nav { padding: 16px 24px; }
    .nav-links,
    .nav-cta { display: none !important; }
    .hamburger { display: flex; }
    /* Allow overlay to open only on mobile */
    .mobile-menu.open { display: flex; }
  }

  .mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
  }

  .mobile-links > li > a,
  .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #1D2430;
    cursor: pointer;
    font-family: 'Epilogue', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #7A8499;
    padding: 16px 0;
    text-align: left;
    text-decoration: none;
    transition: color 0.2s;
  }

  .mobile-links > li > a:hover,
  .mobile-dropdown-toggle:hover { color: #F0F4FF; }

  .mobile-dropdown {
    list-style: none;
    display: none;
    padding: 6px 0 6px 20px;
  }

  .mobile-dropdown.open { display: block; }

  .mobile-dropdown li a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #7A8499;
    padding: 10px 0;
    text-decoration: none;
    transition: color 0.2s;
  }

  .mobile-dropdown li a:hover { color: #F0F4FF; }

  .mobile-cta {
    display: block !important;
    text-align: center !important;
    margin-top: 28px;
    padding: 14px 22px !important;
    font-size: 15px !important;
    border-bottom: none !important;
    border-radius: 0 !important; /* match your existing .nav-cta shape */
  }

  /* --- Responsive --- */
  @media (max-width: 768px) {
    nav { padding: 16px 24px; }
    .nav-links,
    .nav-cta { display: none !important; }
    .hamburger { display: flex; }
  }
